mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-28 14:30:48 +00:00
* utils.c (host_address_to_string): Reimplement in a way that
avoids the cast of the address to long.
This commit is contained in:
parent
9918cab95e
commit
773698b58c
@ -1,3 +1,8 @@
|
|||||||
|
2009-01-13 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* utils.c (host_address_to_string): Reimplement in a way that
|
||||||
|
avoids the cast of the address to long.
|
||||||
|
|
||||||
2009-01-13 Joel Brobecker <brobecker@adacore.com>
|
2009-01-13 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* mdebugread.c (parse_symbol): Save the symbol private data
|
* mdebugread.c (parse_symbol): Save the symbol private data
|
||||||
|
@ -3071,10 +3071,7 @@ host_address_to_string (const void *addr)
|
|||||||
{
|
{
|
||||||
char *str = get_cell ();
|
char *str = get_cell ();
|
||||||
|
|
||||||
/* We could use the %p conversion specifier to sprintf if we had any
|
xsnprintf (str, CELLSIZE, "0x%s", phex_nz ((uintptr_t) addr, sizeof (addr)));
|
||||||
way of knowing whether this host supports it. But the following
|
|
||||||
should work on the Alpha and on 32 bit machines. */
|
|
||||||
sprintf (str, "0x%lx", (unsigned long) addr);
|
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user