* 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:
Keith Seitz 2002-02-13 06:06:26 +00:00
parent 1d4bd9fd56
commit 49b563f9d8
2 changed files with 15 additions and 0 deletions

View File

@ -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.

View File

@ -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");