public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "limkokhole at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/17228] New: breakpoint will fail when directory names containing comma character
Date: Mon, 04 Aug 2014 04:51:00 -0000	[thread overview]
Message-ID: <bug-17228-4717@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=17228

            Bug ID: 17228
           Summary: breakpoint will fail when directory names containing
                    comma character
           Product: gdb
           Version: 7.6
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: limkokhole at gmail dot com

The breakpoint will raise "Error in re-setting breakpoint 1: Function
"/home/ack0hole/" not defined." exception if parent or current directory name
containing comma character.

Similar issue has been asked on Stack Overflow,
http://stackoverflow.com/questions/12520185/adding-breakpoints-to-gdb-in-files-with-comma-in-path

Environment:
GDB version: GNU gdb (GDB) Fedora 7.6.1-46.fc19
OS version: Fedora release 19 (Schrödinger’s Cat)
uname -a: Linux localhost.localdomain 3.14.8-100.fc19.i686.PAE #1 SMP Mon Jun
16 22:06:57 UTC 2014 i686 i686 i386 GNU/Linux

Following is the terminal log (/home/ack0hole is my home directory name):

[ack0hole@localhost test]$ cc -c io_eof.c
[ack0hole@localhost test]$ gdb ./a.out 
GNU gdb (GDB) Fedora 7.6.1-46.fc19
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/ack0hole/,/test/a.out...done.
(gdb) l
1       #include <stdio.h>
2       main()
3       {
4           int c;
5           c = getchar();
6           putchar(c);    
7       }
(gdb) 
Line number 8 out of range; io_eof.c has 7 lines.
(gdb) b 4
Breakpoint 1 at 0x8048469: file io_eof.c, line 4.
(gdb) r
Starting program: /home/ack0hole/,/test/./a.out 
Error in re-setting breakpoint 1: Function "/home/ack0hole/" not defined.


[Inferior 1 (process 4955) exited with code 012]
(gdb) i b
Num     Type           Disp Enb Address    What
1       breakpoint     keep n   <PENDING>  /home/ack0hole/,/test/io_eof.c:4
(gdb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-16223-listarch-gdb-prs=sources.redhat.com@sourceware.org Mon Aug 04 05:17:14 2014
Return-Path: <gdb-prs-return-16223-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 22180 invoked by alias); 4 Aug 2014 05:17:13 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 22153 invoked by uid 48); 4 Aug 2014 05:17:12 -0000
From: "limkokhole at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/17228] breakpoint will fail when directory names containing
 comma character
Date: Mon, 04 Aug 2014 05:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: gdb
X-Bugzilla-Version: 7.6
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: limkokhole at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-17228-4717-uf4CeJTzlx@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-17228-4717@http.sourceware.org/bugzilla/>
References: <bug-17228-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-q3/txt/msg00212.txt.bz2
Content-length: 257

https://sourceware.org/bugzilla/show_bug.cgi?id\x17228

--- Comment #1 from lim kok hole <limkokhole at gmail dot com> ---
gcc verison: gcc (GCC) 4.8.3 20140624 (Red Hat 4.8.3-1)

--
You are receiving this mail because:
You are on the CC list for the bug.


             reply	other threads:[~2014-08-04  4:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-04  4:51 limkokhole at gmail dot com [this message]
2024-01-02 16:38 ` [Bug gdb/17228] " ssbssa at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-17228-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).