mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-18 09:36:53 +00:00
2009-11-10 Tristan Gingold <gingold@adacore.com>
* avr-tdep.c (avr_make_saddr): Return 0 for NULL.
This commit is contained in:
parent
53f6a2c9fa
commit
ee143e8142
@ -1,3 +1,7 @@
|
||||
2009-11-10 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* avr-tdep.c (avr_make_saddr): Return 0 for NULL.
|
||||
|
||||
2009-11-10 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* avr-tdep.c (avr_dwarf_reg_to_regnum): New function.
|
||||
|
@ -240,6 +240,10 @@ avr_convert_iaddr_to_raw (CORE_ADDR x)
|
||||
static CORE_ADDR
|
||||
avr_make_saddr (CORE_ADDR x)
|
||||
{
|
||||
/* Return 0 for NULL. */
|
||||
if (x == 0)
|
||||
return 0;
|
||||
|
||||
return ((x) | AVR_SMEM_START);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user