add CRASHREPORT directly to browser

add CRASHREPORT for Windows
add ^P info to report (via DUMPLOG)

new options: crash_email, crash_name, crash_urlmax
new game command: #bugreport
new config option: CRASHREPORT_EXEC_NOSTDERR
new command line option: --bidshow

deleted helper scripts:
    NetHackCrashReport.Javascript
    nhcrashreport.lua

misc:
    update CRASHREPORTURL (will need to be updated before release)
    update bitrot in winchain
    winchain for Windows
    add missing synch_wait for NetHackW --showpaths
    add PANICTRACE (and CRASHREPORT) in mdlib.c:build_opts

missing:
    packaging (Windows needs the pdb file)
    no testing with MSVC command line build

port status:
    linux: working, but glibc's backtrace doesn't show static functions
    Windows VS: working.  pdb file is large - looking into options
    MacOS: working
    msdos: not supported
    VMS: not supported
    MSVC: planned, but not attempted
    MSYS2: working, but libbacktrace not showing symbols (yet?)
This commit is contained in:
nhkeni
2024-02-06 18:33:59 -05:00
parent cf3cbcf832
commit dbe5c98dca
37 changed files with 1001 additions and 315 deletions

View File

@@ -1222,6 +1222,10 @@ Toggle the
.op autopickup
option on/off.
Default key is \(oq@\(cq.
.lp "#bugreport"
Bring up a browser window to submit a report to the NetHack Development Team.
Can be disabled at the time the program is built; when enabled,
CRASHREPORTURL must be set in the system configuration file.
.lp "#call "
Call (name) a monster, or an object in inventory, on the floor,
or in the discoveries list, or add an annotation for the
@@ -4910,6 +4914,22 @@ window, windowframe, windowtext).
If NetHack can, it should wrap long lines of text if they don't fit in
the visible area of the window.
.hn 2
Crash Report Options
.pg
Please note that NetHack does not send \fBany\fP information off your
computer unless you manually click submit on a form.
.si
.lp "OPTION=crash_email:\fIemail_address\fP
.lp "OPTION=crash_name:\fIyour_name\fP
.ei
These options are used only to save you some typing on the crash
report and #bugreport forms.
.si
.lp "OPTION=crash_urlmax:\fIbytes\fP
.ei
This option is used to limit the length of the URLs generated and is only
needed if your browser cannot handle arbitrarily long URLs.
.hn 2
Platform-specific Customization options
.pg
Here are explanations of options that are used by specific platforms or ports
@@ -6008,10 +6028,11 @@ large unless it is actively maintained.
.
.lp
CRASHREPORTURL\ =\ If set to
\f(CRhttps://www.nethack.org/common/contact.html\fP
and support is compiled in, brings up a browser window populated with
\f(CRhttps://www.nethack.org/links/cr-37BETA.html\fP
and support is compiled in, brings up a browser window pre-populated with
the information needed to report a problem if the game panics or ends
up in an internally inconsistent state.
up in an internally inconsistent state, or if the #bugreport command is
invoked.
.hn 1
Scoring
.pg