This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/1421: gdb yields SIGTRAP on simple "hello world" program.
- From: jas at cs dot yorku dot ca
- To: gdb-gnats at sources dot redhat dot com
- Date: 17 Oct 2003 14:40:06 -0000
- Subject: gdb/1421: gdb yields SIGTRAP on simple "hello world" program.
- Reply-to: jas at cs dot yorku dot ca
>Number: 1421
>Category: gdb
>Synopsis: gdb yields SIGTRAP on simple "hello world" program.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Oct 17 14:48:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: jas@cs.yorku.ca
>Release: gdb-6.0
>Organization:
>Environment:
RedHat Linux 7.3, gdb compiled from source with gcc 3.2.2
>Description:
When I run gdb on this trivial program:
#include <stdio.h>
main()
{
printf("hello world\n");
}
The result is when I load into gdb:
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 "i686-pc-linux-gnu"...
(gdb) run
Starting program: /cs/home/jas/hello
Program received signal SIGTRAP, Trace/breakpoint trap.
0x40000b50 in ?? ()
If I "continue", I get:
gdb) continue
Continuing.
hello world
Program exited with code 014.
The program was compiled with "-g".
This occurs on all programs that I try to debug with gdb.
This must be my problem, but I don't know what it is.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: