aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-02-08 16:31:57 +0000
committerDaniel Jacobowitz <drow@false.org>2007-02-08 16:31:57 +0000
commit8944021f76f1f5612bbfc7ebf8502b3f9b5fb203 (patch)
tree381d16614118ad535a3b1cdcd404c9f229e92ecc
parent5f960e007db0868b854c3b796d665d816f89a9b8 (diff)
downloadgdb-8944021f76f1f5612bbfc7ebf8502b3f9b5fb203.zip
gdb-8944021f76f1f5612bbfc7ebf8502b3f9b5fb203.tar.gz
gdb-8944021f76f1f5612bbfc7ebf8502b3f9b5fb203.tar.bz2
Reported by timeless@gmail.com:
* gdb/target.c (target_flash_erase): Do not return void value. (target_flash_done): Likewise. * gdb/cli/cli-cmds.c (source_command): Likewise. Reported by timeless@gmail.com: * wrapper.c (sim_target_parse_arg_array): Do not return void value.
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/cli/cli-cmds.c2
-rw-r--r--gdb/target.c6
-rw-r--r--sim/arm/ChangeLog5
-rw-r--r--sim/arm/wrapper.c2
5 files changed, 19 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 51f64d9..224e89a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,11 @@
-2008-02-08 Fred Fish <fnf@specifix.com>
+2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
+
+ Reported by timeless@gmail.com:
+ * gdb/target.c (target_flash_erase): Do not return void value.
+ (target_flash_done): Likewise.
+ * gdb/cli/cli-cmds.c (source_command): Likewise.
+
+2007-02-08 Fred Fish <fnf@specifix.com>
* event-top.c (handle_sigint): Set quit_flag.
(async_request_quit): Don't set quit_flag. Avoid calling quit()
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index e26a916..a9a8c9a 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -514,7 +514,7 @@ source_command (char *args, int from_tty)
}
}
- return source_script (file, from_tty);
+ source_script (file, from_tty);
}
diff --git a/gdb/target.c b/gdb/target.c
index caa2279..f9d6064 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -1252,7 +1252,8 @@ target_flash_erase (ULONGEST address, LONGEST length)
if (targetdebug)
fprintf_unfiltered (gdb_stdlog, "target_flash_erase (%s, %s)\n",
paddr (address), phex (length, 0));
- return t->to_flash_erase (t, address, length);
+ t->to_flash_erase (t, address, length);
+ return;
}
tcomplain ();
@@ -1268,7 +1269,8 @@ target_flash_done (void)
{
if (targetdebug)
fprintf_unfiltered (gdb_stdlog, "target_flash_done\n");
- return t->to_flash_done (t);
+ t->to_flash_done (t);
+ return;
}
tcomplain ();
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index bdf96bd..1432926 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
+
+ Reported by timeless@gmail.com:
+ * wrapper.c (sim_target_parse_arg_array): Do not return void value.
+
2006-12-21 Hans-Peter Nilsson <hp@axis.com>
* acconfig.h: Remove.
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c
index 5416fc4..810b649 100644
--- a/sim/arm/wrapper.c
+++ b/sim/arm/wrapper.c
@@ -770,7 +770,7 @@ sim_target_parse_arg_array (argv)
for (i = 0; argv[i]; i++)
;
- return (void) sim_target_parse_command_line (i, argv);
+ sim_target_parse_command_line (i, argv);
}
void