[haiku-bugs] Re: [Haiku] #8135: Support debug info in separate file

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sat, 28 Jul 2012 09:34:36 -0000

#8135: Support debug info in separate file
-------------------------------------+----------------------------
   Reporter:  bonefish               |      Owner:  anevilyak
       Type:  enhancement            |     Status:  in-progress
   Priority:  low                    |  Milestone:  R1
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by bonefish):

 Alongside the executable seems obvious at first, but from an aesthetical
 point of view it is not so nice. It certainly doesn't harm to look there,
 but I'd go with a separate directory in all case. That is with the
 following layout for self-contained app directories:
 {{{
 Foo-O-Matic
 add-ons/
   bar-extension
 debug/
   bar-extension-debug-info
   Foo-O-Matic-debug-info
   libfoo.so-debug-info
 lib/
   libfoo.so
 }}}
 That would require searching "<image path>/debug" and "<image
 path>/../debug" (respectively only the one corresponding to the image
 type).

 Similarly, for executables/libraries/add-ons installed globally in one of
 the installation locations (system, common, or home) I'd go with a single
 directory in the installation location. I'm unsure which of the following
 three I'd prefer, though: "debug", "data/debug", or "develop/debug".
 "debug" would be at the same level as "bin", "lib", and "add-ons", but it
 would add another top-level directory. "data/debug" seems logical, since
 it actually is debug data that would be stored there. "develop/debug" also
 sounds kind of good, since the directory content is development related.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8135#comment:8>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: