* gdb breakpoint
@ 2004-03-04 14:51 Vineet Sharma, Noida
0 siblings, 0 replies; 2+ messages in thread
From: Vineet Sharma, Noida @ 2004-03-04 14:51 UTC (permalink / raw)
To: gdb
Hi,
My simulator is synchronus and it does not have and harward
register(for breakpoint). So how can we implement the software
breakpoint/watc/step etc. .
Q2) Does the gdb runs simulator as a thread?
If yes is it always the case or there are exception?
Q3) When is sim_resume() is supposed to return after the return of the
simulator or what?
In other word what is the functinality of sim_resume?
Regards
Vineet
^ permalink raw reply [flat|nested] 2+ messages in thread* re: gdb breakpoint
@ 2004-03-05 1:34 Yorkwar
0 siblings, 0 replies; 2+ messages in thread
From: Yorkwar @ 2004-03-05 1:34 UTC (permalink / raw)
To: vineets; +Cc: gdb
Usually gdb together with the simulator is a single thread.
GDB sees the integrated simulator as a set of functions.
If you set a breakpoint in gdb, gdb will replace the appropriate
instruction with some "break number"-like instruction and rember
the original instruction. When the simulator meets with the gdb-
inserted break instruction, it will return the control to gdb's
main loop.
Everytime gdb transfers it's control to simulator, it invokes
sim_resume.
That's my opinion:)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-05 1:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-04 14:51 gdb breakpoint Vineet Sharma, Noida
2004-03-05 1:34 Yorkwar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox