diff options
-rw-r--r-- | gdb/ada-lang.c | 4 | ||||
-rw-r--r-- | gdb/ada-lang.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index ec85729..b5afba3 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -805,8 +805,8 @@ ada_update_initial_language (enum language lang) The result is good until the next call. Return NULL if the main procedure doesn't appear to be in Ada. */ -char * -ada_main_name (void) +const char * +ada_main_name () { struct bound_minimal_symbol msym; static gdb::unique_xmalloc_ptr<char> main_program_name; diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h index f018b24..339c151 100644 --- a/gdb/ada-lang.h +++ b/gdb/ada-lang.h @@ -337,7 +337,7 @@ extern enum ada_renaming_category ada_parse_renaming (struct symbol *, extern void ada_find_printable_frame (frame_info_ptr fi); -extern char *ada_main_name (void); +extern const char *ada_main_name (); extern void create_ada_exception_catchpoint (struct gdbarch *gdbarch, enum ada_exception_catchpoint_kind ex_kind, |