- Fix (backport) PPC biarch (ppc64->ppc) addresses above 2GB (BZ 426613).
- Fix the vendora testcase `attach-32.exp' affecting the other tests results.
This commit is contained in:
parent
2344090082
commit
2ddeb47291
|
@ -1,9 +1,13 @@
|
|||
2005-07-21 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* gdb.base/attach-32.exp: New test for attaching in 32-bit
|
||||
mode on 64-bit systems.
|
||||
* gdb.base/attach-32.c: Ditto.
|
||||
* gdb.base/attach-32b.c: Ditto.
|
||||
* gdb.base/attach-32.exp: New test for attaching in 32-bit
|
||||
mode on 64-bit systems.
|
||||
* gdb.base/attach-32.c: Ditto.
|
||||
* gdb.base/attach-32b.c: Ditto.
|
||||
|
||||
2007-12-26 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* gdb.base/attach-32.exp: Fix forgotten $GDBFLAGS as set.
|
||||
|
||||
--- gdb-6.3/gdb/testsuite/gdb.base/attach-32.c.fix3 2005-07-21 14:23:50.000000000 -0400
|
||||
+++ gdb-6.3/gdb/testsuite/gdb.base/attach-32.c 2005-07-21 14:05:56.000000000 -0400
|
||||
|
@ -30,7 +34,7 @@
|
|||
+}
|
||||
--- gdb-6.3/gdb/testsuite/gdb.base/attach-32.exp.fix3 2005-07-21 14:23:45.000000000 -0400
|
||||
+++ gdb-6.3/gdb/testsuite/gdb.base/attach-32.exp 2005-07-21 17:58:28.000000000 -0400
|
||||
@@ -0,0 +1,247 @@
|
||||
@@ -0,0 +1,252 @@
|
||||
+# Copyright 2005 Free Software Foundation, Inc.
|
||||
+
|
||||
+# This program is free software; you can redistribute it and/or modify
|
||||
|
@ -251,9 +255,12 @@
|
|||
+ # different due to the way fork/exec works.
|
||||
+ set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
|
||||
+}
|
||||
+set GDBFLAGS "--pid=$testpid"
|
||||
+
|
||||
+set GDBFLAGS_orig $GDBFLAGS
|
||||
+set GDBFLAGS "--pid=$testpid"
|
||||
+gdb_start
|
||||
+set GDBFLAGS $GDBFLAGS_orig
|
||||
+
|
||||
+gdb_reinitialize_dir $srcdir/$subdir
|
||||
+
|
||||
+# This is a test of gdb's ability to attach to a running process.
|
||||
|
@ -270,9 +277,11 @@
|
|||
+ # different due to the way fork/exec works.
|
||||
+ set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
|
||||
+}
|
||||
+set GDBFLAGS "--pid=$testpid"
|
||||
+
|
||||
+set GDBFLAGS_orig $GDBFLAGS
|
||||
+set GDBFLAGS "--pid=$testpid"
|
||||
+gdb_start
|
||||
+set GDBFLAGS $GDBFLAGS_orig
|
||||
+
|
||||
+gdb_reinitialize_dir $srcdir/$subdir
|
||||
+do_call_attach_tests
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=426613
|
||||
|
||||
A very minimal backport of the upstream:
|
||||
http://sourceware.org/ml/gdb-patches/2007-03/msg00307.html
|
||||
|
||||
`continue' of a PIE ppc32 program on ppc64 GDB fails.
|
||||
|
||||
diff -u -rup gdb-6.6-orig/gdb/solib-svr4.c gdb-6.6/gdb/solib-svr4.c
|
||||
--- gdb-6.6-orig/gdb/solib-svr4.c 2007-12-26 18:46:17.000000000 -0500
|
||||
+++ gdb-6.6/gdb/solib-svr4.c 2007-12-27 16:38:59.000000000 -0500
|
||||
@@ -130,9 +130,9 @@ LM_ADDR_FROM_LINK_MAP (struct so_list *s
|
||||
{
|
||||
struct link_map_offsets *lmo = svr4_fetch_link_map_offsets ();
|
||||
|
||||
- return (CORE_ADDR) extract_signed_integer (so->lm_info->lm
|
||||
- + lmo->l_addr_offset,
|
||||
- lmo->l_addr_size);
|
||||
+ return (CORE_ADDR) extract_unsigned_integer (so->lm_info->lm
|
||||
+ + lmo->l_addr_offset,
|
||||
+ lmo->l_addr_size);
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -150,9 +150,9 @@ LM_DYNAMIC_FROM_LINK_MAP (struct so_list
|
||||
|
||||
gdb_assert (lmo->l_ld_size != 0);
|
||||
|
||||
- return (CORE_ADDR) extract_signed_integer (so->lm_info->lm
|
||||
- + lmo->l_ld_offset,
|
||||
- lmo->l_ld_size);
|
||||
+ return (CORE_ADDR) extract_unsigned_integer (so->lm_info->lm
|
||||
+ + lmo->l_ld_offset,
|
||||
+ lmo->l_ld_size);
|
||||
}
|
||||
|
||||
static CORE_ADDR
|
10
gdb.spec
10
gdb.spec
|
@ -11,7 +11,7 @@ Name: gdb
|
|||
Version: 6.6
|
||||
|
||||
# The release always contains a leading reserved number, start it at 1.
|
||||
Release: 38%{?dist}
|
||||
Release: 39%{?dist}
|
||||
|
||||
License: GPL
|
||||
Group: Development/Debuggers
|
||||
|
@ -392,6 +392,9 @@ Patch284: gdb-6.7-ppc-clobbered-registers-O2-test.patch
|
|||
# Testsuite fixes for more stable/comparable results.
|
||||
Patch287: gdb-6.7-testsuite-stable-results.patch
|
||||
|
||||
# Fix (backport) PPC biarch (ppc64->ppc) addresses above 2GB (BZ 426613).
|
||||
Patch291: gdb-6.6-bz426613-ppc-biarch-signed-addresses-fix.patch
|
||||
|
||||
BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu gettext
|
||||
BuildRequires: flex bison sharutils expat-devel
|
||||
Requires: readline
|
||||
|
@ -554,6 +557,7 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c
|
|||
%patch284 -p1
|
||||
%patch285 -p1
|
||||
%patch287 -p1
|
||||
%patch291 -p1
|
||||
|
||||
# Change the version that gets printed at GDB startup, so it is RedHat
|
||||
# specific.
|
||||
|
@ -710,6 +714,10 @@ fi
|
|||
# don't include the files in include, they are part of binutils
|
||||
|
||||
%changelog
|
||||
* Thu Dec 27 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.6-39
|
||||
- Fix (backport) PPC biarch (ppc64->ppc) addresses above 2GB (BZ 426613).
|
||||
- Fix the vendora testcase `attach-32.exp' affecting the other tests results.
|
||||
|
||||
* Sat Dec 22 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.6-38
|
||||
- Fix crash on parsing duplicite file entries debug info (BZ 426395).
|
||||
- Fix (#2) readline history for input mode commands like `command' (BZ 215816).
|
||||
|
|
Loading…
Reference in New Issue