This is the mail archive of the gdb-patches@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] |
I didn't see exit-code.c in the patch though. Did you forget to add it?
Oops, probably.
+ # Exit the inferior + mi_send_resuming_command "exec-continue" "continuing to exit inferior" + mi_expect_stop "exited-normally" "" "" "" "" "" "exiting inferior" + + # Check after the run + mi_gdb_test "124-list-thread-groups" "124\\^done,groups=\\\[\{id=\"i1\",type=\"process\",exit-code=\"0\",executable=\".*\"\}\]" "test -list-thread-groups 3" + + # Start the program again to get an other exit code"another".+ mi_run_to_main 10What does this "10" do?
I thought I did, but apparently I didn't mention that this patch depends on this one, which adds the ability to pass arguments to mi_run_to_main that are passed to the test executable:
http://sourceware.org/ml/gdb-patches/2013-05/msg00971.htmlThat reminds me, I still need to produce an updated version of this other patch, following the comments I got.
Basically, exit-code.c (which, as you noted, I forgot to add to the patch) simply returns what you ask it to return (10 in this case).
Thanks,
Ok for the rest of the comments, they are all relevant and useful. Thanks, Simon
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |