[RFA]: Patch for regression with huge integer

Andrew Cagney cagney@gnu.org
Thu Feb 26 23:09:00 GMT 2004


> 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
> 
>         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
>         * valprint.c (print_hex_chars): Change from static to external.
>         (print_char_chars): New function.
>         * printcmd.c (print_scalar_formatted): For integer and enum types
>         that are longer than LONGEST, perform processing via appropriate
>         print_*_chars routines.

Yes.

Coding nit though, "||" and "&&" go on the lhs, not rhs.

Andrew


> +  if (len > sizeof(LONGEST) &&
> +      (TYPE_CODE (type) == TYPE_CODE_INT ||
> +       TYPE_CODE (type) == TYPE_CODE_ENUM))





More information about the Gdb mailing list