mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 08:38:10 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user