title: How to tell GCC to emit a specific debugging symbol named by me?
body: <p>I am writing a stateful scanner and I want to have a debugging symbol for every state change.</p>
  
  <p>In my code I call a macro <code>SETSTATE(ST_xxx)</code> for instance, which does some nasty things, BUT I could easily also tell GCC to emit at that point a specific debugging symbol based on that name <code>ST_xxx</code>.</p>
  
  <p>What I need to accomplish is setting a breakpoint in gdb.</p>
  
  <p>I suppose it should be a <code>#pragma</code> or something.</p>
  
  <p>If I only knew how ...</p>