Hi,
I am debugging a third-party DLL for which I don't have the source code. This DLL maintains a pool of strings. I want to trap the earliest occurrence at which one of these strings is passed into a function...any function at all...
In other words, I want to detect when a pointer-to-a-null-terminated-string having a certain format is pushed onto the stack...by anybody, and I want to execute a Debug Break when that occurs.
I know you can set a "break-on-access" breakpoint which will trigger when the CPU reads/writes/executes a particular address. What I want is similar to this: for each string pushed onto the stack, I want to test it against a certain format, and if it matches, execute the break.
Using WinDbg, OllyDb, VS2008, whatever..any ideas?
Thanks!