mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
Constify gdbserver "monitor" commands
I noticed that the gdbserver "monitor" commands should take a const parameter. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
parent
ae6c314e01
commit
059a82fbb3
6 changed files with 7 additions and 7 deletions
|
|
@ -6003,7 +6003,7 @@ linux_process_target::handle_new_gdb_connection ()
|
|||
}
|
||||
|
||||
int
|
||||
linux_process_target::handle_monitor_command (char *mon)
|
||||
linux_process_target::handle_monitor_command (const char *mon)
|
||||
{
|
||||
#ifdef USE_THREAD_DB
|
||||
return thread_db_handle_monitor_command (mon);
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ public:
|
|||
|
||||
void handle_new_gdb_connection () override;
|
||||
|
||||
int handle_monitor_command (char *mon) override;
|
||||
int handle_monitor_command (const char *mon) override;
|
||||
|
||||
int core_of_thread (ptid_t ptid) override;
|
||||
|
||||
|
|
@ -947,7 +947,7 @@ CORE_ADDR linux_get_pc_64bit (struct regcache *regcache);
|
|||
int thread_db_init (void);
|
||||
void thread_db_detach (struct process_info *);
|
||||
void thread_db_mourn (struct process_info *);
|
||||
int thread_db_handle_monitor_command (char *);
|
||||
int thread_db_handle_monitor_command (const char *);
|
||||
int thread_db_get_tls_address (thread_info *thread, CORE_ADDR offset,
|
||||
CORE_ADDR load_module, CORE_ADDR *address);
|
||||
int thread_db_look_up_one_symbol (const char *name, CORE_ADDR *addrp);
|
||||
|
|
|
|||
|
|
@ -1714,7 +1714,7 @@ handle_general_monitor_debug (const char *mon)
|
|||
/* Handle monitor commands not handled by target-specific handlers. */
|
||||
|
||||
static void
|
||||
handle_monitor_command (char *mon, char *own_buf)
|
||||
handle_monitor_command (const char *mon, char *own_buf)
|
||||
{
|
||||
if (startswith (mon, "set debug "))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -550,7 +550,7 @@ process_stratum_target::handle_new_gdb_connection ()
|
|||
}
|
||||
|
||||
int
|
||||
process_stratum_target::handle_monitor_command (char *mon)
|
||||
process_stratum_target::handle_monitor_command (const char *mon)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ public:
|
|||
|
||||
/* The target-specific routine to process monitor command.
|
||||
Returns 1 if handled, or 0 to perform default processing. */
|
||||
virtual int handle_monitor_command (char *mon);
|
||||
virtual int handle_monitor_command (const char *mon);
|
||||
|
||||
/* Returns the core given a thread, or -1 if not known. */
|
||||
virtual int core_of_thread (ptid_t ptid);
|
||||
|
|
|
|||
|
|
@ -833,7 +833,7 @@ thread_db_mourn (struct process_info *proc)
|
|||
For any other command, return 0. */
|
||||
|
||||
int
|
||||
thread_db_handle_monitor_command (char *mon)
|
||||
thread_db_handle_monitor_command (const char *mon)
|
||||
{
|
||||
const char *cmd = "set libthread-db-search-path";
|
||||
size_t cmd_len = strlen (cmd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue