2009-11-10 Tristan Gingold <gingold@adacore.com>

* avr-tdep.c (avr_make_saddr): Return 0 for NULL.
This commit is contained in:
Tristan Gingold 2009-11-10 10:05:47 +00:00
parent 53f6a2c9fa
commit ee143e8142
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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);
}