aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-02-16 08:10:59 -0700
committerTom Tromey <tromey@adacore.com>2023-02-16 08:10:59 -0700
commit6f63b61dd116becf96f47bb2dec61edd59f88a08 (patch)
tree3e47e61e0baf2be6c7d43e6277e8288d67210a90 /gdb/ada-lang.h
parent1e159729d97194857b4241fe1b5c327bd12a0945 (diff)
downloadbinutils-6f63b61dd116becf96f47bb2dec61edd59f88a08.zip
binutils-6f63b61dd116becf96f47bb2dec61edd59f88a08.tar.gz
binutils-6f63b61dd116becf96f47bb2dec61edd59f88a08.tar.bz2
Constify ada_main_name
Unlike the other *_main_name functions, ada_main_name returns a non-const "char *". This is strange, though, because the caller should not in fact modify or free this pointer. This patch changes this function to constify its return type.
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r--gdb/ada-lang.h2
1 files changed, 1 insertions, 1 deletions
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,