windbg: set data breakpoint at dll + offset -


i want set data-write breakpoint on value of xul.dll+0x7d760, using command script.

i can print base address of xul.dll using lm, , manually set breakpoint with

ba w (baseaddress + 0x7d760)

but can't figure out way store base address of xul.dll pseudo-register automatically. there way somehow store or parse results of lm xul pseudo-register?

.foreach /ps 4 /ps 3 (modbase {lm p m xul}) {ba w 4 (${modbase} + 0x7d760)}

in command, module's base address stored in ${modbase}. substitute xul module, or edit {ba w 4 (${modbase} + 0x7d760)} block substitute different command or offset necessary.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -