From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 0675C3858D32 for ; Mon, 22 Aug 2022 14:19:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0675C3858D32 Received: from [10.0.0.11] (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 471691E21F; Mon, 22 Aug 2022 10:19:30 -0400 (EDT) Message-ID: <2d4bf02f-5ad8-8cf1-a4dd-40d7d2d4dacb@simark.ca> Date: Mon, 22 Aug 2022 10:19:29 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] Enable multi process debugging for AIX Content-Language: en-US To: Ulrich Weigand , Aditya Kamath1 , "gdb-patches@sourceware.org" Cc: Sangamesh Mallayya References: <44ad453e-6196-d334-312f-d5d0414f4476@simark.ca> From: Simon Marchi In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_PASS, 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 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: , X-List-Received-Date: Mon, 22 Aug 2022 14:19:32 -0000 > As to this: > +# define AIX_FORK_EVENT 0x57e > > It would be much preferable to use the official names for these > constants. For example, the document you mention here: > >> More about this can be read in the document >> https://www.ibm.com/docs/en/aix/7.2?topic=p-ptrace-ptracex-ptrace64- > subroutine > > talks about: > W_SFWTED > Process stopped during execution of the fork subroutine. > > Is this the 0x57e event? If so, we should call it W_SFWTED in GDB as > well, and not some made-up name. > > It would be great if you could find the official names for all the > other "magic" constants like 0x7f, 0x17f, 0x137f etc. as well. Is there no system header file that provides them? Simon