Type wchar_t is only 2 bytes long on x86_64-windows.
gdb/ChangeLog:
* amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
function.
(amd64_windows_init_abi): Set auto_wide_charset gdbarch method
to amd64_windows_auto_wide_charset.
+2012-10-23 Joel Brobecker <brobecker@adacore.com>
+
+ * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
+ function.
+ (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
+ to amd64_windows_auto_wide_charset.
+
2012-10-23 Yao Qi <yao@codesourcery.com>
* event-top.c (mark_async_signal_handler_wrapper): Remove.
return destination;
}
+/* Implement the "auto_wide_charset" gdbarch method. */
+
+static const char *
+amd64_windows_auto_wide_charset (void)
+{
+ return "UTF-16";
+}
+
static void
amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
set_gdbarch_iterate_over_objfiles_in_search_order
(gdbarch, windows_iterate_over_objfiles_in_search_order);
+ set_gdbarch_auto_wide_charset (gdbarch, amd64_windows_auto_wide_charset);
+
set_solib_ops (gdbarch, &solib_target_so_ops);
}