aboutsummaryrefslogtreecommitdiff
path: root/gprofng/libcollector/collector.c
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2022-08-17 19:55:23 -0700
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2022-08-18 11:15:56 -0700
commit49ddd814ac1071af7c4f45d5f8398b91862f2c7f (patch)
tree72fa6ee029bbdd10853c2bf15d5ef814ced19642 /gprofng/libcollector/collector.c
parentbde195b84a862f31ac111c0881ad13b89ee89492 (diff)
downloadgdb-49ddd814ac1071af7c4f45d5f8398b91862f2c7f.zip
gdb-49ddd814ac1071af7c4f45d5f8398b91862f2c7f.tar.gz
gdb-49ddd814ac1071af7c4f45d5f8398b91862f2c7f.tar.bz2
gprofng: fix bug 29479 Collection fails when built without java support
gprofng/ChangeLog 2022-08-17 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> PR gprofng/29479 * libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for java specific code. * libcollector/unwind.c: Likewise.
Diffstat (limited to 'gprofng/libcollector/collector.c')
-rw-r--r--gprofng/libcollector/collector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
index 93c9d33..ceff2c1 100644
--- a/gprofng/libcollector/collector.c
+++ b/gprofng/libcollector/collector.c
@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
__collector_ext_unwind_key_init (1, NULL);
/* start java attach if suitable */
+#if defined(GPROFNG_JAVA_PROFILING)
if (exp_origin == SP_ORIGIN_DBX_ATTACH)
__collector_jprofile_start_attach ();
+#endif
start_sec_time = CALL_UTIL (time)(NULL);
__collector_start_time = collector_interface.getHiResTime ();
TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");