summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2017-07-02 16:50:10 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2017-07-02 16:50:10 +0300
commite2dbf08cb27639a8cdcf804d12ad97aba4aaeb37 (patch)
treef0eaf05c6a4b6a8094f0d14730714ec72a6b84d8
parent9d75e1a5db39eea5f69e37a1693dea2754d22e6f (diff)
Fix strings support
-rw-r--r--src/lib/clouseau_debug.c2
-rw-r--r--src/lib/extensions/objects_introspection/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/clouseau_debug.c b/src/lib/clouseau_debug.c
index 341650e..51eb7ce 100644
--- a/src/lib/clouseau_debug.c
+++ b/src/lib/clouseau_debug.c
@@ -125,7 +125,7 @@ const Param_Type_Info param_types[] =
125{ 125{
126 {EOLIAN_TYPE_REGULAR, "", EOLIAN_DEBUG_INVALID_TYPE, "", &ffi_type_pointer, 0}, 126 {EOLIAN_TYPE_REGULAR, "", EOLIAN_DEBUG_INVALID_TYPE, "", &ffi_type_pointer, 0},
127 {EOLIAN_TYPE_COMPLEX, "pointer", EOLIAN_DEBUG_POINTER, "%p", &ffi_type_pointer, 8}, 127 {EOLIAN_TYPE_COMPLEX, "pointer", EOLIAN_DEBUG_POINTER, "%p", &ffi_type_pointer, 8},
128 {EOLIAN_TYPE_COMPLEX, "char", EOLIAN_DEBUG_STRING, "%s", &ffi_type_pointer, 8}, 128 {EOLIAN_TYPE_REGULAR, "string", EOLIAN_DEBUG_STRING, "%s", &ffi_type_pointer, 8},
129 {EOLIAN_TYPE_REGULAR, "char", EOLIAN_DEBUG_CHAR, "%c", &ffi_type_uint, 1}, 129 {EOLIAN_TYPE_REGULAR, "char", EOLIAN_DEBUG_CHAR, "%c", &ffi_type_uint, 1},
130 {EOLIAN_TYPE_REGULAR, "int", EOLIAN_DEBUG_INT, "%d", &ffi_type_sint, 4}, 130 {EOLIAN_TYPE_REGULAR, "int", EOLIAN_DEBUG_INT, "%d", &ffi_type_sint, 4},
131 {EOLIAN_TYPE_REGULAR, "short", EOLIAN_DEBUG_SHORT, "%d", &ffi_type_sint, 4}, 131 {EOLIAN_TYPE_REGULAR, "short", EOLIAN_DEBUG_SHORT, "%d", &ffi_type_sint, 4},
diff --git a/src/lib/extensions/objects_introspection/main.c b/src/lib/extensions/objects_introspection/main.c
index b266f8e..5208131 100644
--- a/src/lib/extensions/objects_introspection/main.c
+++ b/src/lib/extensions/objects_introspection/main.c
@@ -463,7 +463,7 @@ _eolian_value_to_string(Eolian_Debug_Value *value, Eina_Strbuf *buf)
463 { 463 {
464 case EOLIAN_DEBUG_STRING: 464 case EOLIAN_DEBUG_STRING:
465 { 465 {
466 eina_strbuf_append_printf(buf, "%s ", 466 eina_strbuf_append_printf(buf, "\"%s\" ",
467 (char *)value->value.value); 467 (char *)value->value.value);
468 break; 468 break;
469 } 469 }