Re: [Dwarf-Discuss] dwarf stack operator for byte swap.

2019-12-16 Thread Michael Eager via Dwarf-Discuss

Hi Chirag --

The DWARF Committee is currently on hiatus.  We will consider resuming 
meetings early next year.


On 12/16/19 4:30 AM, Chirag Patel wrote:

Hello Michael,

Thanks for opening the issue.
Can you kindly provide me with the details about what is the next step, 
till issue gets accepted/rejected or any modifications are needed?


Regards,

Chirag Patel
Software Engineer | Raincode Labs India
Tel: (+91) 080 41159811
Mob: (+91) 9049336744




*From:* Chirag Patel
*Sent:* 11 November 2019 13:07:19
*To:* Michael Eager ; Robinson, Paul 
; Ron Brender 

*Cc:* dwarf-discuss@lists.dwarfstd.org 
*Subject:* RE: [Dwarf-Discuss] dwarf stack operator for byte swap.
Hello Michael,

Thanks for the confirmation. Kindly inform me if anything needs to be 
updated from myside.


Regards,

Chirag Patel
Software Engineer | Raincode Labs India
Tel: (+91) 080 41159811
Mob: (+91) 9049336744
www.raincodelabs.com 


-Original Message-
From: Michael Eager 
Sent: 08 November 2019 20:04
To: Chirag Patel ; Robinson, Paul 
; Ron Brender 

Cc: dwarf-discuss@lists.dwarfstd.org
Subject: Re: [Dwarf-Discuss] dwarf stack operator for byte swap.

Hi Chirag --

Thanks for your submission.  It was received.

I'm redesigning the DWARF website, in part to address the problem that 
it receives a lot of spam submissions.  Your issue will be posted soon.


On 11/7/19 10:51 PM, Chirag Patel wrote:

Hi all,

I have sent a comment through http://dwarfstd.org/Comment.php

But below is the body of the comment “

Section 2.5.1.7, pg 37

DW_OP_byte_swap to Byte Swap the data on top of the dwarf stack.

==
=

Overview



For debugging binary with bi-endian marked dwarf DIEs and the some 
calculation


depending at runtime, the data needs to be loaded at runtime and needs 
to be


byte swapped. the depended variable DIE here is marked as big-endian 
and the


host is little-endian. The DW_OP_byte_swap will byte swap the raw data 
stored


in top dwarf stack entry.

…

0x0057:   DW_TAG_variable

      DW_AT_name  ("__gbloffset__")

      DW_AT_type  (0x01e5 "int")

      DW_AT_external  (true)

      DW_AT_decl_file ("…")

      DW_AT_decl_line (8)

      DW_AT_location  (DW_OP_addr 0) // pre linkage

      DW_AT_linkage_name  ("_gblsection__")

      DW_AT_endianity (DW_END_big)

0x0170:   DW_TAG_variable

      DW_AT_name  ("VAR1")

      DW_AT_type  (0x010b "fixed.dec.display.72")

      DW_AT_decl_file ("…")

      DW_AT_decl_line (10)

      DW_AT_location  (DW_OP_addr 0x0, DW_OP_call4 0x57, 
DW_OP_deref_size, 4,


DW_OP_dup, DW_OP_constu 0xff, DW_OP_lit0, DW_OP_shl, DW_OP_and, 
DW_OP_lit24, DW_OP_shl, DW_OP_swap, DW_OP_dup, DW_OP_constu 0xff, 
DW_OP_lit8, DW_OP_shl, DW_OP_and, DW_OP_lit8, DW_OP_shl, DW_OP_swap, 
DW_OP_dup, DW_OP_constu 0xff, DW_OP_lit16, DW_OP_shl, DW_OP_and, 
DW_OP_lit8, DW_OP_shr, DW_OP_swap, DW_OP_constu 0xff, DW_OP_lit24, 
DW_OP_shl, DW_OP_and, DW_OP_lit24, DW_OP_shr, DW_OP_swap, DW_OP_or, 
DW_OP_or, DW_OP_or, DW_OP_plus)


      DW_AT_linkage_name  ("VAR1")

In above snippet, the DW_OP_byte_swap will replace,

