Add attribute nodebug support and skip bitfield padding
commit2cb8bddd82c76284b55758bfd87ac7d28a1860a9
authorherman ten brugge <hermantenbrugge@home.nl>
Fri, 10 Mar 2023 11:41:43 +0000 (10 12:41 +0100)
committerherman ten brugge <hermantenbrugge@home.nl>
Fri, 10 Mar 2023 11:41:43 +0000 (10 12:41 +0100)
tree6b65d61e14beb237e20ebe178f6ae73d75a11ff1
parent2cf3a6eb4de576baa4875ce707ac0b6302dea0bc
Add attribute nodebug support and skip bitfield padding

The following code:
typedef struct {
  unsigned int a __attribute__((nodebug));
  unsigned int b;
  unsigned int : 32;
  unsigned int c;
} tst;

Supresses a and also suppresses bitfield padding.
So debugger shows only b and c in above example.
tcc.h
tccdbg.c
tccgen.c
tcctok.h