Don't throw exception in dis_asm_memory_error
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / all-architectures.exp.in
index c7615acfdb6a06d30fc9e2a395b4c8c7425da4ea..b07caf5db66d2337ca7945519c4da23fda7ce790 100644 (file)
@@ -152,6 +152,11 @@ proc print_floats {} {
 
 proc do_arch_tests {} {
     print_floats
+
+    # GDB can't access memory because there is no loaded executable
+    # nor live inferior.
+    gdb_test_internal "disassemble 0x0,+4" \
+       "Cannot access memory at address 0x0"
 }
 
 # Given we can't change arch, osabi, endianness, etc. atomically, we
This page took 0.025319 seconds and 4 git commands to generate.