public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/17958] New: Systemtap doesn't like variables with ~ in their name
@ 2015-02-11 15:29 aram.h at mgk dot ro
  2015-02-11 15:38 ` [Bug translator/17958] " aram.h at mgk dot ro
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: aram.h at mgk dot ro @ 2015-02-11 15:29 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=17958

            Bug ID: 17958
           Summary: Systemtap doesn't like variables with ~ in their name
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: aram.h at mgk dot ro
                CC: mjw at redhat dot com

Go generates synthetic names for unnamed return argument of the form ~rN and
~bN. The linker will take these symbols and happily generate DWARF for them
using the same names, DWARF which will cause systemtap to:

/tmp/stap0HUzn4/stap_781fe1254d17c543f4a055e0fd334bdc_557047_src.c:15047:38:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘~’ token
 static void function__dwarf_tvar_get_~r0_259 (struct context * __restrict__
c);

Notice the ~ in the function name.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-09 20:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-11 15:29 [Bug translator/17958] New: Systemtap doesn't like variables with ~ in their name aram.h at mgk dot ro
2015-02-11 15:38 ` [Bug translator/17958] " aram.h at mgk dot ro
2015-04-09 12:50 ` mjw at redhat dot com
2015-04-09 16:30 ` mjw at redhat dot com
2015-04-09 16:31 ` mjw at redhat dot com
2015-04-09 20:31 ` mjw at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).