From: himanshu sardana <er.sardana@gmail.com>
To: gdb@sourceware.org
Subject: "Program received signal SIGILL, Illegal instruction" on putting breakpoint while using gdb-gdbserver for remote debugging
Date: Tue, 09 Nov 2010 10:16:00 -0000 [thread overview]
Message-ID: <AANLkTikgh0sn_82z08tEy1OkgMMUmz_gg295Z1cGnKzj@mail.gmail.com> (raw)
I am trying to remote debug an application which resides in an Intel
x86 system. I am using gdbserver on the target machine and gdb on the
host machine which is Intel x86 as well.
The application is a single threaded application. The code was
compiled using gcc with '-g' switch to enable debugging.
gcc -g -o main_app main_app.c
I am facing problems if I put any breakpoint once the debug session is
running and connected with the remote machine. Following steps were
done to start debugging:
=====================================================
$> gdb ./main_app
(gdb) target remote 192.168.202.156:2108
Remote debugging using 192.168.202.156:2108
0xfc140020 in ?? ()
(gdb)
=====================================================
After these steps if I simply 'continue' the program, the program
executes fine and then terminates properly. But, If I put a breakpoint
and then continue execution I get the following problem:
Program received signal SIGILL, Illegal instruction.
0x52034000 in ?? ()
What may be the problem due to which I get the above error.
Also, when I execute "target remote 192.168.202.156:2108", I get
QUESTION MARKS (??) alone with the address info i.e. "0xfc140020 in ??
()". I am suspecting that I should get the application name i.e.
"main_app" instead of '??'. I am not sure on this but I tried
remote-debugging using a similar setup long time back and I have a
slight memory that there was application name instead of '??'. But,
again, I am not very sure of that.
Also I tried an another command in gdb which was
(gdb) add-symbol-file main_app 0xfc140020
This asks me to Enter 'y' to read symbol file and it shows no error on
reading but still I get same problem.
Any suggestions will be highly appreciable.
Thanks,
Himanshu
next reply other threads:[~2010-11-09 10:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-09 10:16 himanshu sardana [this message]
[not found] ` <AANLkTinidt3VYvJdnZ1JppuNAoJeLZkHDH8K763hoj4v@mail.gmail.com>
2010-11-10 6:51 ` karthikeyan.s
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=AANLkTikgh0sn_82z08tEy1OkgMMUmz_gg295Z1cGnKzj@mail.gmail.com \
--to=er.sardana@gmail.com \
--cc=gdb@sourceware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox