diff options
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 58da62a..13b76f8 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -1198,9 +1198,10 @@ linux_nat_target::attach (const char *args, int from_tty) std::string reason = linux_ptrace_attach_fail_reason (pid); if (!reason.empty ()) - throw_error (ex.error, "warning: %s\n%s", reason.c_str (), ex.message); + throw_error (ex.error, "warning: %s\n%s", reason.c_str (), + ex.what ()); else - throw_error (ex.error, "%s", ex.message); + throw_error (ex.error, "%s", ex.what ()); } END_CATCH |