]> sourceware.org Git - systemtap.git/commitdiff
PR28781: translator: imply -d from -c/-x
authorFrank Ch. Eigler <fche@redhat.com>
Fri, 14 Jan 2022 02:03:48 +0000 (21:03 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Fri, 14 Jan 2022 02:03:48 +0000 (21:03 -0500)
Add unwindsyms data always for commands mentioned via -c/-x.

NEWS
session.cxx

diff --git a/NEWS b/NEWS
index 5e569eb6fe2d11af9e1de9c2615c7906c21ad588..8957e83e0dd861da55ef5d9293bdf847c859b0d7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,9 @@
 * What's new in version 4.7, PRERELEASE
 
+- target processes given with the -c/-x parameters are now always
+  added to the -d list for possible symbol/unwind data extraction,
+  for simplifying profiling invocations.  Consider --ldd.
+
 * What's new in version 4.6, 2021-11-15
 
 - SystemTap has added support for the 64-bit RISC-V architecture.
index 209df5bf076af57143f157093387d2e00892a261..ec1400ee056c1d4b066932e2fbbda8b594798d04 100644 (file)
@@ -1676,6 +1676,13 @@ systemtap_session::parse_cmdline (int argc, char * const argv [])
         }
     }
 
+  // add the -c CMD / -x PID into the unwindsyms list as if -d ... were given
+  try {
+    if (cmd != "" || target_pid != 0)
+      additional_unwindsym_modules.insert(resolve_path(find_executable(cmd_file(),
+                                                                       sysroot, sysenv)));
+  } catch (...) { }
+  
   for (std::set<std::string>::iterator it = additional_unwindsym_modules.begin();
        it != additional_unwindsym_modules.end();
        it++)
This page took 0.033019 seconds and 5 git commands to generate.