Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Bernd Geiser <desasterman@gmx.de>
Cc: gdb@sources.redhat.com
Subject: Re: step into function fails
Date: Tue, 24 Jun 2003 14:47:00 -0000	[thread overview]
Message-ID: <20030624133920.GA27720@nevyn.them.org> (raw)
In-Reply-To: <200306241005.09959.desasterman@gmx.de>

On Tue, Jun 24, 2003 at 10:05:09AM +0200, Bernd Geiser wrote:
> I experienced it is not possible to step into functions of an executable 
> with stabs-debug-info. Only "stepi" seems to help! A little research 
> showed that this test (in gdb/infrun.c) fails:
> 
>     /* If we have line number information for the function we
>          are thinking of stepping into, step into it.
> 
>          If there are several symtabs at that PC (e.g. with include
>          files), just want to know whether any of them have line
>          numbers.  find_pc_line handles this.  */
>       {
>         struct symtab_and_line tmp_sal;
>         tmp_sal = find_pc_line (ecs->stop_func_start, 0);
> ===>    if (tmp_sal.line != 0)
>           {
>             step_into_function (ecs);
>             return;
>           }
>       }
> 
> Consequently this one gets called:
> 
>   step_over_function (ecs);
> 
> which is obviously wrong.
> 
> I use gdb 5.3 and compiled the program with gcc 2.95.3 (both configured for a 
> MIPS-target, but also the ARM-target fails, when compiling with -gstabs). The 
> host is x86.

This is a known bug in GCC 2.95.3.  We added some code to GDB to try to
work around it, and in some cases it works, but the debug info is just
too messed up to get right reliably.

Recommend not using that version :)  3.2 does not seem to suffer from
this problem.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


      reply	other threads:[~2003-06-24 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-24  8:16 Bernd Geiser
2003-06-24 14:47 ` Daniel Jacobowitz [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=20030624133920.GA27720@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=desasterman@gmx.de \
    --cc=gdb@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