This is the mail archive of the gdb-prs@sources.redhat.com 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]

c++/1302: Segmentation fault in gdb--5.3 with gcc--3.0.3


>Number:         1302
>Category:       c++
>Synopsis:       Segmentation fault in gdb--5.3 with gcc--3.0.3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 29 12:58:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     jgarvia@orga-systems.com
>Release:        gdb--5.3
>Organization:
>Environment:
UNIX Tru64 v5.1A
gcc--3.03
>Description:
I am currently trying to debug an executable file developed in C++ and compiled with gcc (g++) with following options:
-g3 -O0 -c

The results of my attempt to use the debugger are the following:

************************************************************
> gdb file
GNU gdb 5.3
Copyright 2002 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 "alphaev67-dec-osf5.1"...Error reading symbol table: File truncated

(gdb) run
Starting program: file 
Segmentation fault

************************************************************

Segmentation fault is produced by "gdb", but I do not know why. Probably it could be produced by the compiler, or not?
Note how symbol table has not been correctly read.

Are there any compatibility problem in using gdb--5.3 with gcc--3.0.3?
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]