X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Ftarget.h;h=272571b75020ae085e665f0023f33f595c40720c;hb=3c0ee1a46468d89b8865cd70616af4558c499b16;hp=0d16139f45cb9c5c36bd907136a51bf9326a482c;hpb=4a5e7a5b0ae022b3cd116e64a45d84f8ad51bc0d;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/target.h b/gdb/target.h index 0d16139f45..272571b750 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -682,6 +682,10 @@ struct target_ops int (*to_verify_memory) (struct target_ops *, const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size); + /* Return the address of the start of the Thread Information Block + a Windows OS specific feature. */ + int (*to_get_tib_address) (ptid_t ptid, CORE_ADDR *addr); + int to_magic; /* Need sub-structure for target machine related rather than comm related? */ @@ -1371,6 +1375,9 @@ extern int target_search_memory (CORE_ADDR start_addr, #define target_set_circular_trace_buffer(val) \ (*current_target.to_set_circular_trace_buffer) (val) +#define target_get_tib_address(ptid, addr) \ + (*current_target.to_get_tib_address) ((ptid), (addr)) + /* Command logging facility. */ #define target_log_command(p) \