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

See the CrossGCC FAQ for lots more information.


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

Re: Does GDB suports mixed ARM_code (ARM+Thumb) debugging?


Jens-Christian Lache wrote:

> Hi Joel!
>
> > >
> > > tanks joel brenner
> >
> > There is olso a problem  if  I call MainApp() (C main function), at the end of startup code (call from ARM-code to ARM-code), how described in  /gcc/config/arm/README-interworking; if I use the ASM instructions:
> >
> > ldr       r0, =MainApp
> > mov       lr, pc
> > bx        r0
> >
> > If I do a step at instruction "bx ro"  gdb don't halts the execution at the next instruction.
>
> Did you try "stepi"? You should work with "SRC+ASM" (This works best with the
> latest snapshots from gdb) And then step through all instructions. Of course you
> can set the lr and pc by hand in the "register" window.
>
> Jens-Christian
>
> >
> > tanks brenner joel
> >
> >
> >
>
> --
>
> Jens-Christian Lache
> Technische Universitaet Hamburg-Harburg
> www.tu-harburg.de/~sejl1601
> Mail:
> lache@tu-harburg.de
> lache@ngi.de
> Tel.:
> +0491759610756


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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