-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bad bug parsing Seer command line arguments. (SORRY!)
- Loading branch information
Showing
4 changed files
with
66 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,51 @@ | ||
|
||
Usage: seergdb [LAUNCHOPTIONS] [MISCOPTIONS] executable [arguments ...] | ||
|
||
Seer - A gui frontend for gdb. | ||
|
||
-h, --help Displays help on commandline options. | ||
-v, --version Displays version information. | ||
-h, --help Displays help on commandline options. | ||
-v, --version Displays version information. | ||
|
||
|
||
Launch Options (pick one): | ||
|
||
-r, --run Load the executable and run it. | ||
-r, --run <executable> <arguments> Load the executable and run it. | ||
|
||
-s, --start <executable> <arguments> Load the executable, break in "main", and run it. | ||
|
||
-s, --start Load the executable, break in "main", and run it. | ||
--attach <pid> <executable> Attach to a locally running process. | ||
|
||
--attach <pid> Attach to a locally running process. | ||
--connect <medium> [--sym <symbolfile>] Connect to an already running gdbserver (local or remote). | ||
Possible connection mediums are: | ||
|
||
--connect <medium> Connect to an already running gdbserver (local or remote). | ||
Possible connection mediums are: | ||
host:port | ||
/dev/<serialdev> | ||
|
||
host:port | ||
/dev/<serialdev> | ||
'sym' is optional if the debugging info is in a separate file. | ||
|
||
--rr <host:port> Connect to an already running 'rr replay -s <port> -k' session. | ||
--rr <host:port> Connect to an already running 'rr replay -s <port> -k' session. | ||
|
||
--core <corefile> Load a corefile. | ||
--core <corefile> <executable> Load a corefile. | ||
|
||
--project <project> Launch using a Seer project. | ||
--project <project> Launch using a Seer project. | ||
|
||
--config Launch with Seer's config dialog. | ||
Save settings with: 'Settings->Save Configuration' | ||
--config Launch with Seer's config dialog. | ||
Save settings with: 'Settings->Save Configuration' | ||
|
||
Misc Options: | ||
|
||
--sym, --symbol-file <symbolfilename> Load symbols from a separate file than the executable. | ||
--bl, --break-load <filename> Load a previously saved breakpoints file. For --run or --start | ||
--bf, --break-function <function> Set a breakpoint in a function/address. For --run or --start | ||
--sat, --show-assembly-tab <yes|no> Show the Assembly Tab on Seer startup. For --run or --start | ||
--sar, --start-address-randomize <yes|no> Randomize the program's starting address. For --run or --start | ||
--nsm, --non-stop-mode <yes|no> Continue to run other threads at breakpoints. For --run or --start | ||
--xxx Turn on internal Seer debugging messages. | ||
--sym, --symbol-file <symbolfilename> Load symbols from a separate file than the executable. | ||
--bl, --break-load <filename> Load a previously saved breakpoints file. For 'run' or 'start'. | ||
--bf, --break-function <function> Set a breakpoint in a function/address. For 'run' or 'start'. | ||
--sat, --show-assembly-tab <yes|no> Show the Assembly Tab on Seer startup. For 'run' or 'start'. | ||
--sar, --start-address-randomize <yes|no> Randomize the program's starting address. For 'run' or 'start'. | ||
--nsm, --non-stop-mode <yes|no> Continue to run other threads at breakpoints. For 'run' or 'start'. | ||
--xxx Turn on internal Seer debugging messages. | ||
|
||
|
||
Arguments: | ||
|
||
executable The executable to debug. Needed for all run modes. | ||
arguments Arguments for the executable. | ||
Needed for --run and --start. | ||
executable The executable to debug. Needed for 'run', 'start', 'attach', and | ||
'core' run modes. | ||
arguments Arguments for the executable. Needed for 'run' and 'start'. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
https://github.com/epasveer/seer/wiki/Valgrind-and-Seer. | ||
|
||
In one terminal, run: | ||
|
||
$ valgrind -q --vgdb-error=0 ./hellovalgrind | ||
==12596== (action at startup) vgdb me ... | ||
==12596== | ||
==12596== TO DEBUG THIS PROCESS USING GDB: start GDB like this | ||
==12596== /path/to/gdb ./hellovalgrind | ||
==12596== and then give GDB the following command | ||
==12596== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=12596 | ||
==12596== --pid is optional if only one valgrind process is running | ||
==12596== | ||
|
||
In another terminal, start Seer. | ||
|
||
$ seergdb --connect '| vgdb' --sym hellovalgrind | ||
|
||
|