This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] gdb_7_0-branch -- Fix Xtensa Call0 ABI prologue analysis


Same patch committed onto GDB 7.0 branch.

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


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.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]