This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/684: GDB/MI setting breakpoint is not sucessfull the first time.
- From: alain at qnx dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 4 Sep 2002 14:40:20 -0000
- Subject: gdb/684: GDB/MI setting breakpoint is not sucessfull the first time.
- Reply-to: alain at qnx dot com
>Number: 684
>Category: gdb
>Synopsis: GDB/MI setting breakpoint is not sucessfull the first time.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 04 07:48:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: alain@qnx.com
>Release: unknown-1.0
>Organization:
>Environment:
GNU/Linux
gdb-5.2.1
>Description:
The first break did not take effect and was only allowed after
the -break-insert main. I'm not sure if this is a bug, or the
expected behaviour. Altought, the case below is with MI
it is also the same with CLI commands.
# cd
# mkdir Hello
# cd Hello
# vi hello.c // Write a simple hello world program
# gcc -o hello -g hello.c
# cd ..
# gdb -i=mi Hello/hello
GNU gdb 5.2.1
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 "i686-pc-linux-gnu"...
(gdb)
-break-insert /home/alain/Hello/hello.c:5
&"No source file named /home/alain/Hello/hello.c.\n"
^error,msg="No source file named /home/alain/Hello/hello.c."
(gdb)
-break-insert main
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804844e",func="main",file="hello.c",line="11",times="0"}
(gdb)
-break-insert /home/alain/Hello/hello.c:5
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0804843c",func="routine",file="hello.c",line="5",times="0"}
(gdb)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: