mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* gdb/gdbserver/server.c (handle_query): strcpy() the returned string from
paddress() instead of sprintf().
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
|
2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
|
||||||
|
|
||||||
|
* server.c (handle_query): strcpy() the returned string from paddress()
|
||||||
|
instead of sprintf().
|
||||||
* utils.c (paddress): Return phex_nz().
|
* utils.c (paddress): Return phex_nz().
|
||||||
|
|
||||||
2010-07-07 Joel Brobecker <brobecker@adacore.com>
|
2010-07-07 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
@ -1539,7 +1539,7 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p)
|
|||||||
|
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
{
|
{
|
||||||
sprintf (own_buf, "%llx", address);
|
strcpy (own_buf, paddress(address));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (err > 0)
|
else if (err > 0)
|
||||||
@ -1563,7 +1563,7 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p)
|
|||||||
n = (*the_target->get_tib_address) (ptid, &tlb);
|
n = (*the_target->get_tib_address) (ptid, &tlb);
|
||||||
if (n == 1)
|
if (n == 1)
|
||||||
{
|
{
|
||||||
sprintf (own_buf, "%llx", tlb);
|
strcpy (own_buf, paddress(tlb));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (n == 0)
|
else if (n == 0)
|
||||||
|
Reference in New Issue
Block a user