summaryrefslogtreecommitdiff
path: root/plugins/itanium
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-08 19:48:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-08 19:48:30 (GMT)
commit6f3c4bc6ec571dcca8e25b9f82a0c2e72310900c (patch)
tree35d5e178a8c93f69956d76e46ed2a2fa9ec84577 /plugins/itanium
parent70fe3101ebd8fe28ef821a0c9097ea51d4e0691b (diff)
Changed the type of namespace separators.
Diffstat (limited to 'plugins/itanium')
-rw-r--r--plugins/itanium/abi.c2
-rw-r--r--plugins/itanium/component.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/itanium/abi.c b/plugins/itanium/abi.c
index fa661dc..8891446 100644
--- a/plugins/itanium/abi.c
+++ b/plugins/itanium/abi.c
@@ -3330,7 +3330,7 @@ static itanium_component *itd_substitution(GItaniumDemangling *context)
else
{
type = g_class_enum_type_new(CET_CLASS, strdup(stdinfo->class));
- g_data_type_set_namespace(type, std, "::");
+ g_data_type_set_namespace(type, std, strdup("::"));
}
result = itd_make_type(type);
diff --git a/plugins/itanium/component.c b/plugins/itanium/component.c
index e7315e8..8c29861 100644
--- a/plugins/itanium/component.c
+++ b/plugins/itanium/component.c
@@ -1325,7 +1325,7 @@ static void itd_prepend_namespace_to_type(GDataType *type, GDataType *ns)
existing = g_data_type_get_namespace(type);
if (existing == NULL)
- g_data_type_set_namespace(type, ns, "::");
+ g_data_type_set_namespace(type, ns, strdup("::"));
else
{
@@ -1869,7 +1869,7 @@ GBinRoutine *itd_translate_component_to_routine(const itanium_component *comp)
}
- g_binary_routine_set_namespace(result, ns, "::");
+ g_binary_routine_set_namespace(result, ns, strdup("::"));
break;