mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 14:12:26 +00:00
5463ab4bf6
In GDB 10.x gdbserver was promoted to the top-level folder, see https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=919adfe8409211c726c1d05b47ca59890ee648f1 Which means it is no longer a subfolder in "gdb" and so we have to build gdbserver now exactly in the same way as normal native GDB. One interesting detail is gdbserver doesn't need to deal with target description in .xml so it doesn't depend on libexpat on target, thus we need to move libexpat explicit selection from do_gdb_backend() to its callers when building native [full] gdb as well as cross-gdb for the host. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> [cp: support old/new layout, regenerate patches] Signed-off-by: Chris Packham <judge.packham@gmail.com>
27 lines
979 B
Diff
27 lines
979 B
Diff
From 7f8eacbb468575fb67db7fd1155a3aedaa91911b Mon Sep 17 00:00:00 2001
|
|
From: Max Filippov <jcmvbkbc@gmail.com>
|
|
Date: Sun, 7 Jun 2015 23:15:39 +0300
|
|
Subject: [PATCH] WIP: *end of prologue* detection hack
|
|
|
|
see
|
|
http://www.esp8266.com/viewtopic.php?p=18461#p18461
|
|
http://www.esp8266.com/viewtopic.php?p=19026#p19026
|
|
http://www.esp8266.com/viewtopic.php?p=19683#p19683
|
|
|
|
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
|
|
---
|
|
gdb/xtensa-tdep.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/gdb/xtensa-tdep.c
|
|
+++ b/gdb/xtensa-tdep.c
|
|
@@ -2385,7 +2385,7 @@
|
|
/* Find out, if we have an information about the prologue from DWARF. */
|
|
prologue_sal = find_pc_line (start, 0);
|
|
if (prologue_sal.line != 0) /* Found debug info. */
|
|
- body_pc = prologue_sal.end;
|
|
+ body_pc = prologue_sal.end + 40;
|
|
|
|
/* If we are going to analyze the prologue in general without knowing about
|
|
the current PC, make the best assumption for the end of the prologue. */
|