Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Anthony Green <green@moxielogic.com>
To: gdb-patches@sourceware.org
Subject: [patch, moxie] Fail prologue analysis gracefully
Date: Thu, 04 Feb 2010 22:33:00 -0000	[thread overview]
Message-ID: <1265322776.3047.1.camel@localhost> (raw)

[-- 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);

                 reply	other threads:[~2010-02-04 22:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1265322776.3047.1.camel@localhost \
    --to=green@moxielogic.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox