From: Kenneth Johansson <kenneth.johansson@etx.ericsson.se>
To: jack.sun@bmrtech.com
Cc: bgat@billgatliff.com,
Linuxppc embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: gdbserver and gdb cross debug?
Date: 18 Nov 2002 09:16:03 +0100 [thread overview]
Message-ID: <1037607363.15662.199.camel@spawn> (raw)
In-Reply-To: <3DD845D7.5C98736B@bmrtech.com>
On Mon, 2002-11-18 at 02:43, sjk wrote:
>
> "William A. Gatliff" wrote:
>
> > Jikun:
> >
> > On Mon, Nov 11, 2002 at 03:39:07PM +0800, sjk wrote:
> > > I am porting Linux on EP405 board. So I use gdbserver and gdb to debug
> > > applications,but only the first
> > > breakpoint could be stopped.Then if i press 'step', the program will
> > > execute to end straightforwardly . Any other breakpoints could not break
> > > the execution.
> >
> > Have you compiled the application in question with optimizations? Gdb
> > isn't so good at debugging optimized code. Compile with -g -O0 if you
> > intend to debug.
>
> I tried to compile hello.c as following:
>
> ppc_405-gcc -g -O0 -o hello hello.c
>
> Then set up the connection of gdbserver and ppc_405-gdb. The program could not
> be debugged step by step either.
> Is it possible that there is bug in ptrace.c or traps.c
>
>
> Thanks a lot
>
> Jikun
I have looked into this some more and could not find any problem on the
kernel side(this is no guarantee that none exist). I also get the same
problem with the gdb version from debian (woody)and a fresh compile of
5.2.
However using the gdb 5.1.1 from ELDK 2.0 makes single step work but it
steps right into functions that have no debugging information and I
think step is supposed to avoid this.
--
Kenneth Johansson
Ericsson AB Tel: +46 8 404 71 83
Borgafjordsgatan 9 Fax: +46 8 404 72 72
164 80 Stockholm kenneth.johansson@etx.ericsson.se
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2002-11-18 8:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200210260458.g9Q4wpq15745@ftp1.mvista.com>
2002-11-04 8:51 ` Why the gdbserver can't debug step by step? sjk
2002-11-11 7:39 ` gdbserver and gdb cross debug? sjk
2002-11-11 7:40 ` Dr. Craig Hollabaugh
2002-11-11 7:57 ` sjk
2002-11-11 13:12 ` Kenneth Johansson
2002-11-11 13:55 ` Andreas Beranek
2002-11-11 14:18 ` Kenneth Johansson
2002-11-11 15:33 ` Wolfgang Denk
2002-11-15 19:48 ` William A. Gatliff
2002-11-18 1:43 ` sjk
2002-11-18 8:16 ` Kenneth Johansson [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=1037607363.15662.199.camel@spawn \
--to=kenneth.johansson@etx.ericsson.se \
--cc=bgat@billgatliff.com \
--cc=jack.sun@bmrtech.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.