jimingham wrote:

I agree with Pavel, we don't for most purposes care whether there's a symbol at 
the start address (for instance we can use it for the "expression evaluation 
return breakpoint" as an address.  So we shouldn't require the symbol.

Jim

> On Jul 22, 2024, at 12:04 AM, Pavel Labath ***@***.***> wrote:
> 
> 
> I'd like to note that, at least in the ELF world, there's no guarantee that 
> there will be an actual symbol at the address where the process starts 
> executing. The convention is to call this _start but nothing in the system 
> actually relies on that. The ELF header contains the address of the first 
> instruction, the OS jumps to that, and that's it.
> 
> So, I think that a more generic interface would be to return an Address 
> (which the caller can try to resolve to a symbol if it wants to).
> 
> —
> Reply to this email directly, view it on GitHub 
> <https://github.com/llvm/llvm-project/pull/99673#issuecomment-2242235585>, or 
> unsubscribe 
> <https://github.com/notifications/unsubscribe-auth/ADUPVW7ZFE2ZXN3SJI7ZSMTZNSVILAVCNFSM6AAAAABLE7M55SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBSGIZTKNJYGU>.
> You are receiving this because you are on a team that was mentioned.
> 



https://github.com/llvm/llvm-project/pull/99673
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to