Re: [Dwarf-discuss] gfortran / gcc on Mac puts control characters in N_SO STABS

2024-03-15 Thread John DelSignore via Dwarf-discuss
FWIW, when TotalView reads the DWARF, there are no control characters in the strings. Cheers, John D. On 3/15/24 13:12, Adrian Prantl wrote: On Mar 15, 2024, at 9:22 AM, John DelSignore via Dwarf-discuss <mailto:dwarf-discuss@lists.dwarfstd.org> wrote: Thanks for looking at this. I

Re: [Dwarf-discuss] gfortran / gcc on Mac puts control characters in N_SO STABS

2024-03-15 Thread John DelSignore via Dwarf-discuss
Thanks for looking at this. I sent a separate email with the object file attached directly to you. FWIW, using od -c to dump the string table, you can see that ^L (form feed), which is the character that ends up in the first N_SO string, immediately precedes the directory path: 00032202

Re: [Dwarf-discuss] gfortran / gcc on Mac puts control characters in N_SO STABS

2024-03-15 Thread John DelSignore via Dwarf-discuss
Hi Adrian, Thanks for the reply. As far as I can tell, neither gcc nor gfortran produce N_SO stabs when -gdwarf-4 is used. It is the Apple ld-classic linker that is generating the N_SO stabs and inserting them into the Mach-O nlist symbol table. I believe that the linker is reading the DWARF in

Re: [Dwarf-discuss] gfortran / gcc on Mac puts control characters in N_SO STABS

2024-03-13 Thread John DelSignore via Dwarf-discuss
Hi Jakub, Thanks for the reply. My answer inline below... On 3/13/24 16:29, Jakub Jelinek wrote: On Wed, Mar 13, 2024 at 07:54:03PM +, John DelSignore via Dwarf-discuss wrote: Strictly speaking, this is not a DWARF question, but it relates to DWARF because on the Mac the Mach-O NLIST

[Dwarf-discuss] gfortran / gcc on Mac puts control characters in N_SO STABS

2024-03-13 Thread John DelSignore via Dwarf-discuss
Hi, Strictly speaking, this is not a DWARF question, but it relates to DWARF because on the Mac the Mach-O NLIST/STAB symbol table is used as an index into DWARF symbols table. It's kind-of like Split-DWARF, but was invented long before Split-DWARF was added to DWARF 5. On a Mac OS 14 Sonoma M

[Dwarf-discuss] gfortran / gcc on Mac puts control characters in N_SO STABS

2024-02-16 Thread John DelSignore via Dwarf-discuss
Hi, Strictly speaking, this is not a DWARF question, but it relates to DWARF because on the Mac the Mach-O NLIST/STAB symbol table is used as an index into DWARF symbols table. It's kind-of like Split-DWARF, but was invented long before Split-DWARF was added to DWARF 5. On a Mac OS 14 Sonoma M

Re: [Dwarf-discuss] DWARF register numbers on MIPS

2023-08-16 Thread John DelSignore via Dwarf-discuss
If you can’t find it in an ABI document… You might want to look at the GDB sources, which usually contains the code to handle various targets, probably in a file named “gdb/mips*tdep.h”. Cheers, John D. From: Dwarf-discuss On Behalf Of Seva Alekseyev via Dwarf-discuss Sent: Wednesday, August

Re: [Dwarf-discuss] Seeking a test program with a >4GB .debug_info section

2023-04-21 Thread John DelSignore via Dwarf-discuss
to compile with clang) - 5 of these (could stamp them out by including this file into a few other source files & just changing the `main` function to some other name in each) This specifically doesn't push the .debug_str section as hard - it's about half the size of the .debug_info i

Re: [Dwarf-discuss] Seeking a test program with a >4GB .debug_info section

2023-04-21 Thread John DelSignore via Dwarf-discuss
s specifically doesn't push the .debug_str section as hard - it's about half the size of the .debug_info in this program. On Thu, Apr 20, 2023 at 7:08 AM John DelSignore via Dwarf-discuss mailto:dwarf-discuss@lists.dwarfstd.org>> wrote: Is anyone aware of an open-source pro

