aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-02 04:16:24 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-02 04:16:24 +0000
commitb59661bd15b66aa6cb11fafd624fd534cce0fa98 (patch)
tree646fb5692f791365b1c5d87645655a2a4c018a0d /gdb/block.c
parent5ef165c2ea8fea1f72c392c3dddc687ca58b1b87 (diff)
downloadgdb-b59661bd15b66aa6cb11fafd624fd534cce0fa98.zip
gdb-b59661bd15b66aa6cb11fafd624fd534cce0fa98.tar.gz
gdb-b59661bd15b66aa6cb11fafd624fd534cce0fa98.tar.bz2
2003-06-01 Andrew Cagney <cagney@redhat.com>
* dwarfread.c: Eliminate "register" (decode_die_type): Eliminate assignment within "if". (struct_type, decode_array_element_type): Ditto. (dwarf_read_array_type, read_tag_pointer_type): Ditto. (read_subroutine_type, enum_type, add_enum_psymbol): Ditto. (decode_modified_type, completedieinfo): Ditto. * block.c: Eliminate "register". (blockvector_for_pc_sect): Eliminate assignment within "if". * cp-support.h (struct symbol): Opaque declaration. * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
Diffstat (limited to 'gdb/block.c')
-rw-r--r--gdb/block.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/block.c b/gdb/block.c
index 3396c8a..09c51b6 100644
--- a/gdb/block.c
+++ b/gdb/block.c
@@ -71,17 +71,18 @@ block_function (struct block *bl)
is NULL, we don't pass this information back to the caller. */
struct blockvector *
-blockvector_for_pc_sect (register CORE_ADDR pc, struct sec *section,
+blockvector_for_pc_sect (CORE_ADDR pc, struct sec *section,
int *pindex, struct symtab *symtab)
{
- register struct block *b;
- register int bot, top, half;
+ struct block *b;
+ int bot, top, half;
struct blockvector *bl;
if (symtab == 0) /* if no symtab specified by caller */
{
/* First search all symtabs for one whose file contains our pc */
- if ((symtab = find_pc_sect_symtab (pc, section)) == 0)
+ symtab = find_pc_sect_symtab (pc, section);
+ if (symtab == 0)
return 0;
}
@@ -125,7 +126,7 @@ blockvector_for_pc_sect (register CORE_ADDR pc, struct sec *section,
Backward compatibility, no section. */
struct blockvector *
-blockvector_for_pc (register CORE_ADDR pc, int *pindex)
+blockvector_for_pc (CORE_ADDR pc, int *pindex)
{
return blockvector_for_pc_sect (pc, find_pc_mapped_section (pc),
pindex, NULL);
@@ -135,9 +136,9 @@ blockvector_for_pc (register CORE_ADDR pc, int *pindex)
in the specified section, or 0 if there is none. */
struct block *
-block_for_pc_sect (register CORE_ADDR pc, struct sec *section)
+block_for_pc_sect (CORE_ADDR pc, struct sec *section)
{
- register struct blockvector *bl;
+ struct blockvector *bl;
int index;
bl = blockvector_for_pc_sect (pc, section, &index, NULL);
@@ -150,7 +151,7 @@ block_for_pc_sect (register CORE_ADDR pc, struct sec *section)
or 0 if there is none. Backward compatibility, no section. */
struct block *
-block_for_pc (register CORE_ADDR pc)
+block_for_pc (CORE_ADDR pc)
{
return block_for_pc_sect (pc, find_pc_mapped_section (pc));
}