Re: [EXT] Re: gdb does not stop at printf for ppc
Sachin Monga via Libc-help <libc-help-9JcytcrH/[email protected]> Wed, 5 Nov 2025 11:30:41 +0530
| Newsgroups | gmane.comp.lib.glibc.user,gmane.comp.lib.glibc.alpha,gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Peter/All
>diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf.c
b/sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf.c
>index 7b1640ceac..d567d98c68 100644
>--- a/sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf.c
>+++ b/sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf.c
>@@ -33,3 +33,6 @@ ___ieee128_printf (const char *format, ...)
> return done;
>}
>strong_alias (___ieee128_printf, __printfieee128)
>+
>+asm (".local printf\n"
>+ ".set printf, __printfieee128");
> ZjQcmQRYFpfptBannerEnd
> Thanks Adhemerval/Peter
>
> Ok, I can try for the printf and test it.
I've tested the solution provided by Adhmerval and it worked well. No
regressions found on test-suite also.
Also, it rules out the ieee ABI machine logic since
"-mabi=ieeelongdouble" does not seem to have impact over the reported issue.
Next, my question to the community is that do I need to create aliasing
for all the symbols as in the list prepared by Carl as discussed in the
thread ?
For now, I need urgent solution for printf specifically. So, Is it ok to
proceed and share this change for printf only ?
Regards:
Sachin.