DW_OP_dup, DW_OP_constu 0xff, DW_OP_lit0, DW_OP_shl, DW_OP_and, 
DW_OP_lit24, DW_OP_shl, DW_OP_swap, DW_OP_dup, DW_OP_constu 0xff, 
DW_OP_lit8, DW_OP_shl, DW_OP_and, DW_OP_lit8, DW_OP_shl, DW_OP_swap, 
DW_OP_dup, DW_OP_constu 0xff, DW_OP_lit16, DW_OP_shl, DW_OP_and, 
DW_OP_lit8, DW_OP_shr, DW_OP_swap, DW_OP_constu 0xff, DW_OP_lit24, 
DW_OP_shl, DW_OP_and, DW_OP_lit24, DW_OP_shr, DW_OP_swap, DW_OP_or, 
DW_OP_or, DW_OP_or number of operations.


Proposed changes to DWARF

---

2.5.1.7 Special Operation

Addition

 DW_OP_byte_swap

     The DW_OP_byte_swap operation pops the top stack 
entry, byte swaps the value


     and pushes back the swapped value on the dwarf stack.

     e.g. so 0x12345678 will become 0x78563412, useful to 
change endianity of raw


     data.

---

“

i did not received any confirmation on my mail. How can I check if it 
was sent correctly?


Kindly inform me if anything more needs to be done from myside.

Regards,

**

*Chirag Patel*

Software Engineer | Raincode Labs India

*Tel*: (+91) 080 41159811

*Mob*: (+91) 9049336744

_www.raincodelabs.com _

linkedin-button 

*From:*Chirag Patel 
*Sent:* 29 October 2019 17:10
*To:* Michael Eager ; Robinson, Paul 
; Ron Brender 

*Cc:* dwarf-discuss@lists.dwarfstd.org
*Subject:* Re: [Dwarf-Discuss] dwarf stack operator for byte swap.

Hello,

Thank you all for prompt reply.

@Robinson, 

Re: [Dwarf-Discuss] dwarf stack operator for byte swap.

2019-12-16 Thread Chirag Patel via Dwarf-Discuss
Hello Michael,

Thanks for opening the issue.
Can you kindly provide me with the details about what is the next step, till 
issue gets accepted/rejected or any modifications are needed?

Regards,

Chirag Patel
Software Engineer | Raincode Labs India
Tel: (+91) 080 41159811
Mob: (+91) 9049336744




From: Chirag Patel
Sent: 11 November 2019 13:07:19
To: Michael Eager ; Robinson, Paul 
; Ron Brender 
Cc: dwarf-discuss@lists.dwarfstd.org 
Subject: RE: [Dwarf-Discuss] dwarf stack operator for byte swap.

Hello Michael,

Thanks for the confirmation. Kindly inform me if anything needs to be updated 
from myside.

Regards,

Chirag Patel
Software Engineer | Raincode Labs India
Tel: (+91) 080 41159811
Mob: (+91) 9049336744
www.raincodelabs.com


-Original Message-
From: Michael Eager 
Sent: 08 November 2019 20:04
To: Chirag Patel ; Robinson, Paul 
; Ron Brender 
Cc: dwarf-discuss@lists.dwarfstd.org
Subject: Re: [Dwarf-Discuss] dwarf stack operator for byte swap.

Hi Chirag --

Thanks for your submission.  It was received.

I'm redesigning the DWARF website, in part to address the problem that it 
receives a lot of spam submissions.  Your issue will be posted soon.

