Re: Improving GDB's mechanism to check if function is GC'ed

Yao Qi
2015-06-10T12:25:15Z

On 10/06/15 12:45, Taimoor wrote:
>
> Yes. Its not something specific to Nucleus. Only issue is that function
> address in DWARF is 0x0 as this object file is loaded at runtime and its
> symbols are added using "add-symbol-file" command on the basis of
> address space where it is loaded.
>
> IMO, for any dynamic relocatable object, GDB provides a mechanism to
> load its symbols using add-symbol-file. But if that object file has
> function at 0x0, current mechanism consider it GC'ed.

Could you help me to understand how to reproduce this problem on any GDB
supported targets? Your fix may not be Nucleus specific, but I think
the problem does only exist on Nucleus, please correct me if I am wrong.

--
Yao (é½å°§)