Re: Missing gdb functions? Ort not?
Michael Eager <[email protected]> Fri, 23 Mar 2018 10:04:00 -0700
| Newsgroups | gmane.comp.debugging.ddd.general |
|---|---|
| Message-ID | <[email protected]> |
On 03/23/18 03:20, Alan Paterson wrote: > Hello. > > I discovered ddd 2 days ago and am very happy to have done so. It is a > big jump up from using gdb in command-line mode. > > I just have a few questions (almost trivial) and I have not found any > answers to them in the manual: > > Note. My programming language is Ada > > 1. There is no (apparent) way to have gdb issued with a “start” > command. Useful, since just “run” will go too far. Can be entered in > the console window of course. Am I missing something? What kind of "start" command are you talking about? If you put commands in ~/.gdbinit, they will be executed as soon as gdb starts. > 2. There appears to be no ddd way to issue a “catch exceptions” > command. Although, if I do this in the console, it does appear in > the list of breakpoints. I seldom debug C++ programs, so I don't recall looking for this. It is possible to create new buttons in DDD with user-defined commands. > 3. For some of the breakpoints, the “Delete” icon is insensitive. It is > always the case for the breakpoint on exceptions, but sometimes on > others as well. This may be a defect or restriction in DDD. > 4. If a breakpoint is set which breaks on many instances, these are all > nicely listed. However, the attempt to delete any of the “sub”-items > deletes them all. Is this deliberate? Is it perhaps a gdb restriction? You can tell whether some unexpected behavior is in DDD or GDB by entering the equivalent command in the command window. I'd have to create a test case to be sure, but I believe that GDB only records the source location for a breakpoint, not each PC which is affected. > > My humble apologies if these things are indeed documented somewhere. > > Alan Paterson > Paranor AG > CH-3046 Wahlendorf -- Michael Eager [email protected] 1960 Park Blvd., Palo Alto, CA 94306