[runtime] Add color mode to sgen-grep-binprot.
authorJon Purdy <evincarofautumn@gmail.com>
Thu, 29 Jan 2015 21:11:19 +0000 (13:11 -0800)
committerJon Purdy <evincarofautumn@gmail.com>
Thu, 29 Jan 2015 21:51:27 +0000 (13:51 -0800)
commitb63d941ba04c103fe1d5edffdf9c688ddace1520
tree49d37dd1ac559518a20d313e3902b7db2bac9cd8
parent9df536fcc6138489e35d2faf13baa20b8a51e6de
[runtime] Add color mode to sgen-grep-binprot.

When searching for a pointer with '--color' or '-c', the field in a
protocol entry that matched will be highlighted; when searching for
multiple pointers, they will be highlighted in different colors
according to their order on the command line. When highlighting more
than six pointers, colors will be reused.
mono/metadata/sgen-protocol-def.h
mono/metadata/sgen-protocol.c
mono/metadata/sgen-protocol.h
tools/sgen/sgen-grep-binprot.c