From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic310-11.consmr.mail.ir2.yahoo.com (sonic310-11.consmr.mail.ir2.yahoo.com [77.238.177.32]) by sourceware.org (Postfix) with ESMTPS id D55903857027 for ; Sat, 17 Apr 2021 21:30:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D55903857027 X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1618695057; bh=PbLfCgSaZZk4N7e3aXYCgeVYydwgHA/JF6B+GXfXLGa=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=obQAM0XDRAOL0ZEAVd5hKdd2ZLBzBbbV+gsLN7CkGmJcKmAEUX9oaw1z3R0Z5F6AZ/sJLd6con2qxIq1bq42WA+2PuIOIoThNQuNE9rqy+HVTePPE4YPEUbUt4L7XF2aYtjLP7TKP16pH8KO7C8FtW3SZfFqkhDO7wrL4Iwun74XfUAON92t0OotNeiyk6/8O0LXlVaJ7tXZO1bM75ze5UkYdgnq3pB1zQDLaGOnIc2dd1dyhPEtfQw0s20iFT6FkIgQZM8zkVkoxAbhdllDxRZysIBOk7hAVndS9AZfhJLtF/EuTfjqQ/Xx0ODLywj7brhvSUP7hRyCvcJT2B6xiw== X-YMail-OSG: 2CBU6WkVM1k0wlmN.O356rasV4IogtYrQfiDF0_Sud6CfMp_efLcNE6VnZvqNCT 2Nlu2WsbKf6AuaPhKPQBNVM5N_yejMiwRBiVnMLCxI5_On3VBRah48h2Q0GCeG2yDlfV456eb9up kylpFVtHKB0ggSXPv_EO606LRy8fJTGg8bU3.SoR0hjWPm4AfK7mbOL9yfzEGPQh2PQZE_XLdkv1 eU_XuzVge_Y9pZJnm4w1xmaQwwOwndEmIlNDKzUq5viKG_mSNQcUPZJg8fvjQYBzQITAQ.6YzpOp 822Nho4WO2AWgRtXNal2kjlzAi2kKrJrthoIKZCrie8kDjTLL9Jv38HJ6s89x_qym_eksT33Kp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gozXhJyvoMgGDdzKZldk1eqGrfC1J6DRGEi5q93euT2tzOqv_PRC 0Fkam X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ir2.yahoo.com with HTTP; Sat, 17 Apr 2021 21:30:57 +0000 Date: Sat, 17 Apr 2021 21:30:42 +0000 (UTC) From: "R. Diez" To: "gdb@sourceware.org" Message-ID: <537840208.5089288.1618695042450@mail.yahoo.com> Subject: Greatly increased GDB memory and CPU usage with newest embedded ARM toolchain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <537840208.5089288.1618695042450.ref@mail.yahoo.com> X-Mailer: WebService/1.1.18121 YMailNorrin Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2021 21:31:09 -0000 Hi all: I recently upgraded my cross-compilation toolchain for ARM Cortex-M4F to th= ese component versions: =C2=A0 Binutils 2.36.1 =C2=A0 GCC 10.3 =C2=A0 GDB 10.1 For more information, see this comment of mine: https://sourceware.org/bugzilla/show_bug.cgi?id=3D23710#c18 I noticed that GDB is now using much more RAM than before, and not just for= LTO builds, which is what that bug report was about. I just tried with this open-source firmware of mine: https://github.com/rdiez/JtagDue For a debug build (non LTO), firmware.elf weighs around 1.5 MB. Most of it = is debug information, because the firmware.bin file only weighs 76 kB. The debug information is not compressed. When GDB needs to load the symbols, because you are touching some C++ sourc= e code, there is a noticeable pause, and GDB uses 385 MiB of RAM. Is that n= ot too much for this smallish project? I tried a release build, compiled with LTO, and GDB became unresponsive in = the same situation. I killed GDB manually when it got to consume over 2 GiB= of RAM, because I have had such a misbehaving GDB freeze my Ubuntu 20.04.2= , not even the mouse was moving. I do not have swap, so I would have expect= ed the Out of Memory Killer to kick in, but it did not. I had to physically= switch my computer off. Before I spend more time investigating this issue: is this a known problem? The bug report mentioned above seems to suggest that there is something fou= l in this area, but there does not seem to be much interest in the past mon= ths. The trouble is, I am seeing now pauses and high memory usage even in n= on-LTO builds. GDB is still usable, but it is becoming annoying. I have been using this toolchain for many years, and I am getting this kind= of problem with GDB only relatively recently. Best regards, =C2=A0 rdiez