From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 2267E38582B9 for ; Mon, 29 Jan 2024 16:41:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2267E38582B9 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2267E38582B9 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706546511; cv=none; b=FtOZVQXK7yJqBMWXoWkhxoEZEh8BJOC8UNuEeOHjU4ETBVa7AQN9WPHQR8HhQUd7NYqwebNdHxKBb4BWk/hqlq/aL/ZEQYUh9dac1vHMBnb0AUWNftdoQJX/W/qooXb1zcb8MapxU3tveiItYNNZxgzMPradNvCJfgxloaPhgvc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706546511; c=relaxed/simple; bh=PHpSqYEvs2s3aot0Xbbvx0NOryjchJFkFA64M/TgOoE=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=O6PAwUdB7Nkt0k+D9ndgnOMaW1HOqZBU5DxjCtZaTUF/OfYrmqO/xnrlWDu5QrPvZozvk/nWoU9FWWRrGBvLXyzRiKD1ioJ08+cwMIILb7UaOGoqSVTHsOGg06ogBxLT7oBjT+NasXIR/MtQ5ahVt2TuenC6K2j9I/eZlpZmIl4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40TGXQGE004120; Mon, 29 Jan 2024 16:41:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=ViBnI3UnBsAc+3mfbZ/FUjTqMB0fAj7hMzb4Nyc5mR4=; b=ayDxuNYkyWg2JQNmVngCUEEtAxBw+chMzjbB/Fbv7458LRatVxy0LcXw8cn70jC+UKCP W7ZWBILEDtZ1fPp6NQCQLsQbypoSMkfqVNXSE/GvXM8ln9HTNwMU7zo6xXtrLm7EntTm d6LhE0l9RbD198FER21RK/pvpYYwAgAQTmvL2n8Bbs5/ByH5TnqW143Ka8I2TMHP1PIO +17+nCS8BxJiTN1yEkPkRZ9seplZyaxa+inyolaJ+W8wXgZ7xKh2GdbA6oCUC4wtkMNz FML68G8FIN7RoYeKw9/zByAA3UO0RJUhp6R3Lj7gEd411tHGcTC6MUGd7d8lX8jOuw+C uQ== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vxfmy09m6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 16:41:43 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 40TGKXDA007295; Mon, 29 Jan 2024 16:41:42 GMT Received: from smtprelay05.wdc07v.mail.ibm.com ([172.16.1.72]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3vwev20vp5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 16:41:42 +0000 Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101]) by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 40TGfeL723921182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Jan 2024 16:41:40 GMT Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 96E765805C; Mon, 29 Jan 2024 16:41:40 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 27E7A58051; Mon, 29 Jan 2024 16:41:40 +0000 (GMT) Received: from [9.67.26.216] (unknown [9.67.26.216]) by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 29 Jan 2024 16:41:40 +0000 (GMT) Message-ID: Date: Mon, 29 Jan 2024 08:41:39 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Help with break in printf function Content-Language: en-US To: Andreas Schwab Cc: gdb-patches@sourceware.org, Carl Love References: <4c92aa19-ca28-44e4-97c6-3b0b4d9da512@linux.ibm.com> <87cytn2ko0.fsf@linux-m68k.org> From: Carl Love In-Reply-To: <87cytn2ko0.fsf@linux-m68k.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 47M9l-ujyC9L6Rqct2Y0UDmuIJZsEZ-y X-Proofpoint-GUID: 47M9l-ujyC9L6Rqct2Y0UDmuIJZsEZ-y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-29_10,2024-01-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 spamscore=0 priorityscore=1501 mlxscore=0 phishscore=0 lowpriorityscore=0 clxscore=1011 mlxlogscore=316 adultscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401290122 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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: Andreas: On 1/27/24 01:24, Andreas Schwab wrote: >> So, it would seem that GDB doesn't know that the test is compiled to use the print routine in ieee128-printf.c? > Probably GDB needs to implement some magic to know that printf and > __ieee128_printf are somewhat related. Similar issues exist with > __isoc99_ and __isoc23_ prefixed symbols for all architectures. Yes, I was guessing there something going on in the compiler with regards to the ieee128-printf which GDB needs to know about. The GDB dwarf info Relocation section '.rela.plt' at offset 0x498 contains 4 entries: Offset Info Type Sym. Value Sym. Name + Addend 000010020010 000100000015 R_PPC64_JMP_SLOT 0000000000000000 __libc_start_main@GLIBC_2.34 + 0 000010020018 000300000015 R_PPC64_JMP_SLOT 0000000000000000 signal@GLIBC_2.17 + 0 000010020020 000400000015 R_PPC64_JMP_SLOT 0000000000000000 __printfieee128@GLIBC_2.32 + 0 000010020028 000500000015 R_PPC64_JMP_SLOT 0000000000000000 __gmon_start__ + 0 has the printfieee128 function listed. I was trying to figure out where/how GDB processes the DWARF information. The first thing. we would need to have a check when reading the sym name to flag that the string __printfieee128@GLIBC* was seen. Then implement the magic, as you said, to associate it with the printf function to have the breakpoint changed from printf to _printfieee128@GLIBC. I have no idea how to go about doing that??? Any ideas how one might try to do that? Carl