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: [RFA] defs.h: Define GDB_DEFAULT_TARGET_[WIDE_]CHARSET for Cygwin and MingW builds


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

Daniel> We're talking past each other.  Compare show_host_charset_name
Daniel> (which has an auto setting) to show_target_charset_name (which does
Daniel> not).

We actually set the default target charset name based on gdb's own
environment.  See charset.c:_initialize_charset.

This is not an excellent default, but it does the right thing in the
common case of "gdb foo; run".

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.

Tom


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