From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28756 invoked by alias); 17 Dec 2002 03:57:50 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 28679 invoked from network); 17 Dec 2002 03:57:49 -0000 Received: from unknown (HELO stephens.ittc.ku.edu) (129.237.125.220) by sources.redhat.com with SMTP; 17 Dec 2002 03:57:49 -0000 Received: from basie.ittc.ku.edu (basie.ittc.ku.edu [129.237.127.28]) by stephens.ittc.ku.edu (8.12.6/8.12.6/ITTC-ANTISPAM-ANTIVIRUS-3.0) with ESMTP id gBH3vkbb000496 for ; Mon, 16 Dec 2002 21:57:47 -0600 Received: from localhost by basie.ittc.ku.edu (8.11.2/KU-4.0-client) id gBH3vkr18510; Mon, 16 Dec 2002 21:57:46 -0600 Date: Mon, 16 Dec 2002 19:57:00 -0000 From: Satyavathi Malladi To: Subject: Breakpoints Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-VirusScan: Clean X-SW-Source: 2002-12/txt/msg00238.txt.bz2 Hi, I have compiled a program using the gcc compiler with the options -g and -ax (-ax is the option to enable block profiling). I am debugging the program using gdb-5.2 . I set a breakpoint at main. When the program hits the breakpoint, I obtained the backtrace of the program.It was as follows: (gdb) bt #0 main () at ex7.c:7 #1 0x400a5316 in __libc_start_main (main=0x8048a34
, argc=1, ubp_av=0xbffff594, init=0x80487ac <_init>, fini=0x804a1d0 <_fini>, rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbffff58c) at ../sysdeps/generic/libc-start.c:129 Then I continued the program using the command "continue". Then the breakpoint at main was hit again. Program received signal SIGTRAP, Trace/breakpoint trap. 0x08048a50 in main () at ex7.c:7 Then when I tried to obtain the backtrace, I got the following output: (gdb) bt #0 0x08048a50 in main () at ex7.c:7 #1 0xbffff568 in ?? () Can someone help me figure out why this is happening. Thanks, Satya