[Dwarf-discuss] Macros after "#include" does not show up DWARF

2024-09-11 Thread Lorenzo Gomez via Dwarf-discuss
Hi there, I'm currently using dwarfdump "2020-01-14 10:13:32-08:00 Package Version "20200114"" to look at macros inside the DWARF. Imagine two files; test_file1.h and test_file1.cpp test_file1.cpp is defined as follows: /*  * test_file.cpp  *  */ #ifdef __cplusplus e

Re: [Dwarf-discuss] Macros after "#include" does not show up DWARF

2024-09-11 Thread Lorenzo Gomez via Dwarf-discuss
Something else to note: If I link the "test_file1.o" file with "gcc  -g3  -nostartfiles -Llib -gdwarf-4  test_file1_copy.o -o test_file1_linked_dwarf4.o" the macro shows up in the DWARF, regardless of whether it is defined before/after the #include. On 9/11/24 1:47 PM, Lorenzo Gomez wrote: