summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2005-04-02 23:57:48 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2005-04-02 23:57:48 +0000
commitf5ff372fe8e729c096d8334a461b90c20d8a397c (patch)
tree51cf7e573ee7286423ad15c673c2fe25f7dea0f3 /riscos/gui.c
parentf228f3c8da99933e1a6285249bdbe37250f98ce0 (diff)
downloadnetsurf-f5ff372fe8e729c096d8334a461b90c20d8a397c.tar.gz
netsurf-f5ff372fe8e729c096d8334a461b90c20d8a397c.tar.bz2
[project @ 2005-04-02 23:57:48 by jmb]
Dump all box trees when SIGFPE raised svn path=/import/netsurf/; revision=1590
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 6a26591f9..4ae33bb86 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -34,12 +34,14 @@
#include "oslib/wimpspriteop.h"
#include "oslib/uri.h"
#include "rufl.h"
-#include "netsurf/content/url_store.h"
#include "netsurf/utils/config.h"
+#include "netsurf/content/content.h"
+#include "netsurf/content/url_store.h"
#include "netsurf/desktop/gui.h"
#include "netsurf/desktop/netsurf.h"
#include "netsurf/desktop/options.h"
#include "netsurf/desktop/tree.h"
+#include "netsurf/render/box.h"
#include "netsurf/render/font.h"
#include "netsurf/render/html.h"
#include "netsurf/riscos/buffer.h"
@@ -546,6 +548,14 @@ void gui_quit(void)
void ro_gui_signal(int sig)
{
+ struct content *c;
+ if (sig == SIGFPE) {
+ for (c = content_list; c; c = c->next)
+ if (c->type == CONTENT_HTML && c->data.html.layout) {
+ LOG(("Dumping: '%s'", c->url));
+ box_dump(c->data.html.layout, 0);
+ }
+ }
ro_gui_cleanup();
raise(sig);
}