db_disasm.c (278655) | db_disasm.c (283248) |
---|---|
1/*- 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 11 unchanged lines hidden (view full) --- 20 * Carnegie Mellon University 21 * Pittsburgh PA 15213-3890 22 * 23 * any improvements or extensions that they make and grant Carnegie the 24 * rights to redistribute these changes. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 11 unchanged lines hidden (view full) --- 20 * Carnegie Mellon University 21 * Pittsburgh PA 15213-3890 22 * 23 * any improvements or extensions that they make and grant Carnegie the 24 * rights to redistribute these changes. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/amd64/amd64/db_disasm.c 278655 2015-02-13 01:35:53Z markj $"); | 28__FBSDID("$FreeBSD: head/sys/amd64/amd64/db_disasm.c 283248 2015-05-21 15:16:18Z pfg $"); |
29 30/* 31 * Instruction disassembler. 32 */ 33#include <sys/param.h> 34#include <sys/libkern.h> 35 36#include <ddb/ddb.h> --- 1181 unchanged lines hidden (view full) --- 1218} 1219 1220/* 1221 * Disassemble instruction at 'loc'. 'altfmt' specifies an 1222 * (optional) alternate format. Return address of start of 1223 * next instruction. 1224 */ 1225db_addr_t | 29 30/* 31 * Instruction disassembler. 32 */ 33#include <sys/param.h> 34#include <sys/libkern.h> 35 36#include <ddb/ddb.h> --- 1181 unchanged lines hidden (view full) --- 1218} 1219 1220/* 1221 * Disassemble instruction at 'loc'. 'altfmt' specifies an 1222 * (optional) alternate format. Return address of start of 1223 * next instruction. 1224 */ 1225db_addr_t |
1226db_disasm(loc, altfmt) 1227 db_addr_t loc; 1228 boolean_t altfmt; | 1226db_disasm(db_addr_t loc, bool altfmt) |
1229{ 1230 int inst; 1231 int size; 1232 int short_addr; 1233 const char * seg; 1234 const struct inst * ip; 1235 const char * i_name; 1236 int i_size; --- 493 unchanged lines hidden --- | 1227{ 1228 int inst; 1229 int size; 1230 int short_addr; 1231 const char * seg; 1232 const struct inst * ip; 1233 const char * i_name; 1234 int i_size; --- 493 unchanged lines hidden --- |