diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2000-11-14 20:08:55 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2000-11-14 20:08:55 +0000 |
commit | b6b0b32c895842eff432aae033ed437db8af403f (patch) | |
tree | 81706873dd843405719cd0e55ebf48bf5382dcba /opcodes/cris-dis.c | |
parent | 43646c9de25348fe6c0c75591dd0c19e5da63994 (diff) | |
download | gdb-b6b0b32c895842eff432aae033ed437db8af403f.zip gdb-b6b0b32c895842eff432aae033ed437db8af403f.tar.gz gdb-b6b0b32c895842eff432aae033ed437db8af403f.tar.bz2 |
* cris-dis.c (cris_get_disassembler): If abfd is NULL, return
print_insn_cris_with_register_prefix.
Diffstat (limited to 'opcodes/cris-dis.c')
-rw-r--r-- | opcodes/cris-dis.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/opcodes/cris-dis.c b/opcodes/cris-dis.c index 169b4c2..44a4b56 100644 --- a/opcodes/cris-dis.c +++ b/opcodes/cris-dis.c @@ -1387,7 +1387,10 @@ disassembler_ftype cris_get_disassembler (abfd) bfd *abfd; { - if (bfd_get_symbol_leading_char (abfd) == 0) + /* If there's no bfd in sight, we return what is valid as input in all + contexts if fed back to the assembler: disassembly *with* register + prefix. */ + if (abfd == NULL || bfd_get_symbol_leading_char (abfd) == 0) return print_insn_cris_with_register_prefix; return print_insn_cris_without_register_prefix; |