xref: /dragonfly/contrib/gdb-7/gdb/fbsd-nat.h (revision ef5ccd6c)
15796c8dcSSimon Schubert /* Native-dependent code for FreeBSD.
25796c8dcSSimon Schubert 
3*ef5ccd6cSJohn Marino    Copyright (C) 2004-2013 Free Software Foundation, Inc.
45796c8dcSSimon Schubert 
55796c8dcSSimon Schubert    This file is part of GDB.
65796c8dcSSimon Schubert 
75796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
85796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
95796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
105796c8dcSSimon Schubert    (at your option) any later version.
115796c8dcSSimon Schubert 
125796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
135796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
145796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
155796c8dcSSimon Schubert    GNU General Public License for more details.
165796c8dcSSimon Schubert 
175796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
185796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
195796c8dcSSimon Schubert 
205796c8dcSSimon Schubert #ifndef FBSD_NAT_H
215796c8dcSSimon Schubert #define FBSD_NAT_H
225796c8dcSSimon Schubert 
23c50c785cSJohn Marino /* Return the name of a file that can be opened to get the symbols for
245796c8dcSSimon Schubert    the child process identified by PID.  */
255796c8dcSSimon Schubert 
265796c8dcSSimon Schubert extern char *fbsd_pid_to_exec_file (int pid);
275796c8dcSSimon Schubert 
285796c8dcSSimon Schubert /* Iterate over all the memory regions in the current inferior,
295796c8dcSSimon Schubert    calling FUNC for each memory region.  OBFD is passed as the last
305796c8dcSSimon Schubert    argument to FUNC.  */
315796c8dcSSimon Schubert 
32*ef5ccd6cSJohn Marino extern int fbsd_find_memory_regions (find_memory_region_ftype func, void *obfd);
335796c8dcSSimon Schubert 
345796c8dcSSimon Schubert /* Create appropriate note sections for a corefile, returning them in
355796c8dcSSimon Schubert    allocated memory.  */
365796c8dcSSimon Schubert 
375796c8dcSSimon Schubert extern char *fbsd_make_corefile_notes (bfd *obfd, int *note_size);
385796c8dcSSimon Schubert 
395796c8dcSSimon Schubert #endif /* fbsd-nat.h */
40