summaryrefslogtreecommitdiff
path: root/packages/gdb/6.8a/0003-reg-no-longer-active.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2021-09-21 07:35:27 (GMT)
committerGitHub <noreply@github.com>2021-09-21 07:35:27 (GMT)
commit02d1503f6769be4ad8058b393d4245febced459f (patch)
tree7ed5bd7fb084879f1750b3ad378c404b9e6a9997 /packages/gdb/6.8a/0003-reg-no-longer-active.patch
parent5f5a22f7a7307790ec571d0c5acf8790416964e6 (diff)
parent68088f65c66790c1a5920e67e7e34d9f77e5a20f (diff)
Merge pull request #1599 from cpackham/gdb
Gdb update and cleanup
Diffstat (limited to 'packages/gdb/6.8a/0003-reg-no-longer-active.patch')
-rw-r--r--packages/gdb/6.8a/0003-reg-no-longer-active.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/packages/gdb/6.8a/0003-reg-no-longer-active.patch b/packages/gdb/6.8a/0003-reg-no-longer-active.patch
deleted file mode 100644
index 9bb48e8..0000000
--- a/packages/gdb/6.8a/0003-reg-no-longer-active.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-Fix bug reported by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>:
-See: http://sourceware.org/ml/crossgcc/2009-05/msg00055.html
- https://bugzilla.redhat.com/show_bug.cgi?id=436037
-
-Fix from: http://cvs.fedoraproject.org/viewvc/devel/gdb/gdb-6.8-bz436037-reg-no-longer-active.patch?revision=1.1
-
----
- gdb/valops.c | 12 ++++++++++--
- 1 file changed, 10 insertions(+), 2 deletions(-)
-
---- a/gdb/valops.c
-+++ b/gdb/valops.c
-@@ -675,10 +675,18 @@
- struct frame_info *frame;
- int value_reg;
-
-- /* Figure out which frame this is in currently. */
-- frame = frame_find_by_id (VALUE_FRAME_ID (toval));
- value_reg = VALUE_REGNUM (toval);
-
-+ /* Figure out which frame this is in currently. */
-+ frame = frame_find_by_id (VALUE_FRAME_ID (toval));
-+ /* "set $reg+=1" should work on programs with no debug info,
-+ but frame_find_by_id returns NULL here (RH bug 436037).
-+ Use current frame, it represents CPU state in this case.
-+ If frame_find_by_id is changed to do it internally
-+ (it is contemplated there), remove this. */
-+ if (!frame)
-+ frame = get_current_frame ();
-+ /* Probably never happens. */
- if (!frame)
- error (_("Value being assigned to is no longer active."));
-