summaryrefslogtreecommitdiffstats
path: root/loc2c-test.c
Commit message (Collapse)AuthorAgeFilesLines
* 2007-02-19 Frank Ch. Eigler <fche@elastic.org>fche2007-02-191-1/+2
| | | | | | | | | PR 4078 and more, including patch from Eugeniy Meshcheryakov <eugen@debian.org>: * Makefile.am (AM_CXXFLAGS, AM_CFLAGS): Add -Wextra -Wall -Werror consistently. * Makefile.in: Regenerated. (*): Many minor warning fixes.
* 2005-12-11 Roland McGrath <roland@redhat.com>roland2005-12-121-1/+1
| | | | * loc2c-test.c (get_location): Fix function name in error message.
* 2005-11-26 Roland McGrath <roland@redhat.com>roland2005-11-271-0/+4
| | | | | * loc2c-test.c (main): Free SCOPES at end. (handle_variable): Free POOL at end.
* 2005-11-21 Roland McGrath <roland@redhat.com>roland2005-11-221-4/+38
| | | | | | | | | | * loc2c.c (c_translate_location): Take Dwarf_Op vector as argument directly, not Dwarf_Attribute.p * loc2c.h: Update decl. * loc2c-test.c (get_location): New function. (handle_variable): Use it. * tapsets.cxx (dwflpp::translate_location): New method. (dwflpp::translate_components, dwflpp::literal_stmt_for_local): Use it.
* 2005-10-14 Roland McGrath <roland@redhat.com>roland2005-10-141-2/+2
| | | | | * loc2c-test.c (handle_variable): Check for "=" before fetching DIE from ATTR_MEM.
* 2005-10-13 Roland McGrath <roland@redhat.com>roland2005-10-141-0/+2
| | | | * loc2c-test.c (fail): Print a newline after the error message.
* 2005-08-27 Roland McGrath <roland@redhat.com>roland2005-08-271-1/+51
| | | | | * loc2c-test.c (print_type): New function. (print_vars): Use it.
* 2005-08-27 Roland McGrath <roland@redhat.com>roland2005-08-271-24/+95
| | | | | * loc2c-test.c (paddr, print_vars): New functions. (main): If given no variable name argument, print out variables.
* 2005-08-24 Roland McGrath <roland@redhat.com>roland2005-08-251-0/+2
| | | | * loc2c-test.c (handle_variable): Iterate on const_type/volatile_type.
* 2005-08-18 Roland McGrath <roland@redhat.com>roland2005-08-181-6/+22
| | | | | | | * loc2c.c (c_translate_addressof): Take TYPEDIE instead of TYPEATTR. * loc2c.h: Update decl. * loc2c-test.c (handle_variable): Handle DW_TAG_pointer_type target for fetch.
* 2005-08-18 Roland McGrath <roland@redhat.com>roland2005-08-181-2/+4
| | | | | | | | | | | | | | | | * loc2c.c (struct location): New member `emit_address'. (alloc_location): Initialize new member from ORIGIN. (location_from_address): New argument EMIT_ADDRESS. Initialize new member. (translate): Use LOC->emit_address hook to format DW_OP_addr constant. (location_relative): Die if DW_OP_addr is used. (default_emit_address): New function. (c_translate_location): New argument EMIT_ADDRESS, pass it down. Use default_emit_address if argument is null. * loc2c.h: Update decl. * loc2c-test.c (handle_variable): Update caller. * tapsets.cxx (dwflpp::literal_stmt_for_local): Update caller. (dwflpp::loc2c_emit_address): New static method.
* 2005-08-17 Roland McGrath <roland@redhat.com>roland2005-08-181-3/+17
| | | | | | | | | | | | | 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'. * 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.
* 2005-08-17 Roland McGrath <roland@redhat.com>roland2005-08-181-2/+23
| | | | | | | | | * loc2c.c (c_translate_fetch): Take TYPEDIE instead of TYPEATTR. (c_translate_store): Likewise. * loc2c.h: Update decls. * loc2c-test.c (handle_variable): Update callers. Look up type, resolve typedefs, and check that it's DW_TAG_base_type. * tapsets.cxx (dwflpp::literal_stmt_for_local): Likewise.
* 2005-08-10 Roland McGrath <roland@redhat.com>roland2005-08-111-4/+20
| | | | | | | | * loc2c.c (emit_base_store): New function. (emit_bitfield): Rewritten to handle stores, change parameters. (c_translate_fetch): Update caller. (c_translate_store): New function. * loc2c-test.c (handle_variable): Grok "=" last argument to do a store.
* 2005-08-08 Roland McGrath <roland@redhat.com>roland2005-08-091-0/+271
* loc2c-test.c: New file. * Makefile.am (stpd_LDADD): Add loc2c-test. (loc2c_test_SOURCES, loc2c_test_LDADD): New variables. * Makefile.in, aclocal.m4: Regenerated.