diff --git a/bochs/bx_debug/dbg_main.cc b/bochs/bx_debug/dbg_main.cc index 5706def2f..03085a75b 100644 --- a/bochs/bx_debug/dbg_main.cc +++ b/bochs/bx_debug/dbg_main.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: dbg_main.cc,v 1.193 2009-05-03 19:21:38 sshwarts Exp $ +// $Id: dbg_main.cc,v 1.194 2009-05-03 19:29:19 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -1353,7 +1353,7 @@ void bx_dbg_show_command(const char* arg) } } -void bx_dbg_show_param_command(char *param) +void bx_dbg_show_param_command(const char *param) { dbg_printf("show param name: <%s>\n", param); bx_param_c *node = SIM->get_param(param, SIM->get_bochs_root()); @@ -2523,7 +2523,7 @@ void bx_dbg_setpmem_command(bx_phy_address paddr, unsigned len, Bit32u val) } } -void bx_dbg_set_symbol_command(char *symbol, Bit32u val) +void bx_dbg_set_symbol_command(const char *symbol, Bit32u val) { bx_bool is_OK = false; symbol++; // get past '$' diff --git a/bochs/bx_debug/debug.h b/bochs/bx_debug/debug.h index affc024b4..b4faae5f7 100644 --- a/bochs/bx_debug/debug.h +++ b/bochs/bx_debug/debug.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: debug.h,v 1.53 2009-05-03 19:21:38 sshwarts Exp $ +// $Id: debug.h,v 1.54 2009-05-03 19:29:19 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -309,10 +309,10 @@ void bx_dbg_check_memory_watchpoints(unsigned cpu, bx_phy_address phy, unsigned // commands that work with Bochs param tree void bx_dbg_restore_command(const char *param_name, const char *path); -void bx_dbg_show_param_command(char *param); +void bx_dbg_show_param_command(const char *param); int bx_dbg_show_symbolic(void); -void bx_dbg_set_symbol_command(char *symbol, Bit32u val); +void bx_dbg_set_symbol_command(const char *symbol, Bit32u val); const char* bx_dbg_symbolic_address(Bit32u context, Bit32u eip, Bit32u base); const char* bx_dbg_symbolic_address_16bit(Bit32u eip, Bit32u cs); int bx_dbg_symbol_command(const char* filename, bx_bool global, Bit32u offset);