This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Don't return a value when a void fn
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 12 Jan 2004 15:32:54 -0500
- Subject: [ob] Don't return a value when a void fn
Just FYI,
(now I remember, this is a GCC "feature")
committed,
Andrew
2004-01-12 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_pseudo_register_read): Don't return a value,
the function is void.
(mips_pseudo_register_write): Ditto.
Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.269
diff -u -r1.269 mips-tdep.c
--- mips-tdep.c 9 Jan 2004 00:09:53 -0000 1.269
+++ mips-tdep.c 12 Jan 2004 19:46:18 -0000
@@ -556,7 +556,7 @@
int rawnum = cookednum % NUM_REGS;
gdb_assert (cookednum >= NUM_REGS && cookednum < 2 * NUM_REGS);
if (register_size (gdbarch, rawnum) == register_size (gdbarch, cookednum))
- return regcache_raw_read (regcache, rawnum, buf);
+ regcache_raw_read (regcache, rawnum, buf);
else if (register_size (gdbarch, rawnum) > register_size (gdbarch, cookednum))
{
if (gdbarch_tdep (gdbarch)->mips64_transfers_32bit_regs_p
@@ -576,7 +576,7 @@
int rawnum = cookednum % NUM_REGS;
gdb_assert (cookednum >= NUM_REGS && cookednum < 2 * NUM_REGS);
if (register_size (gdbarch, rawnum) == register_size (gdbarch, cookednum))
- return regcache_raw_write (regcache, rawnum, buf);
+ regcache_raw_write (regcache, rawnum, buf);
else if (register_size (gdbarch, rawnum) > register_size (gdbarch, cookednum))
{
if (gdbarch_tdep (gdbarch)->mips64_transfers_32bit_regs_p