[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 15/27] MIPS: implement dwarf_to_unw_regnum() ma
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 15/27] MIPS: implement dwarf_to_unw_regnum() macro without table |
Date: |
Wed, 22 Aug 2012 14:28:41 +0300 |
---
include/tdep-mips/dwarf-config.h | 4 ++--
src/mips/Gglobal.c | 9 ---------
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/include/tdep-mips/dwarf-config.h b/include/tdep-mips/dwarf-config.h
index 250746f..0dbdc5a 100644
--- a/include/tdep-mips/dwarf-config.h
+++ b/include/tdep-mips/dwarf-config.h
@@ -1,5 +1,6 @@
/* libunwind - a platform-independent unwind library
Copyright (C) 2008 CodeSourcery
+ Copyright (C) 2012 Tommi Rantala <address@hidden>
This file is part of libunwind.
@@ -29,8 +30,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. */
explicitly defined. */
#define DWARF_NUM_PRESERVED_REGS 188
-/* FIXME: Probably unnecessary on MIPS. See mips/Gglobal.c. */
-#define DWARF_REGNUM_MAP_LENGTH 32
+#define dwarf_to_unw_regnum(reg) (((reg) < 32) ? (reg) : 0)
/* Return TRUE if the ADDR_SPACE uses big-endian byte-order. */
#define dwarf_is_big_endian(addr_space) ((addr_space)->big_endian)
diff --git a/src/mips/Gglobal.c b/src/mips/Gglobal.c
index 1aa77ea..a0386f6 100644
--- a/src/mips/Gglobal.c
+++ b/src/mips/Gglobal.c
@@ -28,15 +28,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. */
HIDDEN pthread_mutex_t mips_lock = PTHREAD_MUTEX_INITIALIZER;
HIDDEN int tdep_needs_initialization = 1;
-/* FIXME: I'm pretty sure we don't need this at all for MIPS, but "generic"
- code (include/dwarf_i.h) seems to expect it to be here at present. */
-
-HIDDEN uint8_t dwarf_to_unw_regnum_map[] =
- {
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
- 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
- };
-
HIDDEN void
tdep_init (void)
{
--
1.7.9.5
- [Libunwind-devel] [PATCH 00/27] Misc fixes II, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 04/27] Add PPC namespace checking, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 05/27] Ignore _fbss, _fdata, _ftext and _gp symbols on MIPS, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 08/27] Update .gitignore, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 11/27] MIPS: fix symbol naming for `mips_lock', `mips_local_resume', and `mips_local_addr_space_init', Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 15/27] MIPS: implement dwarf_to_unw_regnum() macro without table,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 13/27] Allow for architecture specific dwarf_to_unw_regnum(), Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 12/27] PPC: do not export dwarf_to_unw_regnum_map, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 10/27] Stop using nonportable echo arguments in tests, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 14/27] ARM: implement dwarf_to_unw_regnum() macro without table, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 17/27] Use constants for ELF magic bytes in _UCD_create.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 23/27] Avoid -Wunused-value warning in tests/Gtest-exc.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 18/27] Remove unneeded length modifier from suppressed match in sscanf() format in tests/crasher.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 19/27] Fix memory leaks in unw_create_addr_space() wrong-endian error paths, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 16/27] Fix plain return from main() in tests/test-async-sig.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 22/27] test-resume-sig-rt: test unw_resume() in presence of "realtime" signal frame, Tommi Rantala, 2012/08/22