aboutsummaryrefslogtreecommitdiff
path: root/gdb/nlmread.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-07-07 17:19:50 +0000
committerAndrew Cagney <cagney@redhat.com>2001-07-07 17:19:50 +0000
commit51cc5b073771099289e43e0d4a15f71fb0515f0b (patch)
tree8d4feb1344264b42785f9edf0e4c330a9380f427 /gdb/nlmread.c
parentc72e73889f2075d648af94c52687d306befd8fbf (diff)
downloadgdb-51cc5b073771099289e43e0d4a15f71fb0515f0b.zip
gdb-51cc5b073771099289e43e0d4a15f71fb0515f0b.tar.gz
gdb-51cc5b073771099289e43e0d4a15f71fb0515f0b.tar.bz2
* symtab.c (main_name): New function.
(set_main_name): New function. * symtab.h: Declare. * TODO: Update From 2000-03-05 Anthony Green <green@redhat.com>: * dbxread.c (process_one_symbol): Handle the N_MAIN stab by setting main_name. * blockframe.c (inside_main_func): Use main_name instead of "main". * symtab.c (find_main_psymtab): Ditto. * source.c (select_source_symtab): Ditto. * nlmread.c (nlm_symfile_read): Ditto. * rs6000-tdep.c (skip_prologue): Ditto.
Diffstat (limited to 'gdb/nlmread.c')
-rw-r--r--gdb/nlmread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nlmread.c b/gdb/nlmread.c
index 0baf177..e4c4970 100644
--- a/gdb/nlmread.c
+++ b/gdb/nlmread.c
@@ -193,7 +193,7 @@ nlm_symfile_read (struct objfile *objfile, int mainline)
stabsect_build_psymtabs (objfile, mainline, ".stab",
".stabstr", ".text");
- mainsym = lookup_symbol ("main", NULL, VAR_NAMESPACE, NULL, NULL);
+ mainsym = lookup_symbol (main_name (), NULL, VAR_NAMESPACE, NULL, NULL);
if (mainsym
&& SYMBOL_CLASS (mainsym) == LOC_BLOCK)