how make program exit normally when execute command "run" on simulator
Mike Frysinger
vapier@gentoo.org
Wed May 19 22:56:00 GMT 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb/attachments/20100519/6cafda46/attachment.sig>
More information about the Gdb
mailing list