Re: Any ways to get addr2line working with DMD? works fine with GDC

2023-03-21 Thread ryuukk_ via Digitalmars-d-learn
I found what was the issue!! https://stackoverflow.com/a/63856113 The 0x55XX address you got is most likely the memory address of the function after the EXE is loaded from disk. addr2line only recognizes VMA addresses like the ones that you got from disassembling with objdump. It no

Re: Any ways to get addr2line working with DMD? works fine with GDC

2023-03-21 Thread ryuukk_ via Digitalmars-d-learn
I found what was the issue!! https://stackoverflow.com/a/63856113 The 0x55XX address you got is most likely the memory address of the function after the EXE is loaded from disk. addr2line only recognizes VMA addresses like the ones that you got from disassembling with objdump. It no

Re: Any ways to get addr2line working with DMD? works fine with GDC

2023-03-17 Thread ryuukk_ via Digitalmars-d-learn
On Friday, 17 March 2023 at 20:53:07 UTC, WB wrote: On Thursday, 16 March 2023 at 22:07:04 UTC, ryuukk_ wrote: Hello, The problem is when i compile with DMD i get: ``` ??:0 ``` When i compile it with GDC i get proper file + line What does GDC do different than DMD? Is there a way to get t

Re: Any ways to get addr2line working with DMD? works fine with GDC

2023-03-17 Thread WB via Digitalmars-d-learn
On Thursday, 16 March 2023 at 22:07:04 UTC, ryuukk_ wrote: Hello, The problem is when i compile with DMD i get: ``` ??:0 ``` When i compile it with GDC i get proper file + line What does GDC do different than DMD? Is there a way to get the same result as GDC with DMD? Thanks Did you com

Any ways to get addr2line working with DMD? works fine with GDC

2023-03-16 Thread ryuukk_ via Digitalmars-d-learn
Hello, I'm trying to catch segfaults, after reading lot of ressources online, i came up with this: ```D import core.stdc.signal: SIGSEGV, SIGFPE, SIGILL, SIGABRT, signal; import core.stdc.stdlib: free; import core.stdc.string: strlen; import core.sys.posix.unistd: STDERR_FILENO, readlink; impo