]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change kgdb_parse() to use wrapped versions of parse_expression() and
authorJohn Baldwin <jhb@FreeBSD.org>
Sat, 29 Mar 2008 17:46:03 +0000 (17:46 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Sat, 29 Mar 2008 17:46:03 +0000 (17:46 +0000)
commit36cc36a0ec0c1918dad9e6f15be4de1e565889be
treecba3f3775b4b8ee0c5fde8c8061fa19804fc4919
parentdbdb679c6ffb9b289cb4489246d0a30635657e00
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