- /* NOTE: target_signal_from_host() converts a target signal value
- into gdb's internal signal value. Unfortunately gdb's internal
- value is called ``target_signal'' and this function got the
- name ..._from_host(). */
- printf_filtered (_("Program terminated with signal %d, %s.\n"), siggy,
- target_signal_to_string (
- (core_gdbarch != NULL) ?
- gdbarch_target_signal_from_host (core_gdbarch, siggy)
- : siggy));
+ {
+ /* NOTE: target_signal_from_host() converts a target signal
+ value into gdb's internal signal value. Unfortunately gdb's
+ internal value is called ``target_signal'' and this function
+ got the name ..._from_host(). */
+ enum target_signal sig = (core_gdbarch != NULL
+ ? gdbarch_target_signal_from_host (core_gdbarch,
+ siggy)
+ : target_signal_from_host (siggy));
+
+ printf_filtered (_("Program terminated with signal %d, %s.\n"),
+ siggy, target_signal_to_string (sig));
+ }