diff options
author | Pedro Alves <palves@redhat.com> | 2012-11-21 14:09:10 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-11-21 14:09:10 +0000 |
commit | e0f33b1fbf3b88882abd0d4136b8d1307e351c9d (patch) | |
tree | d0254d794441c6785eb6436b5e6b36ce351c3672 /gdb | |
parent | 2ddda9905b452cc2527984351db20bcaa4e694cc (diff) | |
download | gdb-e0f33b1fbf3b88882abd0d4136b8d1307e351c9d.zip gdb-e0f33b1fbf3b88882abd0d4136b8d1307e351c9d.tar.gz gdb-e0f33b1fbf3b88882abd0d4136b8d1307e351c9d.tar.bz2 |
Revert previous change to i386-tdep.c.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/i386-tdep.c | 24 |
2 files changed, 1 insertions, 29 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 138e0df..7f0d3e2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,9 +1,3 @@ -2012-11-21 Karthik Bhat <kv.bhat@samsung.com> - - * i386-tdep.c (i386_skip_prologue): See if we - can determine the end of the prologue via the symbol table. - If so use the same instead of going through prologue instructions. - 2012-11-21 Yao Qi <yao@codesourcery.com> PR tdep/7438 diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 5e12cb5..f0056be 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; |