aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-04-23 18:49:20 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-04-23 18:49:20 +0000
commit465f42bbe4d77444c30a9ffea8faebb794c2596f (patch)
tree62ff68a3124d26d550568d6abb46fea60d05c84e /gdb/stack.c
parent5c1e86e191af9a0827b274de97653737dbf5139e (diff)
downloadgdb-465f42bbe4d77444c30a9ffea8faebb794c2596f.zip
gdb-465f42bbe4d77444c30a9ffea8faebb794c2596f.tar.gz
gdb-465f42bbe4d77444c30a9ffea8faebb794c2596f.tar.bz2
* stack.c (do_gdb_disassembly): Print the exception message if an
error was thrown while trying to perform the disassembly.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index f7bb81e..868111a 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -507,6 +507,10 @@ do_gdb_disassembly (int how_many, CORE_ADDR low, CORE_ADDR high)
{
gdb_disassembly_stub (&args);
}
+ /* If an exception was thrown while doing the disassembly, print
+ the error message, to give the user a clue of what happened. */
+ if (exception.reason == RETURN_ERROR)
+ exception_print (gdb_stderr, exception);
}
/* Print information about frame FRAME. The output is format according