|
From: | Herman ten Brugge |
Subject: | Re: [Tinycc-devel] Bug using -g with line directive |
Date: | Mon, 16 Jan 2023 21:50:20 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 |
On 1/16/23 20:33, Herman ten Brugge wrote:
I used an older gcc to compile the code with -gstabs (gcc 12.2.1 does not support stabs anymore) and then gdb also dumps core.On 1/16/23 16:14, Levo D wrote:Using ee3fef2ce2a8c46452ff44b59d5175dc90bf4f4c I compiled and tested in 3 places using make install before the testI See problem 1 when using stab format. This is deprecated in gcc and probably will be deprecated in gdb. Please use dwarf. I just pushed an update for macos. The DW_LNS_set_file dwarf has an offset of 1 on macos.1. Local machine, crashes using gdb 12.1 2. Debian box, works, using 10.1 3. Mac, doesn't work using lldb-1400.0.38.13.Copying the binary I made on the debian box to my local computer upset gdb 12.1. Using tcc -g -nostdlib (otherwise debian gdb complains about wrong glibc version) I am able to debug it using gdb 10.1 on my debian boxShould I write a debug report to gdb? The error it gives is "../../gdb/psymtab.c:1142: internal-error: expand_symtabs_matching: Assertion `symtab != nullptr' failed."
If I use: gdb --readnow ./a.out -batch -ex 'br a.bolin:5' -ex 'r' It works with older gcc and tcc. So it is probably a stabs bug in gdb.
[Prev in Thread] | Current Thread | [Next in Thread] |