![]() |
|
#1
|
|||
|
|||
|
Whether IDA can set memory breakpoint when use Remote Linux debugger?
I want to observe and catch which instruction modify the content of some memory block. |
|
#2
|
||||
|
||||
|
Yes its possible, there are some ways.
If adress is known you can set them when debugging and restart. Or if its a condition, make new breakpoint and under condition file set future condition, and breakpoint type. i like the script way, but thats just me. simple BP script Code:
ea = GetEntryPoint(1) # entrypoint or adress
ea2 = MaxEA
LoadDebugger("gdb", 1) # typedebugger and remote
AddBptEx(0x020000, 0x1, BPT_BRK) #adress or condition, lenght
SetDebuggerOptions(DOPT_BPT_MSGS) #debugger atributes
path = GetInputFilePath()
args = ''
sdir = ''
StartDebugger(path, args, sdir)
It might be usefull if you wanna see how it modifyes, and use trace replayer.
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm." Today I whispered in the devils ear, "I am the storm." |
|
#3
|
|||
|
|||
|
>I want to observe and catch which instruction modify the content of some memory block.
Does the HW breakpoint work in your case? |
|
#4
|
||||
|
||||
|
You can opserve what instructions are been modified with trace replayer.
havent used it much , but the modifications shows there.Trace replayer can trace functions / instructions and basic blocks
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm." Today I whispered in the devils ear, "I am the storm." |
|
#5
|
|||
|
|||
|
Quote:
How to set HW breakpoing in IDA? Would you give more details? I'll search google at the same time, thank you. |
|
#6
|
|||
|
|||
|
Quote:
I'll study it, seems it's more complex than that in OD. |
|
#7
|
|||
|
|||
|
Set regular BP (F2)
Edit that BP (right click on red dot and go to Edit breakpoint menu item than you'll see this: http://prntscr.com/4lfwfa check the HW checkbox and the rest of options! |
|
#8
|
||||
|
||||
|
Quote:
__________________
The devil whispered in my ear, "you're not strong enough to withstand the storm." Today I whispered in the devils ear, "I am the storm." |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows debugger that can run code on breakpoint? | jonwil | Community Tools | 5 | 01-17-2022 21:28 |
| [Linux] Memory dumper | alexandernst | Community Tools | 0 | 12-11-2017 11:48 |
| IDA remote debug Linux Kernel | Sergey Nameless | General Discussion | 3 | 04-03-2012 04:12 |
| how does ollydbg memory breakpoint works | deXep | General Discussion | 5 | 10-15-2005 21:48 |
| Olly Memory Breakpoint no-show | bgrimm | General Discussion | 1 | 04-22-2004 11:15 |