Jonathan G Rennison
97baff6fd8
Add client desync log to server desync log output
2019-05-23 22:53:17 +01:00
Jonathan G Rennison
fa55a1c002
Output a log, savegame and screenshot on desync events
2019-05-18 10:17:59 +01:00
Jonathan G Rennison
24458e9990
Add various missing override specifiers
2019-04-28 12:24:40 +01:00
Jonathan G Rennison
85c8f4baca
Merge branch 'crashlog_improvements' into jgrpp
...
# Conflicts:
# src/os/macosx/crashlog_osx.cpp
2019-04-23 19:51:09 +01:00
Jonathan G Rennison
145fee04fa
Add sigaltstack support to Unix crashlog
2019-04-23 18:41:20 +01:00
Jonathan G Rennison
674732cd68
Merge: Codechange: Use null pointer literal instead of the NULL macro
2019-04-11 18:14:13 +01:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Jonathan G Rennison
d5ee9d34da
Merge branch 'cpp-11' into crashlog_improvements
...
# Conflicts:
# Makefile.src.in
# projects/determineversion.vbs
# source.list
# src/crashlog.cpp
# src/misc.cpp
# src/os/unix/crashlog_unix.cpp
# src/os/windows/crashlog_win.cpp
# src/rev.h
# src/thread/thread.h
# src/thread/thread_morphos.cpp
# src/thread/thread_none.cpp
# src/thread/thread_os2.cpp
# src/thread/thread_pthread.cpp
# src/thread/thread_win32.cpp
2019-04-09 19:21:39 +01:00
Michael Lutz
967b27a2c1
Codechange: C++11 STL has a function for getting the number of CPU cores.
2019-04-06 11:27:39 +02:00
Michael Lutz
ae748166d0
Codechange: Use platform independent C++11 function for sleeping on a thread.
2019-04-06 11:27:39 +02:00
Michael Lutz
05bc2ed7cb
Codechange: Replace custom thread code with C++11 thread objects.
...
We assume a conforming C++11 compiler environment that has a valid <thread>-header.
Failure to run a real thread is handled gracefully.
2019-04-06 11:27:39 +02:00
Henry Wilson
af7d9020a1
Codechange: Use override specifer for overriding member declarations
...
This is a C++11 feature that allows the compiler to check that a virtual
member declaration overrides a base-class member with the same signature.
Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked
as virtual despite being a template.
2019-03-24 16:10:04 +01:00
Patric Stout
f58db44ff2
Remove: BeOS support (deprecated by Haiku)
...
In 10 years there is no commit to change how BeOS works, and we
have no active maintainer for it. It is unlikely it works in its
current state (but not impossible).
With the arrival of SDL2 (and removal of SDL), BeOS is no longer
support. SDL2 suggests to use Haiku instead of BeOS.
2019-03-05 22:03:00 +01:00
Patric Stout
7784d77713
Remove: MorphOS / AmigaOS support
...
In 10 years there is no commit to change how MorphOS works, and we
have no active maintainer for it. It is unlikely it works in its
current state (but not impossible).
With the arrival of SDL2 (and removal of SDL), MorphOS is no longer
support. There is an SDL2 port for MorphOS, but it is not maintained
by upstream SDL2, and nobody can currently test it out.
If anyone wants to re-add MorphOS, please do (revert this patch,
fix the problems, and create a Pull Request). If you need any help
doing so, let us know! It is not that we don't like MorphOS, it is
that we don't have anyone fixing the problems :(
2019-03-05 22:03:00 +01:00
Jonathan G Rennison
9490f33a6c
Merge branch 'master' into crashlog_improvements
...
# Conflicts:
# src/console_cmds.cpp
# src/openttd.cpp
# src/vehicle.cpp
2018-07-26 20:01:08 +01:00
Patric Stout
85adde7485
Remove: PSP support
2018-04-29 15:32:16 +02:00
Jonathan G Rennison
fd9a2e680c
Fix using crash abort reason string as printf format string
2017-08-12 00:57:54 +01:00
Jonathan G Rennison
3271d69bda
Enable crashlogs for emergency or missing NewGRF savegames, in dev mode.
...
Factor out common checks for emergency and missing NewGRFs.
2017-06-22 19:30:37 +01:00
Jonathan G Rennison
f7774415f2
Merge branch 'cpp-11' into crashlog_improvements
...
# Conflicts:
# src/stdafx.h
2016-09-08 19:36:00 +01:00
alberth
95bb103a23
(svn r27643) -Codechange: FiosGetDrives function also takes a destination file list.
2016-09-04 12:54:30 +00:00
alberth
f618c0d0a5
(svn r27643) -Codechange: FiosGetDrives function also takes a destination file list.
2016-09-04 12:54:30 +00:00
Jonathan G Rennison
62631cba02
Attempt to log distro name/version in Unix crashlog.
...
Factor out fork/execve/read stdout code into own function.
2016-06-12 20:58:52 +01:00
Jonathan G Rennison
8d078acb4e
Log registers and fault instruction in Unix crashlog.
2016-06-12 19:34:06 +01:00
Jonathan G Rennison
abbc960e96
Linux crashlog: Use sigaction to get more info on fatal signals.
2016-06-10 23:39:26 +01:00
Jonathan G Rennison
c949ab72e4
Close read end of pipe after reading in gdb stack trace mode.
2016-03-10 19:40:20 +00:00
Jonathan G Rennison
a609439d98
Add support for enhanced crash log stacktraces using gdb on Linux.
...
This attempts to use gdb to attach to the current process and print
a full backtrace.
2016-03-10 00:14:26 +00:00
Jonathan G Rennison
cbc35e8aae
Try to make scope info logging more robust.
...
Add checks for validity of Vehicle ptrs in scope_dumper::VehicleInfo.
In Unix mode, try to handle SIGSEGVs when dumping scope info.
2016-02-25 19:21:06 +00:00
Jonathan G Rennison
eaf9aa6571
Unix crash log: handle SIGSEGVs while backtracing. Add documentation.
2015-09-09 18:28:03 +01:00
Jonathan G Rennison
3a093c4b63
Use libbfd as a fallback for backtrace symbol lookup on MinGW.
...
This will try to demangle.
If bfd_find_nearest_line returns a file name but nothing else
(debugging info is turned off), scan the symbol table for the previous
symbol and use it if it looks OKish.
2015-09-09 02:14:06 +01:00
Jonathan G Rennison
5b755050b8
Use libbfd on Unix to get more symbols, line numbers, etc. for backtraces.
2015-09-09 00:08:21 +01:00
Jonathan G Rennison
387bf403da
GCC/Unix: Try to demangle C++ function names in crashlog stack trace.
...
Change format of stack trace lines to improve readability.
2015-09-08 00:49:34 +01:00
rubidium
10466746b4
(svn r27290) -Fix: sanitize the command line arguments before doing anything complex with them
2015-05-20 18:18:26 +00:00
rubidium
dde669e6d3
(svn r27290) -Fix: sanitize the command line arguments before doing anything complex with them
2015-05-20 18:18:26 +00:00
alberth
35f671229b
(svn r26724) -Fix[FS#6077] Use the normal search path to look for xdg-open at Unix (kernigh2)
2014-08-09 19:39:14 +00:00
alberth
fa4996feef
(svn r26724) -Fix[FS#6077] Use the normal search path to look for xdg-open at Unix (kernigh2)
2014-08-09 19:39:14 +00:00
frosch
cadfedd584
(svn r26523) -Fix [FS#5992]: OpenBSD compilation (MagisterQuis)
2014-04-27 13:21:30 +00:00
frosch
3be8cb7061
(svn r26523) -Fix [FS#5992]: OpenBSD compilation (MagisterQuis)
2014-04-27 13:21:30 +00:00
rubidium
5b82822c12
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
2014-04-23 21:12:09 +00:00
rubidium
6ecc602050
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
2014-04-23 21:12:09 +00:00
frosch
ef4c2ce031
(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat.
2014-04-23 20:44:42 +00:00
frosch
24c7134bff
(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat.
2014-04-23 20:44:42 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
rubidium
2be4215f43
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
rubidium
5b2a5ac790
(svn r25506) -Document: a function, and name it slightly better
2013-06-28 21:11:35 +00:00
rubidium
17951f57a5
(svn r25506) -Document: a function, and name it slightly better
2013-06-28 21:11:35 +00:00
yexo
b4fdba2fb3
(svn r23490) -Add [FS#2750]: OpenBrowser function to open a browser on major OSes
2011-12-11 11:47:08 +00:00
yexo
f18be8a266
(svn r23490) -Add [FS#2750]: OpenBrowser function to open a browser on major OSes
2011-12-11 11:47:08 +00:00
michi_cc
a0f3649c1a
(svn r23481) -Add: Function to get the CPU core count.
2011-12-10 16:54:41 +00:00
michi_cc
62ea921e2f
(svn r23481) -Add: Function to get the CPU core count.
2011-12-10 16:54:41 +00:00
rubidium
1d0d7635e0
(svn r22021) -Fix (r22019): ofcourse make doesn't notice files are gone, so it doesn't recompile everything that needs to be recompiled...
2011-02-07 22:49:38 +00:00