Advertisement
Guest User

Untitled

a guest
Jan 27th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  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>]
  45. [<shell_cmd_string>]
  46. DESCRIPTION:
  47. Create a new debugging session for <shell_cmd_string>. The existing debug
  48. sessions are not affected by this command. One could simultaneously
  49. have multiple debug sessions. If <shell_cmd_string> is not specified, the
  50. <shell_cmd_string> from previous create command is used and the previous
  51. create session is destroyed. After the session is created, this command
  52. runs all the processes till their 'start' function.
  53. OPTIONS:
  54. -f follow 'prog', 'proc', 'thread' or 'all' or 'none'
  55. -l load only; do not run new program / thread till its 'start' function
  56. -s paths for source files
  57. -S paths for debug symbol files
  58. NOTES:
  59. It is not possible to redirect or pipe the output of create command.
  60. EXAMPLES:
  61. create test_prog1 arg1 arg2 2>/tmp/prog1.err | test_prog2
  62. # creates a new debug session for test_prog1 and
  63. test_prog2
  64. create MANPAGER=more man 1p man
  65. create xterm -e ./cmd
  66. SEE ALSO:
  67. events, quit, kill, release, run, shell_cmd_string, status,
  68. step
  69. %dbg_follow, %dbg_srcpath, %dbg_sympath, %follow, %srcpath, %sympath
  70. dbg>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement