minidump integration

This commit is contained in:
Ondrej Novak 2025-05-13 12:07:29 +02:00
parent 96eaeb4851
commit b459f2010e
9 changed files with 130 additions and 21 deletions

View file

@ -5,6 +5,7 @@
#include "../platform/error.h"
#include "../platform/platform.h"
#include <ctype.h>
#define console_max_characters 120
#define console_max_lines 300
@ -89,6 +90,8 @@ void show_flags(int number,char **flags,char nums)
}
}
void spell_group_invis()
{
int i;
@ -245,6 +248,11 @@ static void console_add_line(const char *line) {
console_add_line_s(line, strlen(line));
}
static void crash_task(va_list lst) {
char *c = (char *)0x1;
*c = 1;
}
typedef struct {
char *cmd_buffer;
const char *command;
@ -645,6 +653,13 @@ static int process_with_params(const char *cmd, const char *args) {
return 1;
}
if (istrcmp(cmd, "crash") == 0) {
if (istrcmp(args,"seh") == 0) {
char *c = (char *)(args - (uintptr_t)args);
*c = 'x';
}
else if (istrcmp(args, "task") == 0) {
add_task(65536,crash_task);
}
throw_exception(args);
return 1;
}