llvm-project/lldb/source/Symbol
Greg Clayton 176761e530 Added a new option to the "source list" command that allows us to see where
line tables specify breakpoints can be set in the source. When dumping the
source, the number of breakpoints that can be set on a source line are shown
as a prefix:

(lldb) source list -f test.c -l1 -c222 -b
       1   	#include <stdio.h>
       2   	#include <sys/fcntl.h>
       3   	#include <unistd.h>
       4   	int
       5   	sleep_loop (const int num_secs)
[2]    6   	{
       7   	    int i;
[1]    8   	    for (i=0; i<num_secs; ++i)
       9   	    {
[1]    10  	        printf("%d of %i - sleep(1);\n", i, num_secs);
[1]    11  	        sleep(1);       
       12  	    }
       13  	    return 0;
[1]    14  	}
       15  	
       16  	int 
       17  	main (int argc, char const* argv[])
[1]    18  	{
[1]    19  	    printf("Process: %i\n\n", getpid());
[1]    20  	    puts("Press any key to continue..."); getchar();
[1]    21  	    sleep_loop (20);
       22  	    return 12;
[1]    23  	}

Above we can see there are two breakpoints for line 6 and one breakpoint for
lines 8, 10, 11, 14, 18, 19, 20, 21 and 23. All other lines have no line table
entries for them. This helps visualize the data provided in the debug 
information without having to manually dump all line tables. It also includes
all inline breakpoint that may result for a given file which can also be very
handy to see.

llvm-svn: 129747
2011-04-19 04:19:37 +00:00
..
Block.cpp Fixed a crasher that could happen when trying to look at N_GSYM entries 2011-02-08 02:40:32 +00:00
ClangASTContext.cpp Centralized a lot of the status information for processes, 2011-04-18 08:33:37 +00:00
ClangASTType.cpp Centralized a lot of the status information for processes, 2011-04-18 08:33:37 +00:00
ClangExternalASTSourceCallbacks.cpp Added missing source files. 2011-01-17 04:19:51 +00:00
ClangNamespaceDecl.cpp Modified the lldb_private::Type clang type resolving code to handle three 2010-11-13 03:52:47 +00:00
CompileUnit.cpp Fixed an issue where we were resolving paths when we should have been. 2010-10-20 20:54:39 +00:00
DWARFCallFrameInfo.cpp Order of initialization lists. 2011-04-11 19:41:40 +00:00
Declaration.cpp Modified the PluginManager to be ready for loading plug-ins from a system 2011-02-02 02:24:04 +00:00
FuncUnwinders.cpp All UnwindPlan objects are now passed around as shared pointers. 2011-02-15 00:19:15 +00:00
Function.cpp Clean up a bit of the type getting code where lldb_private:Type now has 2011-02-16 23:00:21 +00:00
LineEntry.cpp Moved the section load list up into the target so we can use the target 2010-09-14 23:36:40 +00:00
LineTable.cpp Added a new option to the "source list" command that allows us to see where 2011-04-19 04:19:37 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
ObjectFile.cpp Moved the execution context that was in the Debugger into 2011-04-12 05:54:46 +00:00
Symbol.cpp Order of initialization lists. 2011-04-11 19:41:40 +00:00
SymbolContext.cpp Added a new option to the "source list" command that allows us to see where 2011-04-19 04:19:37 +00:00
SymbolFile.cpp A few of the issue I have been trying to track down and fix have been due to 2011-01-17 03:46:26 +00:00
SymbolVendor.cpp LLDB now has "Platform" plug-ins. Platform plug-ins are plug-ins that provide 2011-03-08 22:40:15 +00:00
Symtab.cpp Fixed the LLDB build so that we can have private types, private enums and 2011-03-24 21:19:54 +00:00
Type.cpp Order of initialization lists. 2011-04-11 19:41:40 +00:00
TypeList.cpp A few of the issue I have been trying to track down and fix have been due to 2011-01-17 03:46:26 +00:00
UnwindPlan.cpp Made FuncUnwinders threadsafe. 2011-01-08 21:19:00 +00:00
UnwindTable.cpp Order of initialization lists. 2011-04-11 19:41:40 +00:00
Variable.cpp Just like functions can have a basename and a mangled/demangled name, variable 2010-11-14 22:13:40 +00:00
VariableList.cpp Just like functions can have a basename and a mangled/demangled name, variable 2010-11-14 22:13:40 +00:00