aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-03-13 17:34:23 +0000
committerDaniel Jacobowitz <drow@false.org>2007-03-13 17:34:23 +0000
commit4e463ff5459d8c72eb1c5c1a7859e8556dbd69e2 (patch)
tree53db7049f2fd0de140d1c84c26136fbde1e65141 /gdb/symtab.c
parent35d9dd2fb8ba23282114af75003ff0c2bee9661a (diff)
downloadgdb-4e463ff5459d8c72eb1c5c1a7859e8556dbd69e2.zip
gdb-4e463ff5459d8c72eb1c5c1a7859e8556dbd69e2.tar.gz
gdb-4e463ff5459d8c72eb1c5c1a7859e8556dbd69e2.tar.bz2
* rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
(rs6000_in_function_epilogue_p): Use extract_unsigned_integer. (refine_prologue_limit): Delete. (skip_prologue): Don't call it. Use extract_unsigned_integer. Assume lim_pc is set. Correct check for incomplete prologues. Do not skip clobbers of the frame pointer. * symtab.c (skip_prologue_using_sal): Fail if there is only one sal. * gdb.arch/powerpc-prologue.c (optimized_1_marker, gdb2029_marker) (optimized_1): New. (main): Call optimized_1. (gdb2029): Correct typos. Call gdb2029_marker. * gdb.arch/powerpc-prologue.exp: Run new test. Use a breakpoint for gdb2029.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index f12834d..c427c98 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -4092,7 +4092,7 @@ skip_prologue_using_sal (CORE_ADDR func_addr)
then it is probably a single line function, like
"foo(){}". */
if (prologue_sal.end == end_pc)
- return start_pc;
+ return 0;
while (prologue_sal.end < end_pc)
{
struct symtab_and_line sal;