diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-05-27 15:52:48 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-05-27 15:52:48 +1000 |
commit | 7c19cb06a61500f9aab21e9e95173d0305bff25c (patch) | |
tree | a5b65e80b55b0bccd6216b39a239e374c1a4b5b3 /recipes-devtools/gdb/files/0011-Patch-gdb-Fix-debug-message-when-register-is-unavail.patch | |
parent | 56afae038a1c5a8165371cd295ab50ba2400efd8 (diff) | |
download | meta-xilinx-7c19cb06a61500f9aab21e9e95173d0305bff25c.tar.gz |
gdb: Update gdb for microblaze
* Update recipe for gdb to 7.7
* Update patches for gdb, based on xlnx/master-rebase from the Xilinx
binutils-gdb repository
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-devtools/gdb/files/0011-Patch-gdb-Fix-debug-message-when-register-is-unavail.patch')
-rw-r--r-- | recipes-devtools/gdb/files/0011-Patch-gdb-Fix-debug-message-when-register-is-unavail.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-devtools/gdb/files/0011-Patch-gdb-Fix-debug-message-when-register-is-unavail.patch b/recipes-devtools/gdb/files/0011-Patch-gdb-Fix-debug-message-when-register-is-unavail.patch new file mode 100644 index 00000000..bdec77c5 --- /dev/null +++ b/recipes-devtools/gdb/files/0011-Patch-gdb-Fix-debug-message-when-register-is-unavail.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From a05fb34192727fc1b63c827ed006ddde846ce6b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nathan Rossi <nathan.rossi@petalogix.com> | ||
3 | Date: Tue, 8 May 2012 18:11:17 +1000 | ||
4 | Subject: [PATCH 11/16] [Patch, gdb]: Fix debug message when register is | ||
5 | unavailable | ||
6 | |||
7 | Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com> | ||
8 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | ||
9 | Upstream-Status: Pending | ||
10 | --- | ||
11 | gdb/frame.c | 13 ++++++++++--- | ||
12 | 1 file changed, 10 insertions(+), 3 deletions(-) | ||
13 | |||
14 | diff --git a/gdb/frame.c b/gdb/frame.c | ||
15 | index 013d602..4d0766f 100644 | ||
16 | --- a/gdb/frame.c | ||
17 | +++ b/gdb/frame.c | ||
18 | @@ -1134,12 +1134,19 @@ frame_unwind_register_value (struct frame_info *frame, int regnum) | ||
19 | else | ||
20 | { | ||
21 | int i; | ||
22 | - const gdb_byte *buf = value_contents (value); | ||
23 | + const gdb_byte *buf = NULL; | ||
24 | + if (value_entirely_available(value)) { | ||
25 | + buf = value_contents (value); | ||
26 | + } | ||
27 | |||
28 | fprintf_unfiltered (gdb_stdlog, " bytes="); | ||
29 | fprintf_unfiltered (gdb_stdlog, "["); | ||
30 | - for (i = 0; i < register_size (gdbarch, regnum); i++) | ||
31 | - fprintf_unfiltered (gdb_stdlog, "%02x", buf[i]); | ||
32 | + if (buf != NULL) { | ||
33 | + for (i = 0; i < register_size (gdbarch, regnum); i++) | ||
34 | + fprintf_unfiltered (gdb_stdlog, "%02x", buf[i]); | ||
35 | + } else { | ||
36 | + fprintf_unfiltered (gdb_stdlog, "unavailable"); | ||
37 | + } | ||
38 | fprintf_unfiltered (gdb_stdlog, "]"); | ||
39 | } | ||
40 | } | ||
41 | -- | ||
42 | 1.9.0 | ||
43 | |||