mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-20 02:58:09 +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>
|
2009-11-10 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* avr-tdep.c (avr_dwarf_reg_to_regnum): New function.
|
* 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
|
static CORE_ADDR
|
||||||
avr_make_saddr (CORE_ADDR x)
|
avr_make_saddr (CORE_ADDR x)
|
||||||
{
|
{
|
||||||
|
/* Return 0 for NULL. */
|
||||||
|
if (x == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
return ((x) | AVR_SMEM_START);
|
return ((x) | AVR_SMEM_START);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user