Commit 6510b35
committed
dw2elf: fix compilation errors — add dwarf.h, fix AT_name_a arg count
- Add #include <dwarf.h> to get DW_TAG_compile_unit, DW_TAG_subprogram,
DW_TAG_formal_parameter constants (not exported via libdwarfp.h alone)
- Fix all dwarf_add_AT_name_a() calls: signature requires 4 args
(die, name, Dwarf_P_Attribute *outattr, Dwarf_Error *error) not 3
https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs1 parent 54d2b50 commit 6510b35
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| 276 | + | |
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
| |||
283 | 285 | | |
284 | 286 | | |
285 | 287 | | |
286 | | - | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| |||
296 | 298 | | |
297 | 299 | | |
298 | 300 | | |
299 | | - | |
| 301 | + | |
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
| |||
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
308 | | - | |
| 310 | + | |
309 | 311 | | |
310 | 312 | | |
311 | 313 | | |
| |||
0 commit comments