This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 7fb1b8b13f1fb3a72f0ab3ce72967549ea040e17
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 3 Dec 2013 12:04:48 -0000
- Subject: gdb and binutils branch master updated. 7fb1b8b13f1fb3a72f0ab3ce72967549ea040e17
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 7fb1b8b13f1fb3a72f0ab3ce72967549ea040e17 (commit)
from 849f2b52ec2b71bc76188ac8c53f35fb57a5d41c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7fb1b8b13f1fb3a72f0ab3ce72967549ea040e17
commit 7fb1b8b13f1fb3a72f0ab3ce72967549ea040e17
Author: Joel Brobecker <brobecker@adacore.com>
Date: Wed Nov 27 18:47:40 2013 +0400
Ada: Reserved word "all" should not need to be spelled in lowercase.
Consider the following code:
type Ptr is access all Integer;
IP : Ptr := new Integer'(123);
IP is the Ada exception of a pointer to an integer. To dereference
the pointer and get its value, the user uses the reserved word "all"
as follow:
(gdb) p ip.all
$1 = 123
Ada being a case-insensitive language, the casing should not matter.
Unfortunately, for the reserved word "all", things don't work. For
instance:
(gdb) p ip.ALL
Type integer is not a structure or union type
This patch fixes the problem.
gdb/ChangeLog:
* ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
gdb/testsuite/ChangeLog:
* gdb.ada/dot_all: New testcase.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 4 ++
gdb/ada-lex.l | 2 +-
gdb/testsuite/ChangeLog | 4 ++
gdb/testsuite/gdb.ada/dot_all.exp | 34 +++++++++++++++++++++
gdb/testsuite/gdb.ada/dot_all/foo.adb | 23 ++++++++++++++
gdb/testsuite/gdb.ada/{tagged => dot_all}/pck.adb | 0
gdb/testsuite/gdb.ada/dot_all/pck.ads | 22 +++++++++++++
7 files changed, 88 insertions(+), 1 deletions(-)
create mode 100644 gdb/testsuite/gdb.ada/dot_all.exp
create mode 100644 gdb/testsuite/gdb.ada/dot_all/foo.adb
copy gdb/testsuite/gdb.ada/{tagged => dot_all}/pck.adb (100%)
create mode 100644 gdb/testsuite/gdb.ada/dot_all/pck.ads
hooks/post-receive
--
gdb and binutils