Re: [Dwarf-discuss] Seeking a test program with a >4GB .debug_info section

2023-04-21 Thread John DelSignore via Dwarf-discuss
;s about half the size of the .debug_info in this program. On Thu, Apr 20, 2023 at 7:08 AM John DelSignore via Dwarf-discuss mailto:dwarf-discuss@lists.dwarfstd.org>> wrote: Is anyone aware of an open-source program or test program that when compiled and built on Linux x86_64, results

[Dwarf-discuss] Seeking a test program with a >4GB .debug_info section

2023-04-20 Thread John DelSignore via Dwarf-discuss
Is anyone aware of an open-source program or test program that when compiled and built on Linux x86_64, results in a .debug_info section that is greater than 4GB? I'm looking for a test program (realistic or not) that contains 32-bit DWARF CUs in a .debug_info section that is about 5GB long, or

Re: [Dwarf-discuss] ISSUE: update Dwarf_Version_Numbers.md for DWARF5

2023-03-22 Thread John DelSignore via Dwarf-discuss
I agree that the web page you reference should be updated (or perhaps deleted), but you can find an up to date table in Appendix G of the DWARF 5 spec. Cheers, John D. On 3/21/23 19:03, Ben Woodard via Dwarf-discuss wrote: > It looks like > https://nam12.safelinks.protection.outlook.com/?url=ht

Re: [Dwarf-Discuss] data-location containing "DW_OP_push_object_address / DW_OP_deref" if the variable could be in memory or register

2021-10-27 Thread John DelSignore via Dwarf-Discuss
Hi Martin, AMD faced the same problem you are describing when generating DWARF for optimized code running on AMD GPUs. After considering several alternatives, they came up with a solution that is described in complete detail here: https://llvm.org/docs/AMDGPUDwarfExtensionsForHeterogeneousDebug

[Dwarf-Discuss] Do any of the Intel compilers still generate DW_OP_INTEL_bit_piece=0xe8?

2021-05-06 Thread John DelSignore via Dwarf-Discuss
Hi, I'm hoping someone from Intel sees this message and can definitively answer the following question: Do any of the Intel compilers still generate DW_OP_INTEL_bit_piece=0xe8? If not, do you know the last version of the compiler that did? Back in 2007, I added support for the Intel Bi-Endian

Re: [Dwarf-Discuss] DW_AT values unknown to me.

2021-02-17 Thread John DelSignore via Dwarf-Discuss
You probably already know this, but I'm pretty sure that "GHS" is Green Hills Software: https://www.ghs.com/products/compiler.html TotalView supported their compiler on the BBN Butterfly in the early '90s, but that predated DWARF support. Maybe someone at Green Hills can tell you what they mean

Re: [Dwarf-Discuss] Callable interface for Fortran "coarray" features

2020-12-30 Thread John DelSignore via Dwarf-Discuss
Hi John, The OpenMP Tools Workgroup has been discussing a very similar issue for OpenMP threads and TARGET regions (e.g.,regions offloaded to GPUs). Tony Tye at AMD (who is also a DWARF committee member) proposed a model where the compiler can generate DWARF that would tell a consumer (most lik

Re: [Dwarf-Discuss] modeling different address spaces

2020-07-16 Thread John DelSignore via Dwarf-Discuss
FYI, Tony Tye and his team at AMD created a DWARF Proposal for heterogeneous debugging, which is generally useful but required to debug optimized code for GPUs. It directly addresses the issue of how to model different address spaces and makes location descriptions first-class objects that can b

Re: [Dwarf-Discuss] DWARF dumpers should note compressed sections

2018-08-03 Thread John DelSignore via Dwarf-Discuss
Hi Paul, TotalView recently got snagged on this with a GNU DebugFission style Split-DWARF .dwo file. A customer had things set up such that -gz=zlib was the default for their compiler, and it was producing compressed debug sections in the .dwo file, where the only hint that the section was comp