Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jerome Guitton <guitton@act-europe.fr>
To: gdb-patches@sources.redhat.com
Subject: [commit] ARM : one-line prologue analysis
Date: Mon, 29 Sep 2003 13:28:00 -0000	[thread overview]
Message-ID: <20030929132800.GA26586@act-europe.fr> (raw)
In-Reply-To: <20030925204452.GA15754@act-europe.fr>

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

I merged the two patches, and committed them.

-- 
Jerome

[-- Attachment #2: arm.dif --]
[-- Type: text/plain, Size: 1727 bytes --]

2003-09-29  Jerome Guitton  <guitton@act-europe.fr>

	* arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
	test if the register has been saved on the stack.
	(arm_scan_prologue_cache): When analysing the instruction
	"str lr, [sp, #-4]", save the address where lr has been stored.

Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.151
diff -c -p -r1.151 arm-tdep.c
*** arm-tdep.c	25 Sep 2003 14:21:00 -0000	1.151
--- arm-tdep.c	29 Sep 2003 13:11:51 -0000
*************** arm_scan_prologue (struct frame_info *ne
*** 845,851 ****
  	}
        else if (insn == 0xe52de004)	/* str lr, [sp, #-4]! */
  	{
! 	  /* Function is frameless: extra_info defaults OK?  */
  	  continue;
  	}
        else if ((insn & 0xffff0000) == 0xe92d0000)
--- 845,852 ----
  	}
        else if (insn == 0xe52de004)	/* str lr, [sp, #-4]! */
  	{
! 	  sp_offset -= 4;
! 	  cache->saved_regs[ARM_LR_REGNUM].addr = sp_offset;
  	  continue;
  	}
        else if ((insn & 0xffff0000) == 0xe92d0000)
*************** arm_make_prologue_cache (struct frame_in
*** 967,973 ****
    /* Calculate actual addresses of saved registers using offsets
       determined by arm_scan_prologue.  */
    for (reg = 0; reg < NUM_REGS; reg++)
!     if (cache->saved_regs[reg].addr != 0)
        cache->saved_regs[reg].addr += cache->prev_sp;
  
    return cache;
--- 968,974 ----
    /* Calculate actual addresses of saved registers using offsets
       determined by arm_scan_prologue.  */
    for (reg = 0; reg < NUM_REGS; reg++)
!     if (trad_frame_addr_p (cache->saved_regs, reg))
        cache->saved_regs[reg].addr += cache->prev_sp;
  
    return cache;

      parent reply	other threads:[~2003-09-29 13:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-25 20:45 [RFA/RFC] " Jerome Guitton
2003-09-25 21:32 ` Andrew Cagney
2003-09-26  9:33   ` Richard Earnshaw
2003-09-26 10:17     ` Jerome Guitton
2003-09-26 10:20       ` Richard Earnshaw
2003-09-26 10:25         ` Jerome Guitton
2003-09-27 15:03     ` Andrew Cagney
2003-09-29 13:28 ` Jerome Guitton [this message]

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=20030929132800.GA26586@act-europe.fr \
    --to=guitton@act-europe.fr \
    --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