From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by sourceware.org (Postfix) with ESMTPS id 5C8993858CD1 for ; Fri, 14 Jul 2023 21:31:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5C8993858CD1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3a3373211a1so1782418b6e.0 for ; Fri, 14 Jul 2023 14:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689370264; x=1691962264; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OXe/z7XCmDXJcBeOVW3BsXgn4yy3EInovtuqthmQQWM=; b=p87tFk6Ng/DD1YTSN2aQHQ3xU5k+QlNwHS9wO3Y/ik9MNfVsi5TYdUjCtNzd4cn16y +SQipAD/6nKHoQLc0F1oxhGfhgTrJ651geo23nBtVGLEfngnqldzTbmC46UPsqtF4TBv cE0stjGsRboiOOi++XMIhnuy5WYCUDbC5nLzjqTcx7GnTPCwyvfmoPxLdD3KVqgfVnk+ cym6wCXRNccOiqyXOa/NRQHJChH/M6vZQ6063CZHObEN3htqw4nWFf3kASBK4c4jZfVY b2XGUCxFxMFdDBnSHv6saUSR8djnhBfOxmB94dbvSlpycC5dO6x+PjrX86RjbjZTyqKd adOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689370264; x=1691962264; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OXe/z7XCmDXJcBeOVW3BsXgn4yy3EInovtuqthmQQWM=; b=YvS8k8g2dN4otoezJ7/hIQWTLB0XO/4wq92uNDtOWPjFPxxQYCcQnJCvcpeBwuYzFQ knJXWAz8VGwXYRyG9WB8ltzNVKWFzbtOm3upe9eguhrdmmcTtIwvxMLZx/9eqXAeIhHP rfV0VQK8z0KFczTorvBoRlQRs2/KJM1J7qn5q8NPJeF/TpwS5BqZLSC+dtIAhJESnwhz 8Fdk8JGYdnVGMsH7cRgD4EjiJWQUvQZVFOwR30ESsqJKuvB6HpVVYEC9fW7wYvWtQ2Vb YNK3UL2yS2wgmCM9lhSFIZd5rer+FRAxxG1KtT1fVIGVxAEr7V2uALi1Bf6+2aOqNiNE DeqQ== X-Gm-Message-State: ABy/qLYQJfTX98PgFXwq/4p8jb4YquYELv4yWao3GRLtWcfdP/5et7hQ 1tnxiVQM1KTFumG+ZLeUui+zDDwCcBpzBSv0zLQ= X-Google-Smtp-Source: APBJJlH5y6qJkbbWZxq6adToHUMePT65Pz1xlRqVR1408swDwzDHw4Ck+J3BRQGNSr9cwrYFn2j5yfjt/5ZEQkYQot0= X-Received: by 2002:aca:581:0:b0:3a3:f5b9:86a5 with SMTP id 123-20020aca0581000000b003a3f5b986a5mr6049556oif.41.1689370264537; Fri, 14 Jul 2023 14:31:04 -0700 (PDT) MIME-Version: 1.0 References: <20230713102411.2279542-1-blarsen@redhat.com> <20230713102411.2279542-5-blarsen@redhat.com> <7774b382-a663-f593-ea99-c52a8495aead@redhat.com> <05293df6-b087-5c3b-1b3f-6dcf6d14541e@redhat.com> <877cr2o3pc.fsf@tromey.com> In-Reply-To: <877cr2o3pc.fsf@tromey.com> From: Matt Rice Date: Fri, 14 Jul 2023 21:30:53 +0000 Message-ID: Subject: Re: [PATCH v4 4/4] gdb/doc: document '+' argument for 'list' command To: Tom Tromey Cc: Bruno Larsen via Gdb-patches , Keith Seitz , Bruno Larsen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, Jul 14, 2023 at 4:30=E2=80=AFPM Tom Tromey wrote: > > >>>>> "Bruno" =3D=3D Bruno Larsen via Gdb-patches writes: > > Bruno> Yeah, it does sound like some unfortunate bit of ambiguity. I'm su= re > Bruno> that "list +" is different to "list +[NSText initialize]" because = the > Bruno> code has a special case for "arg[0] =3D=3D '+' && arg[1] =3D=3D '\= 0'", so it > Bruno> has to be a different case. > > Bruno> Would be nice if we could change this to a less ambiguous option, = as > Bruno> future work... > > I wonder if the ObjC code even works. Most of the test cases can't even > be compiled, and no one has maintained it in many years -- I think since > before I worked on gdb. > Yeah most of the test cases rely upon stuff which the gcc objc runtime removed and released before I noticed and could object to their removal (stuff like removing the Object class following suit from apples removal of the same things). At the time I had been working on fixing up and expanding the tests... A good way forward might be to re-add them to gcc in a separate new library That might make it possible to get it working with some past and future gcc versions. Without that gdb would have to build it's own runtime for the testsuite, or rely upon a 3rd party root object in order to test things like allocating objects, so we can invoke instance methods... I neither had enough interest, nor thought it was a good idea for either gdb to maintain such a thing or alternately rely upon a external library just for testing... Because without objects to actually instantiate gdb is pretty limited in what it can test, and the code for allocating objects from the runtime is quite runtime dependent. As such I wouldn't be surprised if it were completely broken either.