25 lines
565 B
Text
25 lines
565 B
Text
Index: sim/msp430/interp.c
|
|
--- sim/msp430/interp.c.orig
|
|
+++ sim/msp430/interp.c
|
|
@@ -1880,18 +1880,18 @@ get_stop_addr (struct bfd *abfd)
|
|
storage_needed = bfd_get_symtab_upper_bound (abfd);
|
|
|
|
if (storage_needed < 0)
|
|
- return;
|
|
+ return 0;
|
|
|
|
if (storage_needed == 0)
|
|
{
|
|
- return;
|
|
+ return 0;
|
|
}
|
|
|
|
symbol_table = (asymbol **) xmalloc (storage_needed);
|
|
number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
|
|
|
|
if (number_of_symbols < 0)
|
|
- return;
|
|
+ return 0;
|
|
|
|
for (i = 0; i < number_of_symbols; i++)
|
|
{
|