gdb-101-xtensa-fix-on-64-bit-hosts.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 54bff650843cacd3c17a0afdb0fe32e15e1b65b0 Mon Sep 17 00:00:00 2001
  2. From: Baruch Siach <baruch@tkos.co.il>
  3. Date: Wed, 22 Jan 2014 15:02:29 +0200
  4. Subject: [PATCH] gdb: xtensa: fix on 64-bit hosts
  5. On 64-bit hosts unsigned long is 64 bit. Use uint32_t instead.
  6. gdb/
  7. 2014-01-22 Baruch Siach <baruch@tkos.co.il>
  8. * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
  9. ---
  10. Backported from: 54bff650843cacd3c17a0afdb0fe32e15e1b65b0
  11. Changes to Changelog files are dropped and #include <stdint.h> is added.
  12. gdb/xtensa-tdep.h | 3 +-
  13. 1 file changed, 2 insertion(+), 1 deletion(-)
  14. diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h
  15. index 968b9d2..d7ba562 100644
  16. --- a/gdb/xtensa-tdep.h
  17. +++ b/gdb/xtensa-tdep.h
  18. @@ -17,6 +17,7 @@
  19. You should have received a copy of the GNU General Public License
  20. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  21. +#include <stdint.h>
  22. /* XTENSA_TDEP_VERSION can/should be changed along with XTENSA_CONFIG_VERSION
  23. whenever the "tdep" structure changes in an incompatible way. */
  24. @@ -84,7 +84,7 @@ typedef enum
  25. /* Xtensa ELF core file register set representation ('.reg' section).
  26. Copied from target-side ELF header <xtensa/elf.h>. */
  27. -typedef unsigned long xtensa_elf_greg_t;
  28. +typedef uint32_t xtensa_elf_greg_t;
  29. typedef struct
  30. {
  31. --
  32. 1.8.1.4