This commit is contained in:
parent
1d77b88bc0
commit
736f078442
19
fix-gdb-backtrace.diff
Normal file
19
fix-gdb-backtrace.diff
Normal file
@ -0,0 +1,19 @@
|
||||
Index: gdb/i386-tdep.c
|
||||
===================================================================
|
||||
--- gdb/i386-tdep.c.orig
|
||||
+++ gdb/i386-tdep.c
|
||||
@@ -1023,11 +1023,13 @@ i386_frame_cache (struct frame_info *nex
|
||||
/* This will be added back below. */
|
||||
cache->saved_regs[I386_EIP_REGNUM] -= cache->base;
|
||||
}
|
||||
- else
|
||||
+ else if (cache->pc)
|
||||
{
|
||||
frame_unwind_register (next_frame, I386_ESP_REGNUM, buf);
|
||||
cache->base = extract_unsigned_integer (buf, 4) + cache->sp_offset;
|
||||
}
|
||||
+ else
|
||||
+ cache->saved_regs[I386_EBP_REGNUM] = 0;
|
||||
}
|
||||
|
||||
/* Now that we have the base address for the stack frame we can
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 23 11:29:13 CEST 2008 - matz@suse.de
|
||||
|
||||
- Try harder to provide backtraces without debuginfo on i386. [bnc #390722]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 21 10:39:41 CEST 2008 - schwab@suse.de
|
||||
|
||||
|
8
gdb.spec
8
gdb.spec
@ -30,7 +30,7 @@ AutoReqProv: on
|
||||
PreReq: %{install_info_prereq}
|
||||
Summary: The GNU Debugger
|
||||
Version: 6.8
|
||||
Release: 19
|
||||
Release: 20
|
||||
%define sss %{nil}
|
||||
Source: gdb-%{version}%{sss}.tar.bz2
|
||||
Patch1: find-pc-sect-line.diff
|
||||
@ -44,6 +44,7 @@ Patch8: infcall.diff
|
||||
Patch9: examine-prologue.diff
|
||||
Patch10: watchpoints.diff
|
||||
Patch11: get-prev-frame-1.diff
|
||||
Patch12: fix-gdb-backtrace.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -77,7 +78,7 @@ Group: Development/Tools/Debuggers
|
||||
AutoReqProv: on
|
||||
Provides: gdb:/usr/bin/gdbserver
|
||||
Version: 6.8
|
||||
Release: 6
|
||||
Release: 7
|
||||
|
||||
%description -n gdbserver
|
||||
GDBSERVER is a program that allows you to run GDB on a different
|
||||
@ -116,6 +117,7 @@ Authors:
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11 -p1
|
||||
%patch12
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
@ -177,6 +179,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri May 23 2008 matz@suse.de
|
||||
- Try harder to provide backtraces without debuginfo on i386. [bnc #390722]
|
||||
* Wed May 21 2008 schwab@suse.de
|
||||
- Fix assertion failure.
|
||||
* Fri May 09 2008 schwab@suse.de
|
||||
|
Loading…
x
Reference in New Issue
Block a user