Source changes to allow building a cross-debugger. Move solib.c and
solib-svr4.c to the MD makefiles because they are native files for alpha and sparc64, but target files for amd64, i386 and ia64. Note that kgdb(1) does not yet build as a cross-debugger due to libkvm.
This commit is contained in:
parent
9055ed836a
commit
6add7f75e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138383
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.if !defined(GDB_CROSS_DEBUGGER)
|
||||
LIBSRCS+= core-regset.c solib-legacy.c
|
||||
LIBSRCS+= core-regset.c solib.c solib-legacy.c solib-svr4.c
|
||||
LIBSRCS+= alphabsd-nat.c
|
||||
.endif
|
||||
LIBSRCS+= alpha-mdebug-tdep.c alpha-tdep.c alphabsd-tdep.c alphafbsd-tdep.c
|
||||
|
@ -174,7 +174,9 @@
|
||||
#define GDB_TM_FILE config/alpha/tm-fbsd.h
|
||||
|
||||
/* nativefile */
|
||||
#ifndef CROSS_DEBUGGER
|
||||
#define GDB_NM_FILE config/alpha/nm-fbsd.h
|
||||
#endif
|
||||
|
||||
/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works
|
||||
around a <sys/proc.h> problem on IRIX 5. */
|
||||
|
@ -120,14 +120,18 @@ initialize_all_files (void)
|
||||
_initialize_ser_hardwire ();
|
||||
_initialize_ser_pipe ();
|
||||
_initialize_ser_tcp ();
|
||||
#ifndef CROSS_DEBUGGER
|
||||
_initialize_kernel_u_addr ();
|
||||
_initialize_infptrace ();
|
||||
_initialize_inftarg ();
|
||||
_initialize_solib ();
|
||||
_initialize_svr4_solib ();
|
||||
_initialize_svr4_lm ();
|
||||
#endif
|
||||
_initialize_corelow ();
|
||||
#ifndef CROSS_DEBUGGER
|
||||
_initialize_core_regset ();
|
||||
#endif
|
||||
_initialize_remote ();
|
||||
_initialize_dcache ();
|
||||
_initialize_sr_support ();
|
||||
|
@ -5,6 +5,7 @@ GENSRCS+= xm.h
|
||||
LIBSRCS+= fbsd-proc.c fbsd-threads.c gcore.c
|
||||
LIBSRCS+= amd64-nat.c amd64bsd-nat.c amd64fbsd-nat.c
|
||||
.endif
|
||||
LIBSRCS+= solib.c solib-svr4.c
|
||||
LIBSRCS+= amd64-tdep.c amd64fbsd-tdep.c i386-tdep.c i386bsd-tdep.c \
|
||||
i386fbsd-tdep.c i387-tdep.c
|
||||
|
||||
|
@ -174,7 +174,9 @@
|
||||
#define GDB_TM_FILE config/i386/tm-fbsd.h
|
||||
|
||||
/* nativefile */
|
||||
#ifndef CROSS_DEBUGGER
|
||||
#define GDB_NM_FILE config/i386/nm-fbsd64.h
|
||||
#endif
|
||||
|
||||
/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works
|
||||
around a <sys/proc.h> problem on IRIX 5. */
|
||||
|
@ -129,6 +129,7 @@ initialize_all_files (void)
|
||||
_initialize_ser_hardwire ();
|
||||
_initialize_ser_pipe ();
|
||||
_initialize_ser_tcp ();
|
||||
#ifndef CROSS_DEBUGGER
|
||||
_initialize_kernel_u_addr ();
|
||||
_initialize_infptrace ();
|
||||
_initialize_inftarg ();
|
||||
@ -136,6 +137,7 @@ initialize_all_files (void)
|
||||
_initialize_gcore ();
|
||||
_initialize_fbsd_proc ();
|
||||
_initialize_thread_db ();
|
||||
#endif
|
||||
_initialize_remote ();
|
||||
_initialize_dcache ();
|
||||
_initialize_sr_support ();
|
||||
|
@ -5,6 +5,7 @@ GENSRCS+= xm.h
|
||||
LIBSRCS+= fbsd-proc.c fbsd-threads.c gcore.c
|
||||
LIBSRCS+= i386-nat.c i386bsd-nat.c i386fbsd-nat.c
|
||||
.endif
|
||||
LIBSRCS+= solib.c solib-svr4.c
|
||||
LIBSRCS+= i386-tdep.c i386bsd-tdep.c i386fbsd-tdep.c i387-tdep.c
|
||||
|
||||
nm.h:
|
||||
|
@ -174,7 +174,9 @@
|
||||
#define GDB_TM_FILE config/i386/tm-fbsd.h
|
||||
|
||||
/* nativefile */
|
||||
#ifndef CROSS_DEBUGGER
|
||||
#define GDB_NM_FILE config/i386/nm-fbsd.h
|
||||
#endif
|
||||
|
||||
/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works
|
||||
around a <sys/proc.h> problem on IRIX 5. */
|
||||
|
@ -129,6 +129,7 @@ initialize_all_files (void)
|
||||
_initialize_ser_hardwire ();
|
||||
_initialize_ser_pipe ();
|
||||
_initialize_ser_tcp ();
|
||||
#ifndef CROSS_DEBUGGER
|
||||
_initialize_kernel_u_addr ();
|
||||
_initialize_infptrace ();
|
||||
_initialize_inftarg ();
|
||||
@ -138,6 +139,7 @@ initialize_all_files (void)
|
||||
_initialize_gcore ();
|
||||
_initialize_fbsd_proc ();
|
||||
_initialize_thread_db ();
|
||||
#endif
|
||||
_initialize_remote ();
|
||||
_initialize_dcache ();
|
||||
_initialize_sr_support ();
|
||||
|
@ -4,6 +4,7 @@
|
||||
LIBSRCS+= fbsd-proc.c gcore.c
|
||||
LIBSRCS+= ia64-fbsd-nat.c
|
||||
.endif
|
||||
LIBSRCS+= solib.c solib-svr4.c
|
||||
LIBSRCS+= ia64-fbsd-tdep.c ia64-tdep.c
|
||||
|
||||
nm.h:
|
||||
|
@ -174,7 +174,9 @@
|
||||
#define GDB_TM_FILE config/ia64/tm-fbsd.h
|
||||
|
||||
/* nativefile */
|
||||
#ifndef CROSS_DEBUGGER
|
||||
#define GDB_NM_FILE config/ia64/nm-fbsd.h
|
||||
#endif
|
||||
|
||||
/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works
|
||||
around a <sys/proc.h> problem on IRIX 5. */
|
||||
|
@ -124,12 +124,14 @@ initialize_all_files (void)
|
||||
_initialize_ser_hardwire ();
|
||||
_initialize_ser_pipe ();
|
||||
_initialize_ser_tcp ();
|
||||
#ifndef CROSS_DEBUGGER
|
||||
_initialize_fbsd_proc ();
|
||||
_initialize_gcore ();
|
||||
_initialize_ia64_fbsd_nat ();
|
||||
_initialize_kernel_u_addr ();
|
||||
_initialize_infptrace ();
|
||||
_initialize_inftarg ();
|
||||
#endif
|
||||
_initialize_remote ();
|
||||
_initialize_dcache ();
|
||||
_initialize_sr_support ();
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.if !defined(GDB_CROSS_DEBUGGER)
|
||||
LIBSRCS+= solib-legacy.c
|
||||
LIBSRCS+= solib.c solib-legacy.c solib-svr4.c
|
||||
LIBSRCS+= sparc-nat.c sparc64-nat.c sparc64fbsd-nat.c
|
||||
.endif
|
||||
LIBSRCS+= sparc-tdep.c sparc64-tdep.c sparc64fbsd-tdep.c
|
||||
|
@ -174,7 +174,9 @@
|
||||
#define GDB_TM_FILE config/sparc/tm-fbsd.h
|
||||
|
||||
/* nativefile */
|
||||
#ifndef CROSS_DEBUGGER
|
||||
#define GDB_NM_FILE config/sparc/nm-fbsd.h
|
||||
#endif
|
||||
|
||||
/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works
|
||||
around a <sys/proc.h> problem on IRIX 5. */
|
||||
|
@ -123,6 +123,7 @@ initialize_all_files (void)
|
||||
_initialize_ser_hardwire ();
|
||||
_initialize_ser_pipe ();
|
||||
_initialize_ser_tcp ();
|
||||
#ifndef CROSS_DEBUGGER
|
||||
_initialize_sparc64fbsd_nat ();
|
||||
_initialize_sparc64_nat ();
|
||||
_initialize_sparc_nat ();
|
||||
@ -132,6 +133,7 @@ initialize_all_files (void)
|
||||
_initialize_solib ();
|
||||
_initialize_svr4_solib ();
|
||||
_initialize_svr4_lm ();
|
||||
#endif
|
||||
_initialize_remote ();
|
||||
_initialize_dcache ();
|
||||
_initialize_sr_support ();
|
||||
|
@ -37,9 +37,8 @@ SRCS= annotate.c arch-utils.c auxv.c ax-gdb.c ax-general.c \
|
||||
p-exp.y p-lang.c p-typeprint.c p-valprint.c parse.c printcmd.c \
|
||||
regcache.c reggroups.c remote-fileio.c remote-utils.c remote.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 \
|
||||
ser-tcp.c ser-unix.c serial.c signals.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-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 \
|
||||
|
Loading…
Reference in New Issue
Block a user