Files
binutils-gdb/opcodes
Andrew Burgess a9e3b91950 opcodes/csky: return the default disassembler when there is no bfd
The disassembler function should return a valid disassembler function
even when there is no BFD present.  This is implied (I believe) by the
comment in dis-asm.h which says the BFD may be NULL.  Further, it
makes sense when considering that the disassembler is used in GDB, and
GDB may connect to a target and perform debugging even without a BFD
being supplied.

This commit makes the csky_get_disassembler function return the
default disassembler configuration when no bfd is supplied, this is
the same default configuration as is used when a BFD is supplied, but
the BFD has no attributes section.

Before the change configuring GDB with --enable-targets=all and
running the tests gdb.base/all-architectures-2.exp results in many
errors, but after this change there are no failures.

opcodes/ChangeLog:

	* csky-dis.c (csky_get_disassembler): Don't return NULL when there
	is no BFD.
2020-10-22 17:11:34 +02:00
..
2020-02-26 10:37:25 +10:30
2020-02-26 10:37:25 +10:30
2020-07-07 16:01:48 +03:00
2020-07-07 16:01:48 +03:00
2020-06-29 10:07:56 +09:30
2020-08-26 15:39:00 +02:00
2020-08-26 15:39:00 +02:00
2020-09-02 16:30:44 +09:30
2020-08-26 15:39:00 +02:00
2020-08-26 15:39:00 +02:00
2020-06-05 16:22:46 +09:30
2020-09-02 16:30:44 +09:30
2019-01-01 21:25:40 +10:30
2020-01-01 18:12:08 +10:30
2020-06-29 10:07:56 +09:30
2020-09-02 16:30:44 +09:30
2020-09-02 16:30:44 +09:30
2020-09-02 16:30:44 +09:30
2020-06-29 10:07:56 +09:30
2020-07-14 10:42:33 +02:00
2020-07-14 10:42:33 +02:00
2020-09-02 16:30:44 +09:30
2020-07-30 16:13:17 -07:00
2020-07-30 16:13:17 -07:00
2020-07-30 16:13:17 -07:00
2020-09-02 16:30:44 +09:30
2020-09-02 16:30:44 +09:30
2020-09-02 16:30:44 +09:30
2020-09-02 16:30:44 +09:30
2020-09-02 16:30:44 +09:30
2020-01-10 17:32:33 +10:30
2020-01-10 17:32:33 +10:30
2020-09-02 16:30:44 +09:30
2020-03-20 12:35:51 +10:30
2020-06-29 10:07:56 +09:30
2020-09-02 16:30:44 +09:30
2020-02-26 10:37:25 +10:30
2020-02-26 10:37:25 +10:30
2020-05-28 22:08:42 +09:30
2020-01-17 12:34:03 -06:00
2020-09-02 16:30:44 +09:30
2020-03-22 23:20:15 +10:30
2020-06-29 10:07:56 +09:30
2020-01-13 12:12:41 +10:30
2020-01-13 12:12:41 +10:30
2020-06-29 10:07:56 +09:30
2020-02-26 10:37:25 +10:30
2020-09-02 16:30:44 +09:30
2020-06-29 10:07:56 +09:30
2020-09-02 16:30:44 +09:30