From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id C222D3858C42 for ; Tue, 16 Jan 2024 18:22:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C222D3858C42 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C222D3858C42 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::334 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705429372; cv=none; b=HmGBIymBUBs4J4pQaUo0E3rARPJUHN6sdQg7gnpwPqeQT6xB1r7yZ4gGNXxzH7s7CpMjDixw2Owe2HiPV6zQRD23R77T5GsRmmzL07sXQxqSJ09GlBzAP5jCktIv3Ey4xrAjNhb0U4NbzhEqEKYc+uNeYPkTucgIvG9vJTKNieQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705429372; c=relaxed/simple; bh=DXNDPelZJARIg+kV7UiC3+xC9dQDFa3WbDs4x94Ehd8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=pFgt1g7a2yVrmuSltcEY/jZdUlqyheVS9srqzZHAZW/VQTGghZP0zfCuGiO964n9V/WPCXeuAjEv7IFxs96jBJkNf+k9kaP2Fx9ucX59XMlravIZ18i2pJ9plv6OjKBmXBUosqhMqmDoeMNkKk99gYemGDTB44gQBblcuL1jTK8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-6dec4b7b680so3440558a34.3 for ; Tue, 16 Jan 2024 10:22:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705429365; x=1706034165; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Swwi/PDLrj7ZqYAte5KpGfM5wM1oMT4QJlVdfBJ+PK4=; b=ZFblN3PtuG5/D/nezcvUBmwknxw76tOkan9Vq+4bqHhO2lHu6l2LOEb8ZdvvlKbGcE OH/Qzc1WF8uZN58q6XAND3WfkcNS28ple8R+1g1RS069f9iHnx3rLcpDIlfc5j6/169i mVtpHEF619Yw9baUrge04Utdy/vxNoSqrkqy/uGnzSLNF/NB7f5GT2lOzC2uU7e72p/w 39a6a20JGiYWETHJomzw96Sm0NE8j5ijGdam29b4P2Lo3XQSABPyqHcjU3xEl/g61Ry+ LoKnDbzdcAUX8Q8OWoVqTnMmdWc3E84gPz4X6Syy032T1JVn6QefIcmEYZurliiB9Vhd Dd6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705429365; x=1706034165; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Swwi/PDLrj7ZqYAte5KpGfM5wM1oMT4QJlVdfBJ+PK4=; b=PiYABVqG1vdyfF6ZZIz/OoYEn6WFARQUZqvl4s/+DrmlBhKRRYKLMNjQ/DiXwQl6tt 1kG5x3GO05n0PxBuMv4pMTG8nGbPGNbW8LDDhjItYg21jyasADWRlUdw6mJQmMskcj+J 1qonLBtvSVYM6vCrAcAXYI7I3Z7mFNyDWHqPkXZgVGdNULqKuQ58NjNeQuwyJDHLzMSs LtUS8iOKLij6JZgIh+VK2HakKZshT1XbLiW9yTGVnVQw0sDnU2Vlvav39RzD8Vo0/K7v LFJcv5gu5JyMwD/KksP5DN1vq3K45PxQoS+ArKl/B8+MhTxKB7+EW2bIsd59kch9Kfk9 jgEw== X-Gm-Message-State: AOJu0YzGsvlPnG+tMSFoLIFeurAkkqWEDJHZCG6g5ZIYvCfJOT5kskfY 2V90EFBfAlq8enoOblEl9pghkEzlp48= X-Google-Smtp-Source: AGHT+IGl0mdNyf9AFutPEO6PG30yLXt0/IgK/2JU1hI04t0CsGXmi6mJ/ZxzOuIBevusJtR02q2FFA== X-Received: by 2002:a05:6358:4055:b0:175:78d3:1b44 with SMTP id a21-20020a056358405500b0017578d31b44mr10024717rwa.46.1705429365439; Tue, 16 Jan 2024 10:22:45 -0800 (PST) Received: from emerald.. ([2804:10f8:433d:9800:dbd3:15aa:77f3:48c8]) by smtp.gmail.com with ESMTPSA id e24-20020a63f558000000b005cf5cbac29asm6633401pgk.53.2024.01.16.10.22.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 10:22:45 -0800 (PST) From: Matheus Branco Borella To: gdb-patches@sourceware.org Cc: eli@gnu.org Subject: Re: [PATCH v4] Add support for creating new types from the Python API Date: Tue, 16 Jan 2024 15:20:24 -0300 Message-Id: <20240116182022.9550-1-dark.ryu.550@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <83edehcuqu.fsf@gnu.org> References: <83edehcuqu.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,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: Apologies for my previous empty response, my email client got a little trigger-happy (And I'm still getting the hang of it). On Jan 16, 2024, at 9:45=E2=80=AFAM, Eli Zaretskii wrote: > I asked previously what does BIT_SIZE mean for pointer types. Is it > the size of the pointer or of the data type to which the pointer > points? If it's the size of the pointer, then does it mean this > function can create pointers of arbitrary sizes regardless of the > sizes of pointers that are supported by the target? It's the size of the pointer itself. This feature is mostly intended for cases where proper types may not be available - such as reverse engineering - but may still be desirable. While one could get around the lack of such a function by using `gdb.Type.pointer()`, I felt like there was no reason to restrict it, and that trusting that the consumers of the API will pick sizes that are valid for the target was probably good enough.