mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 13:09:48 +00:00
* mn10200-tdep.c (mn10200_analyze_prologue): Fix calculation
of jsr target address.
This commit is contained in:
parent
d8332b2c48
commit
9d4cd1e849
@ -1,3 +1,8 @@
|
||||
Wed Jun 24 23:17:12 1998 Mark Alexander <marka@cygnus.com>
|
||||
|
||||
* mn10200-tdep.c (mn10200_analyze_prologue): Fix calculation
|
||||
of jsr target address.
|
||||
|
||||
Tue Jun 23 19:37:46 1998 Mark Alexander <marka@cygnus.com>
|
||||
|
||||
* config/mn10200/tm-mn10200.h (SAVED_PC_AFTER_CALL): Don't
|
||||
|
@ -328,7 +328,7 @@ mn10200_analyze_prologue (fi, pc)
|
||||
}
|
||||
|
||||
/* Get the PC this instruction will branch to. */
|
||||
temp = (extract_signed_integer (buf, 2) + addr) & 0xffffff;
|
||||
temp = (extract_signed_integer (buf, 2) + addr + 3) & 0xffffff;
|
||||
|
||||
/* Get the name of the function at the target address. */
|
||||
status = find_pc_partial_function (temp, &name, NULL, NULL);
|
||||
@ -369,7 +369,7 @@ mn10200_analyze_prologue (fi, pc)
|
||||
}
|
||||
|
||||
/* Get the PC this instruction will branch to. */
|
||||
temp = (extract_signed_integer (buf, 3) + addr) & 0xffffff;
|
||||
temp = (extract_signed_integer (buf, 3) + addr + 5) & 0xffffff;
|
||||
|
||||
/* Get the name of the function at the target address. */
|
||||
status = find_pc_partial_function (temp, &name, NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user