| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
And a -P option to the Driver
to print it out. Changed dotest.py to use that to find the PythonPath it should use given the lldb binary
it was told to run.
llvm-svn: 170932
|
|
|
|
| |
llvm-svn: 170800
|
|
|
|
|
|
|
|
| |
(spotted on Linux)
Patch by Chia-Hung Duan!
llvm-svn: 170348
|
|
|
|
|
|
|
|
|
| |
object's status instead of the presence of text in the error stream
This should be more consistent with the notion of command success/failure and avoids spewing warnings that the user might not care about
There will need to be an option to specify the level of verbosity desired (never show anything, only show failures, errors and warning, everything)
llvm-svn: 170167
|
|
|
|
|
|
| |
Fixing an issue where errors in command files sourced as arguments to command-line lldb (e.g. ./lldb -s foo.cmd) would not be shown to the user
llvm-svn: 170146
|
|
|
|
|
|
| |
<rdar://problem/10976636>
llvm-svn: 169810
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- remove unused members
- add NO_PEDANTIC to selected Makefiles
- fix return values (removed NULL as needed)
- disable warning about four-char-constants
- remove unneeded const from operator*() declaration
- add missing lambda function return types
- fix printf() with no format string
- change sizeof to use a type name instead of variable name
- fix Linux ProcessMonitor.cpp to be 32/64 bit friendly
- disable warnings emitted by swig-generated C++ code
Patch by Matt Kopec!
llvm-svn: 169645
|
|
|
|
|
|
|
|
| |
- as per http://llvm.org/docs/CodingStandards.html#don-t-use-default-labels-in-fully-covered-switches-over-enumerations
Patch by Matt Kopec!
llvm-svn: 169633
|
|
|
|
|
|
| |
Added the ability to debug through your process exec'ing itself to the same architecture.
llvm-svn: 169340
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cleaned up the option parsing code to always pass around the short options as integers. Previously we cast this down to "char" and lost some information. I recently added an assert that would detect duplicate short character options which was firing during the test suite.
This fix does the following:
- make sure all short options are treated as "int"
- make sure that short options can be non-printable values when a short option is not required or when an option group is mixed into many commands and a short option is not desired
- fix the help printing to "do the right thing" in all cases. Previously if there were duplicate short character options, it would just not emit help for the duplicates
- fix option parsing when there are duplicates to parse options correctly. Previously the option parsing, when done for an OptionGroup, would just start parsing options incorrectly by omitting table entries and it would end up setting the wrong option value
llvm-svn: 169189
|
|
|
|
|
|
|
|
|
| |
resumed with SIGCONT.
Readline & gdb have a bunch of code to handle older UNIX'es with other job control mechanisms.
I didn't try to replicate that.
llvm-svn: 169032
|
|
|
|
|
|
|
|
| |
- use macros from inttypes.h for format strings instead of OS-specific types
Patch from Matt Kopec!
llvm-svn: 168945
|
|
|
|
|
|
| |
expect eArgTypeFilename.
llvm-svn: 166542
|
|
|
|
|
|
| |
support them long-term
llvm-svn: 166060
|
|
|
|
|
|
| |
immediate output would not cause suppression of the final printout. This allows effective output redirection for Python commands
llvm-svn: 166058
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ProcessSP. We can't create Threads with a NULL ProcessSP, so it makes no sense to use the SP.
Then make the Thread a Broadcaster, and get it to broadcast when the selected frame is changed (but only from the Command Line) and when Thread::ReturnFromFrame
changes the stack.
Made the Driver use this notification to print the new thread status rather than doing it in the command.
Fixed a few places where people were setting their broadcaster class by hand rather than using the static broadcaster class call.
<rdar://problem/12383087>
llvm-svn: 165640
|
|
|
|
|
|
|
|
| |
resolve -
1 location added to breakpoint 2
llvm-svn: 164810
|
|
|
|
| |
llvm-svn: 163641
|
|
|
|
|
|
|
| |
Add an lldb command line option to specify a core file: --core/-c.
For consistency, change the "target create" command to also use --core.
llvm-svn: 161993
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
event loop.
Convert from calling Halt in the lldb Driver.cpp's input reader's sigint handler to sending this AsyncInterrupt so it can be handled in the
event loop.
If you are attaching and get an async interrupt, abort the attach attempt.
Also remember to destroy the process if get interrupted while attaching.
Getting this to work also required handing the eBroadcastBitInterrupt in a few more places in Process WaitForEvent & friends.
<rdar://problem/10792425>
llvm-svn: 160903
|
|
|
|
| |
llvm-svn: 160338
|
|
|
|
|
|
|
|
| |
as expected on Mac OS X.
<rdar://problem/11813365>
llvm-svn: 160091
|
|
|
|
|
|
|
|
| |
lldb confused by single quote in executable path
Also add a test case.
llvm-svn: 158693
|
|
|
|
|
|
| |
is empty, then treat that interrupt as an instruction to Stop the process of the currently selected target.
llvm-svn: 157790
|
|
|
|
|
|
| |
input line.
llvm-svn: 157789
|
|
|
|
| |
llvm-svn: 157616
|
|
|
|
| |
llvm-svn: 156952
|
|
|
|
|
|
| |
causing the "lldb" command line to deadlock when the quit command was executed sometimes.
llvm-svn: 156595
|
|
|
|
|
|
|
|
| |
instead of the previous content.
rdar://problem/11412821
llvm-svn: 156510
|
|
|
|
|
|
| |
currently selected target stops.
llvm-svn: 156433
|
|
|
|
|
|
|
|
| |
default "ctrl-r" and "ctrl-w" bindings
so that user-provided .editrc has a chance to override the lldb's default key bindings.
llvm-svn: 156314
|
|
|
|
|
|
|
|
| |
bind to ed-delete-prev-word.
If you have ctrl-w key binding specified with your .editrc file, it will be overridden with ed-delete-prev-word. :-)
llvm-svn: 156230
|
|
|
|
|
|
|
|
|
|
|
| |
that takes locks and potentially does allocations.
Just call SBDebugger::SetTerminalWidth on the driver's SBDebugger, which does the same job, but no locks.
Also add the value checking to SetTerminalWidth you get with SetInternalVariable(..., "term-width", ...).
rdar://problem/11310563
llvm-svn: 155665
|
|
|
|
|
|
| |
output prettier for Exception breakpoints.
llvm-svn: 152081
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added the ability to override command line commands. In some cases GUI interfaces
might want to intercept commands like "quit" or "process launch" (which might cause
the process to re-run). They can now do so by overriding/intercepting commands
by using functions added to SBCommandInterpreter using a callback function. If the
callback function returns true, the command is assumed to be handled. If false
is returned the command should be evaluated normally.
Adopted this up in the Driver.cpp for intercepting the "quit" command.
llvm-svn: 151708
|
|
|
|
|
|
|
|
|
| |
class/event bit set.
Use this to allow the lldb Driver to emit notifications for breakpoint modifications.
<rdar://problem/10619974>
llvm-svn: 150665
|
|
|
|
|
|
|
| |
Also, provide and use accessors for the thread options on breakpoints so we
can control sending the appropriate events.
llvm-svn: 150057
|
|
|
|
|
|
| |
This affected bash users.
llvm-svn: 149623
|
|
|
|
|
|
|
|
|
| |
instances to not pthread_cancel the read threads and wreak havoc on the mutex
in our ConnectionFileDescriptor class.
Also cleaned up some shutdown delays.
llvm-svn: 149355
|
|
|
|
|
|
|
|
|
|
| |
a new POSIX platform. It also contains fixes for 64bit FreeBSD.
The patch is based on changes by Mark Peek <mp@FreeBSD.org> and
"K. Macy" <kmacy@freebsd.org> in their github repo located at
https://github.com/fbsd/lldb.
llvm-svn: 147609
|
|
|
|
|
|
|
|
| |
will allow us to represent a process/thread ID using a pointer for the OS
plug-ins where they might want to represent the process or thread ID using
the address of the process or thread structure.
llvm-svn: 145644
|
|
|
|
|
|
|
|
| |
be in the target. All of the environment, args, stdin/out/err files, etc have
all been moved. Also re-enabled the ability to launch a process in a separate
terminal on MacOSX.
llvm-svn: 144061
|
|
|
|
| |
llvm-svn: 143381
|
|
|
|
|
|
| |
detach when the debugger is destroyed, rather than killing the process. Also added a Debugger::Clear, which gets called in Debugger::Destroy to deal with all the targets in the Debugger. Also made the Driver's main loop call Destroy on the debugger, rather than just Destroying the currently selected Target's process.
llvm-svn: 139852
|
|
|
|
|
|
| |
allow attaching from the command line.
llvm-svn: 139665
|
|
|
|
|
|
|
|
| |
Target. Also, move the SourceManager file cache into the debugger
so it can be shared amongst the targets.
llvm-svn: 139564
|
|
|
|
| |
llvm-svn: 137789
|
|
|
|
| |
llvm-svn: 137784
|
|
|
|
|
|
| |
in the init files or not.
llvm-svn: 137541
|
|
|
|
|
|
|
|
|
| |
If the IOChannel has already freed out its m_driver member, and
there's still a character to be read/written (that is, the ^D
character), just skip that char instead of trying to write through
a null object pointer.
llvm-svn: 137421
|