This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Configuring gdb_wchar.h
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
Eli> It builds fine, but the result seems strange to me: GDB now lists a
Eli> long list of character sets in response to "set target-charset TAB".
Eli> What happens is that find_charset_names correctly notices that
Eli> "iconv -l" exited with a non-zero status (this is still with libiconv 1.7,
Eli> where the -l switch is not supported), but then _initialize_charset
Eli> falls back on using DEFAULT_CHARSET_NAMES, which seem to assume a
Eli> glibc-based system. I rather expected the result to be that only a
Eli> single target charset be available. Am I missing something? Should
Eli> DEFAULT_CHARSET_NAMES be redefined on DJGPP to something different
Eli> from what charset-list.h defines it?
Your situation is somewhat odd. You have a working iconv but no way
to get a list of available character sets. This ought to be a rare
setup.
In this case I chose to make gdb fall back on a fairly large built-in
list. If you try pick a charset which your iconv cannot handle, gdb
should give an error.
Eli> I will upgrade to a newer libiconv and try with that, once the result
Eli> for 1.7 is as expected (whatever that might be).
I think the current result is as good as any other.
Tom