diff options
author | Tom Tromey <tromey@adacore.com> | 2019-07-18 09:29:15 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-07-18 09:31:12 -0600 |
commit | cd215b2eb74c179d936a3b28577753a08de1cf83 (patch) | |
tree | 25e09744719908697419c3f4a159f767008f2f27 /gdb/symtab.c | |
parent | 54d7dae59a2239720c848985a7d50a0a8b3319eb (diff) | |
download | gdb-cd215b2eb74c179d936a3b28577753a08de1cf83.zip gdb-cd215b2eb74c179d936a3b28577753a08de1cf83.tar.gz gdb-cd215b2eb74c179d936a3b28577753a08de1cf83.tar.bz2 |
Constify main_name
This patch constifies the return type of main_name. There is a
comment indicating that this wasn't possible at some point in the
past, but whatever the barrier was, it is gone now.
Tested by rebuilding.
gdb/ChangeLog
2019-07-18 Tom Tromey <tromey@adacore.com>
* symtab.c (main_name): Constify return type.
* symfile.c (set_initial_language): Update.
* symtab.h (main_name): Constify return type.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 4189899..719e5b2 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -5741,8 +5741,10 @@ find_main_name (void) set_main_name ("main", language_unknown); } -char * -main_name (void) +/* See symtab.h. */ + +const char * +main_name () { struct main_info *info = get_main_info (); |