public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27614] New: gdb-add-index fails for symlinks
@ 2021-03-19 22:08 jan.kratochvil at redhat dot com
2021-05-10 22:20 ` [Bug gdb/27614] " cvs-commit at gcc dot gnu.org
2021-05-10 23:56 ` simark at simark dot ca
0 siblings, 2 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2021-03-19 22:08 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27614
Bug ID: 27614
Summary: gdb-add-index fails for symlinks
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target Milestone: ---
$ echo 'int main(){}'|gcc -g -x c -;ln -s a.out symlink;gdb-add-index symlink
gdb-add-index: No index was created for symlink
gdb-add-index: [Was there no debuginfo? Was there already an index?]
$ ls -l
-rwxr-xr-x 1 25712 Mar 19 23:05 a.out*
-rw------- 1 8277 Mar 19 23:05 a.out.gdb-index
lrwxrwxrwx 1 5 Mar 19 23:05 symlink -> a.out*
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/27614] gdb-add-index fails for symlinks
2021-03-19 22:08 [Bug gdb/27614] New: gdb-add-index fails for symlinks jan.kratochvil at redhat dot com
@ 2021-05-10 22:20 ` cvs-commit at gcc dot gnu.org
2021-05-10 23:56 ` simark at simark dot ca
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-10 22:20 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27614
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Lancelot SIX <lsix@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=db1f6cd692cac4818e16f9e3b43ee7802b079d1c
commit db1f6cd692cac4818e16f9e3b43ee7802b079d1c
Author: Lancelot SIX <lsix@lancelotsix.com>
Date: Wed Mar 24 23:55:25 2021 +0000
[PR gdb/27614] gdb-add-index fails on symlinks.
PR 27614 shows that gdb-add-index fails to generate the index when its
argument is a symlink.
The following one liner illustrates the reported problem:
$ echo 'int main(){}'|gcc -g -x c -;ln -s a.out
symlink;gdb-add-index symlink
gdb-add-index: No index was created for symlink
gdb-add-index: [Was there no debuginfo? Was there already an
index?]
$ ls -l
-rwxr-xr-x 1 25712 Mar 19 23:05 a.out*
-rw------- 1 8277 Mar 19 23:05 a.out.gdb-index
lrwxrwxrwx 1 5 Mar 19 23:05 symlink -> a.out*
GDB generates the .gdb-index file with a name that matches the name of
the actual program (a.out.gdb-index here), not the symlink that
references it. The remaining of the script is looking for a file named
after the provided argument (would be 'symlink.gdb-index' in our
example).
gdb/ChangeLog:
PR gdb/27614
* contrib/gdb-add-index.sh: Fix when called with a symlink as an
argument.
gdb/testsuite/ChangeLog:
PR gdb/27614
* gdb.dwarf2/gdb-add-index-symlink.exp: New test.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/27614] gdb-add-index fails for symlinks
2021-03-19 22:08 [Bug gdb/27614] New: gdb-add-index fails for symlinks jan.kratochvil at redhat dot com
2021-05-10 22:20 ` [Bug gdb/27614] " cvs-commit at gcc dot gnu.org
@ 2021-05-10 23:56 ` simark at simark dot ca
1 sibling, 0 replies; 3+ messages in thread
From: simark at simark dot ca @ 2021-05-10 23:56 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27614
Simon Marchi <simark at simark dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simark at simark dot ca
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #2 from Simon Marchi <simark at simark dot ca> ---
Fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-10 23:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19 22:08 [Bug gdb/27614] New: gdb-add-index fails for symlinks jan.kratochvil at redhat dot com
2021-05-10 22:20 ` [Bug gdb/27614] " cvs-commit at gcc dot gnu.org
2021-05-10 23:56 ` simark at simark dot ca
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).