vterminate.cc (__verbose_terminate_handler): Send diagnostics to stderr.

* src/vterminate.cc (__verbose_terminate_handler): Send
        diagnostics to stderr.

From-SVN: r60254
This commit is contained in:
Jason Merrill 2002-12-18 11:31:35 -05:00 committed by Jason Merrill
parent 80d83b160f
commit fc88355291
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-12-18 Jason Merrill <jason@redhat.com>
* src/vterminate.cc (__verbose_terminate_handler): Send
diagnostics to stderr.
2002-12-18 Ulrich Weigand <uweigand@de.ibm.com>
* configure.in: Define with_target_subdir and with_build_subdir

View File

@ -55,11 +55,10 @@ namespace __gnu_cxx
int status = -1;
char *dem = 0;
// Disabled until __cxa_demangle gets the runtime GPL exception.
dem = __cxa_demangle(name, 0, 0, &status);
printf("terminate called after throwing a `%s'\n",
status == 0 ? dem : name);
fprintf(stderr, "terminate called after throwing a `%s'\n",
status == 0 ? dem : name);
if (status == 0)
free(dem);