aboutsummaryrefslogtreecommitdiff
path: root/sys/ddb/db_break.h
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2001-09-15 11:06:07 +0000
committerDoug Rabson <dfr@FreeBSD.org>2001-09-15 11:06:07 +0000
commit3a0b4f259c31ab78da84510d8acf73cc38a2c065 (patch)
tree436c5cb5980e2a98d7b1f21477fbda20cf5f27ed /sys/ddb/db_break.h
parentde1792cbb842c2a9a54a993e69fac2a36b911b36 (diff)
downloadsrc-3a0b4f259c31ab78da84510d8acf73cc38a2c065.tar.gz
src-3a0b4f259c31ab78da84510d8acf73cc38a2c065.zip
Fill out some gaps in ia64 DDB support. This involves generalising DDB's
breakpoint handling slightly to cope with the fact that ia64 instructions are not located on byte boundaries.
Notes
Notes: svn path=/head/; revision=83506
Diffstat (limited to 'sys/ddb/db_break.h')
-rw-r--r--sys/ddb/db_break.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ddb/db_break.h b/sys/ddb/db_break.h
index 008acab85b1e..88520da73d79 100644
--- a/sys/ddb/db_break.h
+++ b/sys/ddb/db_break.h
@@ -37,6 +37,10 @@
* Breakpoint.
*/
+#ifndef BKPT_INST_TYPE
+#define BKPT_INST_TYPE int
+#endif
+
struct db_breakpoint {
vm_map_t map; /* in this map */
db_addr_t address; /* set here */
@@ -45,7 +49,7 @@ struct db_breakpoint {
int flags; /* flags: */
#define BKPT_SINGLE_STEP 0x2 /* to simulate single step */
#define BKPT_TEMP 0x4 /* temporary */
- int bkpt_inst; /* saved instruction at bkpt */
+ BKPT_INST_TYPE bkpt_inst; /* saved instruction at bkpt */
struct db_breakpoint *link; /* link in in-use or free chain */
};
typedef struct db_breakpoint *db_breakpoint_t;