This is the mail archive of the gdb-patches@sources.redhat.com 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] |
[Ooops. I see my previous Subject line was a bit mangled. So here is the same patch with a more meaningful subject.]
At Andrew's request, I've prepared a patch that removes the (essentially unused) features in the language vector and elsewhere that provide for language-dependent integral output formats. The patch below causes GDB to use C-format throughout instead. This change does indeed allow for a bit of brush removal.
The idea is that if language-specific formatting were ever to be re-introduced, it would be via a function in the language vector. (I'd suggest that such a function take a raw string of digits and perhaps their radix, and work from that. For C, it would stick 0x or 0 in front, according to radix and value; for Ada, it would stick RADIX# in front and # after for non-decimal radices).
The patch would have been a lot shorter, but several name changes seemed indicated. Comments solicited.
I suspect that the the blank lines aren't needed - blank lines separate commits rather than separate parts of the same commit - whichever.(local_decimal_format_custom): Remove. * utils.c: (int_string): New function.
functions. We have to split this up into separate print - statements because local_hex_string returns a local static + statements because hex_string returns a local static
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |