SHOW:
|
|
- or go back to the newest paste.
1 | $ ./dbg ./dbg | |
2 | New session s1 (./dbg) started | |
3 | New process p1 (program dbg) created | |
4 | p1.1 SUSPENDED [D main in dbg.d] | |
5 | 78: main(string[] args) | |
6 | dbg> list 175 | |
7 | Source listing for thread p1.1, program dbg | |
8 | 175: if (srcpath !is null) | |
9 | 176: dv_dbgSrcpath(srcpath); | |
10 | 177: if (sympath !is null) | |
11 | 178: dv_dbgSympath(sympath); | |
12 | 179: auto cmd = new Command(uiType); | |
13 | 180: cmd.rc_exec(GLOBAL_DBGRC_FILE); | |
14 | 181: if (dbgrc is null) | |
15 | 182: { | |
16 | 183: dbgrc = homedir ~ "/" ~ DBGRC_FILE; | |
17 | 184: cmd.rc_exec(dbgrc); // home dir dbgrc | |
18 | dbg> run -u 179 | |
19 | p1.1 SUSPENDED [D main in dbg.d] | |
20 | 179: auto cmd = new Command(uiType); | |
21 | dbg> step -o | |
22 | p1.1 STEPPED [D main in dbg.d] | |
23 | 180: cmd.rc_exec(GLOBAL_DBGRC_FILE); | |
24 | dbg> help | |
25 | Run help on the following topics to get additional help. | |
26 | Start & Stop: | |
27 | create, grab, quit, release, %follow, %srcpath, %sympath | |
28 | Execution: | |
29 | halt, jump, kill, run, step, wait, %thread | |
30 | Events: | |
31 | events, onstop, signal, stop, syscall, %lastevent, %thisevent | |
32 | View or Modify: | |
33 | dump, list, maps, print, regs, set, stack, status, symbols, | |
34 | vars, which | |
35 | %dbg_lang, %file, %frame, %func, %lang, %line, %list_file, %list_line, | |
36 | %loc, %num_lines | |
37 | Convenience: | |
38 | !, alias, help, logoff, logon, script, %cwd, %logfile, %log_prefix, | |
39 | %prompt, %result, %verbose | |
40 | ||
41 | For a full list of help topics, run "help toc". | |
42 | dbg> help create | |
43 | SYNOPSIS: | |
44 | - | create [-f <follow>] [-l] [-s <srcpath>] [-S <sympath>] |
44 | + | create [-f <follow>] [-l] [-s <srcpath>] [-S <sympath>] [<shell_cmd_string>] |
45 | - | [<shell_cmd_string>] |
45 | + | |
46 | Create a new debugging session for <shell_cmd_string>. The existing debug | |
47 | sessions are not affected by this command. One could simultaneously | |
48 | have multiple debug sessions. If <shell_cmd_string> is not specified, the | |
49 | <shell_cmd_string> from previous create command is used and the previous | |
50 | create session is destroyed. After the session is created, this command | |
51 | runs all the processes till their 'start' function. | |
52 | OPTIONS: | |
53 | -f follow 'prog', 'proc', 'thread' or 'all' or 'none' | |
54 | -l load only; do not run new program / thread till its 'start' function | |
55 | -s paths for source files | |
56 | -S paths for debug symbol files | |
57 | NOTES: | |
58 | It is not possible to redirect or pipe the output of create command. | |
59 | EXAMPLES: | |
60 | create test_prog1 arg1 arg2 2>/tmp/prog1.err | test_prog2 | |
61 | # creates a new debug session for test_prog1 and test_prog2 | |
62 | - | # creates a new debug session for test_prog1 and |
62 | + | |
63 | - | test_prog2 |
63 | + | |
64 | SEE ALSO: | |
65 | events, quit, kill, release, run, shell_cmd_string, status, | |
66 | step | |
67 | %dbg_follow, %dbg_srcpath, %dbg_sympath, %follow, %srcpath, %sympath | |
68 | dbg> |