GDB: Fix some null pointer dereferences due to disassembler-options patch.
authorPeter Bergner <bergner@vnet.ibm.com>
Tue, 7 Mar 2017 15:49:10 +0000 (09:49 -0600)
committerPeter Bergner <bergner@vnet.ibm.com>
Tue, 7 Mar 2017 15:49:10 +0000 (09:49 -0600)
commitf7bb4e3a0d3738e8cce3dcded6ef12c9949cb85f
tree064700505f6c3b6b01246aa0334996b826863bb4
parente45ced6c5e06b0092ac9f5497aa580cfad0c953c
GDB: Fix some null pointer dereferences due to disassembler-options patch.

gdb/
* gdbarch.sh (pstring_ptr): New static function.
(gdbarch_disassembler_options): Use it.
(gdbarch_verify_disassembler_options): Print valid_disassembler_options,
not valid_disassembler_option->name.
* gdbarch.c: Regenerate.
gdb/ChangeLog
gdb/gdbarch.c
gdb/gdbarch.sh