This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog linespec.c
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 4 Jan 2012 14:24:58 -0000
- Subject: src/gdb ChangeLog linespec.c
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2012-01-04 14:24:57
Modified files:
gdb : ChangeLog linespec.c
Log message:
do not call decode_compound with Ada expressions.
Trying to insert a breakpoint on `ops."<"', we get the following error:
(gdb) b ops."<"
malformed template specification in command
This is because locate_first_half skips the linespec until the dot,
and the decode_line_internal thinks that the dot might mean that
we have C++ or Java compound. It then tries calling decode_compound
which errors out because it sees the opening angle bracket but not
the closing one (I am guessing).
This patch short-circuits this part of the code when the current
language is Ada.
gdb/ChangeLog:
* linespec.c (decode_line_internal): Check for C++ or Java
compound constructs only if the current language is C, C++
or Java.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13700&r2=1.13701
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linespec.c.diff?cvsroot=src&r1=1.141&r2=1.142