diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-01-04 14:24:57 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-01-04 14:24:57 +0000 |
commit | 1dabb4c40720ac3cc311f1cf6cb0b144d34f1af3 (patch) | |
tree | 6e96f3f43134740081832dcb2d512b9968d4ab86 /gdb/ChangeLog | |
parent | 5931a2fae3e830d0eac105fc60c9652432be6a54 (diff) | |
download | gdb-1dabb4c40720ac3cc311f1cf6cb0b144d34f1af3.zip gdb-1dabb4c40720ac3cc311f1cf6cb0b144d34f1af3.tar.gz gdb-1dabb4c40720ac3cc311f1cf6cb0b144d34f1af3.tar.bz2 |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ac8f6d4..dfd010a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-01-04 Joel Brobecker <brobecker@adacore.com> + + * linespec.c (decode_line_internal): Check for C++ or Java + compound constructs only if the current language is C, C++ + or Java. + 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com> Revert: |