We are now getting the DWO using absolute path(Comp_dir + dwo_name). It will have problems if the objects are built with distribution system(i.e. distcc or buildfarm). Because they are likely built in other workspace which is NOT valid.
i.e.
<13a> DW_AT_comp_dir : (indirect string, offset: 0x3a9c2e): /opt/bazel-buildfarm/default/operations/9b0734e1-599d-4563-a3a1-76620b3b8cd3 // remote workspace <13e> DW_AT_GNU_pubnames: 1 <13e> DW_AT_GNU_dwo_name: (indirect string, offset: 0x5faf0b): build64/not_interest_constants.cpp.dwo
What we got is build64/not_interest_constants.cpp.dwo from network, and current workspace is not /opt/bazel-buildfarm/default/operations/9b0734e1-599d-4563-a3a1-76620b3b8cd3.
So, we need to change it with relative path as what gcc dwp does.
maybe use a less-likely-to-accidentally-exist path rather than /tmp (/non-existent or something?) (& any ideas how this works if the test runs on Windows? does the absolute path confuse things? maybe using a relative comp-dir like non-existent (without the leading /) would be better? Not sure how the other tests work already