I used some way to cause a DebugBreak() (programmatically causeng a
break command in gdb) some 10 years ago. Now I can't find it. Perhaps
one could raise int3? But I can't find how to either. Regards,
Petter
On 2023-04-25 14:18, Petter wrote:
I used some way to cause a DebugBreak() (programmatically causeng aWhat do you mean by "causing a break command in gdb"? Do you intend to
break command in gdb) some 10 years ago. Now I can't find it. Perhaps
one could raise int3? But I can't find how to either. Regards,
Petter
run the program under gdb, and want to be able to insert something --
perhaps a call DebugBreak -- in the Ada source to always cause a break
into gdb control at the point of that call, without having to set gdb breakpoints at every call?
It is not a fully automatic method, but you could write a null Ada
procedure DebugBreak and set a breakpoint in that procedure, manually
from gdb, before starting the program. Then every call to DebugBreak
will break, and you can look one level down in the call chain to see the state at the point of call.
It is not a fully automatic method, but you could write a null Ada
procedure DebugBreak and set a breakpoint in that procedure, manually
from gdb, before starting the program. Then every call to DebugBreak
will break, and you can look one level down in the call chain to see
the state at the point of call.
I used some way to cause a DebugBreak() (programmatically causeng a
break command in gdb) some 10 years ago. Now I can't find it. Perhaps
one could raise int3? But I can't find how to either.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 44:39:53 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,858,055 |