From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32097 invoked by alias); 6 Mar 2013 00:30:28 -0000 Received: (qmail 32084 invoked by uid 22791); 6 Mar 2013 00:30:27 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-ve0-f182.google.com (HELO mail-ve0-f182.google.com) (209.85.128.182) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Mar 2013 00:30:24 +0000 Received: by mail-ve0-f182.google.com with SMTP id ox1so6333409veb.27 for ; Tue, 05 Mar 2013 16:30:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=LLc+Bv3Z8ra1KmEm/aNADIXjXiPL3sooiuNepeE1p2s=; b=iGrhRN0jcdOJ5Aih7KGuKRnwTzqi08RT+3v0ER0GW0qUV+CyJgP3ckL6Cejn6bGfB/ Z/w1aThiG7yoyeUlyLn4G3wvmGe2NnNfS0cfXEP5M6YmkOApE2JlapmPDXUQvGvrmcSP /PMZQ9zzBAD1DczmEzmD/VkpAHvYIaZUlh1pT8lB7y6l3OI4/Gxba+cp4Uip90UqtXFe ouG2y34F1gZqZjSnJRRFrve2gdu85sY4uPpVhe2rAa+oIYPcKJYMavYIZesRzjHBxl1Q oJBqoLaf/PZBXgu84pC0NC9zm0h00JocLBlcknJokrAHQSkUshbUXGCVYNj/ppFfDU76 XjQA== MIME-Version: 1.0 X-Received: by 10.220.223.14 with SMTP id ii14mr10436757vcb.50.1362529823402; Tue, 05 Mar 2013 16:30:23 -0800 (PST) Received: by 10.220.205.72 with HTTP; Tue, 5 Mar 2013 16:30:23 -0800 (PST) In-Reply-To: <5136341A.4050605@redhat.com> References: <1360934868-5807-1-git-send-email-yao@codesourcery.com> <1360934868-5807-2-git-send-email-yao@codesourcery.com> <51349F6E.8020101@redhat.com> <5134B192.8080507@codesourcery.com> <5134C9DD.2070205@redhat.com> <5135A26A.6030608@codesourcery.com> <5135EC1D.9030601@redhat.com> <5136341A.4050605@redhat.com> Date: Wed, 06 Mar 2013 00:30:00 -0000 Message-ID: Subject: Re: [PATCH 1/2] use zuinteger_unlimited for some remote commands From: Doug Evans To: Pedro Alves Cc: Yao Qi , gdb-patches Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlUqmXSuK3yVJugneQcaR2ALp42MpP9StVo7C+McW2c+kz0qi/e7DB7Mpz+RfnfMsjnpAb9Q1sCtAeD+UJyigS47Gml7T9uRE0Sp1eGmpgNwsOmjIopv0sQXehTObTOmjdq3fquAWStxrWNVrYM3dEgJq010Bd3YHepdR+xuPgYI2TMO/K93C85g2wUZHzgtpt9QzlxHQRKrPnmS3Jxb80XNhYjFg== X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-03/txt/msg00193.txt.bz2 I think we need to take the set of var_foo options, and choose something that works on the whole. var_uinteger has values [1,UINT_MAX-1] plus 0 mapping to UINT_MAX. var_zuinteger has values [0,UINT_MAX]. And I don't see a plan to change those to int. Fortunately, I don't see var_zuinteger_unlimited in py-param.c. What if we rename it to var_zpinteger_unlimited or some such. [p for positive] [I'd still keep it out of the python API until there's a compelling need for it.]