mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
Mark Kettenis <kettenis@gnu.org>
* i386-tdep.c (i386_skip_prologue): follow the last jump only if the function begins with a branch instruction.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2004-04-19 Jerome Guitton <guitton@gnat.com>
|
||||
Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* i386-tdep.c (i386_skip_prologue): follow the last jump only if
|
||||
the function begins with a branch instruction.
|
||||
|
||||
2004-04-29 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* i386-tdep.c: Fix spelling mistakes.
|
||||
|
||||
@@ -750,7 +750,13 @@ i386_skip_prologue (CORE_ADDR start_pc)
|
||||
}
|
||||
}
|
||||
|
||||
return i386_follow_jump (pc);
|
||||
/* If the function starts with a branch (to startup code at the end)
|
||||
the last instruction should bring us back to the first
|
||||
instruction of the real code. */
|
||||
if (i386_follow_jump (start_pc) != start_pc)
|
||||
pc = i386_follow_jump (pc);
|
||||
|
||||
return pc;
|
||||
}
|
||||
|
||||
/* This function is 64-bit safe. */
|
||||
|
||||
Reference in New Issue
Block a user