From: Simon Posnjak <simon.posnjak@siol.net>
To: gdb@sources.redhat.com
Subject: breakpoints not working in gdbserver
Date: Tue, 13 Aug 2002 15:30:00 -0000 [thread overview]
Message-ID: <1029277842.6335.42.camel@klada.dyndns.org> (raw)
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
On the ia32, I fire up the gdb and do:
[root@klada access]# /usr/local/arm/gdb/bin/arm-gdb access03
GNU gdb 20020813
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=armv4l-unknown-linux"...
(gdb) set solib-absolute-prefix /dev/null
(gdb) set solib-search-path /staff2/4pot/buildroot/build/stage/lib
(gdb) target remote 10.1.0.2:33000
Remote debugging using 10.1.0.2:33000
0x40000d20 in ?? ()
(gdb) list 125
120
121 int exp_enos[]={EFAULT, 0}; /* List must end with 0 */
122
123 char * bad_addr = 0;
124
125 int main(int ac, char **av)
126 {
127 int lc; /* loop counter */
128 char *msg; /* message returned from parse_opts */
129
(gdb) br 127
Breakpoint 1 at 0x8fdc: file access03.c, line 127.
(gdb) c
Continuing.
Program received signal SIGILL, Illegal instruction.
0x40002b38 in _dl_debug_state ()
from /staff2/4pot/buildroot/build/stage/lib/ld-uClibc.so.0
(gdb) bt
#0 0x40002b38 in _dl_debug_state ()
from /staff2/4pot/buildroot/build/stage/lib/ld-uClibc.so.0
#1 0x40001c74 in _dl_parse_copy_information ()
from /staff2/4pot/buildroot/build/stage/lib/ld-uClibc.so.0
(gdb)
The program dies with Illegal instruction - if I run it without
gdbserver it is working fine.
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)?
Regards Simon
--
Simon Posnjak
http://klada.dyndns.org
next reply other threads:[~2002-08-13 22:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-13 15:30 Simon Posnjak [this message]
2002-08-13 15:42 ` Daniel Jacobowitz
2002-08-14 6:09 ` ARM/Linux OSABI problems (was Re: breakpoints not working in gdbserver) Daniel Jacobowitz
2002-08-14 6:58 ` 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=1029277842.6335.42.camel@klada.dyndns.org \
--to=simon.posnjak@siol.net \
--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