From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4406 invoked by alias); 12 Aug 2004 15:31:21 -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 4385 invoked from network); 12 Aug 2004 15:31:20 -0000 Received: from unknown (HELO relay0.EECS.Berkeley.EDU) (169.229.60.163) by sourceware.org with SMTP; 12 Aug 2004 15:31:20 -0000 Received: from gateway.EECS.Berkeley.EDU (nsmail@gateway.EECS.Berkeley.EDU [169.229.60.73]) by relay0.EECS.Berkeley.EDU (8.13.0/8.12.10) with ESMTP id i7CFVJJ7025079 for ; Thu, 12 Aug 2004 08:31:19 -0700 (PDT) Received: from eecs.berkeley.edu (dhcp-33-87.EECS.Berkeley.EDU [128.32.33.87]) by gateway.EECS.Berkeley.EDU (Netscape Messaging Server 4.15) with ESMTP id I2CB4400.T5O; Thu, 12 Aug 2004 08:31:16 -0700 Message-ID: <411B8E1C.8@eecs.berkeley.edu> Date: Thu, 12 Aug 2004 15:31:00 -0000 From: "Allen Hopkins" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 MIME-Version: 1.0 To: Michael Chastain CC: gdb@sources.redhat.com Subject: Re: Can't set bkpt at throw statement References: <411AC515.4080002@eecs.berkeley.edu> <411B5F84.nailNOP219DTW@mindspring.com> In-Reply-To: <411B5F84.nailNOP219DTW@mindspring.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00201.txt.bz2 Thanks. I'll try updating gcc. Here are the versions of gdb, gcc, o/s: fortytwo[1001]$ gdb --version GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux". fortytwo[1002]$ gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit Thread model: posix gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) fortytwo[1004]$ uname -a Linux fortytwo.eecs.berkeley.edu 2.4.20-28.8smp #1 SMP Thu Dec 18 12:25:21 EST 2003 i686 i686 i386 GNU/Linux -Allen Michael Chastain wrote: > Your program works fine for me on: > > native i686-pc-linux-gnu > red hat 8.0 > gcc 3.3.4 > binutils 2.15 > gdb 6.2 > > I also tested with gcc 3.4.1 and gcc 3.5.0 20040811 (experimental). > All worked fine. > > However I see the bad breakpoint on Fred.cpp:12 with > > native i686-pc-linux-gnu > red hat 8.0 > gcc 3.2-7-rh > binutils 2.13.90.0.2-2-rh > gdb 6.2 > > (gdb) break Ethel.cpp:12 > Breakpoint 1 at 0x80488b5: file Ethel.cpp, line 12. > (gdb) break Fred.cpp:12 > Note: breakpoint -1 (disabled) also set at pc 0x0. > Breakpoint 2 at 0x0: file Fred.cpp, line 12. > > Can you report: > > output of "gdb --version" > output of "gcc -v" > (or if the C++ compiler is not gcc, the equivalent) > your os name and version number > > I think you will have to install a newer gcc. > It's not hard, if you use the "--prefix" option to build gcc. > > Michael C