This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdbserver on ixp1200


On Sat, Dec 07, 2002 at 08:29:14PM -0500, Chris Gniady wrote:
> Hello,
> I have searched all over the web and did not find a clear answer. I am 
> trying to run gdbserver on ixp1200. It is SA1100 with linux 2.3.99. I 
> have compiled the gdb 5.2.1 and gdbserver from this distribution. Here 
> is what happens:
> 1) FOR GDB configured as "--host=i686-pc-linux-gnu --target=arm-linux"
>   I when i execute a breakpoint the instruction is simply skipped. My 
> code is
> 
>    while(1);
>    prinf("done\n");
> 
> When I set breakpoint at while(1) the printf gets executed. so it is skipped
> I am also not able to single step.
> 
> 2) FOR GDB configured as "--host=i686-pc-linux-gnu --target=arm-elf"
> I am able to single step but when I set a breakpoint I get on host:
> 
> > Program received signal SIGILL, Illegal instruction.
> > 0x02001590 in main (argc=1, argv=0xbffffdc4) at tmmain.c:82
> > 82              while(1)
> 
> AND on remote:
> > Treadmartm (280): undefined instruction: pc=02001590
> 
> Can anyone help me with correct configuration or patches, to handle 
> breakpoints in this configuration.

For 1), I can't tell you anything offhand but it sounds similar to a
bug fixed recently (2002-11-17 in CVS).  If it was the same as the
binary you sent me then it's some new problem, I don't know what.
I've attached the patch for the first problem for you to try if you
want.

In the session you sent me, the breakpoint on the while loop was
skipped because the breakpoint went on the beginning of the while loop,
and the loop was already running when you sent it.

Beyond that, you are configured for "arm-linux".  "arm-linux" is a
little-endian configuration.  The binary you sent me was elf32-bigarm,
I.E. you're using a big-endian strongarm.  GDB doesn't support that.
I have patches for this but I haven't gotten around to submitting them
yet.... the patch you should need is attached, and then configure for
armeb-linux (I think).

Give 'em a try.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

Attachment: gdb-5.2-arm-gdbserver.patch
Description: Text document

Attachment: gdb-5.2-arm-be.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]