[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gdb] setting breakpoint at h8 target
From: |
Erik Källberg |
Subject: |
[Gdb] setting breakpoint at h8 target |
Date: |
Thu, 12 Jul 2001 11:24:40 +0000 |
Hi!
I'm implementing a h8300-stub for remote debugging.
The target processor is a h8/3334 that does not have
trap instructions and therefore I use an interupt (int 2)
to handle breakpoints. I.e. the breakpoint instruction
is "jsr @@0x0c" which ends up in my breakpoint handler
function. This now works with hardcoded breakpoint (call
to my breakpoint() function).
Next thing I want to do is to insert breakpoints from
gdb at runtime. And this is where my question comes up.
How do I do this? Do I need to change
the BREAKPOINT or REMOTE_BREAKPOINT definition in
.../gdb/config/h8300/tm-h8300.h to "jsr @@0x0c" and
rebuild gdb? Or?
And is there a way to see what gdb does when I issue
gdb> break function_call
i.e. to see what instruction gdb inserts.
It looks like BREAKPOINT is defined to "sleep" and
REMOTE_BREAKPOINT to "trapa #3".
/Erik
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gdb] setting breakpoint at h8 target,
Erik Källberg <=