- Rewrite patch for BZ 175270, BZ 175083 so as to catch the exception

earlier.
- Remove too-fragile testcases from patches for CFA value and "S"
    augmentation.
This commit is contained in:
aoliva 2006-05-27 07:34:28 +00:00
parent 017d602381
commit bc67a32afc
5 changed files with 70 additions and 16 deletions

View File

@ -1,3 +1 @@
gdb+dejagnu-20040607.tar.bz2
gdb-6.3.tar.bz2 gdb-6.3.tar.bz2
gdb-6.3.50.20050401.tar.bz2

View File

@ -0,0 +1,49 @@
for gdb-6.3/gdb/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* i386-linux-nat.c (i386_debug_register_for_thread): New struct.
(i386_linux_set_dr_for_thread): Rename from...
(i386_linux_set_debug_regs_for_thread): ... this, and
add new function to catch exceptions in the old one.
Index: gdb-6.3/gdb/i386-linux-nat.c
===================================================================
--- gdb-6.3.orig/gdb/i386-linux-nat.c 2006-04-14 03:22:47.000000000 -0300
+++ gdb-6.3/gdb/i386-linux-nat.c 2006-05-27 03:48:47.000000000 -0300
@@ -694,14 +694,33 @@ struct i386_debug_register_state
unsigned long control;
};
-static void
-i386_linux_set_debug_regs_for_thread (ptid_t ptid,
- struct i386_debug_register_state *dbs)
+struct i386_debug_register_for_thread
+{
+ ptid_t ptid;
+ struct i386_debug_register_state *dbs;
+};
+
+static int
+i386_linux_set_dr_for_thread (void *drp)
{
+ ptid_t ptid = ((struct i386_debug_register_for_thread *)drp)->ptid;
+ struct i386_debug_register_state *dbs
+ = ((struct i386_debug_register_for_thread *)drp)->dbs;
int i;
for (i = 0; i < (DR_LASTADDR - DR_FIRSTADDR) + 1; ++i)
i386_linux_dr_set_addr (ptid, i, dbs->addr[i]);
i386_linux_dr_set_control (ptid, dbs->control);
+ return 1;
+}
+
+static int
+i386_linux_set_debug_regs_for_thread (ptid_t ptid,
+ struct i386_debug_register_state *dbs)
+{
+ struct i386_debug_register_for_thread dr;
+ dr.ptid = ptid;
+ dr.dbs = dbs;
+ return catch_errors (i386_linux_set_dr_for_thread, &dr, "", RETURN_MASK_ALL);
}
/* Iterator function to support syncing debug registers across all threads. */

View File

@ -1,7 +1,8 @@
Index: gdb-6.3/gdb/gstack.sh Index: gdb-6.3/gdb/gstack.sh
--- gdb-6.3/gdb/gstack.sh 2006-01-16 16:41:13.000000000 +0000 ===================================================================
+++ gdb-6.3/gdb/gstack.sh 2006-02-02 09:22:12.000000000 +0000 --- gdb-6.3.orig/gdb/gstack.sh 2006-02-14 17:21:05.000000000 -0200
@@ -17,17 +17,17 @@ +++ gdb-6.3/gdb/gstack.sh 2006-04-14 03:17:12.000000000 -0300
@@ -17,17 +17,17 @@ fi
backtrace="bt" backtrace="bt"
if test -d /proc/$1/task ; then if test -d /proc/$1/task ; then
# Newer kernel; has a task/ directory. # Newer kernel; has a task/ directory.
@ -22,7 +23,7 @@ Index: gdb-6.3/gdb/gstack.sh
if $GDB -nx --quiet --batch --readnever > /dev/null 2>&1; then if $GDB -nx --quiet --batch --readnever > /dev/null 2>&1; then
readnever=--readnever readnever=--readnever
@@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@ fi
$GDB --quiet $readnever -nx /proc/$1/exe $1 <<EOF 2>&1 | $GDB --quiet $readnever -nx /proc/$1/exe $1 <<EOF 2>&1 |
$backtrace $backtrace
EOF EOF

View File

