* gdb/gdbserver/server.c (handle_query): strcpy() the returned string from
paddress() instead of sprintf().
This commit is contained in:
parent
5c3216e2a7
commit
c6f46ca0a4
@ -1,5 +1,7 @@
|
||||
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().
|
||||
|
||||
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)
|
||||
{
|
||||
sprintf (own_buf, "%llx", address);
|
||||
strcpy (own_buf, paddress(address));
|
||||
return;
|
||||
}
|
||||
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);
|
||||
if (n == 1)
|
||||
{
|
||||
sprintf (own_buf, "%llx", tlb);
|
||||
strcpy (own_buf, paddress(tlb));
|
||||
return;
|
||||
}
|
||||
else if (n == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user