Skip to content
  1. Jul 02, 2010
  2. Jul 01, 2010
    • Greg Clayton's avatar
      Added a missing static function prototype to FileSpec.h for ResolveUsername. · a5d24f66
      Greg Clayton authored
      Did a bit of code formatting and cleanup.
      
      llvm-svn: 107403
      a5d24f66
    • Jim Ingham's avatar
      Moved the User Name expansion over to FileSpec, and converted it to use getpwname directly. · f818ca37
      Jim Ingham authored
      Changed the file completion to deal with this, and FileSpec::Resolve now resolves all user names (not just ~/).
      
      llvm-svn: 107370
      f818ca37
    • Greg Clayton's avatar
      Fixed up disassembly to not emit the module name before all function names · 54b8b8c1
      Greg Clayton authored
      that are in the disassembly comments since most of them are in the same
      module (shared library). 
      
      Fixed a crasher that could happen when disassembling special section data.
      
      Added an address dump style that shows the symbol context without the module
      (used in the disassembly code).
      
      llvm-svn: 107366
      54b8b8c1
    • Greg Clayton's avatar
      Centralized all disassembly into static functions in source/Core/Disassembler.cpp. · dda4f7b5
      Greg Clayton authored
      Added the ability to read memory from the target's object files when we aren't
      running, so disassembling works before you run!
      
      Cleaned up the API to lldb_private::Target::ReadMemory().
      
      Cleaned up the API to the Disassembler to use actual "lldb_private::Address"
      objects instead of just an "addr_t". This is nice because the Address objects
      when resolved carry along their section and module which can get us the 
      object file. This allows Target::ReadMemory to be used when we are not 
      running.
      
      Added a new lldb_private::Address dump style: DumpStyleDetailedSymbolContext
      This will show a full breakdown of what an address points to. To see some
      sample output, execute a "image lookup --address <addr>".
      
      Fixed SymbolContext::DumpStopContext(...) to not require a live process in
      order to be able to print function and symbol offsets.
      
      llvm-svn: 107350
      dda4f7b5
  3. Jun 30, 2010
    • Caroline Tice's avatar
      Add a unique ID to each debugger instance. · ebc1bb27
      Caroline Tice authored
      Add functions to look up debugger by id
      Add global variable to lldb python module, to hold debugger id
      Modify embedded Python interpreter to update the global variable with the
       id of its current debugger.
      Modify the char ** typemap definition in lldb.swig to accept 'None' (for NULL)
       as a valid value.
      
      The point of all this is so that, when you drop into the embedded interpreter
      from the command interpreter (or when doing Python-based breakpoint commands),
      there is a way for the Python side to find/get the correct debugger
      instance ( by checking debugger_unique_id, then calling 
      SBDebugger::FindDebuggerWithID  on it).
      
      llvm-svn: 107287
      ebc1bb27
  4. Jun 29, 2010
  5. Jun 28, 2010
    • Greg Clayton's avatar
      Added function name types to allow us to set breakpoints by name more · 0c5cd90d
      Greg Clayton authored
      intelligently. The four name types we currently have are:
      
      eFunctionNameTypeFull       = (1 << 1), // The function name.
                                              // For C this is the same as just the name of the function
                                              // For C++ this is the demangled version of the mangled name.
                                              // For ObjC this is the full function signature with the + or
                                              // - and the square brackets and the class and selector
      eFunctionNameTypeBase       = (1 << 2), // The function name only, no namespaces or arguments and no class 
                                              // methods or selectors will be searched.
      eFunctionNameTypeMethod     = (1 << 3), // Find function by method name (C++) with no namespace or arguments
      eFunctionNameTypeSelector   = (1 << 4)  // Find function by selector name (ObjC) names
      
      
      this allows much more flexibility when setting breakoints:
      
      (lldb) breakpoint set --name main --basename
      (lldb) breakpoint set --name main --fullname
      (lldb) breakpoint set --name main --method
      (lldb) breakpoint set --name main --selector
      
      The default:
      
      (lldb) breakpoint set --name main
      
      will inspect the name "main" and look for any parens, or if the name starts
      with "-[" or "+[" and if any are found then a full name search will happen.
      Else a basename search will be the default.
      
      Fixed some command option structures so not all options are required when they
      shouldn't be.
      
      Cleaned up the breakpoint output summary.
      
      Made the "image lookup --address <addr>" output much more verbose so it shows
      all the important symbol context results. Added a GetDescription method to 
      many of the SymbolContext objects for the more verbose output.
      
      llvm-svn: 107075
      0c5cd90d
  6. Jun 23, 2010
    • Sean Callanan's avatar
      Fixed the log streams for logs that output to · 4be3990f
      Sean Callanan authored
      standard output, resolving a crasher.
      
      llvm-svn: 106682
      4be3990f
    • Greg Clayton's avatar
      Very large changes that were needed in order to allow multiple connections · 6611103c
      Greg Clayton authored
      to the debugger from GUI windows. Previously there was one global debugger
      instance that could be accessed that had its own command interpreter and
      current state (current target/process/thread/frame). When a GUI debugger
      was attached, if it opened more than one window that each had a console
      window, there were issues where the last one to setup the global debugger
      object won and got control of the debugger.
      
      To avoid this we now create instances of the lldb_private::Debugger that each 
      has its own state:
      - target list for targets the debugger instance owns
      - current process/thread/frame
      - its own command interpreter
      - its own input, output and error file handles to avoid conflicts
      - its own input reader stack
      
      So now clients should call:
      
          SBDebugger::Initialize(); // (static function)
      
          SBDebugger debugger (SBDebugger::Create());
          // Use which ever file handles you wish
          debugger.SetErrorFileHandle (stderr, false);
          debugger.SetOutputFileHandle (stdout, false);
          debugger.SetInputFileHandle (stdin, true);
      
          // main loop
          
          SBDebugger::Terminate(); // (static function)
          
      SBDebugger::Initialize() and SBDebugger::Terminate() are ref counted to
      ensure nothing gets destroyed too early when multiple clients might be
      attached.
      
      Cleaned up the command interpreter and the CommandObject and all subclasses
      to take more appropriate arguments.
      
      llvm-svn: 106615
      6611103c
  7. Jun 22, 2010
  8. Jun 21, 2010
  9. Jun 15, 2010
  10. Jun 13, 2010
  11. Jun 12, 2010
  12. Jun 11, 2010
  13. Jun 10, 2010
  14. Jun 09, 2010
  15. Jun 08, 2010
Loading