diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-07-07 17:19:50 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-07-07 17:19:50 +0000 |
commit | 51cc5b073771099289e43e0d4a15f71fb0515f0b (patch) | |
tree | 8d4feb1344264b42785f9edf0e4c330a9380f427 /gdb/symtab.h | |
parent | c72e73889f2075d648af94c52687d306befd8fbf (diff) | |
download | gdb-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/symtab.h')
-rw-r--r-- | gdb/symtab.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index d85add3..7ae9346 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1427,4 +1427,11 @@ extern void search_symbols (char *, namespace_enum, int, char **, extern void free_search_symbols (struct symbol_search *); extern struct cleanup *make_cleanup_free_search_symbols (struct symbol_search *); +/* The name of the ``main'' function. + FIXME: cagney/2001-03-20: Can't make main_name() const since some + of the calling code currently assumes that the string isn't + const. */ +extern void set_main_name (const char *name); +extern /*const*/ char *main_name (void); + #endif /* !defined(SYMTAB_H) */ |