]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change kgdb_parse() to use wrapped versions of parse_expression() and
authorjhb <jhb@FreeBSD.org>
Sat, 29 Mar 2008 17:46:03 +0000 (17:46 +0000)
committerjhb <jhb@FreeBSD.org>
Sat, 29 Mar 2008 17:46:03 +0000 (17:46 +0000)
commitcb2ee2cc9236267d2331dd637021ecbc27f69caa
treecba3f3775b4b8ee0c5fde8c8061fa19804fc4919
parent0f0375e36afcaac1c92436bbe24263b7e74a3331
Change kgdb_parse() to use wrapped versions of parse_expression() and
evaluate_expression() so that any errors are caught and cause the function
to return to 0.  Otherwise the errors posted an exception (via longjmp())
that aborted the current operation.  This fixes the kld handling for
older kernels (6.x and 7.x) that don't have the full pathname stored in
the kernel linker.

MFC after: 3 days
gnu/usr.bin/gdb/kgdb/main.c