projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GDB: Add support for the new set/show disassembler-options commands.
[deliverable/binutils-gdb.git]
/
gdb
/
s390-linux-tdep.c
diff --git
a/gdb/s390-linux-tdep.c
b/gdb/s390-linux-tdep.c
index febdd14aa380b55bf681bc0ffe88b98096b48040..abc9438cd710b71bf515b4c6a5bdfcd5606170fe 100644
(file)
--- a/
gdb/s390-linux-tdep.c
+++ b/
gdb/s390-linux-tdep.c
@@
-79,6
+79,9
@@
#define XML_SYSCALL_FILENAME_S390 "syscalls/s390-linux.xml"
#define XML_SYSCALL_FILENAME_S390X "syscalls/s390x-linux.xml"
#define XML_SYSCALL_FILENAME_S390 "syscalls/s390-linux.xml"
#define XML_SYSCALL_FILENAME_S390X "syscalls/s390x-linux.xml"
+/* Holds the current set of options to be passed to the disassembler. */
+static char *s390_disassembler_options;
+
enum s390_abi_kind
{
ABI_LINUX_S390,
enum s390_abi_kind
{
ABI_LINUX_S390,
@@
-8113,6
+8116,10
@@
s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
s390_init_linux_record_tdep (&s390_linux_record_tdep, ABI_LINUX_S390);
s390_init_linux_record_tdep (&s390x_linux_record_tdep, ABI_LINUX_ZSERIES);
s390_init_linux_record_tdep (&s390_linux_record_tdep, ABI_LINUX_S390);
s390_init_linux_record_tdep (&s390x_linux_record_tdep, ABI_LINUX_ZSERIES);
+ set_gdbarch_disassembler_options (gdbarch, &s390_disassembler_options);
+ set_gdbarch_valid_disassembler_options (gdbarch,
+ disassembler_options_s390 ());
+
return gdbarch;
}
return gdbarch;
}
This page took
0.048906 seconds
and
4
git commands to generate.