Respect object boundaries in search_for_symbol().
commit4b8b84d9ab93a1f0825a508e1604f02d6efe6f7c
authorDouglas Katzman <dougk@google.com>
Wed, 5 Jul 2017 00:04:23 +0000 (4 20:04 -0400)
committerDouglas Katzman <dougk@google.com>
Wed, 5 Jul 2017 00:04:23 +0000 (4 20:04 -0400)
treeb19c7f0a3a2bdf8c8c0ebc008b6d57dcb4c0ea55
parent453dc0a7ab9bf03ad348d61124e01e8788a06a34
Respect object boundaries in search_for_symbol().

search_for_type() is apparently intended to scan the heap one word at a time,
since it implements the "search" command which may or may not be handed an
object-aligned start address; so reimplement a proper object scan for symbols.
src/runtime/parse.c
src/runtime/search.c
src/runtime/search.h