gdb.ideas 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Date: Wed, 24 Sep 86 16:33:11 EDT
  2. From: mly (Richard Mlynarik)
  3. To: rms
  4. Cc: mly-prep
  5. Subject: gdb gripes/suggestions/requests
  6. If would be really nice to have some way to do conditionals in user
  7. commands -- though this is really stretching the functionality of
  8. gdb a little too much, perhaps. (see ~mly/e/.gdbint for some of
  9. the contortions I go through with || to get conditional
  10. evaluation...)
  11. The names of all the breakpoint-hacking functions are very
  12. confusing. Perhaps they should all be subcommands of the "break"
  13. command. (For example, it isn't obvious at all that "commands"
  14. has anthing to do with breakpoints) "br" could be defined as a
  15. synonym for "breakpoint set" or "set breakpoint" or whatever.
  16. A -real- win wuold be some way to execute until he next function-call
  17. (like c-d in the cadr debugger) This would even be useful if it
  18. were rather slow -- it would probably be faster than setting
  19. temporary breakpoints in all the functions which might be called,
  20. and would certainly be faster than "step"ping one's way until a
  21. funcall happened.
  22. "info source" should mention what the directory search-path is (ie
  23. what "info dir" says) and in which directory it found each of the
  24. source files (and which source files it cannot locate in the
  25. search-path)
  26. From: mly@MICHAEL.AI.MIT.EDU (Richard Mlynarik)
  27. To: rms@prep.ai.mit.edu
  28. Subject: gdb suggestions (from hpux cdb)
  29. Reply-To: mly-prep@prep.ai.mit.edu
  30. "find-bug" command says "I can see the problem, but it will do you
  31. good to find it yourself"
  32. The gdb manual should explicitly state that gdb has no control over
  33. forked (or execed or whatever) subprocesses.
  34. I'd still like it if "delete" said what it had done.
  35. Date: Tuesday, 13 May 1986, 00:40-EDT
  36. From: <rms@LMI-ANGEL>
  37. Sender: JC@LMI-ANGEL
  38. Subject: interesting sdb features
  39. To: rms@angel
  40. output format p = pointer to procedure.
  41. foo/x or foo/4x uses size of foo as size to print.
  42. foo[1;4] to get elements 1 thru 4.
  43. Continue to specified line number.
  44. Interactively delete all breakpoints (asking about each one).
  45. Command to write backtrace into a file, or even better to duplicate all
  46. output to a file. This could work by playing with descriptor 1,
  47. making it a pipe to `tee'. The original descriptor 1 is saved and
  48. this mode can be turned off by putting it back.
  49. Date: Wed, 18 Feb 87 15:37:14 EST
  50. From: rms (Richard M. Stallman)
  51. Message-Id: <8702182037.AA16492@prep.ai.mit.edu>
  52. To: mly-prep@prep.ai.mit.edu
  53. In-Reply-To: <8702181913.AA16118@prep.ai.mit.edu>
  54. Subject: gdb "photo" command
  55. I don't think all this is worth the trouble to do now,
  56. because the right way to do it on TRIX is totally different
  57. and much easier.
  58. Commands to enable and disable the autodisplays. Associate
  59. autodisplays with breakpoints perhaps, so they only display
  60. at those breakpoints; this is easier than using breakpoint commands.
  61. Remember how each breakpoint's position was specified.
  62. Have command to reread symbol table and respecify each
  63. breakpoint using same args (line number or function name) as before.
  64. Have way to proceed process in background so that can then suspend
  65. gdb but have subprocess continue