Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | --- gcc-4.7.3/gcc/diagnostic.c 2012-02-02 15:46:06.000000000 -0500 |
michael@0 | 2 | +++ gcc-patched/gcc/diagnostic.c 2013-05-23 14:07:10.756527912 -0400 |
michael@0 | 3 | @@ -31,6 +31,10 @@ |
michael@0 | 4 | #include "intl.h" |
michael@0 | 5 | #include "diagnostic.h" |
michael@0 | 6 | |
michael@0 | 7 | +#include <execinfo.h> |
michael@0 | 8 | +#include <unistd.h> |
michael@0 | 9 | +#include <fcntl.h> |
michael@0 | 10 | +#include <stdio.h> |
michael@0 | 11 | #define pedantic_warning_kind(DC) \ |
michael@0 | 12 | ((DC)->pedantic_errors ? DK_ERROR : DK_WARNING) |
michael@0 | 13 | #define permissive_error_kind(DC) ((DC)->permissive ? DK_WARNING : DK_ERROR) |
michael@0 | 14 | @@ -237,6 +241,11 @@ |
michael@0 | 15 | if (context->abort_on_error) |
michael@0 | 16 | real_abort (); |
michael@0 | 17 | |
michael@0 | 18 | + { |
michael@0 | 19 | + void *stack[100]; |
michael@0 | 20 | + int count = backtrace(stack, 100); |
michael@0 | 21 | + backtrace_symbols_fd(stack, count, STDERR_FILENO); |
michael@0 | 22 | + } |
michael@0 | 23 | fnotice (stderr, "Please submit a full bug report,\n" |
michael@0 | 24 | "with preprocessed source if appropriate.\n" |
michael@0 | 25 | "See %s for instructions.\n", bug_report_url); |