mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
* defs.h (core_addr_to_string_nz): New function.
* utils.c (core_addr_to_string): Use phex instead of phex_nz. (core_addr_to_string_nz): New function.
This commit is contained in:
parent
1d4bd9fd56
commit
49b563f9d8
@ -1,3 +1,9 @@
|
||||
2002-02-12 Keith Seitz <keiths@redhat.com>
|
||||
|
||||
* defs.h (core_addr_to_string_nz): New function.
|
||||
* utils.c (core_addr_to_string): Use phex instead of phex_nz.
|
||||
(core_addr_to_string_nz): New function.
|
||||
|
||||
2002-02-11 Richard Earnshaw <rearnsha@arm.com>
|
||||
|
||||
* arm-linux-nat.c: Really include arm-tdep.h.
|
||||
|
@ -2473,6 +2473,15 @@ address_to_host_pointer (CORE_ADDR addr)
|
||||
/* Convert a CORE_ADDR into a string. */
|
||||
const char *
|
||||
core_addr_to_string (const CORE_ADDR addr)
|
||||
{
|
||||
char *str = get_cell ();
|
||||
strcpy (str, "0x");
|
||||
strcat (str, phex (addr, sizeof (addr)));
|
||||
return str;
|
||||
}
|
||||
|
||||
const char *
|
||||
core_addr_to_string_nz (const CORE_ADDR addr)
|
||||
{
|
||||
char *str = get_cell ();
|
||||
strcpy (str, "0x");
|
||||
|
Loading…
Reference in New Issue
Block a user