X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FSourceLevelDebugging.html;h=172ede02e6afd19bbed7a9a607243a23ad398045;hb=ca57f78332eb0faae549b233662e38fbf8e09a0f;hp=02a506695c8737f64a840dc2ad98192fe2c4aa75;hpb=44c3b9fdd416c79f4b67cde1aecfced5921efd81;p=oota-llvm.git diff --git a/docs/SourceLevelDebugging.html b/docs/SourceLevelDebugging.html index 02a506695c8..172ede02e6a 100644 --- a/docs/SourceLevelDebugging.html +++ b/docs/SourceLevelDebugging.html @@ -66,7 +66,7 @@ height="369">
@@ -130,7 +130,7 @@ href="http://www.eagercon.com/dwarf/dwarf3std.htm">Dwarf 3 standard).When a program is being debugged, a debugger interacts with the user and turns the stored debug information into source-language specific information. As such, a debugger must be aware of the source-language, and is thus tied to -a specific language of family of languages.
+a specific language or family of languages. @@ -142,7 +142,7 @@ a specific language of family of languages.The role of debug information is to provide meta information normally stripped away during the compilation process. This meta information provides an -llvm user a relationship between generated code and the original program source +LLVM user a relationship between generated code and the original program source code.
Currently, debug information is consumed by the DwarfWriter to produce dwarf @@ -175,12 +175,12 @@ source-level state of the program, regardless of which LLVM optimizations have been run, and without any modification to the optimizations themselves. However, some optimizations may impact the ability to modify the current state of the program with a debugger, such as setting program variables, or calling -function that have been deleted. +functions that have been deleted.
This intrinsic is used to provide correspondence between the source file and the generated code. The first argument is the line number (base 1), second -argument si the column number (0 if unknown) and the third argument the source +argument is the column number (0 if unknown) and the third argument the source %llvm.dbg.compile_unit* cast to a { }*. Code following a call to this intrinsic will have been defined in close proximity of the line, column and file. This information holds until @@ -767,10 +767,13 @@ href="#format_common_stoppoint">lvm.dbg.stoppoint.
This intrinsic is used to link the debug information in %llvm.dbg.subprogram to the function. It also -defines the beginning of the function's declarative region (scope.) The -intrinsic should be called early in the function after the all the alloca -instructions. It should be paired off with a closing %llvm.dbg.subprogram to the function. It +defines the beginning of the function's declarative region (scope). It also +implies a call to %llvm.dbg.stoppoint which defines a +source line "stop point". The intrinsic should be called early in the function +after the all the alloca instructions. It should be paired off with a closing +%llvm.dbg.region.end. The function's single argument is the %llvm.dbg.subprogram.type.
@@ -991,7 +994,7 @@ another scope).It is worth noting that this scoping mechanism is used to control scoping of all declarations, not just variable declarations. For example, the scope of a -C++ using declaration is controlled with this couldchange how name lookup is +C++ using declaration is controlled with this and could change how name lookup is performed.