SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
25
devel/msp430/gdb/patches/patch-sim_msp430_interp_c
Normal file
25
devel/msp430/gdb/patches/patch-sim_msp430_interp_c
Normal file
|
@ -0,0 +1,25 @@
|
|||
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++)
|
||||
{
|
Loading…
Add table
Add a link
Reference in a new issue