diff options
-rw-r--r-- | gdb/ChangeLog | 11 | ||||
-rw-r--r-- | gdb/x86-64-tdep.c | 23 |
2 files changed, 12 insertions, 22 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 351de5e..f4b5844 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-05-24 Michal Ludvig <mludvig@suse.cz> + + * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note. + Let PC point right after the prologue before looking up symbols. + 2002-05-27 Martin M. Hunt <hunt@redhat.com> * i386-tdep.c (i386_register_virtual_type): Return @@ -107,7 +112,6 @@ * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove. (REGISTER_NAME): Define as ns32k_register_name_32082. ->>>>>>> 1.2703 2002-05-24 Jim Blandy <jimb@redhat.com> * dwarf2read.c (free_line_header): Use xfree, not free. @@ -162,7 +166,6 @@ (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc if possible (so that PC_IN_CALL_DUMMY will work). ->>>>>>> 1.2696 2002-05-22 Corinna Vinschen <vinschen@redhat.com> * MAINTAINERS: Remove status `OBSOLETE' from v850. @@ -262,7 +265,6 @@ * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h. * config/sparc/tm-nbsdaout.h: New file. ->>>>>>> 1.2687 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com> * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and @@ -348,13 +350,11 @@ * h8300-tdep.c: Fix formatting. ->>>>>>> 1.2680 2002-05-20 Elena Zannoni <ezannoni@redhat.com> * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for printing vector registers. ->>>>>>> 1.2675 2002-05-19 Andrew Cagney <ac131313@redhat.com> From Fernando Nasser: @@ -395,7 +395,6 @@ * h8300-tdep.c: Add support of EXR register * config/h8300/tm-h8300.h: Ditto. ->>>>>>> 1.2674 2002-05-17 Andrey Volkov <avolkov@transas.com> * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index 94f57a5..a3f8bee 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -859,23 +859,14 @@ x86_64_skip_prologue (CORE_ADDR pc) read_memory (pc, (char *) prolog_buf, PROLOG_BUFSIZE); - /* First check, whether pc points to pushq %rbp. If not, - * print a recommendation to enable frame pointer. */ - if (prolog_expect[0] != prolog_buf[0]) - { - if (!omit_fp_note_printed) - { - printf_filtered - ("NOTE: This function doesn't seem to have a valid prologue.\n" - " Consider adding -fno-omit-frame-pointer to your gcc's CFLAGS.\n"); - omit_fp_note_printed++; - } - return pc; - } - /* Valid prolog continues with movq %rsp,%rbp. */ - for (i = 1; i < PROLOG_BUFSIZE; i++) + /* First check, whether pc points to pushq %rbp, movq %rsp,%rbp. */ + for (i = 0; i < PROLOG_BUFSIZE; i++) if (prolog_expect[i] != prolog_buf[i]) - return pc + 1; /* First instruction after pushq %rbp. */ + return pc; /* ... no, it doesn't. Nothing to skip. */ + + /* OK, we have found the prologue and want PC of the first + non-prologue instruction. */ + pc += PROLOG_BUFSIZE; v_function = find_pc_function (pc); v_sal = find_pc_line (pc, 0); |