@ -11,7 +11,7 @@ Name: gdb
Version: 6.3.0.0 Version: 6.3.0.0
# The release always contains a leading reserved number, start it at 0. # The release always contains a leading reserved number, start it at 0.
Release: 1.129.FC6 Release: 1.130.FC6
License: GPL License: GPL
Group: Development/Debuggers Group: Development/Debuggers
@ -281,8 +281,8 @@ Patch175: gdb-6.3-support-fopen64-20060413.patch
# Use bigger numbers than int. # Use bigger numbers than int.
Patch176: gdb-6.3-large-core-20051206.patch Patch176: gdb-6.3-large-core-20051206.patch
# Do not let exceptions in GDB break SIGCHLD blocking. # Do not let errors related with debug registers break thread debugging.
Patch177: gdb-6.3-sigchld-exception-20060331.patch Patch177: gdb-6.3-catch-debug-registers-error-20060527.patch
# Hard-code executable names in gstack, such that it can run with a # Hard-code executable names in gstack, such that it can run with a
# corrupted or missing PATH. # corrupted or missing PATH.
@ -566,13 +566,19 @@ fi
# don't include the files in include, they are part of binutils # don't include the files in include, they are part of binutils
%changelog %changelog
* Sat May 27 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.130
- Rewrite patch for BZ 175270, BZ 175083 so as to catch the exception
earlier.
- Remove too-fragile testcases from patches for CFA value and "S"
augmentation.
* Wed May 17 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.129 * Wed May 17 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.129
- Add not-automatically-generated file to fopen64 patch (BZ 191948). - Add not-automatically-generated file to fopen64 patch (BZ 191948).
* Fri Apr 14 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.128 * Fri Apr 14 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.128
- Avoid race conditions caused by exceptions messing with signal masks. - Avoid race conditions caused by exceptions messing with signal masks.
(BZ 175270, BZ 175083, maybe BZ 172938). (BZ 175270, BZ 175083, maybe BZ 172938).
- Hardcode /bin and /usr/bin paths into gstack (BZ 179829). - Hardcode /bin and /usr/bin paths into gstack (BZ 179829, BZ 190548).
- Build in a subdir of the source tree instead of in a sibling directory. - Build in a subdir of the source tree instead of in a sibling directory.
- Switch to versioning scheme that uses the same base revision number - Switch to versioning scheme that uses the same base revision number
for all OSes, and uses a suffix to tell the builds apart and ensure for all OSes, and uses a suffix to tell the builds apart and ensure
@ -582,15 +588,16 @@ upgradability.
- Bump up release number. - Bump up release number.
* Thu Apr 13 2006 Stepan Kasal <skasal@redhat.com> - 6.3.0.0-1.123 * Thu Apr 13 2006 Stepan Kasal <skasal@redhat.com> - 6.3.0.0-1.123
- Use fopen64 where available. Fixes BZ 178796. - Use fopen64 where available. Fixes BZ 178796, BZ 190547.
- Use bigger numbers than int. Fixes BZ 171783. - Use bigger numbers than int. Fixes BZ 171783, BZ 179096.
* Wed Mar 8 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.122 * Wed Mar 8 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.122
- Bump up release number. - Bump up release number.
* Wed Mar 8 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.119 * Wed Mar 8 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.119
- Fix regression in PIE debugging (BZ 133944) (re?)introduced by - Fix regression in PIE debugging (BZ 133944) (re?)introduced by the
the prelink fix (BZ 175075). Improve testcase for the prelink fix. prelink fix (BZ 175075, BZ 190545). Improve testcase for the prelink
fix.
- Revert dwarf2 frame identifier change. - Revert dwarf2 frame identifier change.
* Tue Mar 7 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.118 * Tue Mar 7 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.118
@ -617,7 +624,7 @@ system libraries are not prelinked.
* Thu Feb 23 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.107 * Thu Feb 23 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.107
- Enable gdb to debug core files and executables with mismatched - Enable gdb to debug core files and executables with mismatched
prelink base addresses. Fixes BZ 175075. prelink base addresses. Fixes BZ 175075, BZ 190545.
* Tue Feb 14 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.106 * Tue Feb 14 2006 Alexandre Oliva <aoliva@redhat.com> - 6.3.0.0-1.106
- Bump up release number. - Bump up release number.

View File

@ -1,2 +1 @@
05b928f41fa5b482e49ca2c24762a0ae gdb-6.3.tar.bz2 05b928f41fa5b482e49ca2c24762a0ae gdb-6.3.tar.bz2
53ec99f09e771b542af4cdb8d2a39fd5 gdb-6.3.50.20050401.tar.bz2