This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/9186] hppa-hpux-tdep.c: attempting to return value from function of type void
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 18 Jan 2009 01:32:06 -0000
- Subject: [Bug build/9186] hppa-hpux-tdep.c: attempting to return value from function of type void
- References: <20060214110801.9186.fxcoudert@gcc.gnu.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pedro at codesourcery dot com 2009-01-18 01:32 -------
Fascinating, the offending code is still there in current mainline:
static void
hppa_hpux_write_pc (struct regcache *regcache, CORE_ADDR pc)
{
ULONGEST flags;
/* If we're currently in a system call also write PC into %r31. */
regcache_cooked_read_unsigned (regcache, HPPA_FLAGS_REGNUM, &flags);
if (flags & HPPA_HPUX_SS_INSYSCALL)
regcache_cooked_write_unsigned (regcache, HPPA_R31_REGNUM, pc | 0x3);
return hppa_write_pc (regcache, pc);
}
I've just checked in this patch to fix it:
http://sourceware.org/ml/gdb-patches/2009-01/msg00405.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=9186
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.