summaryrefslogtreecommitdiff
path: root/patches/gdb/7.10/112-WIP-end-of-prologue-detection-hack.patch
blob: 506a57c3c68c2615db72cbc94940e968457a383d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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(-)

diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index 41f5ec1..6a7dba7 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -2410,7 +2410,7 @@ call0_analyze_prologue (struct gdbarch *gdbarch,
   /* 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 assumtion for the end of the prologue.  */
-- 
1.8.1.4