summaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-11-21 14:09:03 +0000
committerPedro Alves <palves@redhat.com>2012-11-21 14:09:03 +0000
commitd596472a8a67eb524dd74b0b98cadf4635126d63 (patch)
tree6177c60f40e409db94e55278767a8acbfd00655b /gdb/i386-tdep.c
parentfc92af254c2e32d506a4a1c9419c9399df1ed68f (diff)
downloadgdb-d596472a8a67eb524dd74b0b98cadf4635126d63.tar.gz
Revert previous change to i386-tdep.c.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 5e12cb53b17..f0056bea56f 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -1582,30 +1582,8 @@ i386_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc)
CORE_ADDR pc;
gdb_byte op;
int i;
- cache.locals = -1;
- CORE_ADDR func_addr;
- struct symtab *s = find_pc_symtab (func_addr);
-
- if (find_pc_partial_function (start_pc, NULL, &func_addr, NULL))
- {
- CORE_ADDR post_prologue_pc
- = skip_prologue_using_sal (gdbarch, func_addr);
-
- /* GCC always emits a line note before the prologue and another
- one after, even if the two are at the same address or on the
- same line. Take advantage of this so that we do not need to
- know every instruction that might appear in the prologue. We
- will have producer information for most binaries; if it is
- missing (e.g. for -gstabs), assuming the GNU tools. */
- if (post_prologue_pc
- && (s == NULL
- || s->producer == NULL
- || strncmp (s->producer, "GNU ", sizeof ("GNU ") - 1) == 0
- || strncmp (s->producer, "clang ", sizeof ("clang ") - 1) == 0))
- return max (start_pc, post_prologue_pc);
- }
-
+ cache.locals = -1;
pc = i386_analyze_prologue (gdbarch, start_pc, 0xffffffff, &cache);
if (cache.locals < 0)
return start_pc;