2002-05-24 Michal Ludvig <mludvig@suse.cz>
authorMichal Ludvig <mludvig@suse.cz>
Mon, 27 May 2002 13:37:39 +0000 (13:37 +0000)
committerMichal Ludvig <mludvig@suse.cz>
Mon, 27 May 2002 13:37:39 +0000 (13:37 +0000)
* x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
Let PC point right after the prologue before looking up symbols.

gdb/ChangeLog
gdb/x86-64-tdep.c

index 351de5e..f4b5844 100644 (file)
@@ -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 
        * 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.
        (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.
        * 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
 
        * 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:
        * 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) 
index 94f57a5..a3f8bee 100644 (file)
@@ -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);