This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: breakpoints/1052: GDB 5.3 (macro supporting) - macro value is string without quotes.
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 13 Feb 2003 21:28:00 -0000
- Subject: Re: breakpoints/1052: GDB 5.3 (macro supporting) - macro value is string without quotes.
- Reply-to: Gabriel Dos Reis <gdr at integrable-solutions dot net>
The following reply was made to PR breakpoints/1052; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: David Carlton <carlton@math.stanford.edu>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1052: GDB 5.3 (macro supporting) - macro value is string without quotes.
Date: 13 Feb 2003 22:20:34 +0100
David Carlton <carlton@math.stanford.edu> writes:
| The following reply was made to PR breakpoints/1052; it has been noted by GNATS.
|
| From: David Carlton <carlton@math.stanford.edu>
| To: Daniel Jacobowitz <drow@mvista.com>
| Cc: GNATS Filer <gdb-gnats@sources.redhat.com>,
| "Gvozdeva, Svetlana" <Svetlana_Gvozdeva@stl.sarov.ru>
| Subject: Re: breakpoints/1052: GDB 5.3 (macro supporting) - macro value is string without quotes.
| Date: 13 Feb 2003 12:19:48 -0800
|
| On 13 Feb 2003 16:08:00 -0000, Daniel Jacobowitz <drow@mvista.com> said:
|
| > My point is that "p 234" prints the value of the C expression "234". "p
| > var" prints the value of the C expression "var". "p MACRO" is printing
| > the value of the C expression "MACRO" which happens to not be a valid
| > expression. I don't see a problem with the current behavior.
|
| > Let's see if anyone else has an opinion.
|
| We should definitely keep the current behavior.
I agree with Daniel that GDB behaviour should be consistent. "p MACRO"
should evaluate to printing the value of the variable "MACRO" -- if it
exists.
-- Gaby