diff options
Diffstat (limited to 'md')
| -rw-r--r-- | md/issues/251030.1.md | 74 | 
1 files changed, 74 insertions, 0 deletions
| diff --git a/md/issues/251030.1.md b/md/issues/251030.1.md new file mode 100644 index 0000000..b0a9f2f --- /dev/null +++ b/md/issues/251030.1.md | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | Title: Normalize Some Class and Form Names | ||
| 2 | Author: Ron Brender | ||
| 3 | Email: ron.brender@gmail.com | ||
| 4 | Champion: | ||
| 5 | Submit-Date: 2025-10-30 | ||
| 6 | Revised-Date: | ||
| 7 | Closed-Date: | ||
| 8 | Propid: 251030.1 | ||
| 9 | Type: Editorial | ||
| 10 | Status: Open | ||
| 11 | Version: 6 | ||
| 12 | Format: markdown | ||
| 13 | Revisions: | ||
| 14 | |||
| 15 | ## BACKGROUND | ||
| 16 | |||
| 17 | As a result of adopting [230524.1][230524.1], "Location | ||
| 18 | Descriptions on the Stack," and other recent proposals in V6, | ||
| 19 | we have some new class and form names in the DWARF spec: | ||
| 20 | |||
| 21 | Classes: | ||
| 22 | |||
| 23 | - exprval | ||
| 24 | - exprloc | ||
| 25 | - locexpr | ||
| 26 | - loclist | ||
| 27 | |||
| 28 | Form: | ||
| 29 | |||
| 30 | - `DW_FORM_expression` | ||
| 31 | |||
| 32 | Classes exprval and locexpr use `DW_FORM_expression` (which is | ||
| 33 | a renaming of `DW_FORM_exprloc` from V5). | ||
| 34 | |||
| 35 | Classes loclist and vallist use `DW_FORM_loclistx` (this last | ||
| 36 | carried over from V5). | ||
| 37 | |||
| 38 | Notice that the exprval and exprloc names indicate the | ||
| 39 | representation first (expression) and the meaning second | ||
| 40 | (val vs loc) while locexpr and loclist are the opposite. | ||
| 41 | |||
| 42 | Further, `DW_FORM_expression` is rather long compared to the | ||
| 43 | usual abbreviated spelling of other classes and forms. | ||
| 44 | |||
| 45 | |||
| 46 | ## PROPOSAL | ||
| 47 | |||
| 48 | 1) For the class names, adopt the order meaning then | ||
| 49 | representation. That means change exprval to valexpr and | ||
| 50 | exprloc to locexpr. The resulting set of names is: locexpr, | ||
| 51 | loclist, valexpr and vallist. | ||
| 52 | |||
| 53 | 2) Rename `DW_FORM_expression` to `DW_FORM_expr`. The latter | ||
| 54 | is more consistent with the abbreviation conventions in the | ||
| 55 | classes that use it (locexpr, valexpr). | ||
| 56 | |||
| 57 | 3) Rename `DW_FORM_loclistx` to `DW_FORM_listx`. This better | ||
| 58 | reflects the fact that that form is used with both value | ||
| 59 | lists and location lists and not just locations. | ||
| 60 | |||
| 61 | These are simple renamings only. `DW_FORM_expr` will use code | ||
| 62 | 0x18 (used by `DW_FORM_exprloc` in V5), and the two names can | ||
| 63 | be treated as synonyms. Similarly `DW_FORM_listx` can use code | ||
| 64 | 0x22 (used by `DW_FORM_loclistx` in V5), and those two names | ||
| 65 | can be treated as synonyms. | ||
| 66 | |||
| 67 | Note that `DW_FORM_expression` is new in V6 and already | ||
| 68 | defined as a renaming of `DW_FORM_exprloc`. | ||
| 69 | |||
| 70 | Note that `DW_FORM_rnglistx` (carried over from V5) already | ||
| 71 | follows the meaning then representation order and needs no | ||
| 72 | change. | ||
| 73 | |||
| 74 | [230524.1]: https://dwarfstd.org/issues/230524.1.html | ||
