-
danmcdHey look, I got ::bcmp working, I think... gist.github.com/danmcd/9945ae95e4a3db60c87a53fe86c88f02
-
andyfNice! I enjoy writing dcmds.
-
andyfWhat does it print in a pipe context, the addr+offset?
-
andyftest_string_1::bcmp test_string_2 -n a | /s
-
jbkdanmcd: and thank you for documenting the flags!!
-
jbk(i've fixed several dcmds that didn't and just assumed you knew what they did)
-
danmcd@andyf ==> probably '<offset>/s' which doesn't help.
-
danmcdThere's a WIP gerrit attached to the bug id now.
-
andyfWell it would require an ::eval - I think it's useful to document the pipe behaviour whichever one you choose.
-
danmcd@jbk YW. Least I can do.
-
danmcdIn the spirit of "keep it simple, no bikeshedding" I think people should prep for using ::eval, I guess.
-
andyfYep, I don't want to stop it being simple. It's trivial to implement either way (you can choose to print something different if (flags & DCMD_PIPE_OUT)) -- I would just like to see it in the help so we know.
-
andyfI'm happy to take a review pass whenever you like - promise not to focus on the colour too much.
-
» danmcd notes needs-better-documentation.
-
danmcdAlso I'm willing to wiggle on pointer vs. offset for the output, but I'll allow that explicitly on Gerrit when I'm happy with it going from WIP to review-me-please.
-
danmcdAdvice on how `addr2` can be parsed as either a name OR an actual address?
-
andyfAh, is it always MDB_TYPE_STRING ?
-
andyf::dis and ::findbuf have examples, neither of them pretty..
-
andyfer, ::findsym even
-
andyf
-
andyfYeah, look at dis_str2addr()
-
danmcdThank you @andyf. Need to push it to gerrit again.
-
danmcdfenix illumos#17506
-
fenixFEATURE 17506: Create ::bcmp dcmd (In Progress)
-
fenix