From 12df843f84c7dadade469db58e279390f16d11f1 Mon Sep 17 00:00:00 2001
From: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed, 18 Apr 2012 06:52:33 +0000
Subject: gdb/ 	Fix 64-bit constants on 32-bit hosts. 	* dwarf2read.c
 (read_unsigned_leb128): Change declaration return type 	from unsigned
 long to ULONGEST. 	(read_signed_leb128): Change declaration return type
 from long to 	LONGEST. 	(dwarf2_const_value_attr): Change declaration
 parameter value from long 	to LONGEST. 	(dwarf2_compute_name): Change
 variable value from long to LONGEST. 	(read_unsigned_leb128): Change return
 type, variable result and some 	casts from unsigned long to ULONGEST. 
 (read_signed_leb128): Change return type, variable result and some 	casts
 from long to LONGEST. 	(dwarf2_const_value_data, dwarf2_const_value_attr):
 Change parameter 	value from long to LONGEST. 	(dwarf2_const_value):
 Change variable value from long to LONGEST. 	* symmisc.c (print_symbol):
 Change SYMBOL_VALUE format strings to use 	plongest and hex_string. 
 * symtab.h (struct general_symbol_info): Change ivalue from long to 
 LONGEST, remove the comment. 	* tracepoint.c (validate_actionline,
 collect_symbol, scope_info): 	Change SYMBOL_VALUE format strings to use
 plongest and hex_string.

---
 gdb/symtab.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'gdb/symtab.h')

diff --git a/gdb/symtab.h b/gdb/symtab.h
index d9e5f4a3a28..6933c0c1cc5 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -109,10 +109,7 @@ struct general_symbol_info
 
   union
   {
-    /* The fact that this is a long not a LONGEST mainly limits the
-       range of a LOC_CONST.  Since LOC_CONST_BYTES exists, I'm not
-       sure that is a big deal.  */
-    long ivalue;
+    LONGEST ivalue;
 
     struct block *block;
 
-- 
cgit v1.2.1