ion-cli icon indicating copy to clipboard operation
ion-cli copied to clipboard

`inspect` should also show symbol numbers in symbol tables

Open jobarr-amzn opened this issue 3 years ago • 0 comments

When presenting a symbol table each entry is shown as a string:

     3357 |        14 | 8d 6d 61 72 6b 65 74 70  |       "marketplaceId",
          |           | 6c 61 63 65 49 64        |
     3371 |        14 | 8d 6f 66 66 65 72 44 61  |       "offerDataList",
          |           | 74 61 4c 69 73 74        |
     3385 |         6 | 85 74 72 61 63 65        |       "trace",

Later when that symbol is used inspect helpfully provides the interpretation and not just the symbol ID:

  9701447 |        32 | de 9e                    |    {
  9701449 |         1 | c9                       |      'post_handler_type': // $73:
  9701450 |         2 | 71 d9                    |       trace, // $217

It would be convenient if the symbol table rendering presented the symbol number along with the text. Something like this?

     3357 |        14 | 8d 6d 61 72 6b 65 74 70  |       "marketplaceId", // $215
          |           | 6c 61 63 65 49 64        |
     3371 |        14 | 8d 6f 66 66 65 72 44 61  |       "offerDataList", // $216
          |           | 74 61 4c 69 73 74        |
     3385 |         6 | 85 74 72 61 63 65        |       "trace", // $217 (71 d9)

jobarr-amzn avatar Sep 28 '22 20:09 jobarr-amzn