diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 11:31:27 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 11:31:27 +0000 |
commit | 0de78ed02c7e2caaf96eafb814c6059ceb9582b2 (patch) | |
tree | 1ad865a8a728eb17794be5d8589d0c26326bd348 /src/server/gdb_server.c | |
parent | 17fa4de8541ac12fad2ce836aa61d22dbf1642c8 (diff) | |
download | openocd_libswd-0de78ed02c7e2caaf96eafb814c6059ceb9582b2.tar.gz openocd_libswd-0de78ed02c7e2caaf96eafb814c6059ceb9582b2.tar.bz2 openocd_libswd-0de78ed02c7e2caaf96eafb814c6059ceb9582b2.tar.xz openocd_libswd-0de78ed02c7e2caaf96eafb814c6059ceb9582b2.zip |
Add target_get_name wrapper:
- replaces all accesses to target->type->name.
- add documentation in target_s to warn not to access field directly.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1966 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server/gdb_server.c')
-rw-r--r-- | src/server/gdb_server.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 23748e7c..d5c3f351 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -2211,7 +2211,8 @@ 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->type->name); + LOG_DEBUG("gdb service for target %s using pipes", + target_get_name(target)); } else { @@ -2222,7 +2223,9 @@ int gdb_init(void) add_service("gdb", CONNECTION_TCP, gdb_port + target->target_number, 1, gdb_new_connection, gdb_input, gdb_connection_closed, gdb_service); - LOG_DEBUG("gdb service for target %s at port %i", target->type->name, gdb_port + target->target_number); + LOG_DEBUG("gdb service for target %s at port %i", + target_get_name(target), + gdb_port + target->target_number); target = target->next; } } |