Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Tarassov2012-09-26 15:46:12 -0400
committerEugene Tarassov2012-09-26 15:46:12 -0400
commita45c62f3ae93762008d6e17d2985935643876b9e (patch)
tree83d61c50d194dffbfa49973a65fc0f00a7f6c23f /tests
parent5141e38e556c2319dd3bb0f4b7f8e53dd3e23f83 (diff)
downloadorg.eclipse.tcf.agent-a45c62f3ae93762008d6e17d2985935643876b9e.tar.gz
org.eclipse.tcf.agent-a45c62f3ae93762008d6e17d2985935643876b9e.tar.xz
org.eclipse.tcf.agent-a45c62f3ae93762008d6e17d2985935643876b9e.zip
TCF Agent: better code for mapping symbol declaration to definition
Diffstat (limited to 'tests')
-rw-r--r--tests/test-dwarf/tcf/backend/backend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-dwarf/tcf/backend/backend.c b/tests/test-dwarf/tcf/backend/backend.c
index 3099162d..aee861d9 100644
--- a/tests/test-dwarf/tcf/backend/backend.c
+++ b/tests/test-dwarf/tcf/backend/backend.c
@@ -759,6 +759,11 @@ static void loc_var_func(void * args, Symbol * sym) {
}
}
else {
+ char * base_type_name = NULL;
+ if (get_symbol_name(base_type, &base_type_name) < 0) {
+ error_sym("get_symbol_name", base_type);
+ }
+ if (base_type_name != NULL) base_type_name = tmp_strdup(base_type_name);
if (get_symbol_type_class(base_type, &base_type_class) < 0) {
error_sym("get_symbol_type_class", base_type);
}

Back to the top