From aa01540273a015f55bc87afb6cd067d373232e04 Mon Sep 17 00:00:00 2001 From: aoliva Date: Tue, 11 Jul 2006 15:36:44 +0000 Subject: [PATCH] Fix ppc build. --- gdb-6.3-ppc64syscall-20040622.patch | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb-6.3-ppc64syscall-20040622.patch b/gdb-6.3-ppc64syscall-20040622.patch index e5dc4d0..d5b5cc9 100644 --- a/gdb-6.3-ppc64syscall-20040622.patch +++ b/gdb-6.3-ppc64syscall-20040622.patch @@ -8,8 +8,8 @@ Index: gdb-6.5/gdb/rs6000-tdep.c =================================================================== ---- gdb-6.5.orig/gdb/rs6000-tdep.c 2006-04-23 11:15:01.000000000 -0300 -+++ gdb-6.5/gdb/rs6000-tdep.c 2006-07-07 00:54:50.000000000 -0300 +--- gdb-6.5.orig/gdb/rs6000-tdep.c 2006-07-11 02:57:24.000000000 -0300 ++++ gdb-6.5/gdb/rs6000-tdep.c 2006-07-11 12:32:05.000000000 -0300 @@ -76,6 +76,7 @@ struct rs6000_framedata @@ -98,12 +98,15 @@ Index: gdb-6.5/gdb/rs6000-tdep.c if ((op & 0xfc1fffff) == 0x7c0802a6) { /* mflr Rx */ /* Since shared library / PIC code, which needs to get its -@@ -1138,7 +1189,7 @@ skip_prologue (CORE_ADDR pc, CORE_ADDR l +@@ -1138,9 +1189,9 @@ skip_prologue (CORE_ADDR pc, CORE_ADDR l we have no line table information or the line info tells us that the subroutine call is not part of the line associated with the prologue. */ - if ((pc - orig_pc) > 8) + if ((pc - fdata->func_start) > 8) { - struct symtab_and_line prologue_sal = find_pc_line (orig_pc, 0); +- struct symtab_and_line prologue_sal = find_pc_line (orig_pc, 0); ++ struct symtab_and_line prologue_sal = find_pc_line (fdata->func_start, 0); struct symtab_and_line this_sal = find_pc_line (pc, 0); + + if ((prologue_sal.line == 0) || (prologue_sal.line != this_sal.line))