From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DE871385B835; Fri, 17 Apr 2020 11:06:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE871385B835 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/25843] New: gdb-add-index uses temporary files alongside exec Date: Fri, 17 Apr 2020 11:06:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2020 11:06:41 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25843 Bug ID: 25843 Summary: gdb-add-index uses temporary files alongside exec Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- When running gdb-add-index on an executable: ... $ mkdir bla $ gcc hello.c -o bla/a.out -g $ bash -x gdb-add-index bla/a.out 2>&1 | grep "trap" + trap 'rm -f bla/a.out.gdb-index bla/a.out.debug_names bla/a.out.debug_str bla/a.out.debug_str.merge bla/a.out.debug_str.err' 0 ... we can see that a number of temporary files is used, located in the same directory as the argument file. It should probably use proper temporary files in a temp directory. --=20 You are receiving this mail because: You are on the CC list for the bug.=