From 40742ab60acd9f4e347ee28d7087348b8b6c9912 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 31 Jul 2007 22:01:03 +0000 Subject: [PATCH] 2007-07-31 Michael Snyder * event-top.c (command_line_handler): Add pedantic return. --- gdb/ChangeLog | 2 ++ gdb/event-top.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 346f9155e80..cedaf0e64c3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2007-07-31 Michael Snyder + * event-top.c (command_line_handler): Add pedantic return. + * f-valprint.c (info_common_command): Bail out to prevent null pointer deref. Break up a long line. diff --git a/gdb/event-top.c b/gdb/event-top.c index eecff5a0639..b9124ec4580 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -673,6 +673,7 @@ command_line_handler (char *rl) { got_eof = 1; command_handler (0); + return; /* Lint. */ } if (strlen (rl) + 1 + (p - linebuffer) > linelength) { -- 2.30.2