summaryrefslogtreecommitdiff
path: root/gdb/gdbtk
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2005-02-25 22:23:25 +0000
committerKeith Seitz <keiths@redhat.com>2005-02-25 22:23:25 +0000
commit53f62fad540f397b9afba40d437acd4fe76170c8 (patch)
treef55f66365e58903835d0e96e0bab59805210acfe /gdb/gdbtk
parent194aebac475b1e0472fd7b47e15cd27c5f078054 (diff)
downloadgdb-53f62fad540f397b9afba40d437acd4fe76170c8.tar.gz
* generic/gdbtk.c (gdbtk_source_start_file): In the _WIN32 case,
use throw_exception (struct exception).
Diffstat (limited to 'gdb/gdbtk')
-rw-r--r--gdb/gdbtk/ChangeLog5
-rw-r--r--gdb/gdbtk/generic/gdbtk.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog
index 85e0bffd5e5..8b1d3940bd4 100644
--- a/gdb/gdbtk/ChangeLog
+++ b/gdb/gdbtk/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-25 Keith Seitz <kseitz@sources.redhat.com>
+
+ * generic/gdbtk.c (gdbtk_source_start_file): In the _WIN32 case,
+ use throw_exception (struct exception).
+
2005-02-16 Martin Hunt <hunt@redhat.com>
* generic/gdbtk-stack.c (get_frame_name): Replace
diff --git a/gdb/gdbtk/generic/gdbtk.c b/gdb/gdbtk/generic/gdbtk.c
index 1677d37f4a7..8324f74c6bd 100644
--- a/gdb/gdbtk/generic/gdbtk.c
+++ b/gdb/gdbtk/generic/gdbtk.c
@@ -31,6 +31,7 @@
#include "version.h"
#include "top.h"
#include "annotate.h"
+#include "exceptions.h"
#if defined(_WIN32) || defined(__CYGWIN__)
#define WIN32_LEAN_AND_MEAN
@@ -633,7 +634,13 @@ gdbtk_find_main";
If GDB wasn't started from the DOS prompt, the user won't
get to see the failure reason. */
MessageBox (NULL, msg, NULL, MB_OK | MB_ICONERROR | MB_TASKMODAL);
- throw_exception (RETURN_ERROR);
+ {
+ struct exception e;
+ e.reason = RETURN_ERROR;
+ e.error = GENERIC_ERROR;
+ e.message = msg;
+ throw_exception (e);
+ }
#else
/* FIXME: cagney/2002-04-17: Wonder what the lifetime of
``msg'' is - does it need a cleanup? */