This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]