diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-07-19 15:55:23 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-07-19 15:55:23 +0000 |
commit | b45853f173139c7c3078b97f53e7a6eba6148c13 (patch) | |
tree | 3b24eec01a7b23edd4364911d9bf6490ce2c1422 /lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint | |
parent | 005423018182120f3ae2a54ff5fd3390c96fb527 (diff) | |
download | bcm5719-llvm-b45853f173139c7c3078b97f53e7a6eba6148c13.tar.gz bcm5719-llvm-b45853f173139c7c3078b97f53e7a6eba6148c13.zip |
[lldb][NFC] Cleanup mentions and code related to lldb-mi
Summary: lldb-mi has been removed, but there are still a bunch of references in the code base. This patch removes all of them.
Reviewers: JDevlieghere, jfb
Reviewed By: JDevlieghere
Subscribers: dexonsmith, ki.stfu, mgorny, abidh, jfb, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D64992
llvm-svn: 366590
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint')
3 files changed, 0 insertions, 395 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/Makefile b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/Makefile deleted file mode 100644 index 314f1cb2f07..00000000000 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -LEVEL = ../../../make - -CXX_SOURCES := main.cpp - -include $(LEVEL)/Makefile.rules diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/TestMiBreak.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/TestMiBreak.py deleted file mode 100644 index eefc13feca4..00000000000 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/TestMiBreak.py +++ /dev/null @@ -1,361 +0,0 @@ -""" -Test lldb-mi -break-xxx commands. -""" - -from __future__ import print_function - - -import unittest2 -import lldbmi_testcase -from lldbsuite.test.decorators import * -from lldbsuite.test.lldbtest import * -from lldbsuite.test import lldbutil - - -class MiBreakTestCase(lldbmi_testcase.MiTestCaseBase): - - mydir = TestBase.compute_mydir(__file__) - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfLinux # llvm.org/pr24717 - @expectedFailureNetBSD - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_break_insert_function_pending(self): - """Test that 'lldb-mi --interpreter' works for pending function breakpoints.""" - - self.spawnLldbMi(args=None) - - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - self.runCmd("-break-insert -f printf") - # FIXME function name is unknown on Darwin, fullname should be ??, line is -1 - # self.expect("\^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0xffffffffffffffff\",func=\"printf\",file=\"\?\?\",fullname=\"\?\?\",line=\"-1\",pending=\[\"printf\"\],times=\"0\",original-location=\"printf\"}") - self.expect( - "\^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0xffffffffffffffff\",func=\"\?\?\",file=\"\?\?\",fullname=\"\?\?/\?\?\",line=\"0\",pending=\[\"printf\"\],times=\"0\",original-location=\"printf\"}") - # FIXME function name is unknown on Darwin, fullname should be ??, line -1 - # self.expect("=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0xffffffffffffffff\",func=\"printf\",file=\"\?\?\",fullname=\"\?\?\",line=\"-1\",pending=\[\"printf\"\],times=\"0\",original-location=\"printf\"}") - self.expect( - "=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0xffffffffffffffff\",func=\"\?\?\",file=\"\?\?\",fullname=\"\?\?/\?\?\",line=\"0\",pending=\[\"printf\"\],times=\"0\",original-location=\"printf\"}") - - self.runCmd("-exec-run") - self.expect("\^running") - self.expect( - "=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\".+?\",file=\".+?\",fullname=\".+?\",line=\"(-1|\d+)\",pending=\[\"printf\"\],times=\"0\",original-location=\"printf\"}") - self.expect("\*stopped,reason=\"breakpoint-hit\"") - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @expectedFailureNetBSD - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_break_insert_function(self): - """Test that 'lldb-mi --interpreter' works for function breakpoints.""" - - self.spawnLldbMi(args=None) - - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - self.runCmd("-break-insert -f main") - self.expect( - "\^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",pending=\[\"main\"\],times=\"0\",original-location=\"main\"}") - self.expect( - "=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",pending=\[\"main\"\],times=\"0\",original-location=\"main\"}") - - self.runCmd("-exec-run") - self.expect("\^running") - self.expect( - "=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",pending=\[\"main\"\],times=\"0\",original-location=\"main\"}") - self.expect("\*stopped,reason=\"breakpoint-hit\"") - - # Test that -break-insert can set non-pending BP - self.runCmd("-break-insert printf") - # FIXME function name is unknown on Darwin - # self.expect("\^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"printf\",file=\".+?\",fullname=\".+?\",line=\"(-1|\d+)\",times=\"0\",original-location=\"printf\"}") - self.expect( - "\^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\".+?\",file=\".+?\",fullname=\".+?\",line=\"(-1|\d+)\",times=\"0\",original-location=\"printf\"}") - # FIXME function name is unknown on Darwin - # self.expect("=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"printf\",file=\".+?\",fullname=\".+?\",line=\"(-1|\d+)\",times=\"0\",original-location=\"printf\"}") - self.expect( - "=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\".+?\",file=\".+?\",fullname=\".+?\",line=\"(-1|\d+)\",times=\"0\",original-location=\"printf\"}") - # FIXME function name is unknown on Darwin - # self.expect("=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"printf\",file=\".+?\",fullname=\".+?\",line=\"(-1|\d+)\",times=\"0\",original-location=\"printf\"}") - self.expect( - "=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\".+?\",file=\".+?\",fullname=\".+?\",line=\"(-1|\d+)\",times=\"0\",original-location=\"printf\"}") - - # Test that -break-insert fails if non-pending BP can't be resolved - self.runCmd("-break-insert unknown_func") - self.expect( - "\^error,msg=\"Command 'break-insert'. Breakpoint location 'unknown_func' not found\"") - - # Test that non-pending BP was set correctly - self.runCmd("-exec-continue") - self.expect("\^running") - self.expect("\*stopped,reason=\"breakpoint-hit\".*bkptno=\"2\"") - - # Test that we can set a BP using the file:func syntax - self.runCmd("-break-insert main.cpp:main") - self.expect("\^done,bkpt={number=\"4\"") - self.runCmd("-break-insert main.cpp:ns::foo1") - self.expect("\^done,bkpt={number=\"5\"") - # FIXME: quotes on filenames aren't handled correctly in lldb-mi. - #self.runCmd("-break-insert \"main.cpp\":main") - # self.expect("\^done,bkpt={number=\"6\"") - - # We should hit BP #5 on 'main.cpp:ns::foo1' - self.runCmd("-exec-continue") - self.expect("\^running") - self.expect("\*stopped,reason=\"breakpoint-hit\".*bkptno=\"5\"") - - # FIXME: this test is disabled due to lldb bug llvm.org/pr24271. - # Test that we can set a BP using the global namespace token - #self.runCmd("-break-insert ::main") - # self.expect("\^done,bkpt={number=\"7\"") - #self.runCmd("-break-insert main.cpp:::main") - # self.expect("\^done,bkpt={number=\"8\"") - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_break_insert_file_line_pending(self): - """Test that 'lldb-mi --interpreter' works for pending file:line breakpoints.""" - - self.spawnLldbMi(args=None) - - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - # Find the line number to break inside main() and set - # pending BP - line = line_number('main.cpp', '// BP_return') - self.runCmd("-break-insert -f main.cpp:%d" % line) - self.expect( - "\^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"%d\",pending=\[\"main.cpp:%d\"\],times=\"0\",original-location=\"main.cpp:%d\"}" % - (line, - line, - line)) - self.expect( - "=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"%d\",pending=\[\"main.cpp:%d\"\],times=\"0\",original-location=\"main.cpp:%d\"}" % - (line, - line, - line)) - - self.runCmd("-exec-run") - self.expect("\^running") - self.expect("\*stopped,reason=\"breakpoint-hit\"") - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_break_insert_file_line(self): - """Test that 'lldb-mi --interpreter' works for file:line breakpoints.""" - - self.spawnLldbMi(args=None) - - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - self.runCmd("-break-insert -f main") - self.expect("\^done,bkpt={number=\"1\"") - - self.runCmd("-exec-run") - self.expect("\^running") - self.expect("\*stopped,reason=\"breakpoint-hit\"") - - # Test that -break-insert can set non-pending BP - line = line_number('main.cpp', '// BP_return') - self.runCmd("-break-insert main.cpp:%d" % line) - self.expect( - "\^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"%d\",times=\"0\",original-location=\"main.cpp:%d\"}" % - (line, line)) - self.expect( - "=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"%d\",times=\"0\",original-location=\"main.cpp:%d\"}" % - (line, line)) - - # Test that -break-insert fails if non-pending BP can't be resolved - self.runCmd("-break-insert unknown_file:1") - self.expect( - "\^error,msg=\"Command 'break-insert'. Breakpoint location 'unknown_file:1' not found\"") - - # Test that non-pending BP was set correctly - self.runCmd("-exec-continue") - self.expect("\^running") - self.expect("\*stopped,reason=\"breakpoint-hit\"") - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_break_insert_file_line_absolute_path(self): - """Test that 'lldb-mi --interpreter' works for file:line breakpoints.""" - - self.spawnLldbMi(args=None) - - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - self.runCmd("-break-insert -f main") - self.expect("\^done,bkpt={number=\"1\"") - - self.runCmd("-exec-run") - self.expect("\^running") - self.expect("\*stopped,reason=\"breakpoint-hit\"") - - import os - path = os.path.join(self.getSourceDir(), "main.cpp") - line = line_number('main.cpp', '// BP_return') - self.runCmd("-break-insert %s:%d" % (path, line)) - self.expect("\^done,bkpt={number=\"2\"") - - self.runCmd("-exec-continue") - self.expect("\^running") - self.expect("\*stopped,reason=\"breakpoint-hit\"") - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_break_insert_settings(self): - """Test that 'lldb-mi --interpreter' can set breakpoints accoridng to global options.""" - - self.spawnLldbMi(args=None) - - # Load executable - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - # Set target.move-to-nearest-code=off and try to set BP #1 that - # shouldn't be hit - self.runCmd( - "-interpreter-exec console \"settings set target.move-to-nearest-code off\"") - self.expect("\^done") - line_decl = line_number('main.cpp', '// BP_main_decl') - line_in = line_number('main.cpp', '// BP_in_main') - self.runCmd("-break-insert -f main.cpp:%d" % line_in) - self.expect("\^done,bkpt={number=\"1\"") - - # Test that non-pending BP will not be set on non-existing line if target.move-to-nearest-code=off - # Note: this increases the BP number by 1 even though BP #2 is invalid. - self.runCmd("-break-insert main.cpp:%d" % line_in) - self.expect( - "\^error,msg=\"Command 'break-insert'. Breakpoint location 'main.cpp:%d' not found\"" % - line_in) - - # Set target.move-to-nearest-code=on and target.skip-prologue=on and - # set BP #3 & #4 - self.runCmd( - "-interpreter-exec console \"settings set target.move-to-nearest-code on\"") - self.runCmd( - "-interpreter-exec console \"settings set target.skip-prologue on\"") - self.expect("\^done") - self.runCmd("-break-insert main.cpp:%d" % line_in) - self.expect("\^done,bkpt={number=\"3\"") - self.runCmd("-break-insert main.cpp:%d" % line_decl) - self.expect("\^done,bkpt={number=\"4\"") - - # Set target.skip-prologue=off and set BP #5 - self.runCmd( - "-interpreter-exec console \"settings set target.skip-prologue off\"") - self.expect("\^done") - self.runCmd("-break-insert main.cpp:%d" % line_decl) - self.expect("\^done,bkpt={number=\"5\"") - - # Test that BP #5 is located before BP #4 - self.runCmd("-exec-run") - self.expect("\^running") - self.expect( - "\*stopped,reason=\"breakpoint-hit\",disp=\"del\",bkptno=\"5\"") - - # Test that BP #4 is hit - self.runCmd("-exec-continue") - self.expect("\^running") - self.expect( - "\*stopped,reason=\"breakpoint-hit\",disp=\"del\",bkptno=\"4\"") - - # Test that BP #3 is hit - self.runCmd("-exec-continue") - self.expect("\^running") - self.expect( - "\*stopped,reason=\"breakpoint-hit\",disp=\"del\",bkptno=\"3\"") - - # Test that the target.language=pascal setting works and that BP #6 is - # NOT set - self.runCmd( - "-interpreter-exec console \"settings set target.language c\"") - self.expect("\^done") - self.runCmd("-break-insert ns.foo1") - self.expect("\^error") - - # Test that the target.language=c++ setting works and that BP #7 is hit - self.runCmd( - "-interpreter-exec console \"settings set target.language c++\"") - self.expect("\^done") - self.runCmd("-break-insert ns::foo1") - self.expect("\^done,bkpt={number=\"7\"") - self.runCmd("-exec-continue") - self.expect("\^running") - self.expect( - "\*stopped,reason=\"breakpoint-hit\",disp=\"del\",bkptno=\"7\"") - - # Test that BP #1 and #2 weren't set by running to program exit - self.runCmd("-exec-continue") - self.expect("\^running") - self.expect("\*stopped,reason=\"exited-normally\"") - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfRemote # We do not currently support remote debugging via the MI. - @skipIfNetBSD - def test_lldbmi_break_enable_disable(self): - """Test that 'lldb-mi --interpreter' works for enabling / disabling breakpoints.""" - - self.spawnLldbMi(args=None) - - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - self.runCmd("-break-insert main") - self.expect( - "\^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\"") - self.expect( - "=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",times=\"0\",original-location=\"main\"}") - - self.runCmd("-exec-run") - self.expect("\^running") - self.expect( - "=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"main\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",times=\"0\",original-location=\"main\"}") - self.expect( - "\*stopped,reason=\"breakpoint-hit\",disp=\"del\",bkptno=\"1\"") - - self.runCmd("-break-insert ns::foo1") - self.expect( - "\^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"ns::foo1\(\)\"") - self.expect( - "=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"ns::foo1\(\)\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",times=\"0\",original-location=\"ns::foo1\"}") - - self.runCmd("-break-insert ns::foo2") - self.expect( - "\^done,bkpt={number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"ns::foo2\(\)\"") - self.expect( - "=breakpoint-modified,bkpt={number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"ns::foo2\(\)\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",times=\"0\",original-location=\"ns::foo2\"}") - - # disable the 2nd breakpoint - self.runCmd("-break-disable 2") - self.expect("\^done") - self.expect( - "=breakpoint-modified,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"n\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"ns::foo1\(\)\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",times=\"0\",original-location=\"ns::foo1\"}") - - # disable the 3rd breakpoint and re-enable - self.runCmd("-break-disable 3") - self.expect("\^done") - self.expect( - "=breakpoint-modified,bkpt={number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"n\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"ns::foo2\(\)\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",times=\"0\",original-location=\"ns::foo2\"}") - - self.runCmd("-break-enable 3") - self.expect("\^done") - self.expect( - "=breakpoint-modified,bkpt={number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"(?!0xffffffffffffffff)0x[0-9a-f]+\",func=\"ns::foo2\(\)\",file=\"main\.cpp\",fullname=\".+?main\.cpp\",line=\"\d+\",times=\"0\",original-location=\"ns::foo2\"}") - - self.runCmd("-exec-continue") - self.expect("\^running") - self.expect( - "\*stopped,reason=\"breakpoint-hit\",disp=\"del\",bkptno=\"3\"") diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/main.cpp b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/main.cpp deleted file mode 100644 index d81365ff415..00000000000 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/breakpoint/main.cpp +++ /dev/null @@ -1,29 +0,0 @@ -//===-- main.cpp ------------------------------------------------*- C++ -*-===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include <cstdio> - -namespace ns -{ - int foo1(void) { printf("In foo1\n"); return 1; } - int foo2(void) { printf("In foo2\n"); return 2; } -} - -int x; -int main(int argc, char const *argv[]) { // BP_main_decl - printf("Print a formatted string so that GCC does not optimize this printf call: %s\n", argv[0]); - // This is a long comment with no code inside - // This is a long comment with no code inside - // This is a long comment with no code inside - // BP_in_main - // This is a long comment with no code inside - // This is a long comment with no code inside - // This is a long comment with no code inside - x = ns::foo1() + ns::foo2(); - return 0; // BP_return -} |