Re: [RFC] Add support for PPC Altivec registers in gcore

Andreas Schwab
2008-03-27T09:00:27Z

Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> writes:

> @@ -694,6 +698,9 @@ gdbarch_dump (struct gdbarch *gdbarch, s
> "gdbarch_dump: core_read_description = <0x%lx>\n",
> (long) gdbarch->core_read_description);
> fprintf_unfiltered (file,
> + "gdbarch_dump: core_regset_sections = %s\n",
> + (char *) '0');

That doesn't make any sense, (char *) '0' is not a valid pointer, let
alone a string. This will crash.

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃŸe 5, 90409 NÃ¼rnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."