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.
This commit is contained in:
parent
1e159729d9
commit
6f63b61dd1
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue