[Tinycc-devel] debugging

2025-08-19 Thread Herman ten Brugge via Tinycc-devel
After commit  "local scope for types of function parameters" debugging does not work any more. If I compile: #include int main(void) {   printf("Hello World\n");   return 0; } And start gdb and try to set break on main I get: invalid dwarf2 offset 0x If I revert the tccdbg.c change (

[Tinycc-devel] debugging tcc programs with gdb & winedbg

2010-11-30 Thread Henry Kroll
Finally figured out how to get gdb to display source code and step through a tcc-compiled program. The trick is to do the compiling with tcc -c -g and then use gcc -g for the linker bits. $ tcc -c -g g.c $ gcc -g g.o -o g windows exe on linux can be made with mingw and debugged with winedbg I had

Re: [Tinycc-devel] Debugging a tcc compiled .exe

2010-11-25 Thread grischka
Simon Lehmayr wrote: Hi, what debugger can I use to debug tcc compiled .exe files? Since tcc uses the stabs debug info format gdb should do - but I can't read variable contents using gdb. Breakpoints work. Lauterbach debugger can debug stabs-using exe files, too, but also can't read variable t

[Tinycc-devel] Debugging a tcc compiled .exe

2010-11-24 Thread Simon Lehmayr
Hi, what debugger can I use to debug tcc compiled .exe files? Since tcc uses the stabs debug info format gdb should do - but I can't read variable contents using gdb. Breakpoints work. Lauterbach debugger can debug stabs-using exe files, too, but also can't read variable type information. What

[Tinycc-devel] Debugging tcc programs and dlls

2010-09-22 Thread Simon Lehmayr
Hello, What debuggers work with tcc programs when I don't have the option to use the run feature? I tried openwatcom - but I didn't get any symbols (compiled using -g option though). Greetings, Simon ___ Tinycc-devel mailing list Tinycc-devel@non