This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB 5.2 undefined instruction problem on arm9
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Eero Tamminen <oak at welho dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Sun, 2 Jun 2002 12:51:12 -0400
- Subject: Re: GDB 5.2 undefined instruction problem on arm9
- References: <200206021202.g52C2WA00692@posti.pp.htv.fi>
On Sun, Jun 02, 2002 at 03:15:28PM +0300, Eero Tamminen wrote:
> Hi,
>
> I'm trying to cross-compile gdb 5.2 (released version, not CVS) for arm.
>
> Compilation succeeds and gdb works on the arm (it runs and can display
> it's help, load program etc), but when I try to debug programs with it,
> the debugged program will stop between '_start' and 'main' with SIGILL
> and gdb says "undefined instruction". When I run the program
> _without_ gdb, the program works OK.
>
> This is my first try at trying to compile gdb myself, so I'm wondering
> whether the problem is in how I've configured gdb, my cross-compilation
> environment, gdb arm support, kernel debugging (ptrace?) support
> or what.
>
> Arm version is arm9, I'm configuring gdb with '--target=arm
> --host=arm" and I'm using a cross-compiled glibc with which I link
> gdb statically (using the -static linker flag). Cross-compiler is
> gcc 2.95.3.
The problem is how you configured gdb. Use --target=arm-linux instead;
Linux and hardware monitors signal breakpoints in different ways.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer