edit: Reading help further it indeed appears there's no passing things around, only writing "debugger programs" to do the simplest stuff.
Essentially I would like to do this:
pseudo commands:
s -au * "string" | ba -r
(I know you can save the results with -s .. so far it eludes me how you pass those results to ba ..)
This would search both ASCII and Unicode "string" from entire process memory and set break point on read access to all of those strings.
edit2:
This appears to accomplish what I needed. the [1] and the range really makes it rather ugly not to mention having to do it this way. Perl looks better than this.
.foreach(x {s -[1]u 0 l?FFFFFFFF "string"}) { ba r 1 x }
.... Except that now I get this:
Too many data breakpoints for thread 0
What the * ?? Other debuggers allow more than 4 data breakpoints.
tag: break on string access breakpoints on multiple strings