aboutsummaryrefslogtreecommitdiff
path: root/opcodes/ChangeLog
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-09-16 10:12:39 +0100
committerLifang Xia <xlf194833_xia@alibaba-inc.com>2020-09-17 14:52:05 +0800
commitc568ac5ff708eebf6ef424e5863d3dbd874a3f62 (patch)
tree160bb166250bfb409f8a9481e5d55cedbd92490f /opcodes/ChangeLog
parentc2f876e11e5c9cc818a852bd79452ffdc80bc161 (diff)
downloadgdb-c568ac5ff708eebf6ef424e5863d3dbd874a3f62.zip
gdb-c568ac5ff708eebf6ef424e5863d3dbd874a3f62.tar.gz
gdb-c568ac5ff708eebf6ef424e5863d3dbd874a3f62.tar.bz2
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.
Diffstat (limited to 'opcodes/ChangeLog')
-rw-r--r--opcodes/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 532dde4..6243511 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * csky-dis.c (csky_get_disassembler): Don't return NULL when there
+ is no BFD.
+
2020-09-16 Alan Modra <amodra@gmail.com>
* ppc-dis.c (ppc_symbol_is_valid): Adjust elf_symbol_from invocation.