This is the mail archive of the
systemtap-cvs@sourceware.org
mailing list for the systemtap project.
src loc2c.h
- From: roland at sourceware dot org
- To: systemtap-cvs at sources dot redhat dot com
- Date: 18 Aug 2005 03:42:24 -0000
- Subject: src loc2c.h
CVSROOT: /cvs/systemtap
Module name: src
Changes by: roland@sourceware.org 2005-08-18 03:42:24
Modified files:
. : loc2c.h
Log message:
2005-08-17 Roland McGrath <roland@redhat.com>
PR systemtap/1197
* loc2c.c (struct location): New members `fail', `fail_arg'.
(alloc_location): New function. Initialize those members.
(new_synthetic_loc, translate): Use that instead of obstack_alloc.
(location_from_address, location_relative): Likewise.
(FAIL): New macro. Use it everywhere in place of `error'.
(c_translate_location): Take new args FAIL, FAIL_ARG.
* loc2c.h: Update declaration.
* loc2c-test.c (fail): New function.
(handle_variable): Pass it to c_translate_location.
* tapsets.cxx (dwflpp::loc2c_error): New static method.
(dwflpp::literal_stmt_for_local): Pass it to to c_translate_location.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/loc2c.h.diff?cvsroot=systemtap&r1=1.4&r2=1.5