mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make use of 'coredumpctl dump' in Subsurface.debug helper
This commit is contained in:
parent
cd555f9dac
commit
0671739e02
1 changed files with 9 additions and 8 deletions
|
@ -55,14 +55,15 @@ print_crash_report()
|
||||||
echo >> $FILE
|
echo >> $FILE
|
||||||
echo "############### STACK TRACE #################" >> $FILE
|
echo "############### STACK TRACE #################" >> $FILE
|
||||||
if command_exists gdb; then
|
if command_exists gdb; then
|
||||||
# TODO: systemd needs more test (systemd-coredumpctl exist on openSUSE 13.1 but does not find any core)
|
if command_exists coredumpctl; then
|
||||||
# if command_exists systemd-coredumpctl; then
|
# Generate core
|
||||||
# systemd-coredumpctl dump -o core ${prefix}/bin/${bin_name} > /dev/null 2>&1
|
core=$(mktemp -p /tmp/ core.subsurface.XXXXXXXXXX)
|
||||||
# elif command_exists coredumpctl; then
|
coredumpctl dump ${prefix}/bin/${bin_name} > $core
|
||||||
# coredumpctl dump -o core ${prefix}/bin/${bin_name} > /dev/null 2>&1
|
single_stacktrace "/tmp/" 1
|
||||||
# fi
|
else
|
||||||
# Find in current directory
|
# Find in current directory
|
||||||
single_stacktrace "$PWD" 1
|
single_stacktrace "$PWD" 1
|
||||||
|
fi
|
||||||
# Find in plugins directories
|
# Find in plugins directories
|
||||||
if [ $KODI_HOME ]; then
|
if [ $KODI_HOME ]; then
|
||||||
BASEDIR=$KODI_HOME
|
BASEDIR=$KODI_HOME
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue