diff options
Diffstat (limited to 'gdbsupport/errors.h')
-rw-r--r-- | gdbsupport/errors.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdbsupport/errors.h b/gdbsupport/errors.h index 20f9152..a94debf 100644 --- a/gdbsupport/errors.h +++ b/gdbsupport/errors.h @@ -120,6 +120,13 @@ extern void flush_streams (); extern const char *strwinerror (ULONGEST error); +/* Like perror_with_name, but for Windows errors. Throw an exception + including STRING and the system text for the given error + number. */ + +extern void throw_winerror_with_name (const char *string, ULONGEST err) + ATTRIBUTE_NORETURN; + #endif /* USE_WIN32API */ #endif /* COMMON_ERRORS_H */ |