On 11/7/19 10:51 PM, Chirag Patel wrote:
> Hi all,
>
> I have sent a comment through http://dwarfstd.org/Comment.php
>
> But below is the body of the comment “
>
> Section 2.5.1.7, pg 37
>
> DW_OP_byte_swap to Byte Swap the data on top of the dwarf stack.
>
> ==
> =
>
> Overview
>
> 
>
> For debugging binary with bi-endian marked dwarf DIEs and the some
> calculation
>
> depending at runtime, the data needs to be loaded at runtime and needs
> to be
>
> byte swapped. the depended variable DIE here is marked as big-endian
> and the
>
> host is little-endian. The DW_OP_byte_swap will byte swap the raw data
> stored
>
> in top dwarf stack entry.
>
> …
>
> 0x0057:   DW_TAG_variable
>
>  DW_AT_name  ("__gbloffset__")
>
>  DW_AT_type  (0x01e5 "int")
>
>  DW_AT_external  (true)
>
>  DW_AT_decl_file ("…")
>
>  DW_AT_decl_line (8)
>
>  DW_AT_location  (DW_OP_addr 0) // pre linkage
>
>  DW_AT_linkage_name  ("_gblsection__")
>
>  DW_AT_endianity (DW_END_big)
>
> 0x0170:   DW_TAG_variable
>
>  DW_AT_name  ("VAR1")
>
>  DW_AT_type  (0x010b "fixed.dec.display.72")
>
>  DW_AT_decl_file ("…")
>
>  DW_AT_decl_line (10)
>
>  DW_AT_location  (DW_OP_addr 0x0, DW_OP_call4 0x57,
> DW_OP_deref_size, 4,
>
> DW_OP_dup, DW_OP_constu 0xff, DW_OP_lit0, DW_OP_shl, DW_OP_and,
> DW_OP_lit24, DW_OP_shl, DW_OP_swap, DW_OP_dup, DW_OP_constu 0xff,
> DW_OP_lit8, DW_OP_shl, DW_OP_and, DW_OP_lit8, DW_OP_shl, DW_OP_swap,
> DW_OP_dup, DW_OP_constu 0xff, DW_OP_lit16, DW_OP_shl, DW_OP_and,
> DW_OP_lit8, DW_OP_shr, DW_OP_swap, DW_OP_constu 0xff, DW_OP_lit24,
> DW_OP_shl, DW_OP_and, DW_OP_lit24, DW_OP_shr, DW_OP_swap, DW_OP_or,
> DW_OP_or, DW_OP_or, DW_OP_plus)
>
>  DW_AT_linkage_name  ("VAR1")
>
> In above snippet, the DW_OP_byte_swap will replace,
>
> DW_OP_dup, DW_OP_constu 0xff, DW_OP_lit0, DW_OP_shl, DW_OP_and,
> DW_OP_lit24, DW_OP_shl, DW_OP_swap, DW_OP_dup, DW_OP_constu 0xff,
> DW_OP_lit8, DW_OP_shl, DW_OP_and, DW_OP_lit8, DW_OP_shl, DW_OP_swap,
> DW_OP_dup, DW_OP_constu 0xff, DW_OP_lit16, DW_OP_shl, DW_OP_and,
> DW_OP_lit8, DW_OP_shr, DW_OP_swap, DW_OP_constu 0xff, DW_OP_lit24,
> DW_OP_shl, DW_OP_and, DW_OP_lit24, DW_OP_shr, DW_OP_swap, DW_OP_or,
> DW_OP_or, DW_OP_or number of operations.
>
> Proposed changes to DWARF
>
> ---
>
> 2.5.1.7 Special Operation
>
> Addition
>
>  DW_OP_byte_swap
>
> The DW_OP_byte_swap operation pops the top stack
> entry, byte swaps the value
>
> and pushes back the swapped value on the dwarf stack.
>
> e.g. so 0x12345678 will become 0x78563412, useful to
> change endianity of raw
>
> data.
>
> ---
>
> “
>
> i did not received any confirmation on my mail. How can I check if it
> was sent correctly?
>
> Kindly inform me if anything more needs to be done from myside.
>
> Regards,
>
> **
>
> *Chirag Patel*
>
> Software Engineer | Raincode Labs India
>
> *Tel*: (+91) 080 41159811
>
> *Mob*: (+91) 9049336744
>
> _www.raincodelabs.com _
>
> linkedin-button 
>
> *From:*Chirag Patel 
> *Sent:* 29 October 2019 17:10
> *To:* Michael Eager ; Robinson, Paul
> ; Ron Brender 
> *Cc:* dwarf-discuss@lists.dwarfstd.org
> *Subject:* Re: [Dwarf-Discuss] dwarf stack operator for byte swap.
>
> Hello,
>
> Thank you all for prompt reply.
>
> @Robinson, Paul ,