diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-11-23 21:14:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-11-23 21:14:33 +0000 |
commit | eee22bf873de2eb949376a9f0c1b2b80c2f18267 (patch) | |
tree | 114f291a1b3d172a19a32dc990b657323ee9e400 /gdb/inf-ttrace.h | |
parent | 3ca649544956e996656d40602064d9169949252b (diff) | |
download | gdb-eee22bf873de2eb949376a9f0c1b2b80c2f18267.zip gdb-eee22bf873de2eb949376a9f0c1b2b80c2f18267.tar.gz gdb-eee22bf873de2eb949376a9f0c1b2b80c2f18267.tar.bz2 |
* inf-ttrace.c: New file.
* inf-ttrace.h: New file.
* hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
Include "inf-ttrace.h".
(ss_mpsfu_high): Define to ss_tlsp if necessary.
(hppa_hpux_fetch_register, hppa_hpux_store_register): Use
ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
ptrace systems.
(_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
instead of inf_ptrace_target.
* config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
* Makefile.in (inf_ttrace_h): New variable.
(hppa-hpux-nat.o): Update dependency.
(inf-ttrace.o): New dependency.
(ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
Diffstat (limited to 'gdb/inf-ttrace.h')
-rw-r--r-- | gdb/inf-ttrace.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gdb/inf-ttrace.h b/gdb/inf-ttrace.h new file mode 100644 index 0000000..cc38cbf --- /dev/null +++ b/gdb/inf-ttrace.h @@ -0,0 +1,30 @@ +/* Low-level child interface to ttrace. + + Copyright 2004 Free Software Foundation, Inc. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#ifndef INF_TTRACE_H +#define INF_TTRACE_H + +/* Create a prototype ttrace target. The client can override it with + local methods. */ + +extern struct target_ops *inf_ttrace_target (void); + +#endif |