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

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

Change 54702 by marcel@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)
 {



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