mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[qwaq] Fix a couple of errors in debug
Update qdb_get_string's mangling for qfcc's new unsigned int support and fix an incorrect cast of the param pointer passed by prd_runerror that caused a segfault when trying to use the string. Attempting to use qwaq-app (ie, the qc debugger) on Ruamoko ISA progs mostly works, but the defs are decidedly unhappy (due to the base registers).
This commit is contained in:
parent
adf672e7b1
commit
f72e8ef551
1 changed files with 2 additions and 2 deletions
|
@ -378,7 +378,7 @@ qdb_get_event (progs_t *pr)
|
|||
break;
|
||||
case prd_runerror:
|
||||
case prd_error:
|
||||
event->message = PR_SetReturnString (pr, *(char **) target->param);
|
||||
event->message = PR_SetReturnString (pr, (char *) target->param);
|
||||
break;
|
||||
case prd_begin:
|
||||
event->function = *(pr_func_t *) target->param;
|
||||
|
@ -661,7 +661,7 @@ static builtin_t builtins[] = {
|
|||
{"qdb_get_stack", qdb_get_stack, -1},
|
||||
{"qdb_get_event", qdb_get_event, -1},
|
||||
{"qdb_get_data", qdb_get_data, -1},
|
||||
{"qdb_get_string|{tag qdb_target_s=}i", qdb_get_string, -1},
|
||||
{"qdb_get_string|{tag qdb_target_s=}I", qdb_get_string, -1},
|
||||
{"qdb_get_string|{tag qdb_target_s=}*", qdb_get_string, -1},
|
||||
{"qdb_get_file_path", qdb_get_file_path, -1},
|
||||
{"qdb_find_string", qdb_find_string, -1},
|
||||
|
|
Loading…
Reference in a new issue