diff options
22 files changed, 4513 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/Makefile b/gnu/usr.bin/gdb/Makefile new file mode 100644 index 000000000000..b26e5acfa07b --- /dev/null +++ b/gnu/usr.bin/gdb/Makefile @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SUBDIR= doc libgdb gdb gdbtui + +.include <bsd.subdir.mk> diff --git a/gnu/usr.bin/gdb/Makefile.inc b/gnu/usr.bin/gdb/Makefile.inc new file mode 100644 index 000000000000..74846034d3cd --- /dev/null +++ b/gnu/usr.bin/gdb/Makefile.inc @@ -0,0 +1,50 @@ +# $FreeBSD$ + +VERSION= "6.1.1 [FreeBSD]" +VENDOR= marcel + +BMAKE_GDB= ${.CURDIR}/.. +BMAKE_ROOT= ${BMAKE_GDB}/.. +BMAKE_BU= ${BMAKE_ROOT}/binutils + +CNTRB_ROOT= ${BMAKE_ROOT}/../../contrib +CNTRB_BU= ${CNTRB_ROOT}/binutils +CNTRB_GDB= ${CNTRB_ROOT}/gdb +CNTRB_RL= ${CNTRB_ROOT}/libreadline + +OBJ_ROOT= ${.OBJDIR}/../.. +OBJ_BU= ${OBJ_ROOT}/binutils +OBJ_GDB= ${OBJ_ROOT}/gdb + +TARGET_ARCH?= ${MACHINE_ARCH} +TARGET_SUBDIR= ${BMAKE_GDB}/arch/${TARGET_ARCH} + +.if !defined(INFO) + +.PATH: ${CNTRB_GDB}/gdb ${CNTRB_GDB}/gdb/cli ${CNTRB_GDB}/gdb/mi \ + ${CNTRB_GDB}/gdb/signals ${CNTRB_GDB}/gdb/tui ${TARGET_SUBDIR} + +CFLAGS+= -DHAVE_CONFIG_H -DRL_NO_COMPAT -DMI_OUT=1 -DTUI=1 +CFLAGS+= -I. +CFLAGS+= -I${TARGET_SUBDIR} +CFLAGS+= -I${BMAKE_BU}/libbfd/${TARGET_ARCH} +CFLAGS+= -I${CNTRB_GDB}/gdb +CFLAGS+= -I${CNTRB_GDB}/gdb/config +CFLAGS+= -I${CNTRB_GDB}/include +CFLAGS+= -I${CNTRB_BU}/include +CFLAGS+= -I${CNTRB_BU}/bfd + +GENSRCS+= nm.h tm.h + +.include "${TARGET_SUBDIR}/Makefile" + +SRCS+= ${GENSRCS} +CLEANFILES+= ${GENSRCS} + +.else + +.PATH: ${CNTRB_GDB}/gdb ${CNTRB_GDB}/gdb/doc ${CNTRB_RL}/doc ${BMAKE_BU}/doc + +.endif + +.include "../Makefile.inc" diff --git a/gnu/usr.bin/gdb/arch/alpha/Makefile b/gnu/usr.bin/gdb/arch/alpha/Makefile new file mode 100644 index 000000000000..f66a970f272f --- /dev/null +++ b/gnu/usr.bin/gdb/arch/alpha/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +LIBSRCS+= core-regset.c solib-legacy.c +LIBSRCS+= alpha-mdebug-tdep.c alpha-tdep.c alphabsd-nat.c alphabsd-tdep.c \ + alphafbsd-tdep.c + +nm.h: + echo '#include "alpha/nm-fbsd.h"' > ${.TARGET} + +tm.h: + echo '#include "alpha/tm-alpha.h"' > ${.TARGET} diff --git a/gnu/usr.bin/gdb/arch/alpha/config.h b/gnu/usr.bin/gdb/arch/alpha/config.h new file mode 100644 index 000000000000..a0c6d8d4c67d --- /dev/null +++ b/gnu/usr.bin/gdb/arch/alpha/config.h @@ -0,0 +1,551 @@ +/* $FreeBSD$ */ + +/* config.h. Generated automatically by configure. */ +/* config.in. Generated automatically from configure.in by autoheader. */ + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* #undef _ALL_SOURCE */ +#endif + +/* Define if using alloca.c. */ +/* #undef C_ALLOCA */ + +/* Define to empty if the keyword does not work. */ +/* #undef const */ + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +/* #undef CRAY_STACKSEG_END */ + +/* Define if you have alloca, as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ +/* #undef HAVE_ALLOCA_H */ + +/* Define if the `long double' type works. */ +#define HAVE_LONG_DOUBLE 1 + +/* Define if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define if you have <vfork.h>. */ +/* #undef HAVE_VFORK_H */ + +/* Define as __inline if that's what the C compiler calls it. */ +/* #undef inline */ + +/* Define to `long' if <sys/types.h> doesn't define. */ +/* #undef off_t */ + +/* Define to `int' if <sys/types.h> doesn't define. */ +/* #undef pid_t */ + +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define as the return type of signal handlers (int or void). */ +#define RETSIGTYPE void + +/* Define if the `setpgrp' function takes no argument. */ +/* #undef SETPGRP_VOID */ + +/* Define to `unsigned' if <sys/types.h> doesn't define. */ +/* #undef size_t */ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +/* #undef STACK_DIRECTION */ + +/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define vfork as fork if vfork does not work. */ +/* #undef vfork */ + +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +/* Define if your struct reg has r_fs. */ +/* #undef HAVE_STRUCT_REG_R_FS */ + +/* Define if your struct stat has st_blocks. */ +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 + +/* Define if your struct reg has r_gs. */ +/* #undef HAVE_STRUCT_REG_R_GS */ + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``l_'' prefix. (For Solaris, SVR4, and + SVR4-like systems.) */ +#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``lm_'' prefix. (For SunOS.) */ +/* #undef HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS */ + +/* Define if <link.h> exists and defines a struct so_map which has + members with an ``som_'' prefix. (Found on older *BSD systems.) */ +/* #undef HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS */ + +/* Define if <sys/link.h> has struct link_map32 */ +/* #undef HAVE_STRUCT_LINK_MAP32 */ + +/* Define if <sys/link.h> has link_map32 (solaris sparc-64 target) */ +/* #undef _SYSCALL32 */ + +/* Define if the prfpregset_t type is broken. */ +/* #undef PRFPREGSET_T_BROKEN */ + +/* Define if you want to use new multi-fd /proc interface + (replaces HAVE_MULTIPLE_PROC_FDS as well as other macros). */ +/* #undef NEW_PROC_API */ + +/* Define if ioctl argument PIOCSET is available. */ +/* #undef HAVE_PROCFS_PIOCSET */ + +/* Define if the `long long' type works. */ +#define CC_HAS_LONG_LONG 1 + +/* Define if the "ll" format works to print long long ints. */ +#define PRINTF_HAS_LONG_LONG 1 + +/* Define if the "%Lg" format works to print long doubles. */ +#define PRINTF_HAS_LONG_DOUBLE 1 + +/* Define if the "%Lg" format works to scan long doubles. */ +#define SCANF_HAS_LONG_DOUBLE 1 + +/* Define if using Solaris thread debugging. */ +/* #undef HAVE_THREAD_DB_LIB */ + +/* Define on a GNU/Linux system to work around problems in sys/procfs.h. */ +/* #undef START_INFERIOR_TRAPS_EXPECTED */ +/* #undef sys_quotactl */ + +/* Define if you have HPUX threads */ +/* #undef HAVE_HPUX_THREAD_SUPPORT */ + +/* Define if <proc_service.h> on solaris uses int instead of + size_t, and assorted other type changes. */ +/* #undef PROC_SERVICE_IS_OLD */ + +/* Define if the simulator is being linked in. */ +#define WITH_SIM 1 + +/* Set to true if the save_state_t structure is present */ +/* #undef HAVE_STRUCT_SAVE_STATE_T */ + +/* Set to true if the save_state_t structure has the ss_wide member */ +/* #undef HAVE_STRUCT_MEMBER_SS_WIDE */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETREGS request. */ +/* #undef HAVE_PTRACE_GETREGS */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETFPXREGS request. */ +/* #undef HAVE_PTRACE_GETFPXREGS */ + +/* Define if <sys/ptrace.h> defines the PT_GETDBREGS request. */ +#define HAVE_PT_GETDBREGS 1 + +/* Define if <sys/ptrace.h> defines the PT_GETXMMREGS request. */ +/* #undef HAVE_PT_GETXMMREGS */ + +/* Define if libunwind library is being used. */ +/* #undef HAVE_LIBUNWIND */ + +/* hostfile */ +/* #undef GDB_XM_FILE */ + +/* targetfile */ +#define GDB_TM_FILE config/alpha/tm-fbsd.h + +/* nativefile */ +#define GDB_NM_FILE config/alpha/nm-fbsd.h + +/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works + around a <sys/proc.h> problem on IRIX 5. */ +#ifndef _KMEMUSER +/* #undef _KMEMUSER */ +#endif + +/* Define if you have the __argz_count function. */ +/* #undef HAVE___ARGZ_COUNT */ + +/* Define if you have the __argz_next function. */ +/* #undef HAVE___ARGZ_NEXT */ + +/* Define if you have the __argz_stringify function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ + +/* Define if you have the _mcleanup function. */ +#define HAVE__MCLEANUP 1 + +/* Define if you have the canonicalize_file_name function. */ +/* #undef HAVE_CANONICALIZE_FILE_NAME */ + +/* Define if you have the dcgettext function. */ +/* #undef HAVE_DCGETTEXT */ + +/* Define if you have the getcwd function. */ +#define HAVE_GETCWD 1 + +/* Define if you have the getpagesize function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define if you have the monstartup function. */ +#define HAVE_MONSTARTUP 1 + +/* Define if you have the munmap function. */ +#define HAVE_MUNMAP 1 + +/* Define if you have the poll function. */ +#define HAVE_POLL 1 + +/* Define if you have the pread64 function. */ +/* #undef HAVE_PREAD64 */ + +/* Define if you have the putenv function. */ +#define HAVE_PUTENV 1 + +/* Define if you have the realpath function. */ +#define HAVE_REALPATH 1 + +/* Define if you have the sbrk function. */ +#define HAVE_SBRK 1 + +/* Define if you have the setenv function. */ +#define HAVE_SETENV 1 + +/* Define if you have the setlocale function. */ +#define HAVE_SETLOCALE 1 + +/* Define if you have the setpgid function. */ +#define HAVE_SETPGID 1 + +/* Define if you have the setpgrp function. */ +#define HAVE_SETPGRP 1 + +/* Define if you have the sigaction function. */ +#define HAVE_SIGACTION 1 + +/* Define if you have the sigprocmask function. */ +#define HAVE_SIGPROCMASK 1 + +/* Define if you have the sigsetmask function. */ +#define HAVE_SIGSETMASK 1 + +/* Define if you have the socketpair function. */ +#define HAVE_SOCKETPAIR 1 + +/* Define if you have the stpcpy function. */ +#define HAVE_STPCPY 1 + +/* Define if you have the strcasecmp function. */ +#define HAVE_STRCASECMP 1 + +/* Define if you have the strchr function. */ +#define HAVE_STRCHR 1 + +/* Define if you have the syscall function. */ +#define HAVE_SYSCALL 1 + +/* Define if you have the <argz.h> header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define if you have the <ctype.h> header file. */ +#define HAVE_CTYPE_H 1 + +/* Define if you have the <curses.h> header file. */ +#define HAVE_CURSES_H 1 + +/* Define if you have the <dirent.h> header file. */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the <libunwind-ia64.h> header file. */ +/* #undef HAVE_LIBUNWIND_IA64_H */ + +/* Define if you have the <libunwind.h> header file. */ +/* #undef HAVE_LIBUNWIND_H */ + +/* Define if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if you have the <link.h> header file. */ +#define HAVE_LINK_H 1 + +/* Define if you have the <locale.h> header file. */ +#define HAVE_LOCALE_H 1 + +/* Define if you have the <machine/reg.h> header file. */ +#define HAVE_MACHINE_REG_H 1 + +/* Define if you have the <malloc.h> header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the <ncurses.h> header file. */ +#define HAVE_NCURSES_H 1 + +/* Define if you have the <ndir.h> header file. */ +/* #undef HAVE_NDIR_H */ + +/* Define if you have the <nl_types.h> header file. */ +#define HAVE_NL_TYPES_H 1 + +/* Define if you have the <nlist.h> header file. */ +#define HAVE_NLIST_H 1 + +/* Define if you have the <poll.h> header file. */ +#define HAVE_POLL_H 1 + +/* Define if you have the <proc_service.h> header file. */ +/* #undef HAVE_PROC_SERVICE_H */ + +/* Define if you have the <ptrace.h> header file. */ +/* #undef HAVE_PTRACE_H */ + +/* Define if you have the <sgtty.h> header file. */ +#define HAVE_SGTTY_H 1 + +/* Define if you have the <stddef.h> header file. */ +#define HAVE_STDDEF_H 1 + +/* Define if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the <sys/debugreg.h> header file. */ +/* #undef HAVE_SYS_DEBUGREG_H */ + +/* Define if you have the <sys/dir.h> header file. */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define if you have the <sys/fault.h> header file. */ +/* #undef HAVE_SYS_FAULT_H */ + +/* Define if you have the <sys/file.h> header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define if you have the <sys/filio.h> header file. */ +#define HAVE_SYS_FILIO_H 1 + +/* Define if you have the <sys/ioctl.h> header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define if you have the <sys/ndir.h> header file. */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the <sys/param.h> header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define if you have the <sys/poll.h> header file. */ +#define HAVE_SYS_POLL_H 1 + +/* Define if you have the <sys/proc.h> header file. */ +#define HAVE_SYS_PROC_H 1 + +/* Define if you have the <sys/procfs.h> header file. */ +#define HAVE_SYS_PROCFS_H 1 + +/* Define if you have the <sys/ptrace.h> header file. */ +#define HAVE_SYS_PTRACE_H 1 + +/* Define if you have the <sys/reg.h> header file. */ +/* #undef HAVE_SYS_REG_H */ + +/* Define if you have the <sys/select.h> header file. */ +#define HAVE_SYS_SELECT_H 1 + +/* Define if you have the <sys/syscall.h> header file. */ +#define HAVE_SYS_SYSCALL_H 1 + +/* Define if you have the <sys/user.h> header file. */ +#define HAVE_SYS_USER_H 1 + +/* Define if you have the <sys/wait.h> header file. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define if you have the <term.h> header file. */ +#define HAVE_TERM_H 1 + +/* Define if you have the <termio.h> header file. */ +/* #undef HAVE_TERMIO_H */ + +/* Define if you have the <termios.h> header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define if you have the <thread_db.h> header file. */ +/* #undef HAVE_THREAD_DB_H */ + +/* Define if you have the <time.h> header file. */ +#define HAVE_TIME_H 1 + +/* Define if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the <values.h> header file. */ +/* #undef HAVE_VALUES_H */ + +/* Define if you have the <wait.h> header file. */ +/* #undef HAVE_WAIT_H */ + +/* Define if you have the dl library (-ldl). */ +/* #undef HAVE_LIBDL */ + +/* Define if you have the m library (-lm). */ +#define HAVE_LIBM 1 + +/* Define if you have the w library (-lw). */ +/* #undef HAVE_LIBW */ + +/* Define if you have the stpcpy function */ +#define HAVE_STPCPY 1 + +/* Define if your locale.h file contains LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 + +/* Define to 1 if NLS is requested */ +/* #undef ENABLE_NLS */ + +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +/* #undef HAVE_GETTEXT */ + +/* Name of this package. */ +#define PACKAGE "gdb" + +/* Global directory for separate debug files. */ +#define DEBUGDIR "/usr/local/lib/debug" + +/* Define to BFD's default architecture. */ +#define DEFAULT_BFD_ARCH bfd_alpha_arch + +/* Define to BFD's default target vector. */ +#define DEFAULT_BFD_VEC bfd_elf64_alpha_freebsd_vec + +/* Define to 1 if your system has the _etext variable. */ +#define HAVE__ETEXT 1 + +/* Define to 1 to avoid a clash between <widec.h> and <wchar.h> on + Solaris 2.[78] when using GCC. */ +/* #undef _MSE_INT_H */ + +/* Define to 1 if we found this declaration otherwise define to 0. */ +#define HAVE_DECL_GETOPT 0 + +/* Define if sigsetjmp is available. */ +#define HAVE_SIGSETJMP 1 + +/* Define to 1 if the regex included in libiberty should be used. */ +#define USE_INCLUDED_REGEX 1 + +/* Define to 1 if your system has struct reg in <machine/reg.h>. */ +#define HAVE_STRUCT_REG 1 + +/* Define if <stdint.h> provides the uintptr_t type. */ +#define HAVE_UINTPTR_T 1 + +/* Define if malloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_MALLOC */ + +/* Define if realloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_REALLOC */ + +/* Define if free is not declared in system header files. */ +/* #undef NEED_DECLARATION_FREE */ + +/* Define if strerror is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRERROR */ + +/* Define if strdup is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRDUP */ + +/* Define if strstr is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRSTR */ + +/* Define if canonicalize_file_name is not declared in system header files. */ +#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 + +/* Define if <sys/procfs.h> has pstatus_t. */ +/* #undef HAVE_PSTATUS_T */ + +/* Define if <sys/procfs.h> has prrun_t. */ +/* #undef HAVE_PRRUN_T */ + +/* Define if <sys/procfs.h> has gregset_t. */ +#define HAVE_GREGSET_T 1 + +/* Define if <sys/procfs.h> has fpregset_t. */ +#define HAVE_FPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset_t. */ +/* #undef HAVE_PRGREGSET_T */ + +/* Define if <sys/procfs.h> has prfpregset_t. */ +#define HAVE_PRFPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset32_t. */ +/* #undef HAVE_PRGREGSET32_T */ + +/* Define if <sys/procfs.h> has prfpregset32_t. */ +/* #undef HAVE_PRFPREGSET32_T */ + +/* Define if <sys/procfs.h> has lwpid_t. */ +#define HAVE_LWPID_T 1 + +/* Define if <sys/procfs.h> has psaddr_t. */ +/* #undef HAVE_PSADDR_T */ + +/* Define if <sys/procfs.h> has prsysent_t. */ +/* #undef HAVE_PRSYSENT_T */ + +/* Define if <sys/procfs.h> has pr_sigset_t. */ +/* #undef HAVE_PR_SIGSET_T */ + +/* Define if <sys/procfs.h> has pr_sigaction64_t. */ +/* #undef HAVE_PR_SIGACTION64_T */ + +/* Define if <sys/procfs.h> has pr_siginfo64_t. */ +/* #undef HAVE_PR_SIGINFO64_T */ + +/* Define if <thread_db.h> has the TD_NOTALLOC error code. */ +/* #undef THREAD_DB_HAS_TD_NOTALLOC */ + +/* Define if we can use the tkill syscall. */ +/* #undef HAVE_TKILL_SYSCALL */ + +/* Define to the default OS ABI for this configuration. */ +/* #undef GDB_OSABI_DEFAULT */ + +/* Define to be a string naming the default host character set. */ +#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" + +/* Define if you have the iconv() function. */ +/* #undef HAVE_ICONV */ + +/* Define as const if the declaration of iconv() needs const. */ +/* #undef ICONV_CONST */ + diff --git a/gnu/usr.bin/gdb/arch/alpha/init.c b/gnu/usr.bin/gdb/arch/alpha/init.c new file mode 100644 index 000000000000..153c9752240e --- /dev/null +++ b/gnu/usr.bin/gdb/arch/alpha/init.c @@ -0,0 +1,224 @@ +/* $FreeBSD$ */ + +/* Do not modify this file. */ +/* It is created automatically by the Makefile. */ +#include "defs.h" /* For initialize_file_ftype. */ +#include "call-cmds.h" /* For initialize_all_files. */ +extern initialize_file_ftype _initialize_gdbtypes; +extern initialize_file_ftype _initialize_alpha_tdep; +extern initialize_file_ftype _initialize_alphafbsd_tdep; +extern initialize_file_ftype _initialize_ser_hardwire; +extern initialize_file_ftype _initialize_ser_pipe; +extern initialize_file_ftype _initialize_ser_tcp; +extern initialize_file_ftype _initialize_kernel_u_addr; +extern initialize_file_ftype _initialize_infptrace; +extern initialize_file_ftype _initialize_inftarg; +extern initialize_file_ftype _initialize_solib; +extern initialize_file_ftype _initialize_svr4_solib; +extern initialize_file_ftype _initialize_svr4_lm; +extern initialize_file_ftype _initialize_corelow; +extern initialize_file_ftype _initialize_core_regset; +extern initialize_file_ftype _initialize_remote; +extern initialize_file_ftype _initialize_dcache; +extern initialize_file_ftype _initialize_sr_support; +extern initialize_file_ftype _initialize_tracepoint; +extern initialize_file_ftype _initialize_ax_gdb; +extern initialize_file_ftype _initialize_annotate; +extern initialize_file_ftype _initialize_auxv; +extern initialize_file_ftype _initialize_breakpoint; +extern initialize_file_ftype _initialize_regcache; +extern initialize_file_ftype _initialize_charset; +extern initialize_file_ftype _initialize_dummy_frame; +extern initialize_file_ftype _initialize_source; +extern initialize_file_ftype _initialize_values; +extern initialize_file_ftype _initialize_valops; +extern initialize_file_ftype _initialize_valarith; +extern initialize_file_ftype _initialize_valprint; +extern initialize_file_ftype _initialize_printcmd; +extern initialize_file_ftype _initialize_symtab; +extern initialize_file_ftype _initialize_symfile; +extern initialize_file_ftype _initialize_symmisc; +extern initialize_file_ftype _initialize_infcall; +extern initialize_file_ftype _initialize_infcmd; +extern initialize_file_ftype _initialize_infrun; +extern initialize_file_ftype _initialize_stack; +extern initialize_file_ftype _initialize_thread; +extern initialize_file_ftype _initialize_interpreter; +extern initialize_file_ftype _initialize_macrocmd; +extern initialize_file_ftype _initialize_gdbarch; +extern initialize_file_ftype _initialize_gdbarch_utils; +extern initialize_file_ftype _initialize_gdb_osabi; +extern initialize_file_ftype _initialize_copying; +extern initialize_file_ftype _initialize_mem; +extern initialize_file_ftype _initialize_parse; +extern initialize_file_ftype _initialize_language; +extern initialize_file_ftype _initialize_frame_reg; +extern initialize_file_ftype _initialize_signals; +extern initialize_file_ftype _initialize_kod; +extern initialize_file_ftype _initialize_gdb_events; +extern initialize_file_ftype _initialize_exec; +extern initialize_file_ftype _initialize_maint_cmds; +extern initialize_file_ftype _initialize_demangler; +extern initialize_file_ftype _initialize_dbxread; +extern initialize_file_ftype _initialize_coffread; +extern initialize_file_ftype _initialize_elfread; +extern initialize_file_ftype _initialize_mipsread; +extern initialize_file_ftype _initialize_stabsread; +extern initialize_file_ftype _initialize_core; +extern initialize_file_ftype _initialize_dwarf2_frame; +extern initialize_file_ftype _initialize_c_language; +extern initialize_file_ftype _initialize_f_language; +extern initialize_file_ftype _initialize_objc_language; +extern initialize_file_ftype _initialize_ui_out; +extern initialize_file_ftype _initialize_cli_out; +extern initialize_file_ftype _initialize_varobj; +extern initialize_file_ftype _initialize_java_language; +extern initialize_file_ftype _initialize_m2_language; +extern initialize_file_ftype _initialize_pascal_language; +extern initialize_file_ftype _initialize_pascal_valprint; +extern initialize_file_ftype _initialize_scheme_language; +extern initialize_file_ftype _initialize_complaints; +extern initialize_file_ftype _initialize_typeprint; +extern initialize_file_ftype _initialize_cp_valprint; +extern initialize_file_ftype _initialize_f_valprint; +extern initialize_file_ftype _initialize_nlmread; +extern initialize_file_ftype _initialize_serial; +extern initialize_file_ftype _initialize_mdebugread; +extern initialize_file_ftype _initialize_user_regs; +extern initialize_file_ftype _initialize_frame; +extern initialize_file_ftype _initialize_frame_unwind; +extern initialize_file_ftype _initialize_frame_base; +extern initialize_file_ftype _initialize_gnu_v2_abi; +extern initialize_file_ftype _initialize_gnu_v3_abi; +extern initialize_file_ftype _initialize_hpacc_abi; +extern initialize_file_ftype _initialize_cp_abi; +extern initialize_file_ftype _initialize_cp_support; +extern initialize_file_ftype _initialize_cp_namespace; +extern initialize_file_ftype _initialize_reggroup; +extern initialize_file_ftype _initialize_inflow; +extern initialize_file_ftype _initialize_cli_dump; +extern initialize_file_ftype _initialize_cli_logging; +extern initialize_file_ftype _initialize_cli_interp; +extern initialize_file_ftype _initialize_mi_out; +extern initialize_file_ftype _initialize_mi_cmds; +extern initialize_file_ftype _initialize_mi_cmd_env; +extern initialize_file_ftype _initialize_mi_interp; +extern initialize_file_ftype _initialize_mi_main; +extern initialize_file_ftype _initialize_tui_hooks; +extern initialize_file_ftype _initialize_tui_interp; +extern initialize_file_ftype _initialize_tui_layout; +extern initialize_file_ftype _initialize_tui_out; +extern initialize_file_ftype _initialize_tui_regs; +extern initialize_file_ftype _initialize_tui_stack; +extern initialize_file_ftype _initialize_tui_win; +void +initialize_all_files (void) +{ + _initialize_gdbtypes (); + _initialize_alpha_tdep (); + _initialize_alphafbsd_tdep (); + _initialize_ser_hardwire (); + _initialize_ser_pipe (); + _initialize_ser_tcp (); + _initialize_kernel_u_addr (); + _initialize_infptrace (); + _initialize_inftarg (); + _initialize_solib (); + _initialize_svr4_solib (); + _initialize_svr4_lm (); + _initialize_corelow (); + _initialize_core_regset (); + _initialize_remote (); + _initialize_dcache (); + _initialize_sr_support (); + _initialize_tracepoint (); + _initialize_ax_gdb (); + _initialize_annotate (); + _initialize_auxv (); + _initialize_breakpoint (); + _initialize_regcache (); + _initialize_charset (); + _initialize_dummy_frame (); + _initialize_source (); + _initialize_values (); + _initialize_valops (); + _initialize_valarith (); + _initialize_valprint (); + _initialize_printcmd (); + _initialize_symtab (); + _initialize_symfile (); + _initialize_symmisc (); + _initialize_infcall (); + _initialize_infcmd (); + _initialize_infrun (); + _initialize_stack (); + _initialize_thread (); + _initialize_interpreter (); + _initialize_macrocmd (); + _initialize_gdbarch (); + _initialize_gdbarch_utils (); + _initialize_gdb_osabi (); + _initialize_copying (); + _initialize_mem (); + _initialize_parse (); + _initialize_language (); + _initialize_frame_reg (); + _initialize_signals (); + _initialize_kod (); + _initialize_gdb_events (); + _initialize_exec (); + _initialize_maint_cmds (); + _initialize_demangler (); + _initialize_dbxread (); + _initialize_coffread (); + _initialize_elfread (); + _initialize_mipsread (); + _initialize_stabsread (); + _initialize_core (); + _initialize_dwarf2_frame (); + _initialize_c_language (); + _initialize_f_language (); + _initialize_objc_language (); + _initialize_ui_out (); + _initialize_cli_out (); + _initialize_varobj (); + _initialize_java_language (); + _initialize_m2_language (); + _initialize_pascal_language (); + _initialize_pascal_valprint (); + _initialize_scheme_language (); + _initialize_complaints (); + _initialize_typeprint (); + _initialize_cp_valprint (); + _initialize_f_valprint (); + _initialize_nlmread (); + _initialize_serial (); + _initialize_mdebugread (); + _initialize_user_regs (); + _initialize_frame (); + _initialize_frame_unwind (); + _initialize_frame_base (); + _initialize_gnu_v2_abi (); + _initialize_gnu_v3_abi (); + _initialize_hpacc_abi (); + _initialize_cp_abi (); + _initialize_cp_support (); + _initialize_cp_namespace (); + _initialize_reggroup (); + _initialize_inflow (); + _initialize_cli_dump (); + _initialize_cli_logging (); + _initialize_cli_interp (); + _initialize_mi_out (); + _initialize_mi_cmds (); + _initialize_mi_cmd_env (); + _initialize_mi_interp (); + _initialize_mi_main (); + _initialize_tui_hooks (); + _initialize_tui_interp (); + _initialize_tui_layout (); + _initialize_tui_out (); + _initialize_tui_regs (); + _initialize_tui_stack (); + _initialize_tui_win (); +} diff --git a/gnu/usr.bin/gdb/arch/amd64/Makefile b/gnu/usr.bin/gdb/arch/amd64/Makefile new file mode 100644 index 000000000000..3e4616559a03 --- /dev/null +++ b/gnu/usr.bin/gdb/arch/amd64/Makefile @@ -0,0 +1,16 @@ +# $FreeBSD$ + +GENSRCS+= xm.h +LIBSRCS+= fbsd-proc.c gcore.c +LIBSRCS+= amd64-nat.c amd64-tdep.c amd64bsd-nat.c amd64fbsd-nat.c \ + amd64fbsd-tdep.c i386-tdep.c i386bsd-tdep.c i386fbsd-tdep.c \ + i387-tdep.c + +nm.h: + echo '#include "i386/nm-fbsd64.h"' > ${.TARGET} + +tm.h: + echo '#include "i386/tm-fbsd.h"' > ${.TARGET} + +xm.h: + echo '#include "i386/xm-i386.h"' > ${.TARGET} diff --git a/gnu/usr.bin/gdb/arch/amd64/config.h b/gnu/usr.bin/gdb/arch/amd64/config.h new file mode 100644 index 000000000000..644defbc57de --- /dev/null +++ b/gnu/usr.bin/gdb/arch/amd64/config.h @@ -0,0 +1,551 @@ +/* $FreeBSD$ */ + +/* config.h. Generated automatically by configure. */ +/* config.in. Generated automatically from configure.in by autoheader. */ + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* #undef _ALL_SOURCE */ +#endif + +/* Define if using alloca.c. */ +/* #undef C_ALLOCA */ + +/* Define to empty if the keyword does not work. */ +/* #undef const */ + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +/* #undef CRAY_STACKSEG_END */ + +/* Define if you have alloca, as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ +/* #undef HAVE_ALLOCA_H */ + +/* Define if the `long double' type works. */ +#define HAVE_LONG_DOUBLE 1 + +/* Define if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define if you have <vfork.h>. */ +/* #undef HAVE_VFORK_H */ + +/* Define as __inline if that's what the C compiler calls it. */ +/* #undef inline */ + +/* Define to `long' if <sys/types.h> doesn't define. */ +/* #undef off_t */ + +/* Define to `int' if <sys/types.h> doesn't define. */ +/* #undef pid_t */ + +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define as the return type of signal handlers (int or void). */ +#define RETSIGTYPE void + +/* Define if the `setpgrp' function takes no argument. */ +/* #undef SETPGRP_VOID */ + +/* Define to `unsigned' if <sys/types.h> doesn't define. */ +/* #undef size_t */ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +/* #undef STACK_DIRECTION */ + +/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define vfork as fork if vfork does not work. */ +/* #undef vfork */ + +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +/* Define if your struct reg has r_fs. */ +/* #undef HAVE_STRUCT_REG_R_FS */ + +/* Define if your struct stat has st_blocks. */ +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 + +/* Define if your struct reg has r_gs. */ +/* #undef HAVE_STRUCT_REG_R_GS */ + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``l_'' prefix. (For Solaris, SVR4, and + SVR4-like systems.) */ +#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``lm_'' prefix. (For SunOS.) */ +/* #undef HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS */ + +/* Define if <link.h> exists and defines a struct so_map which has + members with an ``som_'' prefix. (Found on older *BSD systems.) */ +/* #undef HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS */ + +/* Define if <sys/link.h> has struct link_map32 */ +/* #undef HAVE_STRUCT_LINK_MAP32 */ + +/* Define if <sys/link.h> has link_map32 (solaris sparc-64 target) */ +/* #undef _SYSCALL32 */ + +/* Define if the prfpregset_t type is broken. */ +/* #undef PRFPREGSET_T_BROKEN */ + +/* Define if you want to use new multi-fd /proc interface + (replaces HAVE_MULTIPLE_PROC_FDS as well as other macros). */ +/* #undef NEW_PROC_API */ + +/* Define if ioctl argument PIOCSET is available. */ +/* #undef HAVE_PROCFS_PIOCSET */ + +/* Define if the `long long' type works. */ +#define CC_HAS_LONG_LONG 1 + +/* Define if the "ll" format works to print long long ints. */ +#define PRINTF_HAS_LONG_LONG 1 + +/* Define if the "%Lg" format works to print long doubles. */ +#define PRINTF_HAS_LONG_DOUBLE 1 + +/* Define if the "%Lg" format works to scan long doubles. */ +#define SCANF_HAS_LONG_DOUBLE 1 + +/* Define if using Solaris thread debugging. */ +/* #undef HAVE_THREAD_DB_LIB */ + +/* Define on a GNU/Linux system to work around problems in sys/procfs.h. */ +/* #undef START_INFERIOR_TRAPS_EXPECTED */ +/* #undef sys_quotactl */ + +/* Define if you have HPUX threads */ +/* #undef HAVE_HPUX_THREAD_SUPPORT */ + +/* Define if <proc_service.h> on solaris uses int instead of + size_t, and assorted other type changes. */ +/* #undef PROC_SERVICE_IS_OLD */ + +/* Define if the simulator is being linked in. */ +#define WITH_SIM 1 + +/* Set to true if the save_state_t structure is present */ +/* #undef HAVE_STRUCT_SAVE_STATE_T */ + +/* Set to true if the save_state_t structure has the ss_wide member */ +/* #undef HAVE_STRUCT_MEMBER_SS_WIDE */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETREGS request. */ +/* #undef HAVE_PTRACE_GETREGS */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETFPXREGS request. */ +/* #undef HAVE_PTRACE_GETFPXREGS */ + +/* Define if <sys/ptrace.h> defines the PT_GETDBREGS request. */ +#define HAVE_PT_GETDBREGS 1 + +/* Define if <sys/ptrace.h> defines the PT_GETXMMREGS request. */ +/* #undef HAVE_PT_GETXMMREGS */ + +/* Define if libunwind library is being used. */ +/* #undef HAVE_LIBUNWIND */ + +/* hostfile */ +#define GDB_XM_FILE config/i386/xm-i386.h + +/* targetfile */ +#define GDB_TM_FILE config/i386/tm-fbsd.h + +/* nativefile */ +#define GDB_NM_FILE config/i386/nm-fbsd64.h + +/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works + around a <sys/proc.h> problem on IRIX 5. */ +#ifndef _KMEMUSER +/* #undef _KMEMUSER */ +#endif + +/* Define if you have the __argz_count function. */ +/* #undef HAVE___ARGZ_COUNT */ + +/* Define if you have the __argz_next function. */ +/* #undef HAVE___ARGZ_NEXT */ + +/* Define if you have the __argz_stringify function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ + +/* Define if you have the _mcleanup function. */ +#define HAVE__MCLEANUP 1 + +/* Define if you have the canonicalize_file_name function. */ +/* #undef HAVE_CANONICALIZE_FILE_NAME */ + +/* Define if you have the dcgettext function. */ +/* #undef HAVE_DCGETTEXT */ + +/* Define if you have the getcwd function. */ +#define HAVE_GETCWD 1 + +/* Define if you have the getpagesize function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define if you have the monstartup function. */ +#define HAVE_MONSTARTUP 1 + +/* Define if you have the munmap function. */ +#define HAVE_MUNMAP 1 + +/* Define if you have the poll function. */ +#define HAVE_POLL 1 + +/* Define if you have the pread64 function. */ +/* #undef HAVE_PREAD64 */ + +/* Define if you have the putenv function. */ +#define HAVE_PUTENV 1 + +/* Define if you have the realpath function. */ +#define HAVE_REALPATH 1 + +/* Define if you have the sbrk function. */ +#define HAVE_SBRK 1 + +/* Define if you have the setenv function. */ +#define HAVE_SETENV 1 + +/* Define if you have the setlocale function. */ +#define HAVE_SETLOCALE 1 + +/* Define if you have the setpgid function. */ +#define HAVE_SETPGID 1 + +/* Define if you have the setpgrp function. */ +#define HAVE_SETPGRP 1 + +/* Define if you have the sigaction function. */ +#define HAVE_SIGACTION 1 + +/* Define if you have the sigprocmask function. */ +#define HAVE_SIGPROCMASK 1 + +/* Define if you have the sigsetmask function. */ +#define HAVE_SIGSETMASK 1 + +/* Define if you have the socketpair function. */ +#define HAVE_SOCKETPAIR 1 + +/* Define if you have the stpcpy function. */ +#define HAVE_STPCPY 1 + +/* Define if you have the strcasecmp function. */ +#define HAVE_STRCASECMP 1 + +/* Define if you have the strchr function. */ +#define HAVE_STRCHR 1 + +/* Define if you have the syscall function. */ +#define HAVE_SYSCALL 1 + +/* Define if you have the <argz.h> header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define if you have the <ctype.h> header file. */ +#define HAVE_CTYPE_H 1 + +/* Define if you have the <curses.h> header file. */ +#define HAVE_CURSES_H 1 + +/* Define if you have the <dirent.h> header file. */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the <libunwind-ia64.h> header file. */ +/* #undef HAVE_LIBUNWIND_IA64_H */ + +/* Define if you have the <libunwind.h> header file. */ +/* #undef HAVE_LIBUNWIND_H */ + +/* Define if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if you have the <link.h> header file. */ +#define HAVE_LINK_H 1 + +/* Define if you have the <locale.h> header file. */ +#define HAVE_LOCALE_H 1 + +/* Define if you have the <machine/reg.h> header file. */ +#define HAVE_MACHINE_REG_H 1 + +/* Define if you have the <malloc.h> header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the <ncurses.h> header file. */ +#define HAVE_NCURSES_H 1 + +/* Define if you have the <ndir.h> header file. */ +/* #undef HAVE_NDIR_H */ + +/* Define if you have the <nl_types.h> header file. */ +#define HAVE_NL_TYPES_H 1 + +/* Define if you have the <nlist.h> header file. */ +#define HAVE_NLIST_H 1 + +/* Define if you have the <poll.h> header file. */ +#define HAVE_POLL_H 1 + +/* Define if you have the <proc_service.h> header file. */ +/* #undef HAVE_PROC_SERVICE_H */ + +/* Define if you have the <ptrace.h> header file. */ +/* #undef HAVE_PTRACE_H */ + +/* Define if you have the <sgtty.h> header file. */ +#define HAVE_SGTTY_H 1 + +/* Define if you have the <stddef.h> header file. */ +#define HAVE_STDDEF_H 1 + +/* Define if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the <sys/debugreg.h> header file. */ +/* #undef HAVE_SYS_DEBUGREG_H */ + +/* Define if you have the <sys/dir.h> header file. */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define if you have the <sys/fault.h> header file. */ +/* #undef HAVE_SYS_FAULT_H */ + +/* Define if you have the <sys/file.h> header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define if you have the <sys/filio.h> header file. */ +#define HAVE_SYS_FILIO_H 1 + +/* Define if you have the <sys/ioctl.h> header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define if you have the <sys/ndir.h> header file. */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the <sys/param.h> header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define if you have the <sys/poll.h> header file. */ +#define HAVE_SYS_POLL_H 1 + +/* Define if you have the <sys/proc.h> header file. */ +#define HAVE_SYS_PROC_H 1 + +/* Define if you have the <sys/procfs.h> header file. */ +#define HAVE_SYS_PROCFS_H 1 + +/* Define if you have the <sys/ptrace.h> header file. */ +#define HAVE_SYS_PTRACE_H 1 + +/* Define if you have the <sys/reg.h> header file. */ +/* #undef HAVE_SYS_REG_H */ + +/* Define if you have the <sys/select.h> header file. */ +#define HAVE_SYS_SELECT_H 1 + +/* Define if you have the <sys/syscall.h> header file. */ +#define HAVE_SYS_SYSCALL_H 1 + +/* Define if you have the <sys/user.h> header file. */ +#define HAVE_SYS_USER_H 1 + +/* Define if you have the <sys/wait.h> header file. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define if you have the <term.h> header file. */ +#define HAVE_TERM_H 1 + +/* Define if you have the <termio.h> header file. */ +/* #undef HAVE_TERMIO_H */ + +/* Define if you have the <termios.h> header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define if you have the <thread_db.h> header file. */ +/* #undef HAVE_THREAD_DB_H */ + +/* Define if you have the <time.h> header file. */ +#define HAVE_TIME_H 1 + +/* Define if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the <values.h> header file. */ +/* #undef HAVE_VALUES_H */ + +/* Define if you have the <wait.h> header file. */ +/* #undef HAVE_WAIT_H */ + +/* Define if you have the dl library (-ldl). */ +/* #undef HAVE_LIBDL */ + +/* Define if you have the m library (-lm). */ +#define HAVE_LIBM 1 + +/* Define if you have the w library (-lw). */ +/* #undef HAVE_LIBW */ + +/* Define if you have the stpcpy function */ +#define HAVE_STPCPY 1 + +/* Define if your locale.h file contains LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 + +/* Define to 1 if NLS is requested */ +/* #undef ENABLE_NLS */ + +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +/* #undef HAVE_GETTEXT */ + +/* Name of this package. */ +#define PACKAGE "gdb" + +/* Global directory for separate debug files. */ +#define DEBUGDIR "/usr/local/lib/debug" + +/* Define to BFD's default architecture. */ +#define DEFAULT_BFD_ARCH bfd_i386_arch + +/* Define to BFD's default target vector. */ +#define DEFAULT_BFD_VEC bfd_elf64_x86_64_vec + +/* Define to 1 if your system has the _etext variable. */ +#define HAVE__ETEXT 1 + +/* Define to 1 to avoid a clash between <widec.h> and <wchar.h> on + Solaris 2.[78] when using GCC. */ +/* #undef _MSE_INT_H */ + +/* Define to 1 if we found this declaration otherwise define to 0. */ +#define HAVE_DECL_GETOPT 0 + +/* Define if sigsetjmp is available. */ +#define HAVE_SIGSETJMP 1 + +/* Define to 1 if the regex included in libiberty should be used. */ +#define USE_INCLUDED_REGEX 1 + +/* Define to 1 if your system has struct reg in <machine/reg.h>. */ +#define HAVE_STRUCT_REG 1 + +/* Define if <stdint.h> provides the uintptr_t type. */ +#define HAVE_UINTPTR_T 1 + +/* Define if malloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_MALLOC */ + +/* Define if realloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_REALLOC */ + +/* Define if free is not declared in system header files. */ +/* #undef NEED_DECLARATION_FREE */ + +/* Define if strerror is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRERROR */ + +/* Define if strdup is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRDUP */ + +/* Define if strstr is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRSTR */ + +/* Define if canonicalize_file_name is not declared in system header files. */ +#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 + +/* Define if <sys/procfs.h> has pstatus_t. */ +/* #undef HAVE_PSTATUS_T */ + +/* Define if <sys/procfs.h> has prrun_t. */ +/* #undef HAVE_PRRUN_T */ + +/* Define if <sys/procfs.h> has gregset_t. */ +#define HAVE_GREGSET_T 1 + +/* Define if <sys/procfs.h> has fpregset_t. */ +#define HAVE_FPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset_t. */ +/* #undef HAVE_PRGREGSET_T */ + +/* Define if <sys/procfs.h> has prfpregset_t. */ +#define HAVE_PRFPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset32_t. */ +/* #undef HAVE_PRGREGSET32_T */ + +/* Define if <sys/procfs.h> has prfpregset32_t. */ +/* #undef HAVE_PRFPREGSET32_T */ + +/* Define if <sys/procfs.h> has lwpid_t. */ +#define HAVE_LWPID_T 1 + +/* Define if <sys/procfs.h> has psaddr_t. */ +/* #undef HAVE_PSADDR_T */ + +/* Define if <sys/procfs.h> has prsysent_t. */ +/* #undef HAVE_PRSYSENT_T */ + +/* Define if <sys/procfs.h> has pr_sigset_t. */ +/* #undef HAVE_PR_SIGSET_T */ + +/* Define if <sys/procfs.h> has pr_sigaction64_t. */ +/* #undef HAVE_PR_SIGACTION64_T */ + +/* Define if <sys/procfs.h> has pr_siginfo64_t. */ +/* #undef HAVE_PR_SIGINFO64_T */ + +/* Define if <thread_db.h> has the TD_NOTALLOC error code. */ +/* #undef THREAD_DB_HAS_TD_NOTALLOC */ + +/* Define if we can use the tkill syscall. */ +/* #undef HAVE_TKILL_SYSCALL */ + +/* Define to the default OS ABI for this configuration. */ +/* #undef GDB_OSABI_DEFAULT */ + +/* Define to be a string naming the default host character set. */ +#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" + +/* Define if you have the iconv() function. */ +/* #undef HAVE_ICONV */ + +/* Define as const if the declaration of iconv() needs const. */ +/* #undef ICONV_CONST */ + diff --git a/gnu/usr.bin/gdb/arch/amd64/init.c b/gnu/usr.bin/gdb/arch/amd64/init.c new file mode 100644 index 000000000000..278fab6b00de --- /dev/null +++ b/gnu/usr.bin/gdb/arch/amd64/init.c @@ -0,0 +1,230 @@ +/* $FreeBSD$ */ + +/* Do not modify this file. */ +/* It is created automatically by the Makefile. */ +#include "defs.h" /* For initialize_file_ftype. */ +#include "call-cmds.h" /* For initialize_all_files. */ +extern initialize_file_ftype _initialize_gdbtypes; +extern initialize_file_ftype _initialize_amd64fbsd_tdep; +extern initialize_file_ftype _initialize_i386_tdep; +extern initialize_file_ftype _initialize_i386bsd_tdep; +extern initialize_file_ftype _initialize_i386fbsd_tdep; +extern initialize_file_ftype _initialize_corelow; +extern initialize_file_ftype _initialize_solib; +extern initialize_file_ftype _initialize_svr4_solib; +extern initialize_file_ftype _initialize_ser_hardwire; +extern initialize_file_ftype _initialize_ser_pipe; +extern initialize_file_ftype _initialize_ser_tcp; +extern initialize_file_ftype _initialize_kernel_u_addr; +extern initialize_file_ftype _initialize_infptrace; +extern initialize_file_ftype _initialize_inftarg; +extern initialize_file_ftype _initialize_amd64fbsd_nat; +extern initialize_file_ftype _initialize_gcore; +extern initialize_file_ftype _initialize_fbsd_proc; +extern initialize_file_ftype _initialize_remote; +extern initialize_file_ftype _initialize_dcache; +extern initialize_file_ftype _initialize_sr_support; +extern initialize_file_ftype _initialize_tracepoint; +extern initialize_file_ftype _initialize_ax_gdb; +extern initialize_file_ftype _initialize_annotate; +extern initialize_file_ftype _initialize_auxv; +extern initialize_file_ftype _initialize_breakpoint; +extern initialize_file_ftype _initialize_regcache; +extern initialize_file_ftype _initialize_charset; +extern initialize_file_ftype _initialize_dummy_frame; +extern initialize_file_ftype _initialize_source; +extern initialize_file_ftype _initialize_values; +extern initialize_file_ftype _initialize_valops; +extern initialize_file_ftype _initialize_valarith; +extern initialize_file_ftype _initialize_valprint; +extern initialize_file_ftype _initialize_printcmd; +extern initialize_file_ftype _initialize_symtab; +extern initialize_file_ftype _initialize_symfile; +extern initialize_file_ftype _initialize_symmisc; +extern initialize_file_ftype _initialize_infcall; +extern initialize_file_ftype _initialize_infcmd; +extern initialize_file_ftype _initialize_infrun; +extern initialize_file_ftype _initialize_stack; +extern initialize_file_ftype _initialize_thread; +extern initialize_file_ftype _initialize_interpreter; +extern initialize_file_ftype _initialize_macrocmd; +extern initialize_file_ftype _initialize_gdbarch; +extern initialize_file_ftype _initialize_gdbarch_utils; +extern initialize_file_ftype _initialize_gdb_osabi; +extern initialize_file_ftype _initialize_copying; +extern initialize_file_ftype _initialize_mem; +extern initialize_file_ftype _initialize_parse; +extern initialize_file_ftype _initialize_language; +extern initialize_file_ftype _initialize_frame_reg; +extern initialize_file_ftype _initialize_signals; +extern initialize_file_ftype _initialize_kod; +extern initialize_file_ftype _initialize_gdb_events; +extern initialize_file_ftype _initialize_exec; +extern initialize_file_ftype _initialize_maint_cmds; +extern initialize_file_ftype _initialize_demangler; +extern initialize_file_ftype _initialize_dbxread; +extern initialize_file_ftype _initialize_coffread; +extern initialize_file_ftype _initialize_elfread; +extern initialize_file_ftype _initialize_mipsread; +extern initialize_file_ftype _initialize_stabsread; +extern initialize_file_ftype _initialize_core; +extern initialize_file_ftype _initialize_dwarf2_frame; +extern initialize_file_ftype _initialize_c_language; +extern initialize_file_ftype _initialize_f_language; +extern initialize_file_ftype _initialize_objc_language; +extern initialize_file_ftype _initialize_ui_out; +extern initialize_file_ftype _initialize_cli_out; +extern initialize_file_ftype _initialize_varobj; +extern initialize_file_ftype _initialize_java_language; +extern initialize_file_ftype _initialize_m2_language; +extern initialize_file_ftype _initialize_pascal_language; +extern initialize_file_ftype _initialize_pascal_valprint; +extern initialize_file_ftype _initialize_scheme_language; +extern initialize_file_ftype _initialize_complaints; +extern initialize_file_ftype _initialize_typeprint; +extern initialize_file_ftype _initialize_cp_valprint; +extern initialize_file_ftype _initialize_f_valprint; +extern initialize_file_ftype _initialize_nlmread; +extern initialize_file_ftype _initialize_serial; +extern initialize_file_ftype _initialize_mdebugread; +extern initialize_file_ftype _initialize_user_regs; +extern initialize_file_ftype _initialize_frame; +extern initialize_file_ftype _initialize_frame_unwind; +extern initialize_file_ftype _initialize_frame_base; +extern initialize_file_ftype _initialize_gnu_v2_abi; +extern initialize_file_ftype _initialize_gnu_v3_abi; +extern initialize_file_ftype _initialize_hpacc_abi; +extern initialize_file_ftype _initialize_cp_abi; +extern initialize_file_ftype _initialize_cp_support; +extern initialize_file_ftype _initialize_cp_namespace; +extern initialize_file_ftype _initialize_reggroup; +extern initialize_file_ftype _initialize_inflow; +extern initialize_file_ftype _initialize_cli_dump; +extern initialize_file_ftype _initialize_cli_logging; +extern initialize_file_ftype _initialize_cli_interp; +extern initialize_file_ftype _initialize_mi_out; +extern initialize_file_ftype _initialize_mi_cmds; +extern initialize_file_ftype _initialize_mi_cmd_env; +extern initialize_file_ftype _initialize_mi_interp; +extern initialize_file_ftype _initialize_mi_main; +extern initialize_file_ftype _initialize_tui_hooks; +extern initialize_file_ftype _initialize_tui_interp; +extern initialize_file_ftype _initialize_tui_layout; +extern initialize_file_ftype _initialize_tui_out; +extern initialize_file_ftype _initialize_tui_regs; +extern initialize_file_ftype _initialize_tui_stack; +extern initialize_file_ftype _initialize_tui_win; +void +initialize_all_files (void) +{ + _initialize_gdbtypes (); + _initialize_amd64fbsd_tdep (); + _initialize_i386_tdep (); + _initialize_i386bsd_tdep (); + _initialize_i386fbsd_tdep (); + _initialize_corelow (); + _initialize_solib (); + _initialize_svr4_solib (); + _initialize_ser_hardwire (); + _initialize_ser_pipe (); + _initialize_ser_tcp (); + _initialize_kernel_u_addr (); + _initialize_infptrace (); + _initialize_inftarg (); + _initialize_amd64fbsd_nat (); + _initialize_gcore (); + _initialize_fbsd_proc (); + _initialize_remote (); + _initialize_dcache (); + _initialize_sr_support (); + _initialize_tracepoint (); + _initialize_ax_gdb (); + _initialize_annotate (); + _initialize_auxv (); + _initialize_breakpoint (); + _initialize_regcache (); + _initialize_charset (); + _initialize_dummy_frame (); + _initialize_source (); + _initialize_values (); + _initialize_valops (); + _initialize_valarith (); + _initialize_valprint (); + _initialize_printcmd (); + _initialize_symtab (); + _initialize_symfile (); + _initialize_symmisc (); + _initialize_infcall (); + _initialize_infcmd (); + _initialize_infrun (); + _initialize_stack (); + _initialize_thread (); + _initialize_interpreter (); + _initialize_macrocmd (); + _initialize_gdbarch (); + _initialize_gdbarch_utils (); + _initialize_gdb_osabi (); + _initialize_copying (); + _initialize_mem (); + _initialize_parse (); + _initialize_language (); + _initialize_frame_reg (); + _initialize_signals (); + _initialize_kod (); + _initialize_gdb_events (); + _initialize_exec (); + _initialize_maint_cmds (); + _initialize_demangler (); + _initialize_dbxread (); + _initialize_coffread (); + _initialize_elfread (); + _initialize_mipsread (); + _initialize_stabsread (); + _initialize_core (); + _initialize_dwarf2_frame (); + _initialize_c_language (); + _initialize_f_language (); + _initialize_objc_language (); + _initialize_ui_out (); + _initialize_cli_out (); + _initialize_varobj (); + _initialize_java_language (); + _initialize_m2_language (); + _initialize_pascal_language (); + _initialize_pascal_valprint (); + _initialize_scheme_language (); + _initialize_complaints (); + _initialize_typeprint (); + _initialize_cp_valprint (); + _initialize_f_valprint (); + _initialize_nlmread (); + _initialize_serial (); + _initialize_mdebugread (); + _initialize_user_regs (); + _initialize_frame (); + _initialize_frame_unwind (); + _initialize_frame_base (); + _initialize_gnu_v2_abi (); + _initialize_gnu_v3_abi (); + _initialize_hpacc_abi (); + _initialize_cp_abi (); + _initialize_cp_support (); + _initialize_cp_namespace (); + _initialize_reggroup (); + _initialize_inflow (); + _initialize_cli_dump (); + _initialize_cli_logging (); + _initialize_cli_interp (); + _initialize_mi_out (); + _initialize_mi_cmds (); + _initialize_mi_cmd_env (); + _initialize_mi_interp (); + _initialize_mi_main (); + _initialize_tui_hooks (); + _initialize_tui_interp (); + _initialize_tui_layout (); + _initialize_tui_out (); + _initialize_tui_regs (); + _initialize_tui_stack (); + _initialize_tui_win (); +} diff --git a/gnu/usr.bin/gdb/arch/i386/Makefile b/gnu/usr.bin/gdb/arch/i386/Makefile new file mode 100644 index 000000000000..46962337700a --- /dev/null +++ b/gnu/usr.bin/gdb/arch/i386/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +GENSRCS+= xm.h +LIBSRCS+= fbsd-proc.c gcore.c +LIBSRCS+= i386-nat.c i386-tdep.c i386bsd-nat.c i386bsd-tdep.c \ + i386fbsd-nat.c i386fbsd-tdep.c i387-tdep.c + +nm.h: + echo '#include "i386/nm-fbsd.h"' > ${.TARGET} + +tm.h: + echo '#include "i386/tm-fbsd.h"' > ${.TARGET} + +xm.h: + echo '#include "i386/xm-i386.h"' > ${.TARGET} diff --git a/gnu/usr.bin/gdb/arch/i386/config.h b/gnu/usr.bin/gdb/arch/i386/config.h new file mode 100644 index 000000000000..0099f82478ee --- /dev/null +++ b/gnu/usr.bin/gdb/arch/i386/config.h @@ -0,0 +1,551 @@ +/* $FreeBSD$ */ + +/* config.h. Generated automatically by configure. */ +/* config.in. Generated automatically from configure.in by autoheader. */ + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* #undef _ALL_SOURCE */ +#endif + +/* Define if using alloca.c. */ +/* #undef C_ALLOCA */ + +/* Define to empty if the keyword does not work. */ +/* #undef const */ + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +/* #undef CRAY_STACKSEG_END */ + +/* Define if you have alloca, as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ +/* #undef HAVE_ALLOCA_H */ + +/* Define if the `long double' type works. */ +#define HAVE_LONG_DOUBLE 1 + +/* Define if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define if you have <vfork.h>. */ +/* #undef HAVE_VFORK_H */ + +/* Define as __inline if that's what the C compiler calls it. */ +/* #undef inline */ + +/* Define to `long' if <sys/types.h> doesn't define. */ +/* #undef off_t */ + +/* Define to `int' if <sys/types.h> doesn't define. */ +/* #undef pid_t */ + +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define as the return type of signal handlers (int or void). */ +#define RETSIGTYPE void + +/* Define if the `setpgrp' function takes no argument. */ +/* #undef SETPGRP_VOID */ + +/* Define to `unsigned' if <sys/types.h> doesn't define. */ +/* #undef size_t */ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +/* #undef STACK_DIRECTION */ + +/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define vfork as fork if vfork does not work. */ +/* #undef vfork */ + +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +/* Define if your struct reg has r_fs. */ +#define HAVE_STRUCT_REG_R_FS 1 + +/* Define if your struct stat has st_blocks. */ +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 + +/* Define if your struct reg has r_gs. */ +#define HAVE_STRUCT_REG_R_GS 1 + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``l_'' prefix. (For Solaris, SVR4, and + SVR4-like systems.) */ +#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``lm_'' prefix. (For SunOS.) */ +/* #undef HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS */ + +/* Define if <link.h> exists and defines a struct so_map which has + members with an ``som_'' prefix. (Found on older *BSD systems.) */ +/* #undef HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS */ + +/* Define if <sys/link.h> has struct link_map32 */ +/* #undef HAVE_STRUCT_LINK_MAP32 */ + +/* Define if <sys/link.h> has link_map32 (solaris sparc-64 target) */ +/* #undef _SYSCALL32 */ + +/* Define if the prfpregset_t type is broken. */ +/* #undef PRFPREGSET_T_BROKEN */ + +/* Define if you want to use new multi-fd /proc interface + (replaces HAVE_MULTIPLE_PROC_FDS as well as other macros). */ +/* #undef NEW_PROC_API */ + +/* Define if ioctl argument PIOCSET is available. */ +/* #undef HAVE_PROCFS_PIOCSET */ + +/* Define if the `long long' type works. */ +#define CC_HAS_LONG_LONG 1 + +/* Define if the "ll" format works to print long long ints. */ +#define PRINTF_HAS_LONG_LONG 1 + +/* Define if the "%Lg" format works to print long doubles. */ +#define PRINTF_HAS_LONG_DOUBLE 1 + +/* Define if the "%Lg" format works to scan long doubles. */ +#define SCANF_HAS_LONG_DOUBLE 1 + +/* Define if using Solaris thread debugging. */ +/* #undef HAVE_THREAD_DB_LIB */ + +/* Define on a GNU/Linux system to work around problems in sys/procfs.h. */ +/* #undef START_INFERIOR_TRAPS_EXPECTED */ +/* #undef sys_quotactl */ + +/* Define if you have HPUX threads */ +/* #undef HAVE_HPUX_THREAD_SUPPORT */ + +/* Define if <proc_service.h> on solaris uses int instead of + size_t, and assorted other type changes. */ +/* #undef PROC_SERVICE_IS_OLD */ + +/* Define if the simulator is being linked in. */ +#define WITH_SIM 1 + +/* Set to true if the save_state_t structure is present */ +/* #undef HAVE_STRUCT_SAVE_STATE_T */ + +/* Set to true if the save_state_t structure has the ss_wide member */ +/* #undef HAVE_STRUCT_MEMBER_SS_WIDE */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETREGS request. */ +/* #undef HAVE_PTRACE_GETREGS */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETFPXREGS request. */ +/* #undef HAVE_PTRACE_GETFPXREGS */ + +/* Define if <sys/ptrace.h> defines the PT_GETDBREGS request. */ +#define HAVE_PT_GETDBREGS 1 + +/* Define if <sys/ptrace.h> defines the PT_GETXMMREGS request. */ +/* #undef HAVE_PT_GETXMMREGS */ + +/* Define if libunwind library is being used. */ +/* #undef HAVE_LIBUNWIND */ + +/* hostfile */ +#define GDB_XM_FILE config/i386/xm-i386.h + +/* targetfile */ +#define GDB_TM_FILE config/i386/tm-fbsd.h + +/* nativefile */ +#define GDB_NM_FILE config/i386/nm-fbsd.h + +/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works + around a <sys/proc.h> problem on IRIX 5. */ +#ifndef _KMEMUSER +/* #undef _KMEMUSER */ +#endif + +/* Define if you have the __argz_count function. */ +/* #undef HAVE___ARGZ_COUNT */ + +/* Define if you have the __argz_next function. */ +/* #undef HAVE___ARGZ_NEXT */ + +/* Define if you have the __argz_stringify function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ + +/* Define if you have the _mcleanup function. */ +#define HAVE__MCLEANUP 1 + +/* Define if you have the canonicalize_file_name function. */ +/* #undef HAVE_CANONICALIZE_FILE_NAME */ + +/* Define if you have the dcgettext function. */ +/* #undef HAVE_DCGETTEXT */ + +/* Define if you have the getcwd function. */ +#define HAVE_GETCWD 1 + +/* Define if you have the getpagesize function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define if you have the monstartup function. */ +#define HAVE_MONSTARTUP 1 + +/* Define if you have the munmap function. */ +#define HAVE_MUNMAP 1 + +/* Define if you have the poll function. */ +#define HAVE_POLL 1 + +/* Define if you have the pread64 function. */ +/* #undef HAVE_PREAD64 */ + +/* Define if you have the putenv function. */ +#define HAVE_PUTENV 1 + +/* Define if you have the realpath function. */ +#define HAVE_REALPATH 1 + +/* Define if you have the sbrk function. */ +#define HAVE_SBRK 1 + +/* Define if you have the setenv function. */ +#define HAVE_SETENV 1 + +/* Define if you have the setlocale function. */ +#define HAVE_SETLOCALE 1 + +/* Define if you have the setpgid function. */ +#define HAVE_SETPGID 1 + +/* Define if you have the setpgrp function. */ +#define HAVE_SETPGRP 1 + +/* Define if you have the sigaction function. */ +#define HAVE_SIGACTION 1 + +/* Define if you have the sigprocmask function. */ +#define HAVE_SIGPROCMASK 1 + +/* Define if you have the sigsetmask function. */ +#define HAVE_SIGSETMASK 1 + +/* Define if you have the socketpair function. */ +#define HAVE_SOCKETPAIR 1 + +/* Define if you have the stpcpy function. */ +#define HAVE_STPCPY 1 + +/* Define if you have the strcasecmp function. */ +#define HAVE_STRCASECMP 1 + +/* Define if you have the strchr function. */ +#define HAVE_STRCHR 1 + +/* Define if you have the syscall function. */ +#define HAVE_SYSCALL 1 + +/* Define if you have the <argz.h> header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define if you have the <ctype.h> header file. */ +#define HAVE_CTYPE_H 1 + +/* Define if you have the <curses.h> header file. */ +#define HAVE_CURSES_H 1 + +/* Define if you have the <dirent.h> header file. */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the <libunwind-ia64.h> header file. */ +/* #undef HAVE_LIBUNWIND_IA64_H */ + +/* Define if you have the <libunwind.h> header file. */ +/* #undef HAVE_LIBUNWIND_H */ + +/* Define if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if you have the <link.h> header file. */ +#define HAVE_LINK_H 1 + +/* Define if you have the <locale.h> header file. */ +#define HAVE_LOCALE_H 1 + +/* Define if you have the <machine/reg.h> header file. */ +#define HAVE_MACHINE_REG_H 1 + +/* Define if you have the <malloc.h> header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the <ncurses.h> header file. */ +#define HAVE_NCURSES_H 1 + +/* Define if you have the <ndir.h> header file. */ +/* #undef HAVE_NDIR_H */ + +/* Define if you have the <nl_types.h> header file. */ +#define HAVE_NL_TYPES_H 1 + +/* Define if you have the <nlist.h> header file. */ +#define HAVE_NLIST_H 1 + +/* Define if you have the <poll.h> header file. */ +#define HAVE_POLL_H 1 + +/* Define if you have the <proc_service.h> header file. */ +/* #undef HAVE_PROC_SERVICE_H */ + +/* Define if you have the <ptrace.h> header file. */ +/* #undef HAVE_PTRACE_H */ + +/* Define if you have the <sgtty.h> header file. */ +#define HAVE_SGTTY_H 1 + +/* Define if you have the <stddef.h> header file. */ +#define HAVE_STDDEF_H 1 + +/* Define if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the <sys/debugreg.h> header file. */ +/* #undef HAVE_SYS_DEBUGREG_H */ + +/* Define if you have the <sys/dir.h> header file. */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define if you have the <sys/fault.h> header file. */ +/* #undef HAVE_SYS_FAULT_H */ + +/* Define if you have the <sys/file.h> header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define if you have the <sys/filio.h> header file. */ +#define HAVE_SYS_FILIO_H 1 + +/* Define if you have the <sys/ioctl.h> header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define if you have the <sys/ndir.h> header file. */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the <sys/param.h> header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define if you have the <sys/poll.h> header file. */ +#define HAVE_SYS_POLL_H 1 + +/* Define if you have the <sys/proc.h> header file. */ +#define HAVE_SYS_PROC_H 1 + +/* Define if you have the <sys/procfs.h> header file. */ +#define HAVE_SYS_PROCFS_H 1 + +/* Define if you have the <sys/ptrace.h> header file. */ +#define HAVE_SYS_PTRACE_H 1 + +/* Define if you have the <sys/reg.h> header file. */ +/* #undef HAVE_SYS_REG_H */ + +/* Define if you have the <sys/select.h> header file. */ +#define HAVE_SYS_SELECT_H 1 + +/* Define if you have the <sys/syscall.h> header file. */ +#define HAVE_SYS_SYSCALL_H 1 + +/* Define if you have the <sys/user.h> header file. */ +#define HAVE_SYS_USER_H 1 + +/* Define if you have the <sys/wait.h> header file. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define if you have the <term.h> header file. */ +#define HAVE_TERM_H 1 + +/* Define if you have the <termio.h> header file. */ +/* #undef HAVE_TERMIO_H */ + +/* Define if you have the <termios.h> header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define if you have the <thread_db.h> header file. */ +/* #undef HAVE_THREAD_DB_H */ + +/* Define if you have the <time.h> header file. */ +#define HAVE_TIME_H 1 + +/* Define if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the <values.h> header file. */ +/* #undef HAVE_VALUES_H */ + +/* Define if you have the <wait.h> header file. */ +/* #undef HAVE_WAIT_H */ + +/* Define if you have the dl library (-ldl). */ +/* #undef HAVE_LIBDL */ + +/* Define if you have the m library (-lm). */ +#define HAVE_LIBM 1 + +/* Define if you have the w library (-lw). */ +/* #undef HAVE_LIBW */ + +/* Define if you have the stpcpy function */ +#define HAVE_STPCPY 1 + +/* Define if your locale.h file contains LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 + +/* Define to 1 if NLS is requested */ +/* #undef ENABLE_NLS */ + +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +/* #undef HAVE_GETTEXT */ + +/* Name of this package. */ +#define PACKAGE "gdb" + +/* Global directory for separate debug files. */ +#define DEBUGDIR "/usr/local/lib/debug" + +/* Define to BFD's default architecture. */ +#define DEFAULT_BFD_ARCH bfd_i386_arch + +/* Define to BFD's default target vector. */ +#define DEFAULT_BFD_VEC bfd_elf32_i386_freebsd_vec + +/* Define to 1 if your system has the _etext variable. */ +#define HAVE__ETEXT 1 + +/* Define to 1 to avoid a clash between <widec.h> and <wchar.h> on + Solaris 2.[78] when using GCC. */ +/* #undef _MSE_INT_H */ + +/* Define to 1 if we found this declaration otherwise define to 0. */ +#define HAVE_DECL_GETOPT 0 + +/* Define if sigsetjmp is available. */ +#define HAVE_SIGSETJMP 1 + +/* Define to 1 if the regex included in libiberty should be used. */ +#define USE_INCLUDED_REGEX 1 + +/* Define to 1 if your system has struct reg in <machine/reg.h>. */ +#define HAVE_STRUCT_REG 1 + +/* Define if <stdint.h> provides the uintptr_t type. */ +#define HAVE_UINTPTR_T 1 + +/* Define if malloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_MALLOC */ + +/* Define if realloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_REALLOC */ + +/* Define if free is not declared in system header files. */ +/* #undef NEED_DECLARATION_FREE */ + +/* Define if strerror is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRERROR */ + +/* Define if strdup is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRDUP */ + +/* Define if strstr is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRSTR */ + +/* Define if canonicalize_file_name is not declared in system header files. */ +#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 + +/* Define if <sys/procfs.h> has pstatus_t. */ +/* #undef HAVE_PSTATUS_T */ + +/* Define if <sys/procfs.h> has prrun_t. */ +/* #undef HAVE_PRRUN_T */ + +/* Define if <sys/procfs.h> has gregset_t. */ +#define HAVE_GREGSET_T 1 + +/* Define if <sys/procfs.h> has fpregset_t. */ +#define HAVE_FPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset_t. */ +/* #undef HAVE_PRGREGSET_T */ + +/* Define if <sys/procfs.h> has prfpregset_t. */ +#define HAVE_PRFPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset32_t. */ +/* #undef HAVE_PRGREGSET32_T */ + +/* Define if <sys/procfs.h> has prfpregset32_t. */ +/* #undef HAVE_PRFPREGSET32_T */ + +/* Define if <sys/procfs.h> has lwpid_t. */ +#define HAVE_LWPID_T 1 + +/* Define if <sys/procfs.h> has psaddr_t. */ +/* #undef HAVE_PSADDR_T */ + +/* Define if <sys/procfs.h> has prsysent_t. */ +/* #undef HAVE_PRSYSENT_T */ + +/* Define if <sys/procfs.h> has pr_sigset_t. */ +/* #undef HAVE_PR_SIGSET_T */ + +/* Define if <sys/procfs.h> has pr_sigaction64_t. */ +/* #undef HAVE_PR_SIGACTION64_T */ + +/* Define if <sys/procfs.h> has pr_siginfo64_t. */ +/* #undef HAVE_PR_SIGINFO64_T */ + +/* Define if <thread_db.h> has the TD_NOTALLOC error code. */ +/* #undef THREAD_DB_HAS_TD_NOTALLOC */ + +/* Define if we can use the tkill syscall. */ +/* #undef HAVE_TKILL_SYSCALL */ + +/* Define to the default OS ABI for this configuration. */ +/* #undef GDB_OSABI_DEFAULT */ + +/* Define to be a string naming the default host character set. */ +#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" + +/* Define if you have the iconv() function. */ +/* #undef HAVE_ICONV */ + +/* Define as const if the declaration of iconv() needs const. */ +/* #undef ICONV_CONST */ + diff --git a/gnu/usr.bin/gdb/arch/i386/init.c b/gnu/usr.bin/gdb/arch/i386/init.c new file mode 100644 index 000000000000..c35b94bf60b0 --- /dev/null +++ b/gnu/usr.bin/gdb/arch/i386/init.c @@ -0,0 +1,232 @@ +/* $FreeBSD$ */ + +/* Do not modify this file. */ +/* It is created automatically by the Makefile. */ +#include "defs.h" /* For initialize_file_ftype. */ +#include "call-cmds.h" /* For initialize_all_files. */ +extern initialize_file_ftype _initialize_gdbtypes; +extern initialize_file_ftype _initialize_i386_tdep; +extern initialize_file_ftype _initialize_i386bsd_tdep; +extern initialize_file_ftype _initialize_i386fbsd_tdep; +extern initialize_file_ftype _initialize_corelow; +extern initialize_file_ftype _initialize_solib; +extern initialize_file_ftype _initialize_svr4_solib; +extern initialize_file_ftype _initialize_ser_hardwire; +extern initialize_file_ftype _initialize_ser_pipe; +extern initialize_file_ftype _initialize_ser_tcp; +extern initialize_file_ftype _initialize_kernel_u_addr; +extern initialize_file_ftype _initialize_infptrace; +extern initialize_file_ftype _initialize_inftarg; +extern initialize_file_ftype _initialize_i386_nat; +extern initialize_file_ftype _initialize_i386bsd_nat; +extern initialize_file_ftype _initialize_i386fbsd_nat; +extern initialize_file_ftype _initialize_gcore; +extern initialize_file_ftype _initialize_fbsd_proc; +extern initialize_file_ftype _initialize_remote; +extern initialize_file_ftype _initialize_dcache; +extern initialize_file_ftype _initialize_sr_support; +extern initialize_file_ftype _initialize_tracepoint; +extern initialize_file_ftype _initialize_ax_gdb; +extern initialize_file_ftype _initialize_annotate; +extern initialize_file_ftype _initialize_auxv; +extern initialize_file_ftype _initialize_breakpoint; +extern initialize_file_ftype _initialize_regcache; +extern initialize_file_ftype _initialize_charset; +extern initialize_file_ftype _initialize_dummy_frame; +extern initialize_file_ftype _initialize_source; +extern initialize_file_ftype _initialize_values; +extern initialize_file_ftype _initialize_valops; +extern initialize_file_ftype _initialize_valarith; +extern initialize_file_ftype _initialize_valprint; +extern initialize_file_ftype _initialize_printcmd; +extern initialize_file_ftype _initialize_symtab; +extern initialize_file_ftype _initialize_symfile; +extern initialize_file_ftype _initialize_symmisc; +extern initialize_file_ftype _initialize_infcall; +extern initialize_file_ftype _initialize_infcmd; +extern initialize_file_ftype _initialize_infrun; +extern initialize_file_ftype _initialize_stack; +extern initialize_file_ftype _initialize_thread; +extern initialize_file_ftype _initialize_interpreter; +extern initialize_file_ftype _initialize_macrocmd; +extern initialize_file_ftype _initialize_gdbarch; +extern initialize_file_ftype _initialize_gdbarch_utils; +extern initialize_file_ftype _initialize_gdb_osabi; +extern initialize_file_ftype _initialize_copying; +extern initialize_file_ftype _initialize_mem; +extern initialize_file_ftype _initialize_parse; +extern initialize_file_ftype _initialize_language; +extern initialize_file_ftype _initialize_frame_reg; +extern initialize_file_ftype _initialize_signals; +extern initialize_file_ftype _initialize_kod; +extern initialize_file_ftype _initialize_gdb_events; +extern initialize_file_ftype _initialize_exec; +extern initialize_file_ftype _initialize_maint_cmds; +extern initialize_file_ftype _initialize_demangler; +extern initialize_file_ftype _initialize_dbxread; +extern initialize_file_ftype _initialize_coffread; +extern initialize_file_ftype _initialize_elfread; +extern initialize_file_ftype _initialize_mipsread; +extern initialize_file_ftype _initialize_stabsread; +extern initialize_file_ftype _initialize_core; +extern initialize_file_ftype _initialize_dwarf2_frame; +extern initialize_file_ftype _initialize_c_language; +extern initialize_file_ftype _initialize_f_language; +extern initialize_file_ftype _initialize_objc_language; +extern initialize_file_ftype _initialize_ui_out; +extern initialize_file_ftype _initialize_cli_out; +extern initialize_file_ftype _initialize_varobj; +extern initialize_file_ftype _initialize_java_language; +extern initialize_file_ftype _initialize_m2_language; +extern initialize_file_ftype _initialize_pascal_language; +extern initialize_file_ftype _initialize_pascal_valprint; +extern initialize_file_ftype _initialize_scheme_language; +extern initialize_file_ftype _initialize_complaints; +extern initialize_file_ftype _initialize_typeprint; +extern initialize_file_ftype _initialize_cp_valprint; +extern initialize_file_ftype _initialize_f_valprint; +extern initialize_file_ftype _initialize_nlmread; +extern initialize_file_ftype _initialize_serial; +extern initialize_file_ftype _initialize_mdebugread; +extern initialize_file_ftype _initialize_user_regs; +extern initialize_file_ftype _initialize_frame; +extern initialize_file_ftype _initialize_frame_unwind; +extern initialize_file_ftype _initialize_frame_base; +extern initialize_file_ftype _initialize_gnu_v2_abi; +extern initialize_file_ftype _initialize_gnu_v3_abi; +extern initialize_file_ftype _initialize_hpacc_abi; +extern initialize_file_ftype _initialize_cp_abi; +extern initialize_file_ftype _initialize_cp_support; +extern initialize_file_ftype _initialize_cp_namespace; +extern initialize_file_ftype _initialize_reggroup; +extern initialize_file_ftype _initialize_inflow; +extern initialize_file_ftype _initialize_cli_dump; +extern initialize_file_ftype _initialize_cli_logging; +extern initialize_file_ftype _initialize_cli_interp; +extern initialize_file_ftype _initialize_mi_out; +extern initialize_file_ftype _initialize_mi_cmds; +extern initialize_file_ftype _initialize_mi_cmd_env; +extern initialize_file_ftype _initialize_mi_interp; +extern initialize_file_ftype _initialize_mi_main; +extern initialize_file_ftype _initialize_tui_hooks; +extern initialize_file_ftype _initialize_tui_interp; +extern initialize_file_ftype _initialize_tui_layout; +extern initialize_file_ftype _initialize_tui_out; +extern initialize_file_ftype _initialize_tui_regs; +extern initialize_file_ftype _initialize_tui_stack; +extern initialize_file_ftype _initialize_tui_win; +void +initialize_all_files (void) +{ + _initialize_gdbtypes (); + _initialize_i386_tdep (); + _initialize_i386bsd_tdep (); + _initialize_i386fbsd_tdep (); + _initialize_corelow (); + _initialize_solib (); + _initialize_svr4_solib (); + _initialize_ser_hardwire (); + _initialize_ser_pipe (); + _initialize_ser_tcp (); + _initialize_kernel_u_addr (); + _initialize_infptrace (); + _initialize_inftarg (); + _initialize_i386_nat (); + _initialize_i386bsd_nat (); + _initialize_i386fbsd_nat (); + _initialize_gcore (); + _initialize_fbsd_proc (); + _initialize_remote (); + _initialize_dcache (); + _initialize_sr_support (); + _initialize_tracepoint (); + _initialize_ax_gdb (); + _initialize_annotate (); + _initialize_auxv (); + _initialize_breakpoint (); + _initialize_regcache (); + _initialize_charset (); + _initialize_dummy_frame (); + _initialize_source (); + _initialize_values (); + _initialize_valops (); + _initialize_valarith (); + _initialize_valprint (); + _initialize_printcmd (); + _initialize_symtab (); + _initialize_symfile (); + _initialize_symmisc (); + _initialize_infcall (); + _initialize_infcmd (); + _initialize_infrun (); + _initialize_stack (); + _initialize_thread (); + _initialize_interpreter (); + _initialize_macrocmd (); + _initialize_gdbarch (); + _initialize_gdbarch_utils (); + _initialize_gdb_osabi (); + _initialize_copying (); + _initialize_mem (); + _initialize_parse (); + _initialize_language (); + _initialize_frame_reg (); + _initialize_signals (); + _initialize_kod (); + _initialize_gdb_events (); + _initialize_exec (); + _initialize_maint_cmds (); + _initialize_demangler (); + _initialize_dbxread (); + _initialize_coffread (); + _initialize_elfread (); + _initialize_mipsread (); + _initialize_stabsread (); + _initialize_core (); + _initialize_dwarf2_frame (); + _initialize_c_language (); + _initialize_f_language (); + _initialize_objc_language (); + _initialize_ui_out (); + _initialize_cli_out (); + _initialize_varobj (); + _initialize_java_language (); + _initialize_m2_language (); + _initialize_pascal_language (); + _initialize_pascal_valprint (); + _initialize_scheme_language (); + _initialize_complaints (); + _initialize_typeprint (); + _initialize_cp_valprint (); + _initialize_f_valprint (); + _initialize_nlmread (); + _initialize_serial (); + _initialize_mdebugread (); + _initialize_user_regs (); + _initialize_frame (); + _initialize_frame_unwind (); + _initialize_frame_base (); + _initialize_gnu_v2_abi (); + _initialize_gnu_v3_abi (); + _initialize_hpacc_abi (); + _initialize_cp_abi (); + _initialize_cp_support (); + _initialize_cp_namespace (); + _initialize_reggroup (); + _initialize_inflow (); + _initialize_cli_dump (); + _initialize_cli_logging (); + _initialize_cli_interp (); + _initialize_mi_out (); + _initialize_mi_cmds (); + _initialize_mi_cmd_env (); + _initialize_mi_interp (); + _initialize_mi_main (); + _initialize_tui_hooks (); + _initialize_tui_interp (); + _initialize_tui_layout (); + _initialize_tui_out (); + _initialize_tui_regs (); + _initialize_tui_stack (); + _initialize_tui_win (); +} diff --git a/gnu/usr.bin/gdb/arch/ia64/Makefile b/gnu/usr.bin/gdb/arch/ia64/Makefile new file mode 100644 index 000000000000..aa8679097927 --- /dev/null +++ b/gnu/usr.bin/gdb/arch/ia64/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +LIBSRCS+= fbsd-proc.c gcore.c +LIBSRCS+= ia64-fbsd-nat.c ia64-fbsd-tdep.c ia64-tdep.c + +nm.h: + echo '#include "ia64/nm-fbsd.h"' > ${.TARGET} + +tm.h: + echo '#include "ia64/tm-fbsd.h"' > ${.TARGET} diff --git a/gnu/usr.bin/gdb/arch/ia64/config.h b/gnu/usr.bin/gdb/arch/ia64/config.h new file mode 100644 index 000000000000..d05ab06b9920 --- /dev/null +++ b/gnu/usr.bin/gdb/arch/ia64/config.h @@ -0,0 +1,551 @@ +/* $FreeBSD$ */ + +/* config.h. Generated automatically by configure. */ +/* config.in. Generated automatically from configure.in by autoheader. */ + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* #undef _ALL_SOURCE */ +#endif + +/* Define if using alloca.c. */ +/* #undef C_ALLOCA */ + +/* Define to empty if the keyword does not work. */ +/* #undef const */ + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +/* #undef CRAY_STACKSEG_END */ + +/* Define if you have alloca, as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ +/* #undef HAVE_ALLOCA_H */ + +/* Define if the `long double' type works. */ +#define HAVE_LONG_DOUBLE 1 + +/* Define if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define if you have <vfork.h>. */ +/* #undef HAVE_VFORK_H */ + +/* Define as __inline if that's what the C compiler calls it. */ +/* #undef inline */ + +/* Define to `long' if <sys/types.h> doesn't define. */ +/* #undef off_t */ + +/* Define to `int' if <sys/types.h> doesn't define. */ +/* #undef pid_t */ + +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define as the return type of signal handlers (int or void). */ +#define RETSIGTYPE void + +/* Define if the `setpgrp' function takes no argument. */ +/* #undef SETPGRP_VOID */ + +/* Define to `unsigned' if <sys/types.h> doesn't define. */ +/* #undef size_t */ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +/* #undef STACK_DIRECTION */ + +/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define vfork as fork if vfork does not work. */ +/* #undef vfork */ + +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +/* Define if your struct reg has r_fs. */ +/* #undef HAVE_STRUCT_REG_R_FS */ + +/* Define if your struct stat has st_blocks. */ +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 + +/* Define if your struct reg has r_gs. */ +/* #undef HAVE_STRUCT_REG_R_GS */ + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``l_'' prefix. (For Solaris, SVR4, and + SVR4-like systems.) */ +#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``lm_'' prefix. (For SunOS.) */ +/* #undef HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS */ + +/* Define if <link.h> exists and defines a struct so_map which has + members with an ``som_'' prefix. (Found on older *BSD systems.) */ +/* #undef HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS */ + +/* Define if <sys/link.h> has struct link_map32 */ +/* #undef HAVE_STRUCT_LINK_MAP32 */ + +/* Define if <sys/link.h> has link_map32 (solaris sparc-64 target) */ +/* #undef _SYSCALL32 */ + +/* Define if the prfpregset_t type is broken. */ +/* #undef PRFPREGSET_T_BROKEN */ + +/* Define if you want to use new multi-fd /proc interface + (replaces HAVE_MULTIPLE_PROC_FDS as well as other macros). */ +/* #undef NEW_PROC_API */ + +/* Define if ioctl argument PIOCSET is available. */ +/* #undef HAVE_PROCFS_PIOCSET */ + +/* Define if the `long long' type works. */ +#define CC_HAS_LONG_LONG 1 + +/* Define if the "ll" format works to print long long ints. */ +#define PRINTF_HAS_LONG_LONG 1 + +/* Define if the "%Lg" format works to print long doubles. */ +#define PRINTF_HAS_LONG_DOUBLE 1 + +/* Define if the "%Lg" format works to scan long doubles. */ +#define SCANF_HAS_LONG_DOUBLE 1 + +/* Define if using Solaris thread debugging. */ +/* #undef HAVE_THREAD_DB_LIB */ + +/* Define on a GNU/Linux system to work around problems in sys/procfs.h. */ +/* #undef START_INFERIOR_TRAPS_EXPECTED */ +/* #undef sys_quotactl */ + +/* Define if you have HPUX threads */ +/* #undef HAVE_HPUX_THREAD_SUPPORT */ + +/* Define if <proc_service.h> on solaris uses int instead of + size_t, and assorted other type changes. */ +/* #undef PROC_SERVICE_IS_OLD */ + +/* Define if the simulator is being linked in. */ +#define WITH_SIM 1 + +/* Set to true if the save_state_t structure is present */ +/* #undef HAVE_STRUCT_SAVE_STATE_T */ + +/* Set to true if the save_state_t structure has the ss_wide member */ +/* #undef HAVE_STRUCT_MEMBER_SS_WIDE */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETREGS request. */ +/* #undef HAVE_PTRACE_GETREGS */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETFPXREGS request. */ +/* #undef HAVE_PTRACE_GETFPXREGS */ + +/* Define if <sys/ptrace.h> defines the PT_GETDBREGS request. */ +#define HAVE_PT_GETDBREGS 1 + +/* Define if <sys/ptrace.h> defines the PT_GETXMMREGS request. */ +/* #undef HAVE_PT_GETXMMREGS */ + +/* Define if libunwind library is being used. */ +/* #undef HAVE_LIBUNWIND */ + +/* hostfile */ +/* #undef GDB_XM_FILE */ + +/* targetfile */ +#define GDB_TM_FILE config/ia64/tm-fbsd.h + +/* nativefile */ +#define GDB_NM_FILE config/ia64/nm-fbsd.h + +/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works + around a <sys/proc.h> problem on IRIX 5. */ +#ifndef _KMEMUSER +/* #undef _KMEMUSER */ +#endif + +/* Define if you have the __argz_count function. */ +/* #undef HAVE___ARGZ_COUNT */ + +/* Define if you have the __argz_next function. */ +/* #undef HAVE___ARGZ_NEXT */ + +/* Define if you have the __argz_stringify function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ + +/* Define if you have the _mcleanup function. */ +#define HAVE__MCLEANUP 1 + +/* Define if you have the canonicalize_file_name function. */ +/* #undef HAVE_CANONICALIZE_FILE_NAME */ + +/* Define if you have the dcgettext function. */ +/* #undef HAVE_DCGETTEXT */ + +/* Define if you have the getcwd function. */ +#define HAVE_GETCWD 1 + +/* Define if you have the getpagesize function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define if you have the monstartup function. */ +#define HAVE_MONSTARTUP 1 + +/* Define if you have the munmap function. */ +#define HAVE_MUNMAP 1 + +/* Define if you have the poll function. */ +#define HAVE_POLL 1 + +/* Define if you have the pread64 function. */ +/* #undef HAVE_PREAD64 */ + +/* Define if you have the putenv function. */ +#define HAVE_PUTENV 1 + +/* Define if you have the realpath function. */ +#define HAVE_REALPATH 1 + +/* Define if you have the sbrk function. */ +#define HAVE_SBRK 1 + +/* Define if you have the setenv function. */ +#define HAVE_SETENV 1 + +/* Define if you have the setlocale function. */ +#define HAVE_SETLOCALE 1 + +/* Define if you have the setpgid function. */ +#define HAVE_SETPGID 1 + +/* Define if you have the setpgrp function. */ +#define HAVE_SETPGRP 1 + +/* Define if you have the sigaction function. */ +#define HAVE_SIGACTION 1 + +/* Define if you have the sigprocmask function. */ +#define HAVE_SIGPROCMASK 1 + +/* Define if you have the sigsetmask function. */ +#define HAVE_SIGSETMASK 1 + +/* Define if you have the socketpair function. */ +#define HAVE_SOCKETPAIR 1 + +/* Define if you have the stpcpy function. */ +#define HAVE_STPCPY 1 + +/* Define if you have the strcasecmp function. */ +#define HAVE_STRCASECMP 1 + +/* Define if you have the strchr function. */ +#define HAVE_STRCHR 1 + +/* Define if you have the syscall function. */ +#define HAVE_SYSCALL 1 + +/* Define if you have the <argz.h> header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define if you have the <ctype.h> header file. */ +#define HAVE_CTYPE_H 1 + +/* Define if you have the <curses.h> header file. */ +#define HAVE_CURSES_H 1 + +/* Define if you have the <dirent.h> header file. */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the <libunwind-ia64.h> header file. */ +/* #undef HAVE_LIBUNWIND_IA64_H */ + +/* Define if you have the <libunwind.h> header file. */ +/* #undef HAVE_LIBUNWIND_H */ + +/* Define if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if you have the <link.h> header file. */ +#define HAVE_LINK_H 1 + +/* Define if you have the <locale.h> header file. */ +#define HAVE_LOCALE_H 1 + +/* Define if you have the <machine/reg.h> header file. */ +#define HAVE_MACHINE_REG_H 1 + +/* Define if you have the <malloc.h> header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the <ncurses.h> header file. */ +#define HAVE_NCURSES_H 1 + +/* Define if you have the <ndir.h> header file. */ +/* #undef HAVE_NDIR_H */ + +/* Define if you have the <nl_types.h> header file. */ +#define HAVE_NL_TYPES_H 1 + +/* Define if you have the <nlist.h> header file. */ +#define HAVE_NLIST_H 1 + +/* Define if you have the <poll.h> header file. */ +#define HAVE_POLL_H 1 + +/* Define if you have the <proc_service.h> header file. */ +/* #undef HAVE_PROC_SERVICE_H */ + +/* Define if you have the <ptrace.h> header file. */ +/* #undef HAVE_PTRACE_H */ + +/* Define if you have the <sgtty.h> header file. */ +#define HAVE_SGTTY_H 1 + +/* Define if you have the <stddef.h> header file. */ +#define HAVE_STDDEF_H 1 + +/* Define if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the <sys/debugreg.h> header file. */ +/* #undef HAVE_SYS_DEBUGREG_H */ + +/* Define if you have the <sys/dir.h> header file. */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define if you have the <sys/fault.h> header file. */ +/* #undef HAVE_SYS_FAULT_H */ + +/* Define if you have the <sys/file.h> header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define if you have the <sys/filio.h> header file. */ +#define HAVE_SYS_FILIO_H 1 + +/* Define if you have the <sys/ioctl.h> header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define if you have the <sys/ndir.h> header file. */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the <sys/param.h> header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define if you have the <sys/poll.h> header file. */ +#define HAVE_SYS_POLL_H 1 + +/* Define if you have the <sys/proc.h> header file. */ +#define HAVE_SYS_PROC_H 1 + +/* Define if you have the <sys/procfs.h> header file. */ +#define HAVE_SYS_PROCFS_H 1 + +/* Define if you have the <sys/ptrace.h> header file. */ +#define HAVE_SYS_PTRACE_H 1 + +/* Define if you have the <sys/reg.h> header file. */ +/* #undef HAVE_SYS_REG_H */ + +/* Define if you have the <sys/select.h> header file. */ +#define HAVE_SYS_SELECT_H 1 + +/* Define if you have the <sys/syscall.h> header file. */ +#define HAVE_SYS_SYSCALL_H 1 + +/* Define if you have the <sys/user.h> header file. */ +#define HAVE_SYS_USER_H 1 + +/* Define if you have the <sys/wait.h> header file. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define if you have the <term.h> header file. */ +#define HAVE_TERM_H 1 + +/* Define if you have the <termio.h> header file. */ +/* #undef HAVE_TERMIO_H */ + +/* Define if you have the <termios.h> header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define if you have the <thread_db.h> header file. */ +/* #undef HAVE_THREAD_DB_H */ + +/* Define if you have the <time.h> header file. */ +#define HAVE_TIME_H 1 + +/* Define if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the <values.h> header file. */ +/* #undef HAVE_VALUES_H */ + +/* Define if you have the <wait.h> header file. */ +/* #undef HAVE_WAIT_H */ + +/* Define if you have the dl library (-ldl). */ +/* #undef HAVE_LIBDL */ + +/* Define if you have the m library (-lm). */ +#define HAVE_LIBM 1 + +/* Define if you have the w library (-lw). */ +/* #undef HAVE_LIBW */ + +/* Define if you have the stpcpy function */ +#define HAVE_STPCPY 1 + +/* Define if your locale.h file contains LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 + +/* Define to 1 if NLS is requested */ +/* #undef ENABLE_NLS */ + +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +/* #undef HAVE_GETTEXT */ + +/* Name of this package. */ +#define PACKAGE "gdb" + +/* Global directory for separate debug files. */ +#define DEBUGDIR "/usr/local/lib/debug" + +/* Define to BFD's default architecture. */ +#define DEFAULT_BFD_ARCH bfd_ia64_arch + +/* Define to BFD's default target vector. */ +#define DEFAULT_BFD_VEC bfd_elf64_ia64_little_vec + +/* Define to 1 if your system has the _etext variable. */ +#define HAVE__ETEXT 1 + +/* Define to 1 to avoid a clash between <widec.h> and <wchar.h> on + Solaris 2.[78] when using GCC. */ +/* #undef _MSE_INT_H */ + +/* Define to 1 if we found this declaration otherwise define to 0. */ +#define HAVE_DECL_GETOPT 0 + +/* Define if sigsetjmp is available. */ +#define HAVE_SIGSETJMP 1 + +/* Define to 1 if the regex included in libiberty should be used. */ +#define USE_INCLUDED_REGEX 1 + +/* Define to 1 if your system has struct reg in <machine/reg.h>. */ +#define HAVE_STRUCT_REG 1 + +/* Define if <stdint.h> provides the uintptr_t type. */ +#define HAVE_UINTPTR_T 1 + +/* Define if malloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_MALLOC */ + +/* Define if realloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_REALLOC */ + +/* Define if free is not declared in system header files. */ +/* #undef NEED_DECLARATION_FREE */ + +/* Define if strerror is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRERROR */ + +/* Define if strdup is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRDUP */ + +/* Define if strstr is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRSTR */ + +/* Define if canonicalize_file_name is not declared in system header files. */ +#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 + +/* Define if <sys/procfs.h> has pstatus_t. */ +/* #undef HAVE_PSTATUS_T */ + +/* Define if <sys/procfs.h> has prrun_t. */ +/* #undef HAVE_PRRUN_T */ + +/* Define if <sys/procfs.h> has gregset_t. */ +#define HAVE_GREGSET_T 1 + +/* Define if <sys/procfs.h> has fpregset_t. */ +#define HAVE_FPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset_t. */ +/* #undef HAVE_PRGREGSET_T */ + +/* Define if <sys/procfs.h> has prfpregset_t. */ +#define HAVE_PRFPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset32_t. */ +/* #undef HAVE_PRGREGSET32_T */ + +/* Define if <sys/procfs.h> has prfpregset32_t. */ +/* #undef HAVE_PRFPREGSET32_T */ + +/* Define if <sys/procfs.h> has lwpid_t. */ +#define HAVE_LWPID_T 1 + +/* Define if <sys/procfs.h> has psaddr_t. */ +/* #undef HAVE_PSADDR_T */ + +/* Define if <sys/procfs.h> has prsysent_t. */ +/* #undef HAVE_PRSYSENT_T */ + +/* Define if <sys/procfs.h> has pr_sigset_t. */ +/* #undef HAVE_PR_SIGSET_T */ + +/* Define if <sys/procfs.h> has pr_sigaction64_t. */ +/* #undef HAVE_PR_SIGACTION64_T */ + +/* Define if <sys/procfs.h> has pr_siginfo64_t. */ +/* #undef HAVE_PR_SIGINFO64_T */ + +/* Define if <thread_db.h> has the TD_NOTALLOC error code. */ +/* #undef THREAD_DB_HAS_TD_NOTALLOC */ + +/* Define if we can use the tkill syscall. */ +/* #undef HAVE_TKILL_SYSCALL */ + +/* Define to the default OS ABI for this configuration. */ +/* #undef GDB_OSABI_DEFAULT */ + +/* Define to be a string naming the default host character set. */ +#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" + +/* Define if you have the iconv() function. */ +/* #undef HAVE_ICONV */ + +/* Define as const if the declaration of iconv() needs const. */ +/* #undef ICONV_CONST */ + diff --git a/gnu/usr.bin/gdb/arch/ia64/init.c b/gnu/usr.bin/gdb/arch/ia64/init.c new file mode 100644 index 000000000000..5e3ec189c084 --- /dev/null +++ b/gnu/usr.bin/gdb/arch/ia64/init.c @@ -0,0 +1,226 @@ +/* $FreeBSD$ */ + +/* Do not modify this file. */ +/* It is created automatically by the Makefile. */ +#include "defs.h" /* For initialize_file_ftype. */ +#include "call-cmds.h" /* For initialize_all_files. */ +extern initialize_file_ftype _initialize_gdbtypes; +extern initialize_file_ftype _initialize_corelow; +extern initialize_file_ftype _initialize_ia64_fbsd_tdep; +extern initialize_file_ftype _initialize_ia64_tdep; +extern initialize_file_ftype _initialize_solib; +extern initialize_file_ftype _initialize_svr4_solib; +extern initialize_file_ftype _initialize_ser_hardwire; +extern initialize_file_ftype _initialize_ser_pipe; +extern initialize_file_ftype _initialize_ser_tcp; +extern initialize_file_ftype _initialize_fbsd_proc; +extern initialize_file_ftype _initialize_gcore; +extern initialize_file_ftype _initialize_ia64_fbsd_nat; +extern initialize_file_ftype _initialize_kernel_u_addr; +extern initialize_file_ftype _initialize_infptrace; +extern initialize_file_ftype _initialize_inftarg; +extern initialize_file_ftype _initialize_remote; +extern initialize_file_ftype _initialize_dcache; +extern initialize_file_ftype _initialize_sr_support; +extern initialize_file_ftype _initialize_tracepoint; +extern initialize_file_ftype _initialize_ax_gdb; +extern initialize_file_ftype _initialize_annotate; +extern initialize_file_ftype _initialize_auxv; +extern initialize_file_ftype _initialize_breakpoint; +extern initialize_file_ftype _initialize_regcache; +extern initialize_file_ftype _initialize_charset; +extern initialize_file_ftype _initialize_dummy_frame; +extern initialize_file_ftype _initialize_source; +extern initialize_file_ftype _initialize_values; +extern initialize_file_ftype _initialize_valops; +extern initialize_file_ftype _initialize_valarith; +extern initialize_file_ftype _initialize_valprint; +extern initialize_file_ftype _initialize_printcmd; +extern initialize_file_ftype _initialize_symtab; +extern initialize_file_ftype _initialize_symfile; +extern initialize_file_ftype _initialize_symmisc; +extern initialize_file_ftype _initialize_infcall; +extern initialize_file_ftype _initialize_infcmd; +extern initialize_file_ftype _initialize_infrun; +extern initialize_file_ftype _initialize_stack; +extern initialize_file_ftype _initialize_thread; +extern initialize_file_ftype _initialize_interpreter; +extern initialize_file_ftype _initialize_macrocmd; +extern initialize_file_ftype _initialize_gdbarch; +extern initialize_file_ftype _initialize_gdbarch_utils; +extern initialize_file_ftype _initialize_gdb_osabi; +extern initialize_file_ftype _initialize_copying; +extern initialize_file_ftype _initialize_mem; +extern initialize_file_ftype _initialize_parse; +extern initialize_file_ftype _initialize_language; +extern initialize_file_ftype _initialize_frame_reg; +extern initialize_file_ftype _initialize_signals; +extern initialize_file_ftype _initialize_kod; +extern initialize_file_ftype _initialize_gdb_events; +extern initialize_file_ftype _initialize_exec; +extern initialize_file_ftype _initialize_maint_cmds; +extern initialize_file_ftype _initialize_demangler; +extern initialize_file_ftype _initialize_dbxread; +extern initialize_file_ftype _initialize_coffread; +extern initialize_file_ftype _initialize_elfread; +extern initialize_file_ftype _initialize_mipsread; +extern initialize_file_ftype _initialize_stabsread; +extern initialize_file_ftype _initialize_core; +extern initialize_file_ftype _initialize_dwarf2_frame; +extern initialize_file_ftype _initialize_c_language; +extern initialize_file_ftype _initialize_f_language; +extern initialize_file_ftype _initialize_objc_language; +extern initialize_file_ftype _initialize_ui_out; +extern initialize_file_ftype _initialize_cli_out; +extern initialize_file_ftype _initialize_varobj; +extern initialize_file_ftype _initialize_java_language; +extern initialize_file_ftype _initialize_m2_language; +extern initialize_file_ftype _initialize_pascal_language; +extern initialize_file_ftype _initialize_pascal_valprint; +extern initialize_file_ftype _initialize_scheme_language; +extern initialize_file_ftype _initialize_complaints; +extern initialize_file_ftype _initialize_typeprint; +extern initialize_file_ftype _initialize_cp_valprint; +extern initialize_file_ftype _initialize_f_valprint; +extern initialize_file_ftype _initialize_nlmread; +extern initialize_file_ftype _initialize_serial; +extern initialize_file_ftype _initialize_mdebugread; +extern initialize_file_ftype _initialize_user_regs; +extern initialize_file_ftype _initialize_frame; +extern initialize_file_ftype _initialize_frame_unwind; +extern initialize_file_ftype _initialize_frame_base; +extern initialize_file_ftype _initialize_gnu_v2_abi; +extern initialize_file_ftype _initialize_gnu_v3_abi; +extern initialize_file_ftype _initialize_hpacc_abi; +extern initialize_file_ftype _initialize_cp_abi; +extern initialize_file_ftype _initialize_cp_support; +extern initialize_file_ftype _initialize_cp_namespace; +extern initialize_file_ftype _initialize_reggroup; +extern initialize_file_ftype _initialize_inflow; +extern initialize_file_ftype _initialize_cli_dump; +extern initialize_file_ftype _initialize_cli_logging; +extern initialize_file_ftype _initialize_cli_interp; +extern initialize_file_ftype _initialize_mi_out; +extern initialize_file_ftype _initialize_mi_cmds; +extern initialize_file_ftype _initialize_mi_cmd_env; +extern initialize_file_ftype _initialize_mi_interp; +extern initialize_file_ftype _initialize_mi_main; +extern initialize_file_ftype _initialize_tui_hooks; +extern initialize_file_ftype _initialize_tui_interp; +extern initialize_file_ftype _initialize_tui_layout; +extern initialize_file_ftype _initialize_tui_out; +extern initialize_file_ftype _initialize_tui_regs; +extern initialize_file_ftype _initialize_tui_stack; +extern initialize_file_ftype _initialize_tui_win; +void +initialize_all_files (void) +{ + _initialize_gdbtypes (); + _initialize_corelow (); + _initialize_ia64_fbsd_tdep (); + _initialize_ia64_tdep (); + _initialize_solib (); + _initialize_svr4_solib (); + _initialize_ser_hardwire (); + _initialize_ser_pipe (); + _initialize_ser_tcp (); + _initialize_fbsd_proc (); + _initialize_gcore (); + _initialize_ia64_fbsd_nat (); + _initialize_kernel_u_addr (); + _initialize_infptrace (); + _initialize_inftarg (); + _initialize_remote (); + _initialize_dcache (); + _initialize_sr_support (); + _initialize_tracepoint (); + _initialize_ax_gdb (); + _initialize_annotate (); + _initialize_auxv (); + _initialize_breakpoint (); + _initialize_regcache (); + _initialize_charset (); + _initialize_dummy_frame (); + _initialize_source (); + _initialize_values (); + _initialize_valops (); + _initialize_valarith (); + _initialize_valprint (); + _initialize_printcmd (); + _initialize_symtab (); + _initialize_symfile (); + _initialize_symmisc (); + _initialize_infcall (); + _initialize_infcmd (); + _initialize_infrun (); + _initialize_stack (); + _initialize_thread (); + _initialize_interpreter (); + _initialize_macrocmd (); + _initialize_gdbarch (); + _initialize_gdbarch_utils (); + _initialize_gdb_osabi (); + _initialize_copying (); + _initialize_mem (); + _initialize_parse (); + _initialize_language (); + _initialize_frame_reg (); + _initialize_signals (); + _initialize_kod (); + _initialize_gdb_events (); + _initialize_exec (); + _initialize_maint_cmds (); + _initialize_demangler (); + _initialize_dbxread (); + _initialize_coffread (); + _initialize_elfread (); + _initialize_mipsread (); + _initialize_stabsread (); + _initialize_core (); + _initialize_dwarf2_frame (); + _initialize_c_language (); + _initialize_f_language (); + _initialize_objc_language (); + _initialize_ui_out (); + _initialize_cli_out (); + _initialize_varobj (); + _initialize_java_language (); + _initialize_m2_language (); + _initialize_pascal_language (); + _initialize_pascal_valprint (); + _initialize_scheme_language (); + _initialize_complaints (); + _initialize_typeprint (); + _initialize_cp_valprint (); + _initialize_f_valprint (); + _initialize_nlmread (); + _initialize_serial (); + _initialize_mdebugread (); + _initialize_user_regs (); + _initialize_frame (); + _initialize_frame_unwind (); + _initialize_frame_base (); + _initialize_gnu_v2_abi (); + _initialize_gnu_v3_abi (); + _initialize_hpacc_abi (); + _initialize_cp_abi (); + _initialize_cp_support (); + _initialize_cp_namespace (); + _initialize_reggroup (); + _initialize_inflow (); + _initialize_cli_dump (); + _initialize_cli_logging (); + _initialize_cli_interp (); + _initialize_mi_out (); + _initialize_mi_cmds (); + _initialize_mi_cmd_env (); + _initialize_mi_interp (); + _initialize_mi_main (); + _initialize_tui_hooks (); + _initialize_tui_interp (); + _initialize_tui_layout (); + _initialize_tui_out (); + _initialize_tui_regs (); + _initialize_tui_stack (); + _initialize_tui_win (); +} diff --git a/gnu/usr.bin/gdb/arch/sparc64/Makefile b/gnu/usr.bin/gdb/arch/sparc64/Makefile new file mode 100644 index 000000000000..d1e46c5aeb46 --- /dev/null +++ b/gnu/usr.bin/gdb/arch/sparc64/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +LIBSRCS+= solib-legacy.c +LIBSRCS+= sparc-nat.c sparc-tdep.c sparc64-nat.c sparc64-tdep.c \ + sparc64fbsd-nat.c sparc64fbsd-tdep.c + +nm.h: + echo '#include "sparc/nm-fbsd.h"' > ${.TARGET} + +tm.h: + echo '#include "sparc/tm-fbsd.h"' > ${.TARGET} diff --git a/gnu/usr.bin/gdb/arch/sparc64/config.h b/gnu/usr.bin/gdb/arch/sparc64/config.h new file mode 100644 index 000000000000..57bc6eb5940c --- /dev/null +++ b/gnu/usr.bin/gdb/arch/sparc64/config.h @@ -0,0 +1,551 @@ +/* $FreeBSD$ */ + +/* config.h. Generated automatically by configure. */ +/* config.in. Generated automatically from configure.in by autoheader. */ + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* #undef _ALL_SOURCE */ +#endif + +/* Define if using alloca.c. */ +/* #undef C_ALLOCA */ + +/* Define to empty if the keyword does not work. */ +/* #undef const */ + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +/* #undef CRAY_STACKSEG_END */ + +/* Define if you have alloca, as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ +/* #undef HAVE_ALLOCA_H */ + +/* Define if the `long double' type works. */ +#define HAVE_LONG_DOUBLE 1 + +/* Define if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define if you have <vfork.h>. */ +/* #undef HAVE_VFORK_H */ + +/* Define as __inline if that's what the C compiler calls it. */ +/* #undef inline */ + +/* Define to `long' if <sys/types.h> doesn't define. */ +/* #undef off_t */ + +/* Define to `int' if <sys/types.h> doesn't define. */ +/* #undef pid_t */ + +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define as the return type of signal handlers (int or void). */ +#define RETSIGTYPE void + +/* Define if the `setpgrp' function takes no argument. */ +/* #undef SETPGRP_VOID */ + +/* Define to `unsigned' if <sys/types.h> doesn't define. */ +/* #undef size_t */ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +/* #undef STACK_DIRECTION */ + +/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define vfork as fork if vfork does not work. */ +/* #undef vfork */ + +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +/* Define if your struct reg has r_fs. */ +/* #undef HAVE_STRUCT_REG_R_FS */ + +/* Define if your struct stat has st_blocks. */ +#define HAVE_STRUCT_STAT_ST_BLOCKS 1 + +/* Define if your struct reg has r_gs. */ +/* #undef HAVE_STRUCT_REG_R_GS */ + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``l_'' prefix. (For Solaris, SVR4, and + SVR4-like systems.) */ +#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 + +/* Define if <link.h> exists and defines struct link_map which has + members with an ``lm_'' prefix. (For SunOS.) */ +/* #undef HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS */ + +/* Define if <link.h> exists and defines a struct so_map which has + members with an ``som_'' prefix. (Found on older *BSD systems.) */ +/* #undef HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS */ + +/* Define if <sys/link.h> has struct link_map32 */ +/* #undef HAVE_STRUCT_LINK_MAP32 */ + +/* Define if <sys/link.h> has link_map32 (solaris sparc-64 target) */ +/* #undef _SYSCALL32 */ + +/* Define if the prfpregset_t type is broken. */ +/* #undef PRFPREGSET_T_BROKEN */ + +/* Define if you want to use new multi-fd /proc interface + (replaces HAVE_MULTIPLE_PROC_FDS as well as other macros). */ +/* #undef NEW_PROC_API */ + +/* Define if ioctl argument PIOCSET is available. */ +/* #undef HAVE_PROCFS_PIOCSET */ + +/* Define if the `long long' type works. */ +#define CC_HAS_LONG_LONG 1 + +/* Define if the "ll" format works to print long long ints. */ +#define PRINTF_HAS_LONG_LONG 1 + +/* Define if the "%Lg" format works to print long doubles. */ +#define PRINTF_HAS_LONG_DOUBLE 1 + +/* Define if the "%Lg" format works to scan long doubles. */ +#define SCANF_HAS_LONG_DOUBLE 1 + +/* Define if using Solaris thread debugging. */ +/* #undef HAVE_THREAD_DB_LIB */ + +/* Define on a GNU/Linux system to work around problems in sys/procfs.h. */ +/* #undef START_INFERIOR_TRAPS_EXPECTED */ +/* #undef sys_quotactl */ + +/* Define if you have HPUX threads */ +/* #undef HAVE_HPUX_THREAD_SUPPORT */ + +/* Define if <proc_service.h> on solaris uses int instead of + size_t, and assorted other type changes. */ +/* #undef PROC_SERVICE_IS_OLD */ + +/* Define if the simulator is being linked in. */ +#define WITH_SIM 1 + +/* Set to true if the save_state_t structure is present */ +/* #undef HAVE_STRUCT_SAVE_STATE_T */ + +/* Set to true if the save_state_t structure has the ss_wide member */ +/* #undef HAVE_STRUCT_MEMBER_SS_WIDE */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETREGS request. */ +/* #undef HAVE_PTRACE_GETREGS */ + +/* Define if <sys/ptrace.h> defines the PTRACE_GETFPXREGS request. */ +/* #undef HAVE_PTRACE_GETFPXREGS */ + +/* Define if <sys/ptrace.h> defines the PT_GETDBREGS request. */ +#define HAVE_PT_GETDBREGS 1 + +/* Define if <sys/ptrace.h> defines the PT_GETXMMREGS request. */ +/* #undef HAVE_PT_GETXMMREGS */ + +/* Define if libunwind library is being used. */ +/* #undef HAVE_LIBUNWIND */ + +/* hostfile */ +/* #undef GDB_XM_FILE */ + +/* targetfile */ +#define GDB_TM_FILE config/sparc/tm-fbsd.h + +/* nativefile */ +#define GDB_NM_FILE config/sparc/nm-fbsd.h + +/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works + around a <sys/proc.h> problem on IRIX 5. */ +#ifndef _KMEMUSER +/* #undef _KMEMUSER */ +#endif + +/* Define if you have the __argz_count function. */ +/* #undef HAVE___ARGZ_COUNT */ + +/* Define if you have the __argz_next function. */ +/* #undef HAVE___ARGZ_NEXT */ + +/* Define if you have the __argz_stringify function. */ +/* #undef HAVE___ARGZ_STRINGIFY */ + +/* Define if you have the _mcleanup function. */ +#define HAVE__MCLEANUP 1 + +/* Define if you have the canonicalize_file_name function. */ +/* #undef HAVE_CANONICALIZE_FILE_NAME */ + +/* Define if you have the dcgettext function. */ +/* #undef HAVE_DCGETTEXT */ + +/* Define if you have the getcwd function. */ +#define HAVE_GETCWD 1 + +/* Define if you have the getpagesize function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define if you have the monstartup function. */ +#define HAVE_MONSTARTUP 1 + +/* Define if you have the munmap function. */ +#define HAVE_MUNMAP 1 + +/* Define if you have the poll function. */ +#define HAVE_POLL 1 + +/* Define if you have the pread64 function. */ +/* #undef HAVE_PREAD64 */ + +/* Define if you have the putenv function. */ +#define HAVE_PUTENV 1 + +/* Define if you have the realpath function. */ +#define HAVE_REALPATH 1 + +/* Define if you have the sbrk function. */ +#define HAVE_SBRK 1 + +/* Define if you have the setenv function. */ +#define HAVE_SETENV 1 + +/* Define if you have the setlocale function. */ +#define HAVE_SETLOCALE 1 + +/* Define if you have the setpgid function. */ +#define HAVE_SETPGID 1 + +/* Define if you have the setpgrp function. */ +#define HAVE_SETPGRP 1 + +/* Define if you have the sigaction function. */ +#define HAVE_SIGACTION 1 + +/* Define if you have the sigprocmask function. */ +#define HAVE_SIGPROCMASK 1 + +/* Define if you have the sigsetmask function. */ +#define HAVE_SIGSETMASK 1 + +/* Define if you have the socketpair function. */ +#define HAVE_SOCKETPAIR 1 + +/* Define if you have the stpcpy function. */ +#define HAVE_STPCPY 1 + +/* Define if you have the strcasecmp function. */ +#define HAVE_STRCASECMP 1 + +/* Define if you have the strchr function. */ +#define HAVE_STRCHR 1 + +/* Define if you have the syscall function. */ +#define HAVE_SYSCALL 1 + +/* Define if you have the <argz.h> header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define if you have the <ctype.h> header file. */ +#define HAVE_CTYPE_H 1 + +/* Define if you have the <curses.h> header file. */ +#define HAVE_CURSES_H 1 + +/* Define if you have the <dirent.h> header file. */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the <libunwind-ia64.h> header file. */ +/* #undef HAVE_LIBUNWIND_IA64_H */ + +/* Define if you have the <libunwind.h> header file. */ +/* #undef HAVE_LIBUNWIND_H */ + +/* Define if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if you have the <link.h> header file. */ +#define HAVE_LINK_H 1 + +/* Define if you have the <locale.h> header file. */ +#define HAVE_LOCALE_H 1 + +/* Define if you have the <machine/reg.h> header file. */ +#define HAVE_MACHINE_REG_H 1 + +/* Define if you have the <malloc.h> header file. */ +/* #undef HAVE_MALLOC_H */ + +/* Define if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the <ncurses.h> header file. */ +#define HAVE_NCURSES_H 1 + +/* Define if you have the <ndir.h> header file. */ +/* #undef HAVE_NDIR_H */ + +/* Define if you have the <nl_types.h> header file. */ +#define HAVE_NL_TYPES_H 1 + +/* Define if you have the <nlist.h> header file. */ +#define HAVE_NLIST_H 1 + +/* Define if you have the <poll.h> header file. */ +#define HAVE_POLL_H 1 + +/* Define if you have the <proc_service.h> header file. */ +/* #undef HAVE_PROC_SERVICE_H */ + +/* Define if you have the <ptrace.h> header file. */ +/* #undef HAVE_PTRACE_H */ + +/* Define if you have the <sgtty.h> header file. */ +#define HAVE_SGTTY_H 1 + +/* Define if you have the <stddef.h> header file. */ +#define HAVE_STDDEF_H 1 + +/* Define if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the <sys/debugreg.h> header file. */ +/* #undef HAVE_SYS_DEBUGREG_H */ + +/* Define if you have the <sys/dir.h> header file. */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define if you have the <sys/fault.h> header file. */ +/* #undef HAVE_SYS_FAULT_H */ + +/* Define if you have the <sys/file.h> header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define if you have the <sys/filio.h> header file. */ +#define HAVE_SYS_FILIO_H 1 + +/* Define if you have the <sys/ioctl.h> header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define if you have the <sys/ndir.h> header file. */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the <sys/param.h> header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define if you have the <sys/poll.h> header file. */ +#define HAVE_SYS_POLL_H 1 + +/* Define if you have the <sys/proc.h> header file. */ +#define HAVE_SYS_PROC_H 1 + +/* Define if you have the <sys/procfs.h> header file. */ +#define HAVE_SYS_PROCFS_H 1 + +/* Define if you have the <sys/ptrace.h> header file. */ +#define HAVE_SYS_PTRACE_H 1 + +/* Define if you have the <sys/reg.h> header file. */ +/* #undef HAVE_SYS_REG_H */ + +/* Define if you have the <sys/select.h> header file. */ +#define HAVE_SYS_SELECT_H 1 + +/* Define if you have the <sys/syscall.h> header file. */ +#define HAVE_SYS_SYSCALL_H 1 + +/* Define if you have the <sys/user.h> header file. */ +#define HAVE_SYS_USER_H 1 + +/* Define if you have the <sys/wait.h> header file. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define if you have the <term.h> header file. */ +#define HAVE_TERM_H 1 + +/* Define if you have the <termio.h> header file. */ +/* #undef HAVE_TERMIO_H */ + +/* Define if you have the <termios.h> header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define if you have the <thread_db.h> header file. */ +/* #undef HAVE_THREAD_DB_H */ + +/* Define if you have the <time.h> header file. */ +#define HAVE_TIME_H 1 + +/* Define if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the <values.h> header file. */ +/* #undef HAVE_VALUES_H */ + +/* Define if you have the <wait.h> header file. */ +/* #undef HAVE_WAIT_H */ + +/* Define if you have the dl library (-ldl). */ +/* #undef HAVE_LIBDL */ + +/* Define if you have the m library (-lm). */ +#define HAVE_LIBM 1 + +/* Define if you have the w library (-lw). */ +/* #undef HAVE_LIBW */ + +/* Define if you have the stpcpy function */ +#define HAVE_STPCPY 1 + +/* Define if your locale.h file contains LC_MESSAGES. */ +#define HAVE_LC_MESSAGES 1 + +/* Define to 1 if NLS is requested */ +/* #undef ENABLE_NLS */ + +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +/* #undef HAVE_GETTEXT */ + +/* Name of this package. */ +#define PACKAGE "gdb" + +/* Global directory for separate debug files. */ +#define DEBUGDIR "/usr/local/lib/debug" + +/* Define to BFD's default architecture. */ +#define DEFAULT_BFD_ARCH bfd_sparc_arch + +/* Define to BFD's default target vector. */ +#define DEFAULT_BFD_VEC bfd_elf64_sparc_vec + +/* Define to 1 if your system has the _etext variable. */ +#define HAVE__ETEXT 1 + +/* Define to 1 to avoid a clash between <widec.h> and <wchar.h> on + Solaris 2.[78] when using GCC. */ +/* #undef _MSE_INT_H */ + +/* Define to 1 if we found this declaration otherwise define to 0. */ +#define HAVE_DECL_GETOPT 0 + +/* Define if sigsetjmp is available. */ +#define HAVE_SIGSETJMP 1 + +/* Define to 1 if the regex included in libiberty should be used. */ +#define USE_INCLUDED_REGEX 1 + +/* Define to 1 if your system has struct reg in <machine/reg.h>. */ +#define HAVE_STRUCT_REG 1 + +/* Define if <stdint.h> provides the uintptr_t type. */ +#define HAVE_UINTPTR_T 1 + +/* Define if malloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_MALLOC */ + +/* Define if realloc is not declared in system header files. */ +/* #undef NEED_DECLARATION_REALLOC */ + +/* Define if free is not declared in system header files. */ +/* #undef NEED_DECLARATION_FREE */ + +/* Define if strerror is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRERROR */ + +/* Define if strdup is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRDUP */ + +/* Define if strstr is not declared in system header files. */ +/* #undef NEED_DECLARATION_STRSTR */ + +/* Define if canonicalize_file_name is not declared in system header files. */ +#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 + +/* Define if <sys/procfs.h> has pstatus_t. */ +/* #undef HAVE_PSTATUS_T */ + +/* Define if <sys/procfs.h> has prrun_t. */ +/* #undef HAVE_PRRUN_T */ + +/* Define if <sys/procfs.h> has gregset_t. */ +#define HAVE_GREGSET_T 1 + +/* Define if <sys/procfs.h> has fpregset_t. */ +#define HAVE_FPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset_t. */ +/* #undef HAVE_PRGREGSET_T */ + +/* Define if <sys/procfs.h> has prfpregset_t. */ +#define HAVE_PRFPREGSET_T 1 + +/* Define if <sys/procfs.h> has prgregset32_t. */ +/* #undef HAVE_PRGREGSET32_T */ + +/* Define if <sys/procfs.h> has prfpregset32_t. */ +/* #undef HAVE_PRFPREGSET32_T */ + +/* Define if <sys/procfs.h> has lwpid_t. */ +#define HAVE_LWPID_T 1 + +/* Define if <sys/procfs.h> has psaddr_t. */ +/* #undef HAVE_PSADDR_T */ + +/* Define if <sys/procfs.h> has prsysent_t. */ +/* #undef HAVE_PRSYSENT_T */ + +/* Define if <sys/procfs.h> has pr_sigset_t. */ +/* #undef HAVE_PR_SIGSET_T */ + +/* Define if <sys/procfs.h> has pr_sigaction64_t. */ +/* #undef HAVE_PR_SIGACTION64_T */ + +/* Define if <sys/procfs.h> has pr_siginfo64_t. */ +/* #undef HAVE_PR_SIGINFO64_T */ + +/* Define if <thread_db.h> has the TD_NOTALLOC error code. */ +/* #undef THREAD_DB_HAS_TD_NOTALLOC */ + +/* Define if we can use the tkill syscall. */ +/* #undef HAVE_TKILL_SYSCALL */ + +/* Define to the default OS ABI for this configuration. */ +/* #undef GDB_OSABI_DEFAULT */ + +/* Define to be a string naming the default host character set. */ +#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" + +/* Define if you have the iconv() function. */ +/* #undef HAVE_ICONV */ + +/* Define as const if the declaration of iconv() needs const. */ +/* #undef ICONV_CONST */ + diff --git a/gnu/usr.bin/gdb/arch/sparc64/init.c b/gnu/usr.bin/gdb/arch/sparc64/init.c new file mode 100644 index 000000000000..0dfed1d23000 --- /dev/null +++ b/gnu/usr.bin/gdb/arch/sparc64/init.c @@ -0,0 +1,228 @@ +/* $FreeBSD$ */ + +/* Do not modify this file. */ +/* It is created automatically by the Makefile. */ +#include "defs.h" /* For initialize_file_ftype. */ +#include "call-cmds.h" /* For initialize_all_files. */ +extern initialize_file_ftype _initialize_gdbtypes; +extern initialize_file_ftype _initialize_sparc_tdep; +extern initialize_file_ftype _initialize_sparc64fbsd_tdep; +extern initialize_file_ftype _initialize_corelow; +extern initialize_file_ftype _initialize_ser_hardwire; +extern initialize_file_ftype _initialize_ser_pipe; +extern initialize_file_ftype _initialize_ser_tcp; +extern initialize_file_ftype _initialize_sparc64fbsd_nat; +extern initialize_file_ftype _initialize_sparc64_nat; +extern initialize_file_ftype _initialize_sparc_nat; +extern initialize_file_ftype _initialize_kernel_u_addr; +extern initialize_file_ftype _initialize_infptrace; +extern initialize_file_ftype _initialize_inftarg; +extern initialize_file_ftype _initialize_solib; +extern initialize_file_ftype _initialize_svr4_solib; +extern initialize_file_ftype _initialize_svr4_lm; +extern initialize_file_ftype _initialize_remote; +extern initialize_file_ftype _initialize_dcache; +extern initialize_file_ftype _initialize_sr_support; +extern initialize_file_ftype _initialize_tracepoint; +extern initialize_file_ftype _initialize_ax_gdb; +extern initialize_file_ftype _initialize_annotate; +extern initialize_file_ftype _initialize_auxv; +extern initialize_file_ftype _initialize_breakpoint; +extern initialize_file_ftype _initialize_regcache; +extern initialize_file_ftype _initialize_charset; +extern initialize_file_ftype _initialize_dummy_frame; +extern initialize_file_ftype _initialize_source; +extern initialize_file_ftype _initialize_values; +extern initialize_file_ftype _initialize_valops; +extern initialize_file_ftype _initialize_valarith; +extern initialize_file_ftype _initialize_valprint; +extern initialize_file_ftype _initialize_printcmd; +extern initialize_file_ftype _initialize_symtab; +extern initialize_file_ftype _initialize_symfile; +extern initialize_file_ftype _initialize_symmisc; +extern initialize_file_ftype _initialize_infcall; +extern initialize_file_ftype _initialize_infcmd; +extern initialize_file_ftype _initialize_infrun; +extern initialize_file_ftype _initialize_stack; +extern initialize_file_ftype _initialize_thread; +extern initialize_file_ftype _initialize_interpreter; +extern initialize_file_ftype _initialize_macrocmd; +extern initialize_file_ftype _initialize_gdbarch; +extern initialize_file_ftype _initialize_gdbarch_utils; +extern initialize_file_ftype _initialize_gdb_osabi; +extern initialize_file_ftype _initialize_copying; +extern initialize_file_ftype _initialize_mem; +extern initialize_file_ftype _initialize_parse; +extern initialize_file_ftype _initialize_language; +extern initialize_file_ftype _initialize_frame_reg; +extern initialize_file_ftype _initialize_signals; +extern initialize_file_ftype _initialize_kod; +extern initialize_file_ftype _initialize_gdb_events; +extern initialize_file_ftype _initialize_exec; +extern initialize_file_ftype _initialize_maint_cmds; +extern initialize_file_ftype _initialize_demangler; +extern initialize_file_ftype _initialize_dbxread; +extern initialize_file_ftype _initialize_coffread; +extern initialize_file_ftype _initialize_elfread; +extern initialize_file_ftype _initialize_mipsread; +extern initialize_file_ftype _initialize_stabsread; +extern initialize_file_ftype _initialize_core; +extern initialize_file_ftype _initialize_dwarf2_frame; +extern initialize_file_ftype _initialize_c_language; +extern initialize_file_ftype _initialize_f_language; +extern initialize_file_ftype _initialize_objc_language; +extern initialize_file_ftype _initialize_ui_out; +extern initialize_file_ftype _initialize_cli_out; +extern initialize_file_ftype _initialize_varobj; +extern initialize_file_ftype _initialize_java_language; +extern initialize_file_ftype _initialize_m2_language; +extern initialize_file_ftype _initialize_pascal_language; +extern initialize_file_ftype _initialize_pascal_valprint; +extern initialize_file_ftype _initialize_scheme_language; +extern initialize_file_ftype _initialize_complaints; +extern initialize_file_ftype _initialize_typeprint; +extern initialize_file_ftype _initialize_cp_valprint; +extern initialize_file_ftype _initialize_f_valprint; +extern initialize_file_ftype _initialize_nlmread; +extern initialize_file_ftype _initialize_serial; +extern initialize_file_ftype _initialize_mdebugread; +extern initialize_file_ftype _initialize_user_regs; +extern initialize_file_ftype _initialize_frame; +extern initialize_file_ftype _initialize_frame_unwind; +extern initialize_file_ftype _initialize_frame_base; +extern initialize_file_ftype _initialize_gnu_v2_abi; +extern initialize_file_ftype _initialize_gnu_v3_abi; +extern initialize_file_ftype _initialize_hpacc_abi; +extern initialize_file_ftype _initialize_cp_abi; +extern initialize_file_ftype _initialize_cp_support; +extern initialize_file_ftype _initialize_cp_namespace; +extern initialize_file_ftype _initialize_reggroup; +extern initialize_file_ftype _initialize_inflow; +extern initialize_file_ftype _initialize_cli_dump; +extern initialize_file_ftype _initialize_cli_logging; +extern initialize_file_ftype _initialize_cli_interp; +extern initialize_file_ftype _initialize_mi_out; +extern initialize_file_ftype _initialize_mi_cmds; +extern initialize_file_ftype _initialize_mi_cmd_env; +extern initialize_file_ftype _initialize_mi_interp; +extern initialize_file_ftype _initialize_mi_main; +extern initialize_file_ftype _initialize_tui_hooks; +extern initialize_file_ftype _initialize_tui_interp; +extern initialize_file_ftype _initialize_tui_layout; +extern initialize_file_ftype _initialize_tui_out; +extern initialize_file_ftype _initialize_tui_regs; +extern initialize_file_ftype _initialize_tui_stack; +extern initialize_file_ftype _initialize_tui_win; +void +initialize_all_files (void) +{ + _initialize_gdbtypes (); + _initialize_sparc_tdep (); + _initialize_sparc64fbsd_tdep (); + _initialize_corelow (); + _initialize_ser_hardwire (); + _initialize_ser_pipe (); + _initialize_ser_tcp (); + _initialize_sparc64fbsd_nat (); + _initialize_sparc64_nat (); + _initialize_sparc_nat (); + _initialize_kernel_u_addr (); + _initialize_infptrace (); + _initialize_inftarg (); + _initialize_solib (); + _initialize_svr4_solib (); + _initialize_svr4_lm (); + _initialize_remote (); + _initialize_dcache (); + _initialize_sr_support (); + _initialize_tracepoint (); + _initialize_ax_gdb (); + _initialize_annotate (); + _initialize_auxv (); + _initialize_breakpoint (); + _initialize_regcache (); + _initialize_charset (); + _initialize_dummy_frame (); + _initialize_source (); + _initialize_values (); + _initialize_valops (); + _initialize_valarith (); + _initialize_valprint (); + _initialize_printcmd (); + _initialize_symtab (); + _initialize_symfile (); + _initialize_symmisc (); + _initialize_infcall (); + _initialize_infcmd (); + _initialize_infrun (); + _initialize_stack (); + _initialize_thread (); + _initialize_interpreter (); + _initialize_macrocmd (); + _initialize_gdbarch (); + _initialize_gdbarch_utils (); + _initialize_gdb_osabi (); + _initialize_copying (); + _initialize_mem (); + _initialize_parse (); + _initialize_language (); + _initialize_frame_reg (); + _initialize_signals (); + _initialize_kod (); + _initialize_gdb_events (); + _initialize_exec (); + _initialize_maint_cmds (); + _initialize_demangler (); + _initialize_dbxread (); + _initialize_coffread (); + _initialize_elfread (); + _initialize_mipsread (); + _initialize_stabsread (); + _initialize_core (); + _initialize_dwarf2_frame (); + _initialize_c_language (); + _initialize_f_language (); + _initialize_objc_language (); + _initialize_ui_out (); + _initialize_cli_out (); + _initialize_varobj (); + _initialize_java_language (); + _initialize_m2_language (); + _initialize_pascal_language (); + _initialize_pascal_valprint (); + _initialize_scheme_language (); + _initialize_complaints (); + _initialize_typeprint (); + _initialize_cp_valprint (); + _initialize_f_valprint (); + _initialize_nlmread (); + _initialize_serial (); + _initialize_mdebugread (); + _initialize_user_regs (); + _initialize_frame (); + _initialize_frame_unwind (); + _initialize_frame_base (); + _initialize_gnu_v2_abi (); + _initialize_gnu_v3_abi (); + _initialize_hpacc_abi (); + _initialize_cp_abi (); + _initialize_cp_support (); + _initialize_cp_namespace (); + _initialize_reggroup (); + _initialize_inflow (); + _initialize_cli_dump (); + _initialize_cli_logging (); + _initialize_cli_interp (); + _initialize_mi_out (); + _initialize_mi_cmds (); + _initialize_mi_cmd_env (); + _initialize_mi_interp (); + _initialize_mi_main (); + _initialize_tui_hooks (); + _initialize_tui_interp (); + _initialize_tui_layout (); + _initialize_tui_out (); + _initialize_tui_regs (); + _initialize_tui_stack (); + _initialize_tui_win (); +} diff --git a/gnu/usr.bin/gdb/doc/Makefile b/gnu/usr.bin/gdb/doc/Makefile new file mode 100644 index 000000000000..9ad867204fd5 --- /dev/null +++ b/gnu/usr.bin/gdb/doc/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +INFO= gdb gdbint stabs +INFOSECTION= "Software development" + +MAKEINFOFLAGS+= --no-validate +MAKEINFOFLAGS+= -I ${CNTRB_GDB}/gdb/doc +MAKEINFOFLAGS+= -I ${CNTRB_GDB}/gdb/mi +MAKEINFOFLAGS+= -I ${CNTRB_RL}/doc + +gdb.info: gdb.texinfo gdb-cfg.texi GDBvn.texi annotate.texinfo fdl.texi \ + gpl.texi inc-hist.texinfo rluser.texinfo + +gdbint.info: gdbint.texinfo gdb-cfg.texi fdl.texi observer.texi + +gdb-cfg.texi: all-cfg.texi + ln -sf ${.ALLSRC} ${.TARGET} + +GDBvn.texi: version.in + echo "@set GDBVN `sed q ${.ALLSRC}`" > ${.TARGET} + +inc-hist.texinfo: hsuser.texinfo inc-hist.diff + cp ${.ALLSRC:M*.texinfo} ${.TARGET} + patch < ${.ALLSRC:M*.diff} + +CLEANFILES= gdb-cfg.texi GDBvn.texi inc-hist.texinfo inc-hist.texinfo.orig + +.include <bsd.info.mk> diff --git a/gnu/usr.bin/gdb/gdb/Makefile b/gnu/usr.bin/gdb/gdb/Makefile new file mode 100644 index 000000000000..b2e7e322a71e --- /dev/null +++ b/gnu/usr.bin/gdb/gdb/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD$ + +PROG= gdb +SRCS= gdb.c + +BULIBS= ${OBJ_BU}/libbfd/libbfd.a ${OBJ_BU}/libopcodes/libopcodes.a \ + ${OBJ_BU}/libiberty/libiberty.a +GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a + +# libthread_db.so calls back into gdb for the proc services. Make all the +# global symbols visible. +LDFLAGS+= -Wl,-E + +DPADD+= ${GDBLIBS} ${BULIBS} ${LIBREADLINE} ${LIBM} +LDADD+= ${GDBLIBS} ${BULIBS} -lreadline -lm + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/gdb/gdb/gdb.1 b/gnu/usr.bin/gdb/gdb/gdb.1 new file mode 100644 index 000000000000..b6cd3cc47d76 --- /dev/null +++ b/gnu/usr.bin/gdb/gdb/gdb.1 @@ -0,0 +1,385 @@ +.\" Copyright (c) 1991 Free Software Foundation +.\" See section COPYING for conditions for redistribution +.\" $FreeBSD$ +.TH gdb 1 "4nov1991" "GNU Tools" "GNU Tools" +.SH NAME +gdb \- The GNU Debugger +.SH SYNOPSIS +.na +.TP +.B gdb +.RB "[\|" \-help "\|]" +.RB "[\|" \-nx "\|]" +.RB "[\|" \-q "\|]" +.RB "[\|" \-batch "\|]" +.RB "[\|" \-cd=\c +.I dir\c +\|] +.RB "[\|" \-f "\|]" +.RB "[\|" \-k "\|]" +.RB "[\|" \-wcore "\|]" +.RB "[\|" "\-b\ "\c +.IR bps "\|]" +.RB "[\|" "\-tty="\c +.IR dev "\|]" +.RB "[\|" "\-s "\c +.I symfile\c +\&\|] +.RB "[\|" "\-e "\c +.I prog\c +\&\|] +.RB "[\|" "\-se "\c +.I prog\c +\&\|] +.RB "[\|" "\-c "\c +.I core\c +\&\|] +.RB "[\|" "\-x "\c +.I cmds\c +\&\|] +.RB "[\|" "\-d "\c +.I dir\c +\&\|] +.RB "[\|" \c +.I prog\c +.RB "[\|" \c +.IR core \||\| procID\c +\&\|]\&\|] +.ad b +.SH DESCRIPTION +The purpose of a debugger such as GDB is to allow you to see what is +going on ``inside'' another program while it executes\(em\&or what another +program was doing at the moment it crashed. + +GDB can do four main kinds of things (plus other things in support of +these) to help you catch bugs in the act: + +.TP +\ \ \ \(bu +Start your program, specifying anything that might affect its behavior. + +.TP +\ \ \ \(bu +Make your program stop on specified conditions. + +.TP +\ \ \ \(bu +Examine what has happened, when your program has stopped. + +.TP +\ \ \ \(bu +Change things in your program, so you can experiment with correcting the +effects of one bug and go on to learn about another. +.PP + +You can use GDB to debug programs written in C, C++, and Modula-2. +Fortran support will be added when a GNU Fortran compiler is ready. + +GDB is invoked with the shell command \c +.B gdb\c +\&. Once started, it reads +commands from the terminal until you tell it to exit with the GDB +command \c +.B quit\c +\&. You can get online help from \c +.B gdb\c +\& itself +by using the command \c +.B help\c +\&. + +You can run \c +.B gdb\c +\& with no arguments or options; but the most +usual way to start GDB is with one argument or two, specifying an +executable program as the argument: +.sp +.br +gdb\ program +.br +.sp + +You can also start with both an executable program and a core file specified: +.sp +.br +gdb\ program\ core +.br +.sp + +You can, instead, specify a process ID as a second argument, if you want +to debug a running process: +.sp +.br +gdb\ program\ 1234 +.br +.sp + +would attach GDB to process \c +.B 1234\c +\& (unless you also have a file +named `\|\c +.B 1234\c +\&\|'; GDB does check for a core file first). + +Here are some of the most frequently needed GDB commands: +.TP +.B break \fR[\|\fIfile\fB:\fR\|]\fIfunction +\& +Set a breakpoint at \c +.I function\c +\& (in \c +.I file\c +\&). +.TP +.B run \fR[\|\fIarglist\fR\|] +Start your program (with \c +.I arglist\c +\&, if specified). +.TP +.B bt +Backtrace: display the program stack. +.TP +.BI print " expr"\c +\& +Display the value of an expression. +.TP +.B c +Continue running your program (after stopping, e.g. at a breakpoint). +.TP +.B next +Execute next program line (after stopping); step \c +.I over\c +\& any +function calls in the line. +.TP +.B step +Execute next program line (after stopping); step \c +.I into\c +\& any +function calls in the line. +.TP +.B help \fR[\|\fIname\fR\|] +Show information about GDB command \c +.I name\c +\&, or general information +about using GDB. +.TP +.B quit +Exit from GDB. +.PP +For full details on GDB, see \c +.I +Using GDB: A Guide to the GNU Source-Level Debugger\c +\&, by Richard M. Stallman and Roland H. Pesch. The same text is available online +as the \c +.B gdb\c +\& entry in the \c +.B info\c +\& program. +.SH OPTIONS +Any arguments other than options specify an executable +file and core file (or process ID); that is, the first argument +encountered with no +associated option flag is equivalent to a `\|\c +.B \-se\c +\&\|' option, and the +second, if any, is equivalent to a `\|\c +.B \-c\c +\&\|' option if it's the name of a file. Many options have +both long and short forms; both are shown here. The long forms are also +recognized if you truncate them, so long as enough of the option is +present to be unambiguous. (If you prefer, you can flag option +arguments with `\|\c +.B +\c +\&\|' rather than `\|\c +.B \-\c +\&\|', though we illustrate the +more usual convention.) + +All the options and command line arguments you give are processed +in sequential order. The order makes a difference when the +`\|\c +.B \-x\c +\&\|' option is used. + +.TP +.B \-help +.TP +.B \-h +List all options, with brief explanations. + +.TP +.BI "\-symbols=" "file"\c +.TP +.BI "\-s " "file"\c +\& +Read symbol table from file \c +.I file\c +\&. + +.TP +.BI "\-exec=" "file"\c +.TP +.BI "\-e " "file"\c +\& +Use file \c +.I file\c +\& as the executable file to execute when +appropriate, and for examining pure data in conjunction with a core +dump. + +.TP +.BI "\-se=" "file"\c +\& +Read symbol table from file \c +.I file\c +\& and use it as the executable +file. + +.TP +.BI "\-core=" "file"\c +.TP +.BI "\-c " "file"\c +\& +Use file \c +.I file\c +\& as a core dump to examine. + +.TP +.BI "\-command=" "file"\c +.TP +.BI "\-x " "file"\c +\& +Execute GDB commands from file \c +.I file\c +\&. + +.TP +.BI "\-directory=" "directory"\c +.TP +.BI "\-d " "directory"\c +\& +Add \c +.I directory\c +\& to the path to search for source files. +.PP + +.TP +.B \-nx +.TP +.B \-n +Do not execute commands from any `\|\c +.B .gdbinit\c +\&\|' initialization files. +Normally, the commands in these files are executed after all the +command options and arguments have been processed. + + +.TP +.B \-quiet +.TP +.B \-q +``Quiet''. Do not print the introductory and copyright messages. These +messages are also suppressed in batch mode. + +.TP +.B \-batch +Run in batch mode. Exit with status \c +.B 0\c +\& after processing all the command +files specified with `\|\c +.B \-x\c +\&\|' (and `\|\c +.B .gdbinit\c +\&\|', if not inhibited). +Exit with nonzero status if an error occurs in executing the GDB +commands in the command files. + +Batch mode may be useful for running GDB as a filter, for example to +download and run a program on another computer; in order to make this +more useful, the message +.sp +.br +Program\ exited\ normally. +.br +.sp + +(which is ordinarily issued whenever a program running under GDB control +terminates) is not issued when running in batch mode. + +.TP +.BI "\-cd=" "directory"\c +\& +Run GDB using \c +.I directory\c +\& as its working directory, +instead of the current directory. + +.TP +.B \-fullname +.TP +.B \-f +Emacs sets this option when it runs GDB as a subprocess. It tells GDB +to output the full file name and line number in a standard, +recognizable fashion each time a stack frame is displayed (which +includes each time the program stops). This recognizable format looks +like two `\|\c +.B \032\c +\&\|' characters, followed by the file name, line number +and character position separated by colons, and a newline. The +Emacs-to-GDB interface program uses the two `\|\c +.B \032\c +\&\|' characters as +a signal to display the source code for the frame. + +.TP +.B \-kernel +.TP +.B \-k +Use gdb in kernel debugging mode. The prompt is set to ``(kgdb)''. + +.TP +.B \-wcore +This option may only be used in kernel debugging mode while +debugging a ``live'' kernel and makes the corefile (/dev/mem) +writable. + +.TP +.BI "\-b " "bps"\c +\& +Set the line speed (baud rate or bits per second) of any serial +interface used by GDB for remote debugging. + +.TP +.BI "\-tty=" "device"\c +\& +Run using \c +.I device\c +\& for your program's standard input and output. +.PP + +.SH "SEE ALSO" +.RB "`\|" gdb "\|'" +entry in +.B info\c +\&; +.I +Using GDB: A Guide to the GNU Source-Level Debugger\c +, Richard M. Stallman and Roland H. Pesch, July 1991. +.SH COPYING +Copyright (c) 1991 Free Software Foundation, Inc. +.PP +Permission is granted to make and distribute verbatim copies of +this manual provided the copyright notice and this permission notice +are preserved on all copies. +.PP +Permission is granted to copy and distribute modified versions of this +manual under the conditions for verbatim copying, provided that the +entire resulting derived work is distributed under the terms of a +permission notice identical to this one. +.PP +Permission is granted to copy and distribute translations of this +manual into another language, under the above conditions for modified +versions, except that this permission notice may be included in +translations approved by the Free Software Foundation instead of in +the original English. diff --git a/gnu/usr.bin/gdb/gdbtui/Makefile b/gnu/usr.bin/gdb/gdbtui/Makefile new file mode 100644 index 000000000000..bd4ec756c09b --- /dev/null +++ b/gnu/usr.bin/gdb/gdbtui/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +PROG= gdbtui +NOMAN= yes +SRCS= tui-main.c + +BULIBS= ${OBJ_BU}/libbfd/libbfd.a ${OBJ_BU}/libopcodes/libopcodes.a \ + ${OBJ_BU}/libiberty/libiberty.a +GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a + +# libthread_db.so calls back into gdb for the proc services. Make all the +# global symbols visible. +LDFLAGS+= -Wl,-E + +DPADD+= ${GDBLIBS} ${BULIBS} ${LIBREADLINE} ${LIBM} +LDADD+= ${GDBLIBS} ${BULIBS} -lreadline -lm + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/gdb/libgdb/Makefile b/gnu/usr.bin/gdb/libgdb/Makefile new file mode 100644 index 000000000000..6c41d1aea34b --- /dev/null +++ b/gnu/usr.bin/gdb/libgdb/Makefile @@ -0,0 +1,52 @@ +# $FreeBSD$ + +LIB= gdb +INTERNALLIB= yes +SRCS= annotate.c arch-utils.c auxv.c ax-gdb.c ax-general.c bcache.c \ + bfd-target.c block.c blockframe.c breakpoint.c buildsym.c \ + c-exp.y c-lang.c c-typeprint.c c-valprint.c charset.c \ + cli-cmds.c cli-decode.c cli-dump.c cli-interp.c cli-logging.c \ + cli-out.c cli-script.c cli-setshow.c cli-utils.c coff-pe-read.c \ + coffread.c complaints.c completer.c copying.c corefile.c \ + corelow.c cp-abi.c cp-namespace.c cp-support.c cp-valprint.c \ + dbxread.c dcache.c demangle.c dictionary.c disasm.c doublest.c \ + dummy-frame.c dwarf2-frame.c dwarf2expr.c dwarf2loc.c \ + dwarf2read.c dwarfread.c elfread.c environ.c eval.c \ + event-loop.c event-top.c exec.c expprint.c f-exp.y f-lang.c \ + f-typeprint.c f-valprint.c findvar.c fork-child.c frame-base.c \ + frame-unwind.c frame.c gdb-events.c gdbarch.c gdbtypes.c \ + gnu-v2-abi.c gnu-v3-abi.c hpacc-abi.c inf-loop.c infcall.c \ + infcmd.c inflow.c infptrace.c infrun.c inftarg.c init.c \ + interps.c jv-exp.y jv-lang.c jv-typeprint.c jv-valprint.c \ + kod-cisco.c kod.c language.c linespec.c m2-exp.y m2-lang.c \ + m2-typeprint.c m2-valprint.c macrocmd.c macroexp.c macroscope.c \ + macrotab.c main.c maint.c mdebugread.c mem-break.c memattr.c \ + mi-cmd-break.c mi-cmd-disas.c mi-cmd-env.c mi-cmd-file.c \ + mi-cmd-stack.c mi-cmd-var.c mi-cmds.c mi-console.c mi-getopt.c \ + mi-interp.c mi-main.c mi-out.c mi-parse.c mi-symbol-cmds.c \ + minsyms.c mipsread.c nlmread.c objc-exp.y objc-lang.c \ + objfiles.c observer.c osabi.c p-exp.y p-lang.c p-typeprint.c \ + p-valprint.c parse.c printcmd.c regcache.c reggroups.c remote.c \ + remote-fileio.c remote-utils.c scm-exp.c scm-lang.c \ + scm-valprint.c sentinel-frame.c ser-pipe.c ser-tcp.c ser-unix.c \ + serial.c signals.c solib.c solib-svr4.c source.c stabsread.c \ + stack.c std-regs.c symfile.c symmisc.c symtab.c target.c \ + thread.c top.c tracepoint.c trad-frame.c tui.c tui-command.c \ + tui-data.c tui-disasm.c tui-file.c tui-hooks.c tui-interp.c \ + tui-io.c tui-layout.c tui-out.c tui-regs.c tui-source.c \ + tui-stack.c tui-win.c tui-windata.c tui-wingeneral.c \ + tui-winsource.c typeprint.c ui-file.c ui-out.c user-regs.c \ + utils.c valarith.c valops.c valprint.c values.c varobj.c \ + wrapper.c ${LIBSRCS} + +GENSRCS= version.c + +version.c: + echo '#include "version.h"' > ${.TARGET} + echo 'const char version[] = ${VERSION};' >> ${.TARGET} + echo 'const char host_name[] = "${MACHINE_ARCH}-${VENDOR}-freebsd";' \ + >> ${.TARGET} + echo 'const char target_name[] = "${TARGET_ARCH}-${VENDOR}-freebsd";' \ + >> ${.TARGET} + +.include <bsd.lib.mk> |