- Upgrade to GDB 6.7. Drop redundant patches, forward-port remaining ones.
- Fix rereading of the main executable on its change.
This commit is contained in:
parent
cc171577b7
commit
eb9d945afa
55 changed files with 1702 additions and 7915 deletions
|
|
@ -64,7 +64,7 @@ diff -u -p -r1.36 value.c
|
|||
{
|
||||
/* Assume a CORE_ADDR can fit in a LONGEST (for now). Not sure
|
||||
whether we want this to be true eventually. */
|
||||
@@ -1054,6 +1053,33 @@ value_as_address (struct value *val)
|
||||
@@ -1054,6 +1053,34 @@ value_as_address (struct value *val)
|
||||
return unpack_long (value_type (val), value_contents (val));
|
||||
#endif
|
||||
}
|
||||
|
|
@ -76,6 +76,7 @@ diff -u -p -r1.36 value.c
|
|||
+value_as_address (struct value *val)
|
||||
+{
|
||||
+ CORE_ADDR addr;
|
||||
+ int addr_bit;
|
||||
+
|
||||
+ addr = value_as_address_core (val);
|
||||
+
|
||||
|
|
@ -88,7 +89,7 @@ diff -u -p -r1.36 value.c
|
|||
+ either zero or sign extended. Should ADDRESS_TO_POINTER() or
|
||||
+ some ADDRESS_TO_PRINTABLE() be used to do the conversion? */
|
||||
+
|
||||
+ int addr_bit = TARGET_ADDR_BIT;
|
||||
+ addr_bit = gdbarch_addr_bit (current_gdbarch);
|
||||
+
|
||||
+ if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT))
|
||||
+ addr &= ((CORE_ADDR) 1 << addr_bit) - 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue