From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaun Jackman To: Ruedi Dummermuth Cc: gdb@sources.redhat.com Subject: gdb signal normal termination of program Date: Wed, 28 Nov 2001 08:25:00 -0000 Message-ID: X-SW-Source: 2001-11/msg00312.html Message-ID: <20011128082500.jrVccwL67hXMb_Q0YscjrvQlDHl3uvuNHd_5_r4exDw@z> Hello, I have an arm-elf target connected to a bdi2000 jtag debugger. Is there any instruction I can compile that indicates to the debugger or gdb that my program has reached normal termination. When main returns exit() is called which then hangs the processor. I have to interrupt it with ctrl-c. I'd like gdb to break to the prompt on its own and display the message "Program terminated normally". Do you know how I go about this? Thanks, Shaun