Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit] Fix Xtensa Call0 ABI prologue analysis
@ 2009-09-19  3:56 Maxim Grigoriev
  2009-09-19  4:09 ` Maxim Grigoriev
  2009-09-19 16:39 ` [commit] gdb_7_0-branch -- " Maxim Grigoriev
  0 siblings, 2 replies; 4+ messages in thread
From: Maxim Grigoriev @ 2009-09-19  3:56 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 92 bytes --]

On Xtensa CALL0 ABI, prologue analysis does not work, when MSB is set in 
the address(es).


[-- Attachment #2: xtensa-call0-MSB.diff --]
[-- Type: text/x-patch, Size: 682 bytes --]

2009-09-18  Maxim Grigoriev  <maxim2405@gmail.com>

        * xtensa-tdep.c (call0_analyze_prologue): Replace INT_MAX by UNIT_MAX.

Index: gdb/xtensa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/xtensa-tdep.c,v
retrieving revision 1.39
diff -u -r1.39 xtensa-tdep.c
--- gdb/xtensa-tdep.c	14 Aug 2009 00:32:32 -0000	1.39
+++ gdb/xtensa-tdep.c	19 Sep 2009 03:48:44 -0000
@@ -2125,7 +2125,7 @@
      Assume we may be in the prologue until we hit a flow control instr.  */
 
   rtmp = NULL;
-  body_pc = INT_MAX;
+  body_pc = UINT_MAX;
   end_pc = 0;
 
   /* Find out, if we have an information about the prologue from DWARF.  */

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-19 16:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-19  3:56 [commit] Fix Xtensa Call0 ABI prologue analysis Maxim Grigoriev
2009-09-19  4:09 ` Maxim Grigoriev
2009-09-19  5:03   ` Joel Brobecker
2009-09-19 16:39 ` [commit] gdb_7_0-branch -- " Maxim Grigoriev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox