[haiku-bugs] Re: [Haiku] #10301: [debug_server] Allow configuring a default action on program crashes

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Thu, 12 Dec 2013 16:20:29 -0000

#10301: [debug_server] Allow configuring a default action on program crashes
------------------------------------+----------------------------
   Reporter:  anevilyak             |      Owner:  anevilyak
       Type:  enhancement           |     Status:  new
   Priority:  normal                |  Milestone:  Unscheduled
  Component:  Servers/debug_server  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by bonefish):

 Yes, the environment variable would have to be checked by some init code
 that calls the API function accordingly. I'd probably do that in
 src/system/libroot/libroot_init.c directly after `__init_env()` has been
 called.

 Given that we'll probably introduce additional environment variables for
 various purposes in the future, it might be a good idea to eventually have
 a single place (maybe as early as the [http://cgit.haiku-
 os.org/haiku/tree/src/system/runtime_loader/runtime_loader.cpp#n659
 runtime loader entry function]) that iterates once through the environment
 and gets the values of all interesting ones, thus avoiding having dozens
 of (not particularly efficient) `getenv()` calls all over the place. ATM
 that isn't particularly relevant, though.

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

Other related posts: