[haiku-bugs] Re: [Haiku] #12592: yab no longetr runs or compiles ... regression

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 14 Mar 2016 18:21:24 -0000

#12592: yab no longetr runs or compiles ... regression
----------------------------------+----------------------------
   Reporter:  bbjimmy             |      Owner:  waddlesplash
       Type:  bug                 |     Status:  closed
   Priority:  normal              |  Milestone:  Unscheduled
  Component:  Kits/Interface Kit  |    Version:  R1/Development
 Resolution:  no change required  |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by pulkomandy):

 It is not exactly trivial (what about having a look before you assume it
 is?)

 The sourcecode is not stored as plaintext in the ELF file (as
 {{{strings}}} finds). However, there is the list of yab keywords and I
 suspect there is a tokenized version of the source. So, it could be
 possible to extract that, and then rebuild the source by parsing the
 tokens. The extraction shouldn't be too hard:

 {{{
 objdump -wx program | grep myProg
 # Get the start address and the size

 # Compute the stop address (start + size) and ask objdump to dump the
 area:
 objdump -sw BeShare_Info --start-address=0x013280 --stop-
 address=0x13BC5|less
 }}}

 This will get you an hex dump of the tokenized program. Then, you would
 need to convert it back to binary, then de-tokenize this (I'm not sure if
 yab provide a tool for that, but it should be possible to write one).

--
Ticket URL: <https://dev.haiku-os.org/ticket/12592#comment:19>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: