Replace hardwired error handler in captured_main
authorGary Benson <gbenson@redhat.com>
Mon, 4 Aug 2014 13:08:46 +0000 (14:08 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 29 Aug 2014 09:12:02 +0000 (10:12 +0100)
commitfd0ef3dda9fa7af181d059e4b3e26c17c1385c0d
tree846b3b36ff35b757231e90a99bd176ec0eac7349
parente0e6bcab5971ea4ad7c4f2efa5c8164c8383caf6
Replace hardwired error handler in captured_main

If the requested interpreter cannot be set captured_main reports the
error with a hardwired fprintf/exit pair.  A fprintf/exit pair on the
previous line was replaced with a call to error in March 2003
(https://sourceware.org/ml/gdb-patches/2003-03/msg00444.html) but I
found no documentation as to why this particular hardwired handler
was left untouched.  I was also unable to come up with a situation
where error would not be suitable, so I have replaced it with a call
to error.

gdb/ChangeLog:

* main.c (captured_main): Replace a fprintf/exit
pair with a call to error.  Wrap the message with _().
gdb/ChangeLog
gdb/main.c
This page took 0.026275 seconds and 4 git commands to generate.