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
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: cseo at linux dot vnet dot ibm dot com (Carlos Eduardo Seo)
- Cc: gdb-patches at sourceware dot org (GDB Patches Mailing List)
- Date: Wed, 5 Mar 2008 19:26:59 +0100 (CET)
- Subject: Re: [RFC] Add support for PPC Altivec registers in gcore
Carlos Eduardo Seo wrote:
> Ulrich Weigand wrote:
> >
> > You should either use some routine that formats the (host) pointer
> > properly (similar to gdb_print_host_address) or else maybe just
> > disable debug output for this field.
>
> How do I disable printing? I think you said previously that '0' would
> disable it, but that didn't work.
Well, '0' (should really be something like (char *)0) will not
*disable* debug output, strictly speaking, but the output will
simply always be <nil>, which should be fine ...
As I said above, the cleaner solution would be to define a routine
like "host_address_to_string" along the lines of core_addr_to_string
but using the method in gdb_print_host_address.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com