PERFORCE change 54702 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sat Jun 12 06:09:29 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=54702
Change 54702 by marcel at marcel_nfs on 2004/06/12 06:08:47
Implement gdb_cpu_frame() for ia64.
Affected files ...
.. //depot/projects/gdb/usr.bin/kgdb/md_ia64.c#2 edit
Differences ...
==== //depot/projects/gdb/usr.bin/kgdb/md_ia64.c#2 (text+ko) ====
@@ -27,6 +27,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <sys/param.h>
+#include <sys/proc.h>
#include <sys/types.h>
#include <sys/signal.h>
#include <errno.h>
@@ -34,6 +36,7 @@
#include <inttypes.h>
#include <kvm.h>
#include <stdio.h>
+#include <stdlib.h>
#include <machine/frame.h>
#include <machine/gdb_machdep.h>
@@ -41,6 +44,16 @@
#include "kgdb.h"
+struct trapframe *
+gdb_cpu_frame(struct thread *td)
+{
+ struct trapframe *tf;
+
+ tf = malloc(sizeof(*tf));
+ kvm_read(kvm, (uintptr_t)td->td_last_frame, tf, sizeof(*tf));
+ return (tf);
+}
+
void *
gdb_cpu_getreg(int regnum, size_t *regsz)
{
More information about the p4-projects
mailing list