[haiku-bugs] Re: [Haiku] #9510: Include area list in the debug report

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Fri, 05 Apr 2013 15:22:57 -0000

#9510: Include area list in the debug report
-------------------------------------+----------------------------
   Reporter:  axeld                  |      Owner:  anevilyak
       Type:  enhancement            |     Status:  closed
   Priority:  normal                 |  Milestone:  R1
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:  fixed                  |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by anevilyak):

 Replying to [comment:4 phoudoin]:
 > Would it be costly to dump AreaInfo's lock and protection flags in a
 user friendly way, not only a hex value?

 A sample:

 {{{
 reas:
         runtime_loader_seg0ro (556770) Base: 0x100000, Size: 61440, RAM
 Size: 0, Locking: B_FULL_LOCK, Protection: B_READ_AREA|B_EXECUTE_AREA
         runtime_loader_seg1rw (556771) Base: 0x10f000, Size: 4096, RAM
 Size: 4096, Locking: B_FULL_LOCK, Protection: B_READ_AREA|B_WRITE_AREA
         rld heap (556772) Base: 0x110000, Size: 65536, RAM Size: 49152,
 Locking: B_FULL_LOCK, Protection:
 B_READ_AREA|B_WRITE_AREA|B_KERNEL_READ_AREA|B_KERNEL_WRITE_AREA
         _rld_debug_ (556773) Base: 0x120000, Size: 4096, RAM Size: 4096,
 Locking: B_FULL_LOCK, Protection:
 B_READ_AREA|B_WRITE_AREA|B_KERNEL_READ_AREA|B_KERNEL_WRITE_AREA|B_SHARED_AREA
 }}}

 Only problem is this gets a bit long for areas with lots of flags, any
 suggestions as far as ways to shorten it but still have the meaning be
 clear?

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

Other related posts: