PERFORCE change 54701 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sat Jun 12 06:08:18 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=54701
Change 54701 by marcel at marcel_nfs on 2004/06/12 06:07:25
Add a prototype of gdb_cpu_frame(). The function will return
a filled-in trapframe given a struct thread. The implementation
will be in md_${ARCH}.c so that we can deal with the various
MD quirks.
Add a next pointer to struct kthr and also save the kernel
address of the corresponding struct thread there.
Affected files ...
.. //depot/projects/gdb/usr.bin/kgdb/kgdb.h#4 edit
Differences ...
==== //depot/projects/gdb/usr.bin/kgdb/kgdb.h#4 (text+ko) ====
@@ -27,10 +27,15 @@
#ifndef _KGDB_H_
#define _KGDB_H_
+struct trapframe;
+struct thread;
+
extern char *gdb_rxp;
extern size_t gdb_rxsz;
extern char *gdb_txp;
+struct trapframe *gdb_cpu_frame(struct thread *);
+
void gdb_packet_data(const char *, size_t);
int gdb_packet_recv(char *, size_t);
int gdb_packet_send(const char *, size_t);
@@ -106,12 +111,12 @@
extern kvm_t *kvm;
-struct trapframe;
-
struct kthr {
+ struct kthr *next;
+ uintptr_t kaddr;
struct trapframe *td_frame;
- uintptr_t td_kstack;
- int td_tid;
+ uintptr_t td_kstack;
+ int td_tid;
};
extern struct kthr *curkthr;
More information about the p4-projects
mailing list