diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-12-16 16:48:36 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-12-16 16:48:36 +1000 |
commit | 74f73159e5c659d8ee52a3d48238932b36e4fe93 (patch) | |
tree | 824b4a830e733161d055a12d6993dc6c8cd45da3 /recipes-devtools/gdb/files/0004-Robustify-inline-function-support.patch | |
parent | 3ec0d044ea0c5fca26eecc0335bb9847871255ea (diff) | |
download | meta-xilinx-74f73159e5c659d8ee52a3d48238932b36e4fe93.tar.gz |
gdb: Add MicroBlaze support
* Import Xilinx gdb patches for MicroBlaze
* Disable dependence on LTTng-UST for MicroBlaze, it is not supported
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-devtools/gdb/files/0004-Robustify-inline-function-support.patch')
-rw-r--r-- | recipes-devtools/gdb/files/0004-Robustify-inline-function-support.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-devtools/gdb/files/0004-Robustify-inline-function-support.patch b/recipes-devtools/gdb/files/0004-Robustify-inline-function-support.patch new file mode 100644 index 00000000..24759d73 --- /dev/null +++ b/recipes-devtools/gdb/files/0004-Robustify-inline-function-support.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From: "Edgar E. Iglesias" <edgar@axis.com> | ||
2 | Date: Mon, 27 Feb 2012 06:28:00 +0100 | ||
3 | Subject: Robustify inline function support | ||
4 | |||
5 | Signed-off-by: Edgar E. Iglesias <edgar@axis.com> | ||
6 | Upstream-Status: Pending | ||
7 | --- | ||
8 | gdb/blockframe.c | 3 ++- | ||
9 | gdb/inline-frame.c | 3 +++ | ||
10 | 2 files changed, 5 insertions(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/gdb/blockframe.c b/gdb/blockframe.c | ||
13 | index d5787f1..80e40a3 100644 | ||
14 | --- a/gdb/blockframe.c | ||
15 | +++ b/gdb/blockframe.c | ||
16 | @@ -78,7 +78,8 @@ get_frame_block (struct frame_info *frame, CORE_ADDR *addr_in_block) | ||
17 | inline_count--; | ||
18 | |||
19 | bl = BLOCK_SUPERBLOCK (bl); | ||
20 | - gdb_assert (bl != NULL); | ||
21 | + if (!bl) | ||
22 | + return NULL; | ||
23 | } | ||
24 | |||
25 | return bl; | ||
26 | diff --git a/gdb/inline-frame.c b/gdb/inline-frame.c | ||
27 | index 2773814..c3a77ad 100644 | ||
28 | --- a/gdb/inline-frame.c | ||
29 | +++ b/gdb/inline-frame.c | ||
30 | @@ -230,6 +230,9 @@ inline_frame_sniffer (const struct frame_unwind *self, | ||
31 | cur_block = BLOCK_SUPERBLOCK (cur_block); | ||
32 | } | ||
33 | |||
34 | + if (depth == 0) | ||
35 | + return 0; | ||
36 | + | ||
37 | /* Check how many inlined functions already have frames. */ | ||
38 | for (next_frame = get_next_frame (this_frame); | ||
39 | next_frame && get_frame_type (next_frame) == INLINE_FRAME; | ||
40 | -- | ||
41 | 1.7.9.5 | ||
42 | |||