From df407dfe2e8452c0a3edfcf50d55942ff0273433 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 12 Nov 2004 21:45:08 +0000 Subject: 2004-11-12 Andrew Cagney * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE) (VALUE_BITPOS): Delete. (value_type, value_offset, value_bitsize, value_bitpos): Declare. * value.c (value_type, value_offset, value_bitpos) (value_bitsize): New functions. Update references. * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update. * f-valprint.c, cp-valprint.c, c-valprint.c: Update. * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update. * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update. * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update. * infcall.c, linespec.c, printcmd.c, valarith.c: Update. * valops.c, eval.c, findvar.c, breakpoint.c: Update. * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c: * rs6000-tdep.c, ppc-sysv-tdep.c: Update. --- gdb/breakpoint.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'gdb/breakpoint.c') diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5537673..0c0dd1e 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -401,7 +401,7 @@ get_number_trailer (char **pp, int trailer) strncpy (varname, start, p - start); varname[p - start] = '\0'; val = value_of_internalvar (lookup_internalvar (varname)); - if (TYPE_CODE (VALUE_TYPE (val)) == TYPE_CODE_INT) + if (TYPE_CODE (value_type (val)) == TYPE_CODE_INT) retval = (int) value_as_long (val); else { @@ -962,7 +962,7 @@ insert_bp_location (struct bp_location *bpt, if (VALUE_LVAL (v) == lval_memory && ! VALUE_LAZY (v)) { - struct type *vtype = check_typedef (VALUE_TYPE (v)); + struct type *vtype = check_typedef (value_type (v)); /* We only watch structs and arrays if user asked for it explicitly, never if they just happen to @@ -974,8 +974,8 @@ insert_bp_location (struct bp_location *bpt, CORE_ADDR addr; int len, type; - addr = VALUE_ADDRESS (v) + VALUE_OFFSET (v); - len = TYPE_LENGTH (VALUE_TYPE (v)); + addr = VALUE_ADDRESS (v) + value_offset (v); + len = TYPE_LENGTH (value_type (v)); type = hw_write; if (bpt->owner->type == bp_read_watchpoint) type = hw_read; @@ -1495,7 +1495,7 @@ remove_breakpoint (struct bp_location *b, insertion_state_t is) if (VALUE_LVAL (v) == lval_memory && ! VALUE_LAZY (v)) { - struct type *vtype = check_typedef (VALUE_TYPE (v)); + struct type *vtype = check_typedef (value_type (v)); if (v == b->owner->val_chain || (TYPE_CODE (vtype) != TYPE_CODE_STRUCT @@ -1504,8 +1504,8 @@ remove_breakpoint (struct bp_location *b, insertion_state_t is) CORE_ADDR addr; int len, type; - addr = VALUE_ADDRESS (v) + VALUE_OFFSET (v); - len = TYPE_LENGTH (VALUE_TYPE (v)); + addr = VALUE_ADDRESS (v) + value_offset (v); + len = TYPE_LENGTH (value_type (v)); type = hw_write; if (b->owner->type == bp_read_watchpoint) type = hw_read; @@ -2748,7 +2748,7 @@ bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid, int stopped_by_watchpoint) if (VALUE_LVAL (v) == lval_memory && ! VALUE_LAZY (v)) { - struct type *vtype = check_typedef (VALUE_TYPE (v)); + struct type *vtype = check_typedef (value_type (v)); if (v == b->val_chain || (TYPE_CODE (vtype) != TYPE_CODE_STRUCT @@ -2756,11 +2756,11 @@ bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid, int stopped_by_watchpoint) { CORE_ADDR vaddr; - vaddr = VALUE_ADDRESS (v) + VALUE_OFFSET (v); + vaddr = VALUE_ADDRESS (v) + value_offset (v); /* Exact match not required. Within range is sufficient. */ if (addr >= vaddr && - addr < vaddr + TYPE_LENGTH (VALUE_TYPE (v))) + addr < vaddr + TYPE_LENGTH (value_type (v))) found = 1; } } @@ -5994,7 +5994,7 @@ can_use_hardware_watchpoint (struct value *v) { /* Ahh, memory we actually used! Check if we can cover it with hardware watchpoints. */ - struct type *vtype = check_typedef (VALUE_TYPE (v)); + struct type *vtype = check_typedef (value_type (v)); /* We only watch structs and arrays if user asked for it explicitly, never if they just happen to appear in a @@ -6003,8 +6003,8 @@ can_use_hardware_watchpoint (struct value *v) || (TYPE_CODE (vtype) != TYPE_CODE_STRUCT && TYPE_CODE (vtype) != TYPE_CODE_ARRAY)) { - CORE_ADDR vaddr = VALUE_ADDRESS (v) + VALUE_OFFSET (v); - int len = TYPE_LENGTH (VALUE_TYPE (v)); + CORE_ADDR vaddr = VALUE_ADDRESS (v) + value_offset (v); + int len = TYPE_LENGTH (value_type (v)); if (!TARGET_REGION_OK_FOR_HW_WATCHPOINT (vaddr, len)) return 0; -- cgit v1.1