aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorgdb-3.4 <gdb@fsf.org>1989-11-05 21:02:37 +0000
committerPedro Alves <palves@redhat.com>2012-06-03 15:36:32 +0100
commit1c997a4ae86938343edb715efc3fc742c5f668fe (patch)
tree9e3c70728a3987732436b7fa4b4cfef433a0669a /gdb/utils.c
parent4187119d59afd156703cfcbc6be287c5085f1867 (diff)
downloadgdb-1c997a4ae86938343edb715efc3fc742c5f668fe.zip
gdb-1c997a4ae86938343edb715efc3fc742c5f668fe.tar.gz
gdb-1c997a4ae86938343edb715efc3fc742c5f668fe.tar.bz2
gdb-3.4
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 8eb3c68..18e0fe8 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -287,7 +287,9 @@ fatal_dump_core (string, arg)
char *string;
int arg;
{
- fprintf (stderr, "gdb: ");
+ /* "internal error" is always correct, since GDB should never dump
+ core, no matter what the input. */
+ fprintf (stderr, "gdb internal error: ");
fprintf (stderr, string, arg);
fprintf (stderr, "\n");
signal (SIGQUIT, SIG_DFL);
@@ -698,7 +700,7 @@ fprintf_filtered (stream, format, arg1, arg2, arg3, arg4, arg5, arg6)
/* This won't blow up if the restrictions described above are
followed. */
- (void) sprintf (linebuffer, format, arg1, arg2, arg3);
+ (void) sprintf (linebuffer, format, arg1, arg2, arg3, arg4, arg5, arg6);
fputs_filtered (linebuffer, stream);
}