This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how make program exit normally when execute command "run" on simulator


On Thursday 13 May 2010 22:20:14 vincent chen wrote:
> I'm trying to add a new target to gdb and I'd like to run on simulator
> first,
> 
> most functions of simulator appear to run properly now,
> 
> but I don't know how to make the program exit normally when execute
> the command "run" (no breakpoint exist),
> 
> I saw other target like mips can exit normally, is there any special
> assemble code in program to control?

in addition to what Doug said, some targets implement pseudo insns that only 
the sim recognizes (pick some opcode the hardware thinks is invalid) and use 
those to exit immediately
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]