trgt_amd64.c (288371) | trgt_amd64.c (298363) |
---|---|
1/* 2 * Copyright (c) 2004 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2004 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c 288371 2015-09-29 15:47:42Z jhb $"); | 28__FBSDID("$FreeBSD: head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c 298363 2016-04-20 20:22:48Z wma $"); |
29 30#include <sys/types.h> 31#include <machine/pcb.h> 32#include <machine/frame.h> 33#include <err.h> 34#include <kvm.h> 35#include <string.h> 36 --- 153 unchanged lines hidden (view full) --- 190 return (NULL); 191 if (strcmp(pname, "calltrap") == 0 || 192 strcmp(pname, "nmi_calltrap") == 0 || 193 (pname[0] == 'X' && pname[1] != '_')) 194 return (&kgdb_trgt_trapframe_unwind); 195 /* printf("%s: %lx =%s\n", __func__, pc, pname); */ 196 return (NULL); 197} | 29 30#include <sys/types.h> 31#include <machine/pcb.h> 32#include <machine/frame.h> 33#include <err.h> 34#include <kvm.h> 35#include <string.h> 36 --- 153 unchanged lines hidden (view full) --- 190 return (NULL); 191 if (strcmp(pname, "calltrap") == 0 || 192 strcmp(pname, "nmi_calltrap") == 0 || 193 (pname[0] == 'X' && pname[1] != '_')) 194 return (&kgdb_trgt_trapframe_unwind); 195 /* printf("%s: %lx =%s\n", __func__, pc, pname); */ 196 return (NULL); 197} |
198 199/* 200 * This function ensures, that the PC is inside the 201 * function section which is understood by GDB. 202 * 203 * Return 0 when fixup is necessary, -1 otherwise. 204 */ 205int 206kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) 207{ 208 209 return (-1); 210} |
|