aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2002-10-23 23:37:33 +0000
committerDavid Carlton <carlton@bactrian.org>2002-10-23 23:37:33 +0000
commit8da065d53ccd9ed50eb9b30979672ba0ead52a1c (patch)
treeee2be981e4a27d4b3a5594ebf7470a604e3f45fc
parent87f2f08c7fbf5adf4a48ad01d5b9e0ed45e6f8ab (diff)
downloadgdb-8da065d53ccd9ed50eb9b30979672ba0ead52a1c.zip
gdb-8da065d53ccd9ed50eb9b30979672ba0ead52a1c.tar.gz
gdb-8da065d53ccd9ed50eb9b30979672ba0ead52a1c.tar.bz2
2002-10-23 David Carlton <carlton@math.stanford.edu>
* parse.c (parse_exp_1): Use BLOCK_START. * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END, SYMBOL_BLOCK_VALUE. * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/objc-lang.c4
-rw-r--r--gdb/parse.c2
-rw-r--r--gdb/x86-64-tdep.c2
4 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8c4b6e3..09259e5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2002-10-23 David Carlton <carlton@math.stanford.edu>
+ * parse.c (parse_exp_1): Use BLOCK_START.
+ * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
+ SYMBOL_BLOCK_VALUE.
+ * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
+
+2002-10-23 David Carlton <carlton@math.stanford.edu>
+
* symtab.c: Delete cplusplus_hint.
Delete prototype for find_template_name_end.
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index 0c749a2..2ed2c2e 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -1320,8 +1320,8 @@ find_methods (struct symtab *symtab, char type,
continue;
if (symtab)
- if ((SYMBOL_VALUE_ADDRESS (msymbol) < block->startaddr) ||
- (SYMBOL_VALUE_ADDRESS (msymbol) >= block->endaddr))
+ if ((SYMBOL_VALUE_ADDRESS (msymbol) < BLOCK_START (block)) ||
+ (SYMBOL_VALUE_ADDRESS (msymbol) >= BLOCK_END (block)))
/* Not in the specified symtab. */
continue;
diff --git a/gdb/parse.c b/gdb/parse.c
index 5a5612f..5d81dfd 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -1123,7 +1123,7 @@ parse_exp_1 (char **stringptr, struct block *block, int comma)
if (block)
{
expression_context_block = block;
- expression_context_pc = block->startaddr;
+ expression_context_pc = BLOCK_START (block);
}
else
expression_context_block = get_selected_block (&expression_context_pc);
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index dbc5611..31f32f1 100644
--- a/gdb/x86-64-tdep.c
+++ b/gdb/x86-64-tdep.c
@@ -889,7 +889,7 @@ x86_64_skip_prologue (CORE_ADDR pc)
if (!v_function || !v_function->ginfo.value.block || !v_sal.symtab)
return pc;
- endaddr = v_function->ginfo.value.block->endaddr;
+ endaddr = BLOCK_END (SYMBOL_BLOCK_VALUE (v_function));
for (i = 0; i < v_sal.symtab->linetable->nitems; i++)
if (v_sal.symtab->linetable->item[i].pc >= pc