summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update to v1.1v1.1Arun Sharma2012-10-053-2/+10
|
* Fix x86-64 debug build -Wformat warningTommi Rantala2012-10-051-1/+1
| | | | | src/x86_64/Gstep.c: In function '_ULx86_64_step': src/x86_64/Gstep.c:204:4: warning: unknown conversion type character 'r' in format [-Wformat]
* Fix header inclusion order in `src/elfxx.c'Tommi Rantala2012-10-051-2/+2
| | | | | | | Make sure that we have included `config.h' before checking HAVE_LZMA. This makes a difference at least on MIPS, where we include `elfxx.c' directly. For other platforms this does not make much difference, as we are already indirectly including `config.h' from other headers.
* Reduce the number of ifdefs in machine independent codev1.1-rc1Arun Sharma2012-09-291-5/+1
| | | | | Hopefully we don't have too many GNUC users who don't have fetch and add.
* Assign `func' just once in Ltest-nocalloc glibc caseTommi Rantala2012-09-281-1/+2
|
* Add arguments to malloc and calloc prototypes in Ltest-nocallocTommi Rantala2012-09-281-5/+5
|
* Remove unused variable in Ltest-nocallocTommi Rantala2012-09-281-1/+0
|
* Replace empty argument lists with `void' in testsTommi Rantala2012-09-283-6/+6
|
* Prefer NULL over zeroTommi Rantala2012-09-2810-19/+19
|
* Apply `define_lock()'Tommi Rantala2012-09-289-9/+9
| | | | We have a nice macro for defining pthread mutexes, use it.
* Fix second operand read in dwarf_eval_expr()Tommi Rantala2012-09-281-1/+1
| | | | | | | Due to bad bracketing, the second operand was never read for dwarf expressions that take two operands. Caught with sparse.
* Teach autotools current ARM `ex_tables.h' locationTommi Rantala2012-09-282-3/+2
|
* Use shared `ARRAY_SIZE' in IA64 testsTommi Rantala2012-09-282-8/+6
|
* Use `UNUSED' in testsTommi Rantala2012-09-2817-55/+76
|
* Plug in `ALIAS' attributeTommi Rantala2012-09-282-2/+2
|
* Define and use `CONST_ATTR'Tommi Rantala2012-09-285-4/+6
|
* Define and use `WEAK'Tommi Rantala2012-09-282-1/+3
|
* Define and use `NOINLINE'Tommi Rantala2012-09-285-19/+23
|
* Plug in `ARRAY_SIZE' in ptrace codeTommi Rantala2012-09-282-4/+4
|
* IA64: constify read only arrays in `tdep_init()'Tommi Rantala2012-09-281-3/+3
|
* Constify `operands' in src/dwarf/Gexpr.cTommi Rantala2012-09-281-1/+1
|
* Constify `dwarf_to_unw_regnum_map'Tommi Rantala2012-09-285-5/+5
|
* Set `_UPT_reg_offset' read onlyTommi Rantala2012-09-282-2/+2
| | | | | | | We do not modify `_UPT_reg_offset', so let's set it `const'. Given that the array is exported, it's technically possible that some library user is actually modifying the content, but does not seem really all that likely.
* IA64: give prototype for `ia64_find_unwind_table()'Tommi Rantala2012-09-281-0/+4
| | | | | src/ptrace/_UPT_find_proc_info.c: In function 'get_unwind_info': src/ptrace/_UPT_find_proc_info.c:67: warning: implicit declaration of function 'ia64_find_unwind_table'
* ppc32: include `compiler.h' for UNUSED in ucontext_i.hTommi Rantala2012-09-281-1/+1
|
* SuperH portTommi Rantala2012-09-2842-2/+1893
| | | | | | | Add support for the 32bit SuperH architecture running Linux. Specifically, support is added for SH4, and support for earlier SH versions and to the 64bit SH5 are left out. This was tested in qemu with a little-endian SH4 debian image & GCC 4.7 cross compiler.
* Enable coredump library build on ARM by defaultTommi Rantala2012-09-281-1/+1
| | | | The ARM coredump library compiles, ship it!
* MIPS coredump supportTommi Rantala2012-09-2810-3/+62
| | | | | | | | | | Add MIPS support to the coredump library. Explicit support for the MIPS program counter register is added so that we can start backtracing from the program counter value we read from a core dump. The PC register support was not strictly required for local backtracing, and we will in fact just plug the return address to the PC register in getcontext(). I have only tested the 32bit "OABI" paths.
* Stop including `memory.h'Tommi Rantala2012-09-2810-10/+3
| | | | | | I am unable to find any reference to `memory.h' in the C99 and C11 committee drafts, so include `string.h' instead when we need memset() or similar.
* Nuke HAVE_BACKTRACETommi Rantala2012-09-283-5/+1
| | | | | | | | We do not really need to care if the system provides `backtrace()', since we will want to test the one provided in libunwind, not the one that is provided by the system. The `backtrace()' calls should already be aliased to `unw_backtrace()', but if that is not working for whatever reason, we can call `unw_backtrace()' explicitly.
* Call snprintf() from signal handler only if required in test-async-sigTommi Rantala2012-09-281-1/+2
| | | | | snprintf() is not guaranteed to be safely callable from a signal handler, so avoid calling it in the default non-verbose case.
* Roll `test-nocalloc' into `Ltest-nocalloc.c'Tommi Rantala2012-09-283-143/+135
| | | | | | We are building only a UNW_LOCAL_ONLY build of `test-nocalloc', and the "generic" build would not be very interesting. Roll the whole test into `Ltest-nocalloc.c'.
* Call `unw_backtrace()' explicitly in test-flush-cache.cTommi Rantala2012-09-281-11/+2
|
* Rename `rs-race' to `Lrs-race'Tommi Rantala2012-09-282-133/+135
| | | | | | | | Only build a "local-only" version of `rs-race'. The "generic" build is not very entertaining, as the `unw_set_caching_policy()' calls manipulate the `unw_local_addr_space' in libunwind-$arch.so, while the `backtrace()' calls use the address space object from libunwind.so behind the scenes.
* Cleanup dynamically allocated memory before exit in testsTommi Rantala2012-09-285-0/+16
| | | | | | | | | Cleanup dynamically allocated memory before exit in tests in a few places where missing. While such cleanups right before exit do not usually make much sense (as the operating system would cleanup anyway, so manual cleanups only burn CPU cycles), we will want to catch any potential problems in libunwind related to the cleanups. This also stops valgrind complaining about unreleased memory.
* Remove unneeded `config.h' inclusion in Gtest-nomallocTommi Rantala2012-09-281-4/+0
|
* Rename `test-varargs' to `Ltest-varargs'Tommi Rantala2012-09-282-2/+3
| | | | | This testcase only uses the local-only `unw_backtrace()' from libunwind, and a "generic" build of this test case would not be interesting.
* Annotate potentially unused variable in tests/test-coredump-unwind.cTommi Rantala2012-09-281-1/+3
| | | | | tests/test-coredump-unwind.c: In function 'handle_sigsegv': test-coredump-unwind.c:216:15: warning: variable 'uc' set but not used [-Wunused-but-set-variable]
* Annotate potentially unused variable in tests/Gtest-trace.cTommi Rantala2012-09-281-1/+5
| | | | | tests/Gtest-trace.c: In function 'sighandler': tests/Gtest-trace.c:179:15: warning: unused variable 'uc' [-Wunused-variable]
* Annotate potentially unused variable in tests/Gtest-bt.cTommi Rantala2012-09-281-1/+5
| | | | | tests/Gtest-bt.c: In function 'sighandler': tests/Gtest-bt.c:158:15: warning: unused variable 'uc' [-Wunused-variable]
* Workaround volatileness warning in tests/ia64-test-setjmp.cTommi Rantala2012-09-281-1/+2
| | | | tests/ia64-test-setjmp.c:76: warning: function return types not compatible due to 'volatile'
* Avoid -Wunused-value warning in tests/Gia64-test-stack.cTommi Rantala2012-09-281-2/+3
| | | | | tests/Gia64-test-stack.c: In function 'do_unwind_tests': tests/Gia64-test-stack.c:91: warning: value computed is not used
* Clear out `ip' to avoid -Wuninitialized warning in tests/test-coredump-unwind.cTommi Rantala2012-09-281-1/+1
| | | | | | | | This one is for architectures that we have not specifically added support for in `tests/test-coredump-unwind.c'. tests/test-coredump-unwind.c: In function 'handle_sigsegv': test-coredump-unwind.c:238:10: warning: 'ip' is used uninitialized in this function [-Wuninitialized]
* Default to non-verbose mode in Ltest-cxx-exceptionsTommi Rantala2012-09-281-6/+8
|
* HPPA: kludge out unused variable in unw_get_save_loc() stubTommi Rantala2012-09-281-1/+1
|
* HPPA: properly check dwarf_get() return value in unw_step()Tommi Rantala2012-09-281-1/+1
|
* PPC: remove unused `PAGE_START' macro from Ginit.cTommi Rantala2012-09-282-10/+0
|
* Remove unused src/x86_64/Lis_signal_frame.cTommi Rantala2012-09-281-5/+0
|
* IA64: avoid -Wunused-but-set-variable in src/ia64/init.hTommi Rantala2012-09-281-6/+4
| | | | | | In file included from src/ia64/Ginit_remote.c:26:0: src/ia64/init.h: In function 'common_init': src/ia64/init.h:32:12: warning: variable 'natp' set but not used [-Wunused-but-set-variable]
* Apply UNW_ALIGN more in src/mi/mempool.cTommi Rantala2012-09-281-2/+2
| | | | | | Apply UNW_ALIGN in a few places in src/mi/mempool.c that I missed in commit c2f757418 ("Rename and share `ALIGN' macro from _UCD_internal.h").