From: Andrew Cagney Date: Tue, 6 Apr 2004 17:56:01 +0000 (+0000) Subject: 2004-04-06 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d5189699cd755651791c79e9a4ab7c23484267b;p=binutils-gdb.git 2004-04-06 Andrew Cagney * hppah-nat.c (hpux_has_forked, hpux_has_vforked) (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h", move extern declarations from here ... * infttrace.h: ... to here. * Makefile.in (hppah-nat.o): Update dependencies. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index da5f30144d1..c2509e60772 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2004-04-06 Andrew Cagney + * hppah-nat.c (hpux_has_forked, hpux_has_vforked) + (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h", + move extern declarations from here ... + * infttrace.h: ... to here. + * Makefile.in (hppah-nat.o): Update dependencies. + * hppa-tdep.c (hppa_breakpoint_from_pc): Make static. (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32): diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 555badcb24d..f846a86d515 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1816,7 +1816,7 @@ h8300-tdep.o: h8300-tdep.c $(defs_h) $(value_h) $(inferior_h) $(symfile_h) \ hpacc-abi.o: hpacc-abi.c $(defs_h) $(value_h) $(gdb_regex_h) $(gdb_string_h) \ $(gdbtypes_h) $(gdbcore_h) $(cp_abi_h) hppah-nat.o: hppah-nat.c $(defs_h) $(inferior_h) $(target_h) $(gdbcore_h) \ - $(gdb_wait_h) $(regcache_h) $(gdb_string_h) + $(gdb_wait_h) $(regcache_h) $(gdb_string_h) $(infttrace_h) hppa-hpux-tdep.o: hppa-hpux-tdep.c $(defs_h) $(arch_utils_h) $(gdbcore_h) \ $(osabi_h) $(gdb_string_h) $(frame_h) hppa-tdep.o: hppa-tdep.c $(defs_h) $(frame_h) $(bfd_h) $(inferior_h) \ diff --git a/gdb/hppah-nat.c b/gdb/hppah-nat.c index ea4015a8d32..98ea60d4024 100644 --- a/gdb/hppah-nat.c +++ b/gdb/hppah-nat.c @@ -32,13 +32,9 @@ #include "gdb_wait.h" #include "regcache.h" #include "gdb_string.h" +#include "infttrace.h" #include -extern int hpux_has_forked (int pid, int *childpid); -extern int hpux_has_vforked (int pid, int *childpid); -extern int hpux_has_execd (int pid, char **execd_pathname); -extern int hpux_has_syscall_event (int pid, enum target_waitkind *kind, - int *syscall_id); static CORE_ADDR text_end; diff --git a/gdb/infttrace.h b/gdb/infttrace.h index d3330e3b85a..b3f4092ff05 100644 --- a/gdb/infttrace.h +++ b/gdb/infttrace.h @@ -1,6 +1,6 @@ /* Low level Unix child interface to ttrace, for GDB when running under HP-UX. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2004 Free Software Foundation, Inc. This file is part of GDB. @@ -24,5 +24,10 @@ extern int parent_attach_all (int, PTRACE_ARG3_TYPE, int); extern pid_t hppa_switched_threads (pid_t gdb_pid); +extern int hpux_has_forked (int pid, int *childpid); +extern int hpux_has_vforked (int pid, int *childpid); +extern int hpux_has_execd (int pid, char **execd_pathname); +extern int hpux_has_syscall_event (int pid, enum target_waitkind *kind, + int *syscall_id); #endif