Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: gdb-patches@sources.redhat.com
Subject: Improvement to i386_analyze_frame_setup
Date: Mon, 06 Oct 2003 21:23:00 -0000	[thread overview]
Message-ID: <je3ce6njpv.fsf@sykes.suse.de> (raw)

This patch improves the i386 frame setup analyzer by recognizing one more
case that GCC might generate.

Andreas.

2003-10-06  Andreas Schwab  <schwab@suse.de>

	* i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
	with %eax.

--- gdb/i386-tdep.c.~1.170.~	2003-10-06 10:19:03.000000000 +0200
+++ gdb/i386-tdep.c	2003-10-06 23:21:29.000000000 +0200
@@ -499,12 +499,14 @@ i386_analyze_frame_setup (CORE_ADDR pc, 
 	    xorl %ebx, %ebx
 	    xorl %ecx, %ecx
 	    xorl %edx, %edx
+	    xorl %eax, %eax
 
 	 and the equivalent
 
 	    subl %ebx, %ebx
 	    subl %ecx, %ecx
 	    subl %edx, %edx
+	    subl %eax, %eax
 
 	 Make sure we only skip these instructions if we later see the
 	 `movl %esp, %ebp' that actually sets up the frame.  */
@@ -516,6 +518,7 @@ i386_analyze_frame_setup (CORE_ADDR pc, 
 	    case 0xdb:	/* %ebx */
 	    case 0xc9:	/* %ecx */
 	    case 0xd2:	/* %edx */
+	    case 0xc0:	/* %eax */
 	      skip += 2;
 	      break;
 	    default:

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


             reply	other threads:[~2003-10-06 21:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-06 21:23 Andreas Schwab [this message]
2003-10-06 21:53 ` Mark Kettenis

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=je3ce6njpv.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=gdb-patches@sources.redhat.com \
    /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