Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@gnu.org>
To: drow@false.org
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] New GDB target iq2000
Date: Sat, 05 Mar 2005 11:29:00 -0000	[thread overview]
Message-ID: <200503051128.j25BSruw007318@elgar.sibelius.xs4all.nl> (raw)
In-Reply-To: <20050304220104.GA14522@nevyn.them.org> (message from Daniel Jacobowitz on Fri, 4 Mar 2005 17:01:04 -0500)

   Date: Fri, 4 Mar 2005 17:01:04 -0500
   From: Daniel Jacobowitz <drow@false.org>

   I left the other function alone.  skip_prologue_using_sal is already a
   bit bogus, for the reasons identified by Kevin as well as for at least
   one other that I can see.  find_last_line_symbol is even boguser. 
   Basically, any code that compares the LINE member of two arbitrary SALs
   _must_ be wrong.  They don't even need to be in the same source file.

Another issue with skip_prologue_using_sal() is that it will happily
skip the entire function if the function body is basically empty.  I
really think it should be deprecated, and shouldn't be used in any new
code.

   There's two things that GDB uses the guessed prologue line information
   for.  One is to place an initial breakpoint, so that the arguments have
   been saved.  This problem will hopefully eventually go away, with
   improved GCC -fvar-tracking - we should be able to print the arguments
   from anywhere.  Someone needs to spend a little love on the compiler
   side of this.

The important thing about placing the initial breakpoint, is that it
shouldn't be placed too far into the function.  In particular it
should not end up after a branch instruction.

   The other is as a limit for prologue scanners.  IMO, what you need in
   iq2000_scan_prologue is not line table data at all, but a list of
   instructions which can not be considered part of the prologue. 
   Basically that is calls and branches, and a check that you only record
   a register save the first time you see the register being saved.
   Going too far here is not a major problem; after the patch below, I
   think the call in iq2000_skip_prologue is basically redundant. 
   Returning FUNC_ADDR would work just about as well, since if we have no
   line data, we probably have no symbolic argument information either.

Most prologue scanners indeed "know" about what conditions end a
prologue.  In those cases the limit is only there to prevent the
analyzer to run away if for some reason it ends up analyzing code that
it shouldn't.

Mark


  reply	other threads:[~2005-03-05 11:29 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-22 16:35 Corinna Vinschen
2005-03-01 22:13 ` Jim Blandy
2005-03-01 22:19   ` Daniel Jacobowitz
2005-03-02  9:08   ` Corinna Vinschen
2005-03-03 17:34 ` Daniel Jacobowitz
2005-03-03 17:46   ` Kevin Buettner
2005-03-03 17:51     ` Daniel Jacobowitz
2005-03-03 19:17       ` Kevin Buettner
2005-03-04  9:46   ` Corinna Vinschen
2005-03-04 14:14     ` Daniel Jacobowitz
2005-03-04 15:01       ` Corinna Vinschen
2005-03-04 15:06         ` Daniel Jacobowitz
2005-03-04 15:51           ` Corinna Vinschen
2005-03-04 16:01             ` Daniel Jacobowitz
2005-03-04 22:01         ` Daniel Jacobowitz
2005-03-05 11:29           ` Mark Kettenis [this message]
2005-03-05 16:44             ` Daniel Jacobowitz
2005-03-05 18:13               ` Mark Kettenis
2005-03-05 19:37                 ` Daniel Jacobowitz
2005-03-05 20:18                   ` Mark Kettenis
2005-03-05 20:20                     ` Daniel Jacobowitz
2005-03-07 10:08                       ` Corinna Vinschen
2005-03-07 14:05                         ` Daniel Jacobowitz
2005-03-07 20:17                           ` Corinna Vinschen
2005-03-07 20:37                             ` Daniel Jacobowitz
2005-03-08  9:00                               ` Corinna Vinschen
2005-03-08 13:32                                 ` Daniel Jacobowitz
2005-03-07 21:32                   ` Daniel Jacobowitz
2005-03-07 21:35 ` Daniel Jacobowitz
2005-03-08  9:00   ` Corinna Vinschen

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=200503051128.j25BSruw007318@elgar.sibelius.xs4all.nl \
    --to=kettenis@gnu.org \
    --cc=drow@false.org \
    --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