When GDB finishes, I get the following output:
─── Output/messages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[Inferior 1 (process 18473) exited with code 05]
- Is there a way to capture the exit code in the prompt,
5, after gdb has finished? - Does
18473refer to the thread ID, the (unix) process ID, or something else? - Finally, why it is called an "inferior" process?