This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

symtab/1220: main.cc and subdir/main.cc in one exe cause problems


>Number:         1220
>Category:       symtab
>Synopsis:       main.cc and subdir/main.cc in one exe cause problems
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue May 20 00:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Weyergraf
>Release:        2002-04-01-cvs
>Organization:
>Environment:
GNU/Linux 2.4.20
>Description:
If several source files (at least two) for one executable have the same basename (e.g. main.c) GDB can't distinguish between them anymore:
when hitting a breakpoint GDB does only print out the basename (main.c in the attached case) which is ambigous.
GDB/MI has the same problem of ambiguity, causing problems for IDE-usage.
>How-To-Repeat:
run make.sh, gdb test, break main, break test, run, cont
look at the output, which is ambigous.
>Fix:
smarter filename outputting. find collisions of file-basenames and prepend one more pathname component if needed
OR
option to make GDB always output absolute filenames
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-tgz; name="gdbproblem.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gdbproblem.tar.gz"

H4sIAMdwyT4AA+2W0W6CMBSGe2ufotGL6YXYIqUXLnuS3SgwJSoQKImJ2buPIkyMTrME1GX/F5JS
zqEtOfx/u/QXSRovNsF2QrqCc4crKYuWCyV5s60hXLmubStuTx3CxVRIQZjsbEUN8kzPU8bIOoqT
JNz9mHcr/kdZHuu/na8DK1u1PwcX/Gr9hbS/689VcS8cx+aE8faXcs4/r/+AUs9nWb7ww5R6HhsX
15KNY7adh5FVNZ7Jsaxr8fqxDjJdxw6jTg49+ugvBZc40b8pZQdzGP27jnNF/7LSv6uUU+rfNv4P
/XfPIIy8Te4H7DXTfhhbqzdKg50O0oiFkS7lPBzNKDUd84MMR3RPe0la9D+G/TCqDMB7yarwe9Qv
8nv1i7000HkxGJ/RT1jA89HQf2XX7c/xu/OfLPf/wgZw/rsD5/Vvfxu46f/ieP4T0iVmQ7Cn8P97
cMH/j77P9qzh9Cf/hzH8Q1Jp+AzmDgAAAAAAAAAAAAAAAAAA8Bx8ARj14MEAKAAA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]