mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-24 03:12:05 +03:00
Add code to save DA to a file if NetSurf crashes and NetSurf$CoreDump exists.
svn path=/trunk/netsurf/; revision=4247
This commit is contained in:
parent
8282253a54
commit
86e74c970b
19
riscos/gui.c
19
riscos/gui.c
@ -848,6 +848,25 @@ void ro_gui_signal(int sig)
|
||||
|
||||
__write_backtrace(sig);
|
||||
|
||||
/* save DA to a file if NetSurf$CoreDump exists */
|
||||
int used;
|
||||
xos_read_var_val_size("NetSurf$CoreDump", 0, 0, &used, 0, 0);
|
||||
if (used) {
|
||||
extern int __dynamic_num;
|
||||
if (__dynamic_num != -1) {
|
||||
int size;
|
||||
byte *base_address;
|
||||
xosdynamicarea_read(__dynamic_num, &size,
|
||||
&base_address, 0, 0, 0, 0, 0);
|
||||
LOG(("saving DA %i %p %x\n", __dynamic_num,
|
||||
base_address, size));
|
||||
xosfile_save("$.netsurf_core",
|
||||
(bits) base_address, 0,
|
||||
base_address,
|
||||
base_address + size);
|
||||
}
|
||||
}
|
||||
|
||||
abort();
|
||||
}
|
||||
/* If we reach here, previous handler was either SIG_IGN or
|
||||
|
Loading…
Reference in New Issue
Block a user