tccrun.c: better stab debug support
commit65f74a4df094996903a86463d09f3f126fcc790f
authorgrischka <grischka>
Sat, 14 Dec 2019 11:36:12 +0000 (14 12:36 +0100)
committergrischka <grischka>
Sat, 14 Dec 2019 16:48:50 +0000 (14 17:48 +0100)
treee56f437468806fef54b56c55f4501e0d3aae0dca
parent56db092ab7df109508efa4e3d2034028b18fd101
tccrun.c: better stab debug support

* a major revision of the rt_printline() feature in
  tccrun.c to report file:linenumber more correctly.

* minor changes to the stab info produced by the
  compiler in tccgen.c

However stab addresses are limited to 32 bits.  I added
a work around:

    if (sizeof pc == 8)
        pc |= wanted_pc & 0xffffffff00000000ULL;

However GDB has problems with that too.
tcc.h
tccelf.c
tccgen.c
tccpp.c
tccrun.c