public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [RFC] cygport: split debuginfo packages
@ 2012-06-21  6:24 Yaakov (Cygwin/X)
  2012-06-21  9:03 ` Corinna Vinschen
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Yaakov (Cygwin/X) @ 2012-06-21  6:24 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]

Attached is a first draft of a patch to support split debuginfo packages 
automatically in cygport.  I'm looking for comments and suggestions, 
particularly on the following:

1) I propose adding a Debug category for all -debuginfo packages.

2) This places the debuginfo from e.g. /usr/bin/cygfoo-X.dll into 
/usr/lib/debug/usr/bin/cygfoo-X.dbg.  Unfortunately, when gdb finds 
library dependencies, they show up as e.g. 
/cygdrive/c/cygwin/bin/cygfoo-X.dll instead of as in /usr/bin, causing 
gdb to not find the debug file.  There are at least three solutions to this:

a. Fix (cygwin or) gdb to use /usr paths over /cygdrive/c/cygwin paths;
b. Move debug files to a .debug subdirectory (e.g. 
/usr/bin/.debug/cygfoo-X.dbg);
c. Move debug files alongside binaries (e.g. /usr/bin/cygfoo-X.dbg).

3) Sources referenced by the .dbg files are placed under 
/usr/src/debug/${PF}, as indicated by the -fdebug-prefix-map flags. 
Unfortunately, this breaks in-tree debugging (e.g. a noinst test or 
sample application).  AFAICS, binutils doesn't support changing the 
debug-prefix-map after the fact.  Does anyone have any suggestions on 
how to handle this?

4) The resulting binaries are somewhat larger, having only been 
--strip-debug'ed; what more is lost by --strip-unneeded or --strip-all 
to justify the larger binaries?

TIA,


Yaakov

[-- Attachment #2: 0001-debuginfo.patch --]
[-- Type: application/x-itunes-itlp, Size: 6380 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-03-09 12:55 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-21  6:24 [RFC] cygport: split debuginfo packages Yaakov (Cygwin/X)
2012-06-21  9:03 ` Corinna Vinschen
2012-06-21  9:35   ` Corinna Vinschen
2012-06-21 19:47   ` Yaakov (Cygwin/X)
2012-06-22  9:51     ` Corinna Vinschen
2012-06-21 12:56 ` Christopher Faylor
2012-06-21 14:22   ` Jon TURNEY
2012-06-21 16:10     ` Christopher Faylor
2012-06-22 15:23 ` Ken Brown
2012-06-29 19:48 ` Yaakov (Cygwin/X)
2012-06-30 16:49   ` Ken Brown
2012-07-07 13:11   ` Jon TURNEY
2015-02-23 12:15     ` Jon TURNEY
2015-02-27  6:27       ` Yaakov Selkowitz
2015-03-01 17:54         ` Jon TURNEY
2015-03-01 19:25           ` Yaakov Selkowitz
2015-03-09 12:55           ` Jon TURNEY
2012-07-17 18:37 ` Achim Gratz
2012-07-17 18:39   ` Christopher Faylor
2012-07-17 19:48     ` Achim Gratz
2012-07-17 19:55       ` Christopher Faylor
2012-07-17 20:25     ` Yaakov (Cygwin/X)

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).