Commit ff8d218e authored by Magnus Svensson's avatar Magnus Svensson

Use --batch when invoking gdb, to make sure it will exit in case of an error in the command files.

parent b2822b8d
...@@ -35,7 +35,7 @@ sub _gdb { ...@@ -35,7 +35,7 @@ sub _gdb {
"quit\n"; "quit\n";
# Find out name of binary that generated core # Find out name of binary that generated core
my $list= `gdb -c $core_name -x $tmp_name -q 2>&1` my $list= `gdb -c $core_name -x $tmp_name -q --batch 2>&1`
or return; or return;
my $binary; my $binary;
...@@ -49,7 +49,7 @@ sub _gdb { ...@@ -49,7 +49,7 @@ sub _gdb {
print "Generated by '$binary'\n"; print "Generated by '$binary'\n";
my $list= `gdb $binary -c $core_name -x $tmp_name -q 2>&1` my $list= `gdb $binary -c $core_name -x $tmp_name -q --batch 2>&1`
or return; or return;
print $list, "\n"; print $list, "\n";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment