Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Jim Blandy <jimb@red-bean.com>
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>, gdb-patches@sourceware.org
Subject: Re: [RFC] Clean up var_integer/var_uinteger/var_zinteger mess
Date: Wed, 01 Feb 2006 21:17:00 -0000	[thread overview]
Message-ID: <20060201211706.GA13981@nevyn.them.org> (raw)
In-Reply-To: <8f2776cb0602011049u2479c5e5n7dec732b59927573@mail.gmail.com>

On Wed, Feb 01, 2006 at 10:49:22AM -0800, Jim Blandy wrote:
> On 2/1/06, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> > Actually, it'd make sense if the existing
> > var_integer/var_uinteger/var_zinteger would accept "unlimited".
> > That'd make your var_limit unnecessary.
> >
> > Does anyone see any problems with that?
> 
> Well, I presume that sometimes (often) those are used for limits of
> something, and sometimes they're genuine integers.  Surely there's
> something in GDB where a negative value would make sense.  I don't
> like the idea of accepting "unlimited" for a quantity that isn't a
> limit on anything.
> 
> Then, of course, there's aix-thread.c which is using zinteger for a boolean.

There's lots of (mis- ?) uses of all the var_ types all over GDB.  I
think that (A) we ought to clean them all up, and (B) it's going to
require checking them all to do it.  Definitely some of the current
uses don't make sense - for instance:

(gdb) show remote hardware-breakpoint-limit 
The maximum number of target hardware breakpoints is 4294967295.

A bunch of others ought to be booleans.  A bunch of others are actual
integer values - sometimes signed would make sense, sometimes it
wouldn't, e.g. ser-go32.c.

I'd like to be able to set the ones that are limits to "unlimited".
Caveats are preserving the existing "set to zero" behavior where it
makes sense to do so, updating the manual, and not being able to set
non-limits to unlimited.

-- 
Daniel Jacobowitz
CodeSourcery


  parent reply	other threads:[~2006-02-01 21:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-31 11:32 Mark Kettenis
2006-02-01  5:53 ` Jim Blandy
2006-02-01 16:13   ` Mark Kettenis
2006-02-01 18:49     ` Jim Blandy
2006-02-01 19:24       ` Mark Kettenis
2006-02-01 19:28         ` Jim Blandy
2006-02-01 21:17       ` Daniel Jacobowitz [this message]
2006-02-02  0:11       ` Joel Brobecker

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=20060201211706.GA13981@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jimb@red-bean.com \
    --cc=mark.kettenis@xs4all.nl \
    /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