* Makefile.in (elf_common_h): Define.
[deliverable/binutils-gdb.git] / gdb / kod.h
CommitLineData
c2c6d25f 1/* Kernel Object Display facility for Cisco
197e01b6 2 Copyright (C) 1999 Free Software Foundation, Inc.
c2c6d25f
JM
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
197e01b6
EZ
18Foundation, Inc., 51 Franklin Street, Fifth Floor,
19Boston, MA 02110-1301, USA. */
c2c6d25f
JM
20
21#ifndef KOD_H
22#define KOD_H
23
24typedef void kod_display_callback_ftype (char *);
25typedef void kod_query_callback_ftype (char *, char *, int *);
26
27/* ???/???: Functions imported from the library for all supported
28 OSes. FIXME: we really should do something better, such as
29 dynamically loading the KOD modules. */
30
31/* FIXME: cagney/1999-09-20: The kod-cisco.c et.al. kernel modules
32 should register themselve with kod.c during the _initialization*()
33 phase. With that implemented the extern declarations below would
34 be replaced with the KOD register function that the various kernel
35 modules should call. An example of this mechanism can be seen in
36 gdbarch.c:register_gdbarch_init(). */
37
38#if 0
39/* Don't have ecos code yet. */
40extern char *ecos_kod_open (kod_display_callback_ftype *display_func,
41 kod_query_callback_ftype *query_func);
42extern void ecos_kod_request (char *, int);
43extern void ecos_kod_close (void);
44#endif
45
46/* Initialize and return library name and version. The gdb side of
47 KOD, kod.c, passes us two functions: one for displaying output
48 (presumably to the user) and the other for querying the target. */
49
50extern char *cisco_kod_open (kod_display_callback_ftype *display_func,
51 kod_query_callback_ftype *query_func);
52
53/* Print information about currently known kernel objects. We
54 currently ignore the argument. There is only one mode of querying
55 the Cisco kernel: we ask for a dump of everything, and it returns
56 it. */
57
58extern void cisco_kod_request (char *arg, int from_tty);
59
60extern void cisco_kod_close (void);
61
62#endif
This page took 0.468433 seconds and 4 git commands to generate.