This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Add support for PPC Altivec registers in gcore
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."