Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: rearnsha@arm.com (Richard Earnshaw)
Cc: dan@codesourcery.com (Daniel Jacobowitz), gdb-patches@sourceware.org
Subject: Re: [rfa, v3] Fix software-watchpoint failures on ARM by adding epilogue detection
Date: Fri, 08 Oct 2010 13:27:00 -0000	[thread overview]
Message-ID: <201010081326.o98DQrBJ027948@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <1286542864.29651.13.camel@e102346-lin.cambridge.arm.com> from "Richard Earnshaw" at Oct 08, 2010 02:01:04 PM

Richard Earnshaw wrote:
> On Thu, 2010-10-07 at 18:12 +0200, Ulrich Weigand wrote:
> > 2010-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
> >             Daniel Jacobowitz  <dan@codesourcery.com>
> > 
> > 	* arm-tdep.c (thumb_in_function_epilogue_p)
> > 	(arm_in_function_epilogue_p): New.
> > 	(arm_gdbarch_init): Install arm_in_function_epilogue_p as
> > 	gdbarch_in_function_epilogue_p callback.
> > 
> 
> This is OK.  There are some sequences that could be generated that this
> can't handle, and I don't think we'd ever get a stack decrement in an
> epilogue sequence.
> 
> An example I don't think your code can handle is stack adjustments that
> are not valid immediates for ADD SP, #n.  So very large stack adjusts my
> fail.  These sequences will load or create an immediate in a register
> (particularly on Thumb1) and then add that to SP.

Thanks for the review; I've checked the patch in now.  We can always
go back and add more instructions later ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2010-10-08 13:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-22 19:20 [rfa] Fix software-watchpoint failures " Ulrich Weigand
2010-09-22 20:01 ` Daniel Jacobowitz
2010-09-23 16:13   ` Ulrich Weigand
2010-09-24 16:11     ` Ulrich Weigand
2010-09-28 20:23       ` Daniel Jacobowitz
2010-09-28 21:47         ` Ulrich Weigand
2010-09-28 21:49           ` Daniel Jacobowitz
2010-09-29 15:24             ` Richard Earnshaw
2010-10-07 16:12             ` [rfa, v3] Fix software-watchpoint failures on ARM " Ulrich Weigand
2010-10-08 13:01               ` Richard Earnshaw
2010-10-08 13:27                 ` Ulrich Weigand [this message]
2010-09-29 14:43           ` [rfa] Fix software-watchpoint failures " Yao Qi

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=201010081326.o98DQrBJ027948@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=dan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=rearnsha@arm.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