+2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * arch-utils.c (show_architecture): Update formatting of messages.
+
2020-07-12 Simon Marchi <simon.marchi@efficios.com>
* gdbtypes.h (struct type) <bounds>: Handle array and string
struct cmd_list_element *c, const char *value)
{
if (target_architecture_user == NULL)
- fprintf_filtered (file, _("The target architecture is set "
- "automatically (currently %s)\n"),
+ fprintf_filtered (file, _("The target architecture is set to "
+ "\"auto\" (currently \"%s\").\n"),
gdbarch_bfd_arch_info (get_current_arch ())->printable_name);
else
- fprintf_filtered (file, _("The target architecture is assumed to be %s\n"),
+ fprintf_filtered (file, _("The target architecture is set to \"%s\".\n"),
set_architecture_string);
}
+2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.arch/amd64-osabi.exp: Update.
+ * gdb.arch/arm-disassembler-options.exp: Update.
+ * gdb.arch/powerpc-disassembler-options.exp: Update.
+ * gdb.arch/ppc64-symtab-cordic.exp: Update.
+ * gdb.arch/s390-disassembler-options.exp: Update.
+ * gdb.base/all-architectures.exp.tcl: Update.
+ * gdb.base/attach-pie-noexec.exp: Update.
+ * gdb.base/catch-syscall.exp: Update.
+ * gdb.xml/tdesc-arch.exp: Update.
+
2020-07-14 Tom de Vries <tdevries@suse.de>
* gdb.threads/clone-new-thread-event.c (gettid): Rename to ...
proc test_osabi_none { arch void_ptr_size long_double_size } {
clean_restart
- gdb_test "set architecture i386:x86-64" "The target architecture is assumed to be i386:x86-64"
+ gdb_test "set architecture i386:x86-64" "The target architecture is set to \"i386:x86-64\"\\."
gdb_test_no_output "set osabi none" "set osabi none"
gdb_test "print sizeof (void*)" " = 8"
gdb_test "print sizeof (long double)" " = 16"
set arch2 "armv5"
gdb_test "set architecture $arch1" \
- "The target architecture is assumed to be $arch1" \
+ "The target architecture is set to \"$arch1\"" \
"set architecture $arch1"
gdb_test_no_output "set disassembler-options"
# Change architectures and verify the disassembler options have been preserved.
gdb_test "set architecture $arch2" \
- "The target architecture is assumed to be $arch2" \
+ "The target architecture is set to \"$arch2\"" \
"set architecture $arch2"
gdb_test "show disassembler-options" \
set arch2 "powerpc:common64"
gdb_test "set architecture $arch1" \
- "The target architecture is assumed to be $arch1" \
+ "The target architecture is set to \"$arch1\"" \
"set architecture $arch1"
gdb_test_no_output "set disassembler-options"
# Change architectures and verify the disassembler options have been preserved.
gdb_test "set architecture $arch2" \
- "The target architecture is assumed to be $arch2" \
+ "The target architecture is set to \"$arch2\"" \
"set architecture $arch2"
gdb_test "show disassembler-options" \
set test "show architecture"
gdb_test_multiple $test $test {
- -re "\r\nThe target architecture is set automatically \\(currently powerpc:common64\\)\r\n$gdb_prompt $" {
+ -re "\r\nThe target architecture is set to \"auto\" \\(currently \"powerpc:common64\"\\)\r\n$gdb_prompt $" {
pass $test
}
- -re "\r\nThe target architecture is set automatically \\(currently .*\\)\r\n$gdb_prompt $" {
+ -re "\r\nThe target architecture is set to \"auto\" \\(currently \".*\"\\)\r\n$gdb_prompt $" {
untested "powerpc:common64 is not supported"
}
}
set arch2 "s390:31-bit"
gdb_test "set architecture $arch1" \
- "The target architecture is assumed to be $arch1" \
+ "The target architecture is set to \"$arch1\"" \
"set architecture $arch1"
gdb_test_no_output "set disassembler-options"
# Change architectures and verify the disassembler options have been preserved.
gdb_test "set architecture $arch2" \
- "The target architecture is assumed to be $arch2" \
+ "The target architecture is set to \"$arch2\"" \
"set architecture $arch2"
gdb_test "show disassembler-options" \
set arch_re [string_to_regexp $arch]
set test "set architecture $arch"
gdb_test_multiple $test $test {
- -re "^set architecture $arch_re\r\n(${osabi_warning})?The target architecture is assumed to be $arch_re\r\n$gdb_prompt $" {
+ -re "^set architecture $arch_re\r\n(${osabi_warning})?The target architecture is set to \"$arch_re\"\\.\r\n$gdb_prompt $" {
internal_pass $test
}
-re "Architecture .* not recognized.*$gdb_prompt $" {
set arch ""
set test "show architecture"
gdb_test_multiple $test $test {
- -re "The target architecture is set automatically \\(currently (.*)\\)\r\n$gdb_prompt $" {
+ -re "The target architecture is set to \"auto\" \\(currently \"(.*)\"\\)\\.\r\n$gdb_prompt $" {
set arch $expect_out(1,string)
pass $test
}
gdb_start
file delete -- $binfile
gdb_test "attach $testpid" "Attaching to process $testpid\r\n.*" "attach"
-gdb_test "set architecture $arch" "The target architecture is assumed to be $arch"
+gdb_test "set architecture $arch" "The target architecture is set to \"$arch\"\\."
gdb_test "info shared" "From\[ \t\]+To\[ \t\]+Syms Read\[ \t\]+Shared Object Library\r\n0x.*"
kill_wait_spawned_process $test_spawn_id
gdb_start
gdb_test "set architecture $arch1" \
- "The target architecture is assumed to be $arch1"
+ "The target architecture is set to \"$arch1\"\\."
gdb_test "catch syscall $syscall_number" \
"Catchpoint $decimal \\(syscall .${syscall1_name}. \\\[${syscall_number}\\\]\\)" \
"insert catch syscall on syscall $syscall_number -- $syscall1_name on $arch1"
gdb_test "set architecture $arch2" \
- "The target architecture is assumed to be $arch2"
+ "The target architecture is set to \"$arch2\"\\."
gdb_test "catch syscall $syscall_number" \
"Catchpoint $decimal \\(syscall .${syscall2_name}. \\\[${syscall_number}\\\]\\)" \
set default_arch ""
set msg "read default architecture"
gdb_test_multiple "show architecture" $msg {
- -re "The target architecture is set automatically \\(currently (\[^ \]*)\\)\r\n$gdb_prompt $" {
+ -re "The target architecture is set to \"auto\" \\(currently \"(\[^ \]*)\"\\)\\.\r\n$gdb_prompt $" {
set default_arch $expect_out(1,string)
pass $msg
}
set cmd "show architecture"
gdb_test $cmd \
- "The target architecture is set automatically \\(currently $arch\\)" \
+ "The target architecture is set to \"auto\" \\(currently \"$arch\"\\)\\." \
"$cmd ($which architecture)"
remote_file host delete $filename
set cmd "show architecture"
gdb_test $cmd \
- "The target architecture is set automatically \\(currently $default_arch\\)" \
+ "The target architecture is set to \"auto\" \\(currently \"$default_arch\"\\)\\." \
"$cmd (invalid architecture)"
remote_file host delete $filename