binutils-gdb/gdb/testsuite/gdb.btrace
Markus Metzger 1f267ae3d1 reverse-finish: turn internal error into normal error
The reverse-finish command results in an internal error if it cannot determine
the current function.

  (gdb) c
  Continuing.

  Program received signal SIGSEGV, Segmentation fault.
  0x0000000000000000 in ?? ()
  (gdb) reverse-finish
  Run back to call of #0  0x0000000000000000 in ?? ()
  gdb/infcmd.c:1576: internal-error: Finish: couldn't find function.
  A problem internal to GDB has been detected,
  further debugging may prove unreliable.
  Quit this debugging session? (y or n) y

This is not an internal error case since the command may be used in scenarios
where there is no function at the current PC, e.g. after calling through a bad
function pointer.

Turn this into a normal error.

gdb/
	* infcmd.c (finish_backward): Turn internal error into normal error.

testsuite/
	* gdb.btrace/segv.c: New.
	* gdb.btrace/segv.exp: New.
2014-07-08 10:07:59 +02:00
..
Makefile.in record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
data.c record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
data.exp btrace: control memory access during replay 2014-05-23 09:07:53 +02:00
delta.exp record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
enable.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
enable.exp test, btrace: update expected text 2014-01-16 12:45:08 +01:00
exception.cc record-btrace: optionally indent function call history 2014-01-16 13:03:41 +01:00
exception.exp record-btrace: show trace from enable location 2014-01-16 13:12:00 +01:00
finish.exp record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
function_call_history.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
function_call_history.exp record-btrace: make ranges include begin and end 2014-01-16 13:05:38 +01:00
gcore.exp btrace: pretend we're not replaying when generating a core file 2014-06-25 09:59:08 +02:00
instruction_history.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
instruction_history.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
instruction_history.exp record-btrace: show trace from enable location 2014-01-16 13:12:00 +01:00
multi-thread-step.c record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
multi-thread-step.exp record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
next.exp record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
nexti.exp record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
nohist.exp btrace: no replay without history 2014-05-20 14:18:10 +02:00
record_goto.c record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
record_goto.exp record-btrace: show trace from enable location 2014-01-16 13:12:00 +01:00
rn-dl-bind.c record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
rn-dl-bind.exp record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
segv.c reverse-finish: turn internal error into normal error 2014-07-08 10:07:59 +02:00
segv.exp reverse-finish: turn internal error into normal error 2014-07-08 10:07:59 +02:00
step.exp record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
stepi.exp record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
tailcall.exp record-btrace: add (reverse-)stepping support 2014-01-16 13:14:12 +01:00
unknown_functions.c record-btrace: optionally indent function call history 2014-01-16 13:03:41 +01:00
unknown_functions.exp record-btrace: show trace from enable location 2014-01-16 13:12:00 +01:00
vdso.c btrace, vdso: add vdso target sections 2014-05-23 09:12:24 +02:00
vdso.exp btrace, vdso: add vdso target sections 2014-05-23 09:12:24 +02:00
x86-record_goto.S record-btrace: add record goto target methods 2014-01-16 13:08:05 +01:00
x86-tailcall.S record-btrace: optionally indent function call history 2014-01-16 13:03:41 +01:00
x86-tailcall.c record-btrace: optionally indent function call history 2014-01-16 13:03:41 +01:00