Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@redhat.com>
To: Keith Seitz <keiths@cygnus.com>
Cc: Quality Quorum <qqi@world.std.com>, gdb@sources.redhat.com
Subject: Re: gdb & arm
Date: Fri, 05 Oct 2001 09:37:00 -0000	[thread overview]
Message-ID: <3BBDE090.622951F3@redhat.com> (raw)
In-Reply-To: <Pine.GSO.4.33.0110041134580.13231-100000@makita.cygnus.com>

Keith Seitz wrote:
> 
> On Thu, 4 Oct 2001, Quality Quorum wrote:
> 
> > It call to arm_skip_prologue call find_pc_partial_function and
> > it succeeds.
> 
> So:
> 
>   if (find_pc_partial_function (pc, NULL, &func_addr, &func_end))
>     {
>       sal = find_pc_line (func_addr, 0);
>       if ((sal.line != 0) && (sal.end < func_end))
>         return sal.end;
>     }
> 
> find_pc_partial_function and find_pc_line succeed, but sal.end=func_end,
> right? This is the problem I had. Line table problems from gcc was my
> determination.
> 

Yes, I have seen something like this.  The reason was some bogus
optimization
that would remove duplicate line number info from the debug information
and
gdb needs the two first ones to determine the end of the prologue.

Try changing the debug format with the -g option of gcc.  If I am not
mistaken
this would only affect one of the formats (I can't remember if it was
stabs or
dwarf2).

P.S.: The fix is in the compiler/linker land --GDB does not get enough
info so
there is nothing much that can be done there except forcing a prologue
scan
(which suffers from constant compiler generation changes and some
insufficient
information in some cases).

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


      parent reply	other threads:[~2001-10-05  9:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-04  9:01 Quality Quorum
2001-10-04  9:13 ` Keith Seitz
2001-10-04 11:32   ` Quality Quorum
2001-10-04 11:37     ` Keith Seitz
2001-10-04 13:31       ` Quality Quorum
2001-10-04 15:00         ` Keith Seitz
2001-10-04 16:08           ` Quality Quorum
2001-10-05  9:37       ` Fernando Nasser [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=3BBDE090.622951F3@redhat.com \
    --to=fnasser@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=keiths@cygnus.com \
    --cc=qqi@world.std.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