target: target_get_name() --> target_type_name()
There are two names that may matter on a per-target basis. One is a per-instance name (for example, "at91sam7s.cpu"). The other is the name of its type (for example, "arm7tdmi"), which is shared among multiple targets. Currently target_get_name() returns the type name, which is misleading and is rarely appropriate for target diagnostics. Rename that as target_type_name(). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
@@ -2216,7 +2216,7 @@ int gdb_init(void)
|
||||
add_service("gdb", CONNECTION_PIPE, 0, 1, gdb_new_connection, gdb_input, gdb_connection_closed, gdb_service);
|
||||
|
||||
LOG_DEBUG("gdb service for target %s using pipes",
|
||||
target_get_name(target));
|
||||
target_type_name(target));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2233,7 +2233,7 @@ int gdb_init(void)
|
||||
gdb_connection_closed, gdb_service);
|
||||
|
||||
LOG_DEBUG("gdb service for target %s at TCP port %i",
|
||||
target_get_name(target),
|
||||
target_type_name(target),
|
||||
port);
|
||||
target = target->next;
|
||||
port++;
|
||||
|
||||
Reference in New Issue
Block a user