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]

Re: Odd "other" command behavior


Grant,

Please try show "disassembly-flavor" after each "other".

If I am not mistaken, the first two disassembly flavors have similar
register names and differ only at some special register names.

Fernando


Grant Edwards wrote:
> 
> Under arm-elf-gdb (with RDI target) the "other" command doesn't
> do anything the first time it is used:
> 
>    Current language:  auto; currently asm
>    (gdb) info reg
>    a1             0x3ff3010        67055632
>    a2             0x1503032        22032434
>       ...
> 
>    (gdb) other
>    (gdb) info reg
>    a1             0x3ff3010        67055632
>    a2             0x1503032        22032434
>       ...
> 
>    (gdb) other
>    (gdb) info reg
>    r0             0x3ff3010        67055632
>    r1             0x1503032        22032434
>       ...
> 
> I'm not really sure where to look for the problem, and I'm
> wondering if this behavior is specific to ARM or do other
> architectures do the same thing? (I'm assuming it's not a
> target-dependent problem, but I thought it may be
> architecture-dependent.) Though it's a completely harmless bug
> with a simple work-around (just throw an extra "other" in
> .gdbinit), I'd like to fix it.
> 
> --
> Grant Edwards
> grante@visi.com
> 

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@cygnus.com
2323 Yonge Street, Suite #300           Tel:  416-482-2661 ext. 311
Toronto, Ontario   M4P 2C9              Fax:  416-482-6299

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