add support for building a cross-gdb for ARM... This isn't hooked up
to xdev yet as I don't know how to make it work properly... It also isn't heavily tested... Reviewed by: silence on -arm
This commit is contained in:
parent
85e5839202
commit
d5ad10055b
@ -50,7 +50,11 @@ __FBSDID("$FreeBSD$");
|
||||
CORE_ADDR
|
||||
kgdb_trgt_core_pcb(u_int cpuid)
|
||||
{
|
||||
#ifndef CROSS_DEBUGGER
|
||||
return (kgdb_trgt_stop_pcb(cpuid, sizeof(struct pcb)));
|
||||
#else
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -42,11 +42,15 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/elf32.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#ifndef CROSS_LIBKVM
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_param.h>
|
||||
#include <vm/pmap.h>
|
||||
|
||||
#include <machine/pmap.h>
|
||||
#else
|
||||
#include "../../sys/arm/include/pte.h"
|
||||
#include "../../sys/arm/include/vmparam.h"
|
||||
#endif
|
||||
|
||||
#include <db.h>
|
||||
#include <limits.h>
|
||||
|
@ -34,7 +34,9 @@ __FBSDID("$FreeBSD$");
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#ifndef CROSS_LIBKVM
|
||||
#include <sys/user.h>
|
||||
#endif
|
||||
#include <sys/proc.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mman.h>
|
||||
@ -45,12 +47,18 @@ __FBSDID("$FreeBSD$");
|
||||
#include <nlist.h>
|
||||
#include <kvm.h>
|
||||
|
||||
#ifndef CROSS_LIBKVM
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_param.h>
|
||||
|
||||
#include <machine/elf.h>
|
||||
#include <machine/cpufunc.h>
|
||||
#include <machine/minidump.h>
|
||||
#else
|
||||
#include "../../sys/arm/include/pte.h"
|
||||
#include "../../sys/arm/include/vmparam.h"
|
||||
#include "../../sys/arm/include/minidump.h"
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user