Skip to contentSkip to conversation

Debugging guest OS / tracing instruction pointer

Qemu-devel Clemens Kolbitsch 2 participants 3 messages Jun 14, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

hi!
i'm looking for a way to monitor the eip register. is there a simple way to do this? i know that that produces tons of data...

even better would be to know where i could intercept the main-loop (exec_cpu ??) to check for a certain eip value...

could someone assist me doing that?
thanks!

#2 lore raw
Quoted 6 lines · Clemens Kolbitsch

hi!
i'm looking for a way to monitor the eip register. is there a simple way to do this? i know that that produces tons of data...

even better would be to know where i could intercept the main-loop (exec_cpu ??) to check for a certain eip value...

qemu already has mechanisms for supporting debugger breakpoints. Sounds like you want something very similar.

Paul

#3 lore raw
Quoted 6 lines · Paul Brook
Quoted 4 lines · Clemens Kolbitsch

hi!
i'm looking for a way to monitor the eip register. is there a simple way to do this? i know that that produces tons of data...

Quoted 8 lines
Quoted 3 lines

even better would be to know where i could intercept the main-loop (exec_cpu ??) to check for a certain eip value...

qemu already has mechanisms for supporting debugger breakpoints. Sounds like you want something very similar.

Paul

the thing is: i want to monitor the eip... or where the code will jump NEXT. the code there is never executed (as it results in a kernel failure)

e.g. i know a buffer overflow will set the return-pointer to 0xABCD and "ret" is executed i want the breakpoint to hit

when using casual breakpoints, i think the code there must be executed (i.e. the jump must be successful .. what will definitely not be the case with 0xABCD)

thanks!