public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/16439] New: rbreak . gives "unmatched quote" on Firefox
@ 2014-01-12 18:31 techmeology.co.uk at gmail dot com
2014-07-24 20:35 ` [Bug breakpoints/16439] " harry at harrydole dot com
2024-01-08 17:31 ` ssbssa at sourceware dot org
0 siblings, 2 replies; 3+ messages in thread
From: techmeology.co.uk at gmail dot com @ 2014-01-12 18:31 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16439
Bug ID: 16439
Summary: rbreak . gives "unmatched quote" on Firefox
Product: gdb
Version: 7.6
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: techmeology.co.uk at gmail dot com
Host: Linux Atlantis 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20
19:39:00 CET 2013 x86_64 GNU/Linux
Using rbreak . on a debug build of Firefox results in an "unmached quote"
error. This error does not occur on other (admittedly simpler) examples I've
tried. Unlike other similar bugs I've found when searching, this does not
appear to be an error parsing the command itself, but rather a consequence of
the symbols in the executable GDB is run on.
test.gdb:
set pagination off
rbreak .
Command run: gdb -x ~/gdb/test.gdb --args
asan-firefox-build/mozilla-release/objdir-ff-asan/dist/bin/firefox
Last few lines of gdb output:
Breakpoint 286 at 0x41f38e: file
/mnt/sdb1/home/sandbox/asan-firefox-build/mozilla-release/mfbt/decimal/Decimal.cpp,
line 450.
WebCore::Decimal WebCore::Decimal::operator/(WebCore::Decimal const&) const;
Breakpoint 287 at 0x41f716: file
/mnt/sdb1/home/sandbox/asan-firefox-build/mozilla-release/mfbt/decimal/Decimal.cpp,
line 320.
WebCore::Decimal &WebCore::Decimal::operator/=(WebCore::Decimal const&);
/home/sandbox/gdb/test.gdb:2: Error in sourced command file:
unmatched quote
(gdb)
Steps to reproduce:
* Compile an ASAN build of Firefox using LLVM
* Run it under gdb as above
You should see the unmached quote error.
I would expect breakpoints to be created without error.
GDB version: GNU gdb (GDB) 7.6.2
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug breakpoints/16439] rbreak . gives "unmatched quote" on Firefox
2014-01-12 18:31 [Bug breakpoints/16439] New: rbreak . gives "unmatched quote" on Firefox techmeology.co.uk at gmail dot com
@ 2014-07-24 20:35 ` harry at harrydole dot com
2024-01-08 17:31 ` ssbssa at sourceware dot org
1 sibling, 0 replies; 3+ messages in thread
From: harry at harrydole dot com @ 2014-07-24 20:35 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16439
harry at harrydole dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |harry at harrydole dot com
--- Comment #1 from harry at harrydole dot com ---
Perhaps this is a simpler "hello, world" example showing that "info function
<<.*string" works, but "rb <<.*string" returns the dreaded unmatched quote".
sh> cat hello.cpp
#include <iostream>
int main()
{
std::cout << "hello, world" << std::endl;
return 0;
}
sh> g++ --version
g++ (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
sh> g++ -g hello.cpp
sh> gdb a.out
GNU gdb (GDB) 7.5
Copyright (C) 2012 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 "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /remote/icwb1/hdole/p4/fw/xmain/src/bool/a.out...done.
(gdb) b 5
Breakpoint 1 at 0x400870: file hello.cpp, line 5.
(gdb) r
Starting program: /remote/icwb1/hdole/p4/fw/xmain/src/bool/a.out
warning: no loadable sections found in added symbol-file system-supplied DSO at
0x2aaaaaac7000
Breakpoint 1, main () at hello.cpp:5
5 std::cout << "hello, world" << std::endl;
(gdb) info function <<.*string
All functions matching regular expression "<<.*string":
File
/remote/depotsrc/depotsrc/amd64-2.6/gcc-4.7.2/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.h:
std::basic_ostream<char, std::char_traits<char> > &std::operator<< <char,
std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char,
std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&);
std::basic_ostream<wchar_t, std::char_traits<wchar_t> > &std::operator<<
<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
>(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&,
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >
const&);
(gdb) rb <<.*string
unmatched quote
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug breakpoints/16439] rbreak . gives "unmatched quote" on Firefox
2014-01-12 18:31 [Bug breakpoints/16439] New: rbreak . gives "unmatched quote" on Firefox techmeology.co.uk at gmail dot com
2014-07-24 20:35 ` [Bug breakpoints/16439] " harry at harrydole dot com
@ 2024-01-08 17:31 ` ssbssa at sourceware dot org
1 sibling, 0 replies; 3+ messages in thread
From: ssbssa at sourceware dot org @ 2024-01-08 17:31 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16439
Hannes Domani <ssbssa at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Target Milestone|--- |8.1
CC| |ssbssa at sourceware dot org
Resolution|--- |FIXED
--- Comment #2 from Hannes Domani <ssbssa at sourceware dot org> ---
Works since gdb-8.1.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-08 17:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-12 18:31 [Bug breakpoints/16439] New: rbreak . gives "unmatched quote" on Firefox techmeology.co.uk at gmail dot com
2014-07-24 20:35 ` [Bug breakpoints/16439] " harry at harrydole dot com
2024-01-08 17:31 ` ssbssa at sourceware dot org
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).