From: Daniel Jacobowitz <drow@mvista.com>
To: Simon Posnjak <simon.posnjak@siol.net>
Cc: gdb@sources.redhat.com
Subject: ARM/Linux OSABI problems (was Re: breakpoints not working in gdbserver)
Date: Wed, 14 Aug 2002 06:09:00 -0000 [thread overview]
Message-ID: <20020814131001.GA32550@nevyn.them.org> (raw)
In-Reply-To: <1029277842.6335.42.camel@klada.dyndns.org>
On Wed, Aug 14, 2002 at 12:30:42AM +0200, Simon Posnjak wrote:
> Hi all,
>
> I'm trying out a cross-debuger for arm/ia32 development. I have build
> gdb for arm that runs on ia32 (./configure --host=i686-pc-linux-gnu
> --target=armv4l-unknown-linux --prefix=/usr/local/arm/
> --exec-prefix=/usr/local/arm/ --program-prefix=arm-)
> and gdbserver for arm (sh configure --target=armv4l-unknown-linux).
>
> Then I strip the gdbserver and uploade it to the arm based bord and
> run(access03 is the program I'm trying to debug):
>
> # ./gdbserver host:33000 ./access03
> Process ./access03 created; pid = 170
...
The interesting line in the debug output Simon sent me is:
getpkt ("M40002b34,4:fedeffe7"); [sending ack]
That's not an arm-linux breakpoint, it's an ARM breakpoint. That's why
it isn't working.
Simon, you need to debug the host GDB (particularly
gdbarch_lookup_osabi) and try to establish why it is not selecting the
Linux ABI.
> I'm using a home-made linux system:
> kernel 2.4.18
> uClibc 0.9.14
> gcc-2.95.3
>
> Is this maybe a problem with uclibc... or is this problem of
> gdb(server)?
... wait! I know what's wrong. Does uClibc provide a .note.ABI-tag
section, like glibc does? If not, that needs to be corrected, or GDB
needs to find some other way to recognize uClibc binaries.
(I should also test kernel debugging using an arm-linux GDB at some
point. It used to work, which means that kgdb also expects the linux
ABI breakpoint, but the kernel certainly doesn't (and shouldn't) have
a .note.ABI-tag marking indicating it is a Linux userland binary.)
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2002-08-14 13:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-13 15:30 breakpoints not working in gdbserver Simon Posnjak
2002-08-13 15:42 ` Daniel Jacobowitz
2002-08-14 6:09 ` Daniel Jacobowitz [this message]
2002-08-14 6:58 ` ARM/Linux OSABI problems (was Re: breakpoints not working in gdbserver) William A. Gatliff
2002-08-14 21:33 ` Andrew Cagney
2002-08-15 1:09 ` Simon Posnjak
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=20020814131001.GA32550@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=simon.posnjak@siol.net \
/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