From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uzzrJuNwtWNHMA8AWB0awg (envelope-from ) for ; Wed, 04 Jan 2023 07:28:19 -0500 Received: by simark.ca (Postfix, from userid 112) id 8E07F1E222; Wed, 4 Jan 2023 07:28:19 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=s7GyW02L; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 4198C1E0D3 for ; Wed, 4 Jan 2023 07:28:19 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DFDB53858C30 for ; Wed, 4 Jan 2023 12:28:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFDB53858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672835296; bh=PZRMvvW3B64oG/5KRp0tqEpD/VEI3ir9Vm3uJJVv8W4=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=s7GyW02L5MF238wJc2K8JYc0Ah0Nugxxg64DGK6r4blxqFAZxGfbqCwF7npfdtSkr rITGPFWOr5zJ30/7683FDtE4bs7kdeJ9b9g8hUX+O2eOUjg1AppLjOpmJeyo8Sceri X/iZVyFMiVxqzCrWC/fBpVRNNFR+5sfXLYlupehA= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id A82F83858D1E for ; Wed, 4 Jan 2023 12:27:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A82F83858D1E Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8A322220CB; Wed, 4 Jan 2023 12:27:50 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 74EFE133D1; Wed, 4 Jan 2023 12:27:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5dhhG8ZwtWOMEwAAMHmgww (envelope-from ); Wed, 04 Jan 2023 12:27:50 +0000 Message-ID: <0b6635ea-ee55-1edd-6f4b-149a3ab200f5@suse.de> Date: Wed, 4 Jan 2023 13:27:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH] Initial implementation of Debugger Adapter Protocol Content-Language: en-US To: Tom Tromey Cc: Tom Tromey via Gdb-patches References: <20220901163059.3678708-1-tromey@adacore.com> <87bkrk8j21.fsf@tromey.com> <877d1duivp.fsf@tromey.com> <87k024khch.fsf@tromey.com> <5cd9edba-b1b2-060e-d8d2-98ff6d28a5e7@suse.de> <87tu17iu2j.fsf@tromey.com> <7f2d41d6-ba52-a7da-4144-a252aabd10ea@suse.de> In-Reply-To: <7f2d41d6-ba52-a7da-4144-a252aabd10ea@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 1/4/23 12:59, Tom de Vries via Gdb-patches wrote: > On 1/3/23 15:14, Tom Tromey wrote: >> Tom> /home/vries/gdb_versions/devel/src/gdb/python/py-dap.c: In member >> Tom> function ‘virtual void dap_interp::init(bool)’: >> Tom> /home/vries/gdb_versions/devel/src/gdb/python/py-dap.c:83:27: error: >> Tom> ‘PyObject_CallNoArgs’ was not declared in this scope >> Tom>    gdbpy_ref<> result_obj (PyObject_CallNoArgs (func.get ())); >> Tom>                            ^~~~~~~~~~~~~~~~~~~ >> Tom> /home/vries/gdb_versions/devel/src/gdb/python/py-dap.c:83:27: note: >> Tom> suggested alternative: ‘_PyObject_CallNoArg’ >> Tom>    gdbpy_ref<> result_obj (PyObject_CallNoArgs (func.get ())); >> Tom>                            ^~~~~~~~~~~~~~~~~~~ >> Tom>                            _PyObject_CallNoArg >> Tom> ... >> >> Sorry about that.  I'm going to apply the appended, which should fix the >> problem. > > That fixed the build problem, thanks for that. > > Now I'm running into an error in the testsuite: > ... > ERROR: eof reading json header >     while executing > "error "eof reading json header"" >     invoked from within > "expect { > -i exp19 -timeout 10 >         -re "^Content-Length: (\[0-9\]+)\r\n" { >             set length $expect_out(1,string) >             exp_continue >         } >         -re "^(\[^\r\n\]+)..." >     ("uplevel" body line 1) >     invoked from within > "uplevel $body" NONE eof reading json header > UNRESOLVED: gdb.dap/basic-dap.exp: startup - initialize > ... Hmm, that seems to be because: ... (gdb) #5 0x0000000000a59a7c in gdbpy_handle_exception () at /home/vries/gdb_versions/devel/src/gdb/python/py-utils.c:396 396 error (_("Error occurred in Python: %s"), msg.get ()); (gdb) p msg.get () $1 = 0x2b91d10 "module 'queue' has no attribute 'SimpleQueue'" ... That's new in python 3.7, and I have: ... $ ldd ./gdb | grep python libpython3.6m.so.1.0 => /usr/lib64/libpython3.6m.so.1.0 (0x00007f93ed624000) ... Thanks, - Tom