[RFA] defs.h: Define GDB_DEFAULT_TARGET_[WIDE_]CHARSET for Cygwin and MingW builds

Tom Tromey tromey@redhat.com
Mon Mar 1 17:28:00 GMT 2010


>>>>> "Daniel" == Daniel Jacobowitz <dan@codesourcery.com> writes:

Daniel> On Mon, Mar 01, 2010 at 10:12:00AM -0700, Tom Tromey wrote:
Daniel> If the default becomes dependent on the target, we need to distinguish
Daniel> "user specified iso-8859-1" or "user didn't say anything, but now
Daniel> we're debugging i686-mingw32, and that usually uses cp1252".

>> I think the ideal would be to extract this information from the
>> inferior.

Daniel> I'm not sure I understand what you're suggesting... extract it how?

I don't know :-)

The only ways I can think of seem pretty fragile -- e.g., for POSIXy
systems, extract information from the inferior environment and reproduce
the C library logic.

FWIW I think target-charset and target-wide-charset should be
per-inferior settings, like the environment and arguments.  I haven't
looked into how to do that, though.  I'm also not sure how that would
interact with an "auto" setting.

Tom



More information about the Gdb-patches mailing list