* [PATCH] Fix throw_exception call in gdbtk_source_start_file
@ 2005-02-25 22:29 Keith Seitz
0 siblings, 0 replies; only message in thread
From: Keith Seitz @ 2005-02-25 22:29 UTC (permalink / raw)
To: insight
[-- Attachment #1: Type: text/plain, Size: 288 bytes --]
Hi,
I've committed the attached patch which should fix the cygwin build
problem in gdbtk.c.
Keith
ChangeLog
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).
[-- Attachment #2: throw_exception.patch --]
[-- Type: text/x-patch, Size: 1013 bytes --]
Index: generic/gdbtk.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v
retrieving revision 1.40
diff -u -p -r1.40 gdbtk.c
--- generic/gdbtk.c 22 Apr 2004 16:51:43 -0000 1.40
+++ generic/gdbtk.c 25 Feb 2005 22:20:43 -0000
@@ -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? */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-25 22:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-25 22:29 [PATCH] Fix throw_exception call in gdbtk_source_start_file Keith Seitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).