diff options
Diffstat (limited to 'gdb/arc-tdep.c')
-rw-r--r-- | gdb/arc-tdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index 10a1bc1..ffa538f 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -571,7 +571,9 @@ arc_software_single_step (enum target_signal ignore, /* sig but we don't need it } } -#ifdef GET_LONGJMP_TARGET +/* Because of Multi-arch, GET_LONGJMP_TARGET is always defined. So test + for a definition of JB_PC. */ +#ifdef JB_PC /* Figure out where the longjmp will land. Slurp the args out of the stack. We expect the first arg to be a pointer to the jmp_buf structure from which we extract the pc (JB_PC) that we will land at. The pc is copied into PC. |