- Sep 09, 2010
-
-
Chris Lattner authored
llvm-svn: 113438
-
Chris Lattner authored
llvm-svn: 113437
-
Chris Lattner authored
fix a bunch of signed/unsigned comparison warnings, stop evaluating "getsize" every time through the loop. llvm-svn: 113433
-
Johnny Chen authored
from scripting applications. An example usage from TestConditionalBreak.py is: import lldbutil lldbutil.PrintStackTrace(thread) ./dotest.py -v conditional_break ---------------------------------------------------------------------- Collected 2 tests test_with_dsym (TestConditionalBreak.ConditionalBreakTestCase) Exercise some thread and frame APIs to break if c() is called by a(). ... Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread: frame #0: a.out`c at main.c:39 frame #1: a.out`b at main.c:34 frame #2: a.out`a at main.c:25 frame #3: a.out`main at main.c:44 frame #4: a.out`start Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread: frame #0: a.out`c at main.c:39 frame #1: a.out`b at main.c:34 frame #2: a.out`main at main.c:47 frame #3: a.out`start Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread: frame #0: a.out`c at main.c:39 frame #1: a.out`a at main.c:27 frame #2: a.out`main at main.c:50 frame #3: a.out`start ok test_with_dwarf (TestConditionalBreak.ConditionalBreakTestCase) Exercise some thread and frame APIs to break if c() is called by a(). ... Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread: frame #0: a.out`c at main.c:39 frame #1: a.out`b at main.c:34 frame #2: a.out`a at main.c:25 frame #3: a.out`main at main.c:44 frame #4: a.out`start Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread: frame #0: a.out`c at main.c:39 frame #1: a.out`b at main.c:34 frame #2: a.out`main at main.c:47 frame #3: a.out`start Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread: frame #0: a.out`c at main.c:39 frame #1: a.out`a at main.c:27 frame #2: a.out`main at main.c:50 frame #3: a.out`start ok ---------------------------------------------------------------------- Ran 2 tests in 7.803s OK llvm-svn: 113432
-
Sean Callanan authored
with the Clang parser that prevents us from passing Objective-C types to functions that expect C types. This quick hack keeps us in business until that interaction is fixed. llvm-svn: 113429
-
Caroline Tice authored
llvm-svn: 113421
-
- Sep 08, 2010
-
-
Caroline Tice authored
llvm-svn: 113408
-
Johnny Chen authored
of 10 seconds in order for the debugger to attach. llvm-svn: 113407
-
Sean Callanan authored
certain functions from being resolved correctly. Some functions (particularly varargs functions) are BitCast before being called, and the problem was that a CallInst where getCalledValue() returned a BitCast ConstantExpr was not being relocated at all. This problem should now be resolved for the case of BitCast. llvm-svn: 113396
-
Greg Clayton authored
llvm-svn: 113372
-
Jim Ingham authored
llvm-svn: 113371
-
Caroline Tice authored
Make sure creating a pending instance doesn't also trigger creating a live instance; also make sure creating a pending instance uses the specified instance name rather than creating a new one; add brackets to instance names when searching for and removing pending instances. llvm-svn: 113370
-
Greg Clayton authored
new change will omit unneeded symbol table entries and coalesce function entries (N_FUN stab entries) with their linker code symbol (N_SECT symbols) into only the function symbol to avoid duplicate symbol table entries. It will also coalesce N_STSYM and the data linker symbol into just one static data symbol. llvm-svn: 113363
-
Jim Ingham authored
which controls whether to stop in a function matching the regexp. llvm-svn: 113335
-
Jim Ingham authored
as well. llvm-svn: 113328
-
Johnny Chen authored
llvm-svn: 113327
-
Johnny Chen authored
the call site of c() is a(). llvm-svn: 113325
-
Greg Clayton authored
objects and populates them so we can test making expression calls with these objects. We will need to make this test case more complete as time goes on to make sure we can evaluate all functions. llvm-svn: 113314
-
Greg Clayton authored
member variables. Modified lldb_private::Module to have an accessor that can be used to tell if a module is a dynamic link editor (dyld) as there are functions in dyld on darwin that mirror functions in libc (malloc, free, etc) that should not be used when doing function lookups by name in expressions if there are more than one match when looking up functions by name. llvm-svn: 113313
-
Jim Ingham authored
llvm-svn: 113309
-
Sean Callanan authored
expressions correctly. These produced a result variable with an initializer but no store instruction, and the store instruction was as a result never rewritten to become a store to a persistent variable. Now if the result variable has an initializer but is never used, we generate a (redundant) store instruction for it, which is then later rewritten into a (useful) store to the persistent result variable. llvm-svn: 113300
-
Caroline Tice authored
Small help text fixes, to make it more consistent and accurate. Temporarily remove -l option from 'expr' command (at Sean's request). llvm-svn: 113298
-
- Sep 07, 2010
-
-
Greg Clayton authored
llvm-svn: 113292
-
Sean Callanan authored
symbols with the same name and no debug information. Also improved the way functions are called so we don't automatically define them as variadic functions in the IR. llvm-svn: 113290
-
Sean Callanan authored
(i.e., leave the value the same, so that a new stack frame will be linked to the previous stack) rather than zeroing out RBP. This fixes calls to dlopen(), for example, which does a backtrace to see which image is calling it. llvm-svn: 113288
-
Jim Ingham authored
in UserSettingsController.cpp. llvm-svn: 113268
-
Greg Clayton authored
code between linux, darwin and BSD. llvm-svn: 113263
-
Johnny Chen authored
And added a trace output for the stop function name to breakAfterLaunch() method. llvm-svn: 113251
-
Caroline Tice authored
llvm-svn: 113245
-
Johnny Chen authored
llvm-svn: 113244
-
Johnny Chen authored
llvm-svn: 113241
-
Johnny Chen authored
llvm-svn: 113238
-
Greg Clayton authored
symbol tables. Minimal symbol tables enable us to merge two symbols, one debug symbol and one linker symbol, into a single symbol that can carry just as much information and will avoid duplicate symbols in the symbol table. llvm-svn: 113223
-
Johnny Chen authored
llvm-svn: 113219
-
Johnny Chen authored
llvm-svn: 113214
-
Johnny Chen authored
llvm-svn: 113211
-
Johnny Chen authored
after the recent checkin. llvm-svn: 113206
-
Greg Clayton authored
parent, sibling and first child block, and access to the inline function information. Added an accessor the StackFrame: Block * lldb_private::StackFrame::GetFrameBlock(); LLDB represents inline functions as lexical blocks that have inlined function information in them. The function above allows us to easily get the top most lexical block that defines a stack frame. When there are no inline functions in function, the block returned ends up being the top most block for the function. When the PC is in an inlined funciton for a frame, this will return the first parent block that has inlined function information. The other accessor: StackFrame::GetBlock() will return the deepest block that matches the frame's PC value. Since most debuggers want to display all variables in the current frame, the Block returned by StackFrame::GetFrameBlock can be used to retrieve all variables for the current frame. Fixed the lldb_private::Block::DumpStopContext(...) to properly display inline frames a block should display all of its inlined functions. Prior to this fix, one of the call sites was being skipped. This is a separate code path from the current default where inlined functions get their own frames. Fixed an issue where a block would always grab variables for any child inline function blocks. llvm-svn: 113195
-
Greg Clayton authored
Fixed an error that could occur during disassembly that could cause a function name to be printed before the first _and_ the second instruction of disassembly when there are two symbols -- one debug symbol and one linker symbol. llvm-svn: 113181
-
Greg Clayton authored
Fixed a buffer overrun error that could occur every time the program was run due to a "sprintf" with a destination string that was too short. llvm-svn: 113180
-