From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10490 invoked by alias); 17 Mar 2011 19:28:18 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 10455 invoked by uid 306); 17 Mar 2011 19:28:18 -0000 Date: Thu, 17 Mar 2011 19:28:00 -0000 Message-ID: <20110317192818.10441.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-sergiodj-stap: error if no AX compilation function is given this is temporary until we implement this X-Git-Refname: refs/heads/archer-sergiodj-stap X-Git-Reftype: branch X-Git-Oldrev: 8fed9947347921e703b14558a062699a1ba8b563 X-Git-Newrev: 78e2c2646895feb9ba33b8266345dba9840e7666 X-SW-Source: 2011-q1/txt/msg00218.txt.bz2 List-Id: The branch, archer-sergiodj-stap has been updated via 78e2c2646895feb9ba33b8266345dba9840e7666 (commit) from 8fed9947347921e703b14558a062699a1ba8b563 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 78e2c2646895feb9ba33b8266345dba9840e7666 Author: Tom Tromey Date: Thu Mar 17 13:34:04 2011 -0600 error if no AX compilation function is given this is temporary until we implement this ----------------------------------------------------------------------- Summary of changes: gdb/stap-probe.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) First 500 lines of diff: diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c index 90c6c4f..ad4e754 100644 --- a/gdb/stap-probe.c +++ b/gdb/stap-probe.c @@ -1663,6 +1663,9 @@ compile_probe_arg (struct internalvar *ivar, struct agent_expr *expr, error (_("Invalid probe argument %d -- probe has %d arguments available"), sel, n_probes); + /* FIXME: this is temporary until AX translation is implemented. */ + if (!objfile->sf->sym_probe_fns->sym_compile_to_ax) + error (_("cannot translate `$_probe_arg%d' to bytecode"), sel); objfile->sf->sym_probe_fns->sym_compile_to_ax (objfile, pc_probe, expr, value, sel); } hooks/post-receive -- Repository for Project Archer.