ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/devel/gdb/files/kgdb/kgdb.h
Revision: 24716
Committed: Mon Nov 26 17:06:28 2018 UTC (5 years, 5 months ago) by laffer1
Content type: text/plain
File size: 2402 byte(s)
Log Message:
update gdb to 8.2

File Contents

# Content
1 /*
2 * Copyright (c) 2004 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/devel/gdb/files/kgdb/kgdb.h 480613 2018-09-24 17:23:35Z jhb $
27 */
28
29 #ifndef _KGDB_H_
30 #define _KGDB_H_
31
32 struct kthr {
33 struct kthr *next;
34 CORE_ADDR paddr;
35 CORE_ADDR kaddr;
36 CORE_ADDR pcb;
37 int tid;
38 int pid;
39 int cpu;
40 };
41
42 extern struct kthr *curkthr;
43 extern struct target_so_ops kld_so_ops;
44 extern int kgdb_quiet;
45
46 CORE_ADDR kgdb_trgt_stop_pcb(u_int);
47
48 struct kthr *kgdb_thr_first(void);
49 struct kthr *kgdb_thr_init(CORE_ADDR (*cpu_pcb_addr) (u_int));
50 struct kthr *kgdb_thr_lookup_tid(int);
51 struct kthr *kgdb_thr_lookup_pid(int);
52 struct kthr *kgdb_thr_lookup_paddr(uintptr_t);
53 struct kthr *kgdb_thr_lookup_taddr(uintptr_t);
54 struct kthr *kgdb_thr_next(struct kthr *);
55 const char *kgdb_thr_extra_thread_info(int);
56
57 enum gdb_osabi fbsd_kernel_osabi_sniffer(bfd *abfd);
58 void fbsd_vmcore_set_supply_pcb (struct gdbarch *gdbarch,
59 void (*supply_pcb) (struct regcache *,
60 CORE_ADDR));
61 void fbsd_vmcore_set_cpu_pcb_addr (struct gdbarch *gdbarch,
62 CORE_ADDR (*cpu_pcb_addr) (u_int));
63
64 CORE_ADDR kgdb_lookup(const char *sym);
65
66 #endif /* _KGDB_H_ */

Properties

Name Value
svn:eol-style native
svn:mime-type text/plain