diff options
| author | uwe <uwe@NetBSD.org> | 2003-10-31 00:11:27 +0000 |
|---|---|---|
| committer | uwe <uwe@NetBSD.org> | 2003-10-31 00:11:27 +0000 |
| commit | 1d729d7bc4a4fb3deef08edfd314e90b180bedba (patch) | |
| tree | 52944e8a8aa5de5042d81df0d4549f0dcc0a38dd /gnu/usr.bin | |
| parent | 9356ead951e342744bd62ac1cfc37a4260fb8b78 (diff) | |
First cut at implementing software single stepping for sh3. We need
it because sh3 ports don't provide PT_STEP. It is finally possible to
run programs under gdb now, though there are still issues to be
resolved. It was deemed useful enough to commit early, while the work
is still in progress. Tested on hpcsh.
Blessed by christos@.
Diffstat (limited to 'gnu/usr.bin')
| -rw-r--r-- | gnu/usr.bin/gdb53/arch/sh3eb/tm.h | 5 | ||||
| -rw-r--r-- | gnu/usr.bin/gdb53/arch/sh3el/tm.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb53/arch/sh3eb/tm.h b/gnu/usr.bin/gdb53/arch/sh3eb/tm.h index 37dfe3452e2..4b0d7a79f8c 100644 --- a/gnu/usr.bin/gdb53/arch/sh3eb/tm.h +++ b/gnu/usr.bin/gdb53/arch/sh3eb/tm.h @@ -25,4 +25,9 @@ #include "sh/tm-sh.h" #include "solib.h" +#define SOFTWARE_SINGLE_STEP_P() 1 + +extern void shnbsd_software_single_step (enum target_signal, int); +#define SOFTWARE_SINGLE_STEP(sig,bp_p) shnbsd_software_single_step (sig,bp_p) + #endif /* TM_NBSD_H */ diff --git a/gnu/usr.bin/gdb53/arch/sh3el/tm.h b/gnu/usr.bin/gdb53/arch/sh3el/tm.h index 37dfe3452e2..4b0d7a79f8c 100644 --- a/gnu/usr.bin/gdb53/arch/sh3el/tm.h +++ b/gnu/usr.bin/gdb53/arch/sh3el/tm.h @@ -25,4 +25,9 @@ #include "sh/tm-sh.h" #include "solib.h" +#define SOFTWARE_SINGLE_STEP_P() 1 + +extern void shnbsd_software_single_step (enum target_signal, int); +#define SOFTWARE_SINGLE_STEP(sig,bp_p) shnbsd_software_single_step (sig,bp_p) + #endif /* TM_NBSD_H */ |
