This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
binutils sim breakpoint support
- From: William Tambe <tambewilliam at gmail dot com>
- To: binutils at sourceware dot org, gdb at sourceware dot org
- Date: Sun, 11 Aug 2019 18:09:30 -0500
- Subject: binutils sim breakpoint support
What must be implemented within binutils sim such that when GDB use it
as a target, it can recognize a breakpoint.
In fact, within the simulator function sim_engine_run(), when the
breakpoint instruction is decoded, I am using the following to report
SIM_SIGTRAP
sim_engine_halt (sd, scpu, NULL, pc, sim_stopped, SIM_SIGTRAP);
However GDB fail printing the following in its console:
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000000 in ?? ()
Is the above use of sim_engine_halt() the proper way to report a
breakpoint so that GDB can handle breakpoints ?