forked from Imagelibrary/binutils-gdb
Set default host and target charsets in the DJGPP port.
* config/djgpp/config.sed (am_cv_langinfo_codeset) (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes" in all configure scripts that define ac_cv_env_CPP_value. * go32-nat.c (dos_codepage, nl_langinfo): New functions. Include langinfo.h. * config/djgpp/nl_types.h: New file. * config/djgpp/langinfo.h: New file. * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp.
This commit is contained in:
@@ -25,6 +25,12 @@ s|\.gdbinit|gdb.ini|g
|
||||
s,config\\.h\\.in,config.h-in,g;t t\
|
||||
s,po2tbl\\.sed\\.in,po2tblsed.in,g;t t
|
||||
|
||||
# We have an emulation of nl_langinfo in go32-nat.c that supports CODESET.
|
||||
/^ac_cv_env_CPP_value=/a\
|
||||
am_cv_langinfo_codeset=yes\
|
||||
bash_cv_langinfo_codeset=yes\
|
||||
ac_cv_header_nl_types_h=yes
|
||||
|
||||
# Prevent splitting of config.status substitutions, because that
|
||||
# might break multi-line sed commands.
|
||||
/ac_max_sed_lines=[0-9]/s,=.*$,=`sed -n "$=" $tmp/subs.sed`,
|
||||
|
||||
35
gdb/config/djgpp/langinfo.h
Normal file
35
gdb/config/djgpp/langinfo.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/* langinfo.h file for DJGPP.
|
||||
Copyright (C) 2009 Free Software Foundation, Inc.
|
||||
Written by Eli Zaretskii.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _LANGINFO_H
|
||||
#define _LANGINFO_H
|
||||
|
||||
#include <nl_types.h>
|
||||
|
||||
enum {
|
||||
CODESET,
|
||||
/* Number of enumerated values. */
|
||||
_NL_NUM
|
||||
};
|
||||
|
||||
#define CODESET CODESET
|
||||
|
||||
extern char *nl_langinfo (nl_item);
|
||||
|
||||
#endif /* _LANGINFO_H */
|
||||
25
gdb/config/djgpp/nl_types.h
Normal file
25
gdb/config/djgpp/nl_types.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/* nl_types.h for DJGPP.
|
||||
Copyright (C) 2009 Free Software Foundation, Inc.
|
||||
Written by Eli Zaretskii.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _NL_TYPES_H
|
||||
#define _NL_TYPES_H
|
||||
|
||||
typedef int nl_item;
|
||||
|
||||
#endif /* _NL_TYPES_H */
|
||||
Reference in New Issue
Block a user