Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 2004 06:07:53 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54701 for review
Message-ID:  <200406120607.i5C67rhD080169@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54701

Change 54701 by marcel@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406120607.i5C67rhD080169>