Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Daniel Jacobowitz <drow@false.org>
Cc: Andreas Schwab <schwab@suse.de>,
		Marc Khouzam <marc.khouzam@ericsson.com>,
	gdb@sources.redhat.com
Subject: Re: -var-update using formatted value
Date: Wed, 30 Jan 2008 04:25:00 -0000	[thread overview]
Message-ID: <18335.64516.8815.911929@kahikatea.snap.net.nz> (raw)
In-Reply-To: <20080130000415.GA25352@caradoc.them.org>

Daniel Jacobowitz writes:
 > On Wed, Jan 30, 2008 at 12:48:40PM +1300, Nick Roberts wrote:
 > > Both changes, i.e., printcmd.c and c-exp.y?
 > 
 > Right.
 > 
 > > Presumably if the change to c-exp.y is committed, there should be similar
 > > changes to ada-exp.y, f-exp.y etc.  Does it not matter that this prefix
 > > is not part of the underlying language?
 > 
 > Right.  As long as it doesn't conflict with the underlying language,
 > no, it doesn't matter - GDB tries to accept the whole source language,
 > but also accepts other things.

I wouldn't know if it did conflict, but unless I hear otherwise I'll
assume it doesn't. In addition to c-exp.y, I'll amend:

ada-exp.y
f-exp.y
jv-exp.y
m2-exp.y
objc-exp.y
p-exp.y

and write some tests.  However, I can't run the testsuite for all these as I
don't have the compilers on my system.

The manual describes how integer constants should be typed for the various
languages under the Languages node but not how they are printed with the
various output formats under Examining.  I guess they should be changed in
both places.

Since the printcmd.c patch only has to be done in one place, I'll start with
that.

 > > Also, I think only the change to printcmd.c is necessary to solve Marcs bug
 > > report about -var-update.
 > 
 > I think that report is covered by two of the other patches I reviewed
 > today.

I don't think so.  The other patches cover the wrong format not detecting
a change in value, e.g. 1 -> 1.5 as decimal.

This change covers a change in format masking a change in value.  Marc's
example was 11 -> 3 = 11 (binary).

-- 
Nick                                           http://www.inet.net.nz/~nickrob


      reply	other threads:[~2008-01-30  4:25 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-11 15:13 Marc Khouzam
2008-01-11 17:40 ` Vladimir Prus
2008-01-11 18:31   ` Marc Khouzam
2008-01-11 19:40     ` Marc Khouzam
2008-01-11 22:26     ` Nick Roberts
2008-01-11 22:53       ` Andreas Schwab
2008-01-11 22:59         ` Daniel Jacobowitz
2008-01-11 23:40           ` Nick Roberts
2008-01-11 23:52             ` Daniel Jacobowitz
2008-01-12  3:41               ` Marc Khouzam
2008-01-12  3:49                 ` Daniel Jacobowitz
2008-01-14  2:36                   ` Marc Khouzam
2008-01-15 18:43                     ` Vladimir Prus
2008-01-15 19:36                       ` Marc Khouzam
2008-01-15 20:32                         ` Vladimir Prus
2008-01-17 14:57                           ` Marc Khouzam
2008-01-17 18:05                             ` Vladimir Prus
2008-01-18  1:35                             ` Nick Roberts
2008-01-18 15:31                               ` Marc Khouzam
2008-01-18 15:41                                 ` Daniel Jacobowitz
2008-01-18 17:17                                   ` Marc Khouzam
2008-01-18 17:53                                     ` Daniel Jacobowitz
2008-01-18 19:26                                       ` Marc Khouzam
2008-01-18 21:10                                 ` Nick Roberts
2008-01-18 22:21                                   ` Marc Khouzam
2008-01-19  0:31                                     ` Nick Roberts
2008-01-19  1:46                                       ` Marc Khouzam
2008-01-19  8:27                                         ` Nick Roberts
2008-01-19 11:17                                         ` Vladimir Prus
2008-01-21 15:47                                       ` Marc Khouzam
2008-01-21 21:44                                         ` Nick Roberts
2008-01-17 23:10                           ` Nick Roberts
2008-01-19 11:06                             ` Vladimir Prus
2008-01-19 22:02                               ` Nick Roberts
2008-01-20 10:04                                 ` Vladimir Prus
2008-01-20 20:16                                   ` Nick Roberts
2008-01-20 20:28                                     ` Vladimir Prus
2008-01-21 15:15                                       ` Marc Khouzam
2008-01-21 22:35                                         ` Nick Roberts
2008-01-29 21:20                           ` Daniel Jacobowitz
2008-02-03 22:21                             ` Nick Roberts
2008-02-04  6:15                               ` Vladimir Prus
2008-01-18  0:53                     ` Nick Roberts
2008-01-18  2:13                       ` Marc Khouzam
2008-01-18 21:00                         ` Nick Roberts
2008-01-18 22:04                           ` Marc Khouzam
2008-01-14  6:34               ` Nick Roberts
2008-01-29 21:26                 ` Daniel Jacobowitz
2008-01-29 23:49                   ` Nick Roberts
2008-01-30  0:04                     ` Daniel Jacobowitz
2008-01-30  4:25                       ` Nick Roberts [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18335.64516.8815.911929@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=marc.khouzam@ericsson.com \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox