Re: gdb does not stop at printf for ppc
Adhemerval Zanella Netto via Libc-help <libc-help-9JcytcrH/[email protected]> Tue, 7 Oct 2025 14:21:46 -0300
| Newsgroups | gmane.comp.lib.glibc.user,gmane.comp.gdb.devel,gmane.comp.lib.glibc.alpha |
|---|---|
| Organization | Linaro |
| Message-ID | <[email protected]> |
On 03/10/25 16:43, Tom Tromey wrote: >>>>>> Adhemerval Zanella Netto via Gdb <gdb-9JcytcrH/[email protected]> writes: > > I didn't really follow this discussion, but: > >> Do we have the concept of symbol aliases for DWARF? > > Yes, DWARF can use DW_TAG_imported_declaration. However gdb's support > for this is incomplete and you'd have to try it out to see if it's > sufficient for this purpose. > > Tom Thanks for the information, but it seems that it can not be easily created by the compiler on C code (typedef creates DW_TAG_typedef and asm function aliases do not generate DWARF entries); and relying on a possible incomplete is kinda fragile because we would like to support old gdb releases. I think the local symbol aliases seems the best strategy.