From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27307 invoked by alias); 10 Aug 2006 06:22:16 -0000 Received: (qmail 27294 invoked by uid 22791); 10 Aug 2006 06:22:15 -0000 X-Spam-Check-By: sourceware.org Received: from brmea-mail-3.Sun.COM (HELO brmea-mail-3.sun.com) (192.18.98.34) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 Aug 2006 06:22:13 +0000 Received: from fe-amer-03.sun.com ([192.18.108.177]) by brmea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k7A6MBHb023988 for ; Thu, 10 Aug 2006 00:22:11 -0600 (MDT) Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J3R00K01QXU6K00@mail-amer.sun.com> (original mail from Nikolay.Molchanov@Sun.COM) for gdb@sourceware.org; Thu, 10 Aug 2006 00:22:11 -0600 (MDT) Received: from [172.16.1.35] ([69.106.253.60]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J3R00LLPR0XSTP1@mail-amer.sun.com> for gdb@sourceware.org; Thu, 10 Aug 2006 00:22:10 -0600 (MDT) Date: Thu, 10 Aug 2006 06:22:00 -0000 From: Nikolay Molchanov Subject: How to set a breakpoint in file, which name has spaces? In-reply-to: <44D98D66.9060202@sun.com> To: gdb@sourceware.org Reply-to: Nikolay.Molchanov@Sun.COM Message-id: <44DAD087.30004@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <44D832EE.2040405@sun.com> <44D8E404.5050407@Sun.COM> <44D98D66.9060202@sun.com> User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00082.txt.bz2 Hello! There seems to be a problem with setting a breakpoint in files, which names have spaces (usually it happens on Windows, but it is possible to create such files in Unix filesystems as well). Here is a part of a log file, that shows the problem. Note that '\ ' works just great in "-file-exec-and-symbols" command, but does not work in "-break-insert" command. bash-3.1$ gdb --nw --interpreter=mi ~"GNU gdb 6.5.50.20060706-cvs (cygwin-special)\n" ~"Copyright (C) 2006 Free Software Foundation, Inc.\n" ~"GDB is free software, covered by the GNU General Public License, and you are\n" ~"welcome to change it and/or distribute copies of it under certain conditions.\n" ~"Type \"show copying\" to see the conditions.\n" ~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n" ~"This GDB was configured as \"i686-pc-cygwin\"." ~"\n" (gdb) 212-file-exec-and-symbols C:/Documents\ and\ Settings/nikm/.netbeans/Netbeans\ Projects/Args1/dist/Debug/args 212^done (gdb) 221-break-insert C:/Documents\ and\ Settings/nikm/.netbeans/Netbeans\ Projects/Args1/src/main.c:17 &"mi_cmd_break_insert: Garbage following \n" 221^error,msg="mi_cmd_break_insert: Garbage following " (gdb) I tried to use single and double quotes, but still no luck. Is it a known problem? Is there a workaround? Thanks in advance, Nikolay Molchanov