| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
* loc2c-test.c (get_location): Fix function name in error message.
|
|
|
|
|
| |
* loc2c-test.c (main): Free SCOPES at end.
(handle_variable): Free POOL at end.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* loc2c-test.c (handle_variable): Check for "=" before fetching DIE
from ATTR_MEM.
|
|
|
|
| |
* loc2c-test.c (fail): Print a newline after the error message.
|
|
|
|
|
| |
* loc2c-test.c (print_type): New function.
(print_vars): Use it.
|
|
|
|
|
| |
* loc2c-test.c (paddr, print_vars): New functions.
(main): If given no variable name argument, print out variables.
|
|
|
|
| |
* loc2c-test.c (handle_variable): Iterate on const_type/volatile_type.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
* 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.
|