diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-12-13 23:28:46 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-12-13 23:28:46 +0000 |
commit | aaa3c096db1beebb67015bc8711cf908f7f2559b (patch) | |
tree | 995a38e75405d3096a58908fdff890b60d6604bc /gdb/remote-sim.c | |
parent | f14397f057f762839f030ff08d49f76e7e3117ca (diff) | |
download | gdb-aaa3c096db1beebb67015bc8711cf908f7f2559b.zip gdb-aaa3c096db1beebb67015bc8711cf908f7f2559b.tar.gz gdb-aaa3c096db1beebb67015bc8711cf908f7f2559b.tar.bz2 |
CARP:
Re-do TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN, TARGET_ARCHITECTURE,
TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_SELECTABLE_P,
TARGET_BYTE_ORDER so that they can all be overriden.
Document.
Convert mn10300 and PPC targets.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index aaa2252..0c80544 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -528,8 +528,8 @@ gdbsim_open (args, from_tty) strcpy (arg_buf, "gdbsim"); /* 7 */ /* Specify the byte order for the target when it is both selectable and explicitly specified by the user (not auto detected). */ -#ifdef TARGET_BYTE_ORDER_SELECTABLE - if (!target_byte_order_auto) + if (TARGET_BYTE_ORDER_SELECTABLE_P + && !TARGET_BYTE_ORDER_AUTO) { switch (TARGET_BYTE_ORDER) { @@ -543,13 +543,12 @@ gdbsim_open (args, from_tty) fatal ("Value of TARGET_BYTE_ORDER unknown"); } } -#endif /* Specify the architecture of the target when it has been explicitly specified */ - if (!target_architecture_auto) + if (!TARGET_ARCHITECTURE_AUTO) { strcat (arg_buf, " --architecture="); - strcat (arg_buf, target_architecture->printable_name); + strcat (arg_buf, TARGET_ARCHITECTURE->printable_name); } /* finally, any explicit args */ if (args) |