gdb-gdb.gdb.in 776 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. echo Setting up the environment for debugging gdb.\n
  2. if !$gdb_init_done
  3. set variable $gdb_init_done = 1
  4. set complaints 1
  5. b internal_error
  6. # This provides an easy way to break into the top-level GDB by
  7. # typing "info".
  8. b info_command
  9. commands
  10. silent
  11. # This avoids the voluminous output of "info".
  12. return
  13. end
  14. dir @srcdir@/../libiberty
  15. dir @srcdir@/../bfd
  16. dir @srcdir@
  17. dir .
  18. # Commands below are not fully compatible with wrapping into an 'if' block.
  19. end
  20. set prompt (top-gdb)
  21. define pdie
  22. if $argc == 1
  23. call dump_die ($arg0, 1)
  24. else
  25. if $argc == 2
  26. call dump_die ($arg0, $arg1)
  27. else
  28. printf "Syntax: pdie die [depth]\n"
  29. end
  30. end
  31. end
  32. document pdie
  33. Pretty print a DWARF DIE.
  34. Syntax: pdie die [depth]
  35. end