OSDN Git Service

2003-11-22 Andrew Cagney <cagney@redhat.com>
authorcagney <cagney>
Sat, 22 Nov 2003 16:01:03 +0000 (16:01 +0000)
committercagney <cagney>
Sat, 22 Nov 2003 16:01:03 +0000 (16:01 +0000)
* config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
#if 0'ed macro.
* infrun.c (step_into_function): Delete #ifdef
PROLOGUE_FIRSTLINE_OVERLAP code.
* symtab.c (find_function_start_sal): Ditto.

gdb/ChangeLog
gdb/config/powerpc/tm-linux.h
gdb/infrun.c
gdb/symtab.c

index 768756c..21a7720 100644 (file)
@@ -1,5 +1,11 @@
 2003-11-22  Andrew Cagney  <cagney@redhat.com>
 
+       * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
+       #if 0'ed macro.
+       * infrun.c (step_into_function): Delete #ifdef
+       PROLOGUE_FIRSTLINE_OVERLAP code.
+       * symtab.c (find_function_start_sal): Ditto.
+
        * remote-rdp.c: Update copyright.
        (rdp_init): #if 0 references to "target_byte_order".
 
index 25b9904..364e1f9 100644 (file)
@@ -43,13 +43,6 @@ extern int ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name);
 #define CANNOT_STORE_REGISTER(regno) ((regno) >= MQ_REGNUM)
 #endif
 
-#if 0 /* If skip_prologue() isn't too greedy, we don't need this */
-/* There is some problem with the debugging symbols generated by the
-   compiler such that the debugging symbol for the first line of a
-   function overlap with the function prologue.  */
-#define PROLOGUE_FIRSTLINE_OVERLAP
-#endif
-
 /* N_FUN symbols in shared libaries have 0 for their values and need
    to be relocated. */
 #define SOFUN_ADDRESS_MAYBE_MISSING
index 82cbb83..76ba71e 100644 (file)
@@ -2727,15 +2727,10 @@ step_into_function (struct execution_control_state *ecs)
   /* If the prologue ends in the middle of a source line, continue to
      the end of that source line (if it is still within the function).
      Otherwise, just go to end of prologue.  */
-#ifdef PROLOGUE_FIRSTLINE_OVERLAP
-  /* no, don't either.  It skips any code that's legitimately on the
-     first line.  */
-#else
   if (ecs->sal.end
       && ecs->sal.pc != ecs->stop_func_start
       && ecs->sal.end < ecs->stop_func_end)
     ecs->stop_func_start = ecs->sal.end;
-#endif
 
   if (ecs->stop_func_start == stop_pc)
     {
index 76e436c..6e35e84 100644 (file)
@@ -2314,10 +2314,6 @@ find_function_start_sal (struct symbol *sym, int funfirstline)
     }
   sal = find_pc_sect_line (pc, SYMBOL_BFD_SECTION (sym), 0);
 
-#ifdef PROLOGUE_FIRSTLINE_OVERLAP
-  /* Convex: no need to suppress code on first line, if any */
-  sal.pc = pc;
-#else
   /* Check if SKIP_PROLOGUE left us in mid-line, and the next
      line is still part of the same function.  */
   if (sal.pc != pc
@@ -2330,7 +2326,6 @@ find_function_start_sal (struct symbol *sym, int funfirstline)
       sal = find_pc_sect_line (pc, SYMBOL_BFD_SECTION (sym), 0);
     }
   sal.pc = pc;
-#endif
 
   return sal;
 }