diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b3bfbd4929..7fd9460302f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-04-19 Pedro Alves + + * common/agent.c (agent_run_command): Add cast to gdb_byte *. + 2013-04-19 Pedro Alves * remote.c (remote_write_bytes_aux, compare_sections_command) diff --git a/gdb/common/agent.c b/gdb/common/agent.c index 632310d72fb..f7bedc2c874 100644 --- a/gdb/common/agent.c +++ b/gdb/common/agent.c @@ -218,7 +218,8 @@ agent_run_command (int pid, const char *cmd, int len) int ret = write_inferior_memory (ipa_sym_addrs.addr_cmd_buf, (const unsigned char *) cmd, len); #else - int ret = target_write_memory (ipa_sym_addrs.addr_cmd_buf, cmd, len); + int ret = target_write_memory (ipa_sym_addrs.addr_cmd_buf, + (gdb_byte *) cmd, len); #endif if (ret != 0)