changeset 2909:d0a40015c820

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 Andrew Dinn. * 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 Tue, 04 Apr 2017 03:29:16 +0100
parents 01cf9369e77a
children df0f259a2fcc
files AUTHORS ChangeLog NEWS tapset/jstack.stp.in
diffstat 4 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/AUTHORS	Tue Apr 04 03:17:18 2017 +0100
+++ b/AUTHORS	Tue Apr 04 03:29:16 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	Tue Apr 04 03:17:18 2017 +0100
+++ b/ChangeLog	Tue Apr 04 03:29:16 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 Andrew Dinn.
+	* 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	Tue Apr 04 03:17:18 2017 +0100
+++ b/NEWS	Tue Apr 04 03:29:16 2017 +0100
@@ -21,6 +21,7 @@
   - S8076221, PR2809, RH1302385: Disable RC4 cipher suites
 * Bug fixes
   - PR3162: Remove reference to AbstractPlainDatagramSocketImpl.c, removed in 8072466
+  - PR3349: Architectures unsupported by SystemTap tapsets throw a parse error
 * AArch64 port
   - PR3209: Backed out changeset 3cc3ab869ccf
 
--- a/tapset/jstack.stp.in	Tue Apr 04 03:17:18 2017 +0100
+++ b/tapset/jstack.stp.in	Tue Apr 04 03:29:16 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