gdb: sim: check return value of sim_create_inferior
authorMike Frysinger <vapier@gentoo.org>
Thu, 16 Feb 2012 18:30:43 +0000 (18:30 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 16 Feb 2012 18:30:43 +0000 (18:30 +0000)
commitddd60447d562534f4bfe3f9bd89b9943204861c7
treee9036169bc2e4e3c5b349de3ac43fe267251b3d9
parentb0d32fb61e974e283300e836c34cfaa94ab1c03d
gdb: sim: check return value of sim_create_inferior

The current gdbsim_create_inferior func doesn't check the return value
of sim_create_inferior which can be problematic when that func doesn't
return success.  So, if it fails, call error() and be done.

Reported-by: Richard Stuckey <richard.stuckey@arc.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
gdb/ChangeLog
gdb/remote-sim.c