This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] fix PR c++/16117
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org, tromey at redhat dot com
- Date: Tue, 05 Nov 2013 05:41:54 +0200
- Subject: Re: [PATCH] fix PR c++/16117
- Authentication-results: sourceware.org; auth=none
- References: <1383599806-19444-1-git-send-email-tromey at redhat dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Tom Tromey <tromey@redhat.com>
> Cc: Tom Tromey <tromey@redhat.com>
> Date: Mon, 4 Nov 2013 14:16:46 -0700
>
> +For example, suppose the program is stopped in a method of a class
> +that has a field named ``includefile'', and there is also an include
> +file named ``includefile'' that defines a variable, ``some_global''.
All these symbols in quotes should actually use the appropriate markup
instead: @code for C++ symbols, @file for file names.
The documentation part is OK with this fixed.
> +(@value{GDBP}) p includefile::some_global
> +A syntax error in expression, near `'.
I wonder if we can do better with the pointer to the place of the
syntax error: `' is not very specific ;-)
Thanks.