[Bug 210798] devel/gdb: compile-loc2c.c's do_compile_dwarf_expr_to_c( . . . ) uses uoffset += . . . with uoffset uninitialized as of -r417989
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jul 3 20:06:06 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210798
--- Comment #1 from Mark Millard <markmi at dsl-only.net> ---
(In reply to Mark Millard from comment #0)
Another compiler-reported uninitialized value use follows.
/usr/obj/portswork/usr/ports/devel/gdb/work/gdb-7.11.1/gdb/rs6000-tdep.c (note
ra initialzxiation status):
static int
ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache,
CORE_ADDR addr, uint32_t insn)
{
. . .
ULONGEST rb, ra, xer;
. . .
switch (ext & 0x1ff)
{
. . .
case 1014: /* Data Cache Block set to Zero */
. . .
if (PPC_RA (insn) != 0)
regcache_raw_read_unsigned (regcache,
tdep->ppc_gp0_regnum + PPC_RA (insn), &ra);
. . .
ea = (ra + rb) & ~((ULONGEST) (at_dcsz - 1));
record_full_arch_list_add_mem (ea, at_dcsz);
. . .
That last "ra" is always used in case 1014 but was not potentially initialized
unless the shown regcache_raw_read_unsigned call was made.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list