From 493d020497093787700e1a055a25f8d6471ea416 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 21 Jan 2016 14:26:33 +0400 Subject: [PATCH] rename get_address_string_location into get_address_location_string The new function name that sounds more correct. gdb/ChangeLog: * location.h, linespec.c, location.c (get_address_location_string): Renames get_address_string_location. --- gdb/ChangeLog | 5 +++++ gdb/linespec.c | 2 +- gdb/location.c | 2 +- gdb/location.h | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a377a32..598ac9d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2016-01-21 Joel Brobecker + * location.h, linespec.c, location.c (get_address_location_string): + Renames get_address_string_location. + +2016-01-21 Joel Brobecker + * location.h (new_address_location): Add new parameters "addr_string" and "addr_string_len". (get_address_string_location): Add declaration. diff --git a/gdb/linespec.c b/gdb/linespec.c index 2360cc1..9c8a27a 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -2513,7 +2513,7 @@ event_location_to_sals (linespec_parser *parser, case ADDRESS_LOCATION: { - const char *addr_string = get_address_string_location (location); + const char *addr_string = get_address_location_string (location); CORE_ADDR addr = get_address_location (location); if (addr_string != NULL) diff --git a/gdb/location.c b/gdb/location.c index e43ebf1..88ae61d 100644 --- a/gdb/location.c +++ b/gdb/location.c @@ -138,7 +138,7 @@ get_address_location (const struct event_location *location) /* See description in location.h. */ const char * -get_address_string_location (const struct event_location *location) +get_address_location_string (const struct event_location *location) { gdb_assert (EL_TYPE (location) == ADDRESS_LOCATION); return EL_STRING (location); diff --git a/gdb/location.h b/gdb/location.h index b2cf45e..2b04def 100644 --- a/gdb/location.h +++ b/gdb/location.h @@ -145,7 +145,7 @@ extern CORE_ADDR of the given event_location (which must be of type ADDRESS_LOCATION). */ extern const char * - get_address_string_location (const struct event_location *location); + get_address_location_string (const struct event_location *location); /* Create a new probe location. The return result is malloc'd and should be freed with delete_event_location. */ -- 2.5.0