aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2001-12-10 22:04:10 +0000
committerFred Fish <fnf@specifix.com>2001-12-10 22:04:10 +0000
commit9b27852e6d21117f342e9d4de0d07a0ada5f174f (patch)
treef94e677240fb485abb095207937b0d3fec257357 /gdb
parent347dc97d2d4b80f3d8c23570fbedf7c6fa5e7c5c (diff)
downloadgdb-9b27852e6d21117f342e9d4de0d07a0ada5f174f.zip
gdb-9b27852e6d21117f342e9d4de0d07a0ada5f174f.tar.gz
gdb-9b27852e6d21117f342e9d4de0d07a0ada5f174f.tar.bz2
Approved by Jim Blandy:
2001-12-10 Fred Fish <fnf@redhat.com> * arm-linux-tdep.c (skip_hurd_resolver): Use NULL rather than zero in args to lookup_minimal_symbol. * linespec.c (decode_line_1): Ditto. * i386-linux-tdep.c (skip_hurd_resolver): Ditto. * minsyms.c (find_stab_function_addr): Ditto. * symfile.c (simple_read_overlay_table): Ditto. (simple_read_overlay_region_table): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/arm-linux-tdep.c2
-rw-r--r--gdb/i386-linux-tdep.c2
-rw-r--r--gdb/linespec.c2
-rw-r--r--gdb/minsyms.c4
-rw-r--r--gdb/symfile.c10
6 files changed, 20 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3910a02..c0363df 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2001-12-10 Fred Fish <fnf@redhat.com>
+
+ * arm-linux-tdep.c (skip_hurd_resolver): Use NULL rather than
+ zero in args to lookup_minimal_symbol.
+ * linespec.c (decode_line_1): Ditto.
+ * i386-linux-tdep.c (skip_hurd_resolver): Ditto.
+ * minsyms.c (find_stab_function_addr): Ditto.
+ * symfile.c (simple_read_overlay_table): Ditto.
+ (simple_read_overlay_region_table): Ditto.
+
2001-12-09 Fred Fish <fnf@redhat.com>
* gdbtypes.c (TYPE_FLAG_UNSIGNED, TYPE_FLAG_STUB): Use
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index ae06160..6522730 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -402,7 +402,7 @@ skip_hurd_resolver (CORE_ADDR pc)
if (resolver)
{
struct minimal_symbol *fixup
- = lookup_minimal_symbol ("fixup", 0, objfile);
+ = lookup_minimal_symbol ("fixup", NULL, objfile);
if (fixup && SYMBOL_VALUE_ADDRESS (fixup) == pc)
return (SAVED_PC_AFTER_CALL (get_current_frame ()));
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index aae44bc..a8bc52f 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -458,7 +458,7 @@ skip_hurd_resolver (CORE_ADDR pc)
if (resolver)
{
struct minimal_symbol *fixup
- = lookup_minimal_symbol ("fixup", 0, objfile);
+ = lookup_minimal_symbol ("fixup", NULL, objfile);
if (fixup && SYMBOL_VALUE_ADDRESS (fixup) == pc)
return (SAVED_PC_AFTER_CALL (get_current_frame ()));
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 3f7f5a5..98b13a4 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1115,7 +1115,7 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
goto symbol_found;
/* If symbol was not found, look in minimal symbol tables */
- msymbol = lookup_minimal_symbol (copy, 0, 0);
+ msymbol = lookup_minimal_symbol (copy, NULL, NULL);
/* Min symbol was found --> jump to minsym processing. */
if (msymbol)
goto minimal_symbol_found;
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index b20074b..36d695a 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -547,14 +547,14 @@ find_stab_function_addr (char *namestring, char *filename,
{
/* Try again without the filename. */
p[n] = 0;
- msym = lookup_minimal_symbol (p, 0, objfile);
+ msym = lookup_minimal_symbol (p, NULL, objfile);
}
if (msym == NULL && filename != NULL)
{
/* And try again for Sun Fortran, but without the filename. */
p[n] = '_';
p[n + 1] = 0;
- msym = lookup_minimal_symbol (p, 0, objfile);
+ msym = lookup_minimal_symbol (p, NULL, objfile);
}
return msym == NULL ? 0 : SYMBOL_VALUE_ADDRESS (msym);
diff --git a/gdb/symfile.c b/gdb/symfile.c
index ca86f28..d999cf9 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3026,7 +3026,7 @@ simple_read_overlay_table (void)
struct minimal_symbol *novlys_msym, *ovly_table_msym;
simple_free_overlay_table ();
- novlys_msym = lookup_minimal_symbol ("_novlys", 0, 0);
+ novlys_msym = lookup_minimal_symbol ("_novlys", NULL, NULL);
if (! novlys_msym)
{
error ("Error reading inferior's overlay table: "
@@ -3035,7 +3035,7 @@ simple_read_overlay_table (void)
return 0;
}
- ovly_table_msym = lookup_minimal_symbol ("_ovly_table", 0, 0);
+ ovly_table_msym = lookup_minimal_symbol ("_ovly_table", NULL, NULL);
if (! ovly_table_msym)
{
error ("Error reading inferior's overlay table: couldn't find "
@@ -3064,7 +3064,7 @@ simple_read_overlay_region_table (void)
struct minimal_symbol *msym;
simple_free_overlay_region_table ();
- msym = lookup_minimal_symbol ("_novly_regions", 0, 0);
+ msym = lookup_minimal_symbol ("_novly_regions", NULL, NULL);
if (msym != NULL)
cache_novly_regions = read_memory_integer (SYMBOL_VALUE_ADDRESS (msym), 4);
else
@@ -3072,7 +3072,7 @@ simple_read_overlay_region_table (void)
cache_ovly_region_table = (void *) xmalloc (cache_novly_regions * 12);
if (cache_ovly_region_table != NULL)
{
- msym = lookup_minimal_symbol ("_ovly_region_table", 0, 0);
+ msym = lookup_minimal_symbol ("_ovly_region_table", NULL, NULL);
if (msym != NULL)
{
cache_ovly_region_table_base = SYMBOL_VALUE_ADDRESS (msym);
@@ -3142,7 +3142,7 @@ simple_overlay_update (struct obj_section *osect)
if (cache_ovly_table != NULL)
/* Does its cached location match what's currently in the symtab? */
if (cache_ovly_table_base ==
- SYMBOL_VALUE_ADDRESS (lookup_minimal_symbol ("_ovly_table", 0, 0)))
+ SYMBOL_VALUE_ADDRESS (lookup_minimal_symbol ("_ovly_table", NULL, NULL)))
/* Then go ahead and try to look up this single section in the cache */
if (simple_overlay_update_1 (osect))
/* Found it! We're done. */