Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch, moxie] Fail prologue analysis gracefully
@ 2010-02-04 22:33 Anthony Green
  0 siblings, 0 replies; only message in thread
From: Anthony Green @ 2010-02-04 22:33 UTC (permalink / raw)
  To: gdb-patches

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

My prologue analyzer was looping forever on some hand-written assembly.
Here's the fix, which I am about to commit...

AG


[-- Attachment #2: moxie-gdb.patch --]
[-- Type: text/x-patch, Size: 592 bytes --]

2010-02-04  Anthony Green  <green@moxielogic.com>

	* moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
	gracefully.

Index: moxie-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/moxie-tdep.c,v
retrieving revision 1.8
diff -u -r1.8 moxie-tdep.c
--- moxie-tdep.c	1 Jan 2010 07:31:37 -0000	1.8
+++ moxie-tdep.c	4 Feb 2010 22:24:29 -0000
@@ -174,6 +174,8 @@
 	  cache->saved_regs[regnum] = cache->framesize;
 	  next_addr += 2;
 	}
+      else
+	break;
     }
 
   inst = read_memory_unsigned_integer (next_addr, 2, byte_order);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-04 22:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-04 22:33 [patch, moxie] Fail prologue analysis gracefully Anthony Green

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