changeset 2925:522b039fb608 icedtea-2.6.10pre01

PR3349: Architectures unsupported by SystemTap tapsets throw a parse error 2017-04-03 Andrew John Hughes <gnu_andrew@member.fsf.org> PR3349: Architectures unsupported by SystemTap tapsets throw a parse error Patch by David Smith <dsmith@redhat.com> * AUTHORS: Add David Smith. * NEWS: Updated. * tapset/jstack.stp.in: Call the error function if no architecture is matched.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Wed, 03 May 2017 06:11:29 +0100
parents dcf74eeb8cd8
children 4582c7bb8d02
files AUTHORS ChangeLog NEWS tapset/jstack.stp.in
diffstat 4 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/AUTHORS	Wed May 03 06:09:42 2017 +0100
+++ b/AUTHORS	Wed May 03 06:11:29 2017 +0100
@@ -41,6 +41,7 @@
 Marc Schoenefeld <mschoene@redhat.com>
 Keith Seitz <keiths@redhat.com>
 Ralph Sennhauser <sera@gentoo.org>
+David Smith <dsmith@redhat.com>
 Joshua Sumali <jsumali@redhat.com>
 Pavel Tisnovsky <ptisnovs@redhat.com>
 Christian Thalinger <twisti@complang.tuwien.ac.at>
--- a/ChangeLog	Wed May 03 06:09:42 2017 +0100
+++ b/ChangeLog	Wed May 03 06:11:29 2017 +0100
@@ -1,3 +1,13 @@
+2017-04-03  Andrew John Hughes  <gnu_andrew@member.fsf.org>
+
+	PR3349: Architectures unsupported by SystemTap
+	tapsets throw a parse error
+	Patch by David Smith <dsmith@redhat.com>
+	* AUTHORS: Add David Smith.
+	* NEWS: Updated.
+	* tapset/jstack.stp.in:
+	Call the error function if no architecture is matched.
+
 2017-03-15  Andrew John Hughes  <gnu_andrew@member.fsf.org>
 
 	PR3347: jstack.stp should support AArch64
--- a/NEWS	Wed May 03 06:09:42 2017 +0100
+++ b/NEWS	Wed May 03 06:11:29 2017 +0100
@@ -28,6 +28,7 @@
   - S8173941, PR3330: SA does not work if executable is DSO
   - S8174729, PR3361: Race Condition in java.lang.reflect.WeakCache
 * Bug fixes
+  - PR3349: Architectures unsupported by SystemTap tapsets throw a parse error
   - PR3370: Disable ARM32 JIT by default in jdk_generic_profile.sh
 * CACAO
   - PR2732: Raise javadoc memory limits for CACAO again!
--- a/tapset/jstack.stp.in	Wed May 03 06:09:42 2017 +0100
+++ b/tapset/jstack.stp.in	Wed May 03 06:11:29 2017 +0100
@@ -145,7 +145,13 @@
      pc_register = "pc";
      ptr_size = 8; // XXX - might be probing 32-on-64 jvm.
      ptr_mask = 0xFFFFFFFFFFFFFFFF;
-  %: **ERROR** unknown architecture
+  %:
+     sp_register = "";
+     fp_register = "";
+     pc_register = "";
+     ptr_size = 8;
+     ptr_mask = 0xFFFFFFFFFFFFFFFF;
+     error("unknown architecture")
   %) %) %)
 
   // Pretend we have an array at address zero and take address of second