This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Odd "other" command behavior
- To: Grant Edwards <grante at visi dot com>
- Subject: Re: Odd "other" command behavior
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Thu, 14 Sep 2000 14:59:57 +0000
- CC: gdb at sources dot redhat dot com
- Organization: Red Hat Canada Ltd. - Toronto
- References: <20000914094452.A32444@visi.com>
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