* [Bug translator/24419] New: stap -l 'process("p")statement ("func@file:N") sometimes displays relative paths
@ 2019-04-04 13:55 scox at redhat dot com
2019-04-04 13:57 ` [Bug translator/24419] " scox at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: scox at redhat dot com @ 2019-04-04 13:55 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=24419
Bug ID: 24419
Summary: stap -l 'process("p")statement ("func@file:N")
sometimes displays relative paths
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
Assignee: systemtap at sourceware dot org
Reporter: scox at redhat dot com
Target Milestone: ---
subdirectory paths are sometimes displayed as relative with
statement("function@file:line") probes. e.g.
("tracing_backend_handle_arg@/work/scox/strace/scoxsrc/tracing_backend.h:159")
versus
("gdb_handle_arg@gdbserver/gdbserver.c:1280")
dwflpp.cxx::dwflpp::collect_srcfiles_matching needs to do something similar to
below to get pp() to return statement("func@/path/to/subdir/file.c:N") instead
of current "func@subdir/file.c:N"
char const *fname = dwarf_diename (die);
if (fname != NULL)
{
if (fname[0] != '/')
{
/* Relative path, get CU comp_dir. This is really too generic,
because we know this is the CU die already... */
const char *fdir;
Dwarf_Die cudie;
Dwarf_Attribute cdattr;
fdir = dwarf_formstring (dwarf_attr (dwarf_diecu (die,
&cudie,
NULL,
NULL),
DW_AT_comp_dir,
&cdattr));
check_it (fdir == NULL, "dwarf_formstring comp_dir");
printf ("### %s/%s\n", fdir, fname);
}
else
printf ("### %s\n", fname);
}
off = noff;
}
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug translator/24419] stap -l 'process("p")statement ("func@file:N") sometimes displays relative paths
2019-04-04 13:55 [Bug translator/24419] New: stap -l 'process("p")statement ("func@file:N") sometimes displays relative paths scox at redhat dot com
@ 2019-04-04 13:57 ` scox at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: scox at redhat dot com @ 2019-04-04 13:57 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=24419
Stan Cox <scox at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|systemtap at sourceware dot org |scox at redhat dot com
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-04 13:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-04 13:55 [Bug translator/24419] New: stap -l 'process("p")statement ("func@file:N") sometimes displays relative paths scox at redhat dot com
2019-04-04 13:57 ` [Bug translator/24419] " scox 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).