[qwaq] Fix some issues with fetching type encodings

Now struct defs show FIXME instead of void data.
This commit is contained in:
Bill Currie 2020-04-02 19:31:11 +09:00
parent 17871b979d
commit 9b1ce44fda
3 changed files with 5 additions and 5 deletions

View file

@ -234,7 +234,6 @@ is_new_line (qdb_state_t last_state, qdb_state_t state)
[self stop:event.what];
break;
case prd_subenter:
printf("subenter\n");
if (sub_cond.onEnter) {
[self stop:event.what];
} else {
@ -242,7 +241,6 @@ is_new_line (qdb_state_t last_state, qdb_state_t state)
}
break;
case prd_subexit:
printf("subexit\n");
if (sub_cond.onExit) {
[self stop:event.what];
} else {

View file

@ -66,7 +66,9 @@
-fetchData
{
if (data && func.local_size && func.local_data) {
qdb_get_data (target, func.local_data, func.local_size, data);
}
return self;
}

View file

@ -83,7 +83,7 @@ static void type_free (void *t, void *unused)
if (qdb_get_data (target, typeAddr, TYPESIZE, &buffer) < 0) {
return nil;
}
if (!buffer.encoding) {
if (!buffer.size) {
return nil;
}
encoding = qdb_get_string (target, buffer.encoding);
@ -97,7 +97,7 @@ static void type_free (void *t, void *unused)
return type;
}
type = obj_calloc (1, buffer.size);
if (!qdb_get_data (target, typeAddr, TYPESIZE, &buffer)) {
if (qdb_get_data (target, typeAddr, buffer.size, type) < 0) {
goto error;
}
if (!(type.encoding = qdb_get_string (target, type.encoding))) {