| OLD | NEW |
| 1 /* Target-dependent code for Analog Devices Blackfin processor, for GDB. | 1 /* Target-dependent code for Analog Devices Blackfin processor, for GDB. |
| 2 | 2 |
| 3 Copyright (C) 2005-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2005-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 Contributed by Analog Devices, Inc. | 5 Contributed by Analog Devices, Inc. |
| 6 | 6 |
| 7 This file is part of GDB. | 7 This file is part of GDB. |
| 8 | 8 |
| 9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
| 10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 } | 656 } |
| 657 | 657 |
| 658 /* Determine, for architecture GDBARCH, how a return value of TYPE | 658 /* Determine, for architecture GDBARCH, how a return value of TYPE |
| 659 should be returned. If it is supposed to be returned in registers, | 659 should be returned. If it is supposed to be returned in registers, |
| 660 and READBUF is nonzero, read the appropriate value from REGCACHE, | 660 and READBUF is nonzero, read the appropriate value from REGCACHE, |
| 661 and copy it into READBUF. If WRITEBUF is nonzero, write the value | 661 and copy it into READBUF. If WRITEBUF is nonzero, write the value |
| 662 from WRITEBUF into REGCACHE. */ | 662 from WRITEBUF into REGCACHE. */ |
| 663 | 663 |
| 664 static enum return_value_convention | 664 static enum return_value_convention |
| 665 bfin_return_value (struct gdbarch *gdbarch, | 665 bfin_return_value (struct gdbarch *gdbarch, |
| 666 » » struct type *func_type, | 666 » » struct value *function, |
| 667 struct type *type, | 667 struct type *type, |
| 668 struct regcache *regcache, | 668 struct regcache *regcache, |
| 669 gdb_byte *readbuf, | 669 gdb_byte *readbuf, |
| 670 const gdb_byte *writebuf) | 670 const gdb_byte *writebuf) |
| 671 { | 671 { |
| 672 if (TYPE_LENGTH (type) > 8) | 672 if (TYPE_LENGTH (type) > 8) |
| 673 return RETURN_VALUE_STRUCT_CONVENTION; | 673 return RETURN_VALUE_STRUCT_CONVENTION; |
| 674 | 674 |
| 675 if (readbuf) | 675 if (readbuf) |
| 676 bfin_extract_return_value (type, regcache, readbuf); | 676 bfin_extract_return_value (type, regcache, readbuf); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 } | 861 } |
| 862 | 862 |
| 863 /* Provide a prototype to silence -Wmissing-prototypes. */ | 863 /* Provide a prototype to silence -Wmissing-prototypes. */ |
| 864 extern initialize_file_ftype _initialize_bfin_tdep; | 864 extern initialize_file_ftype _initialize_bfin_tdep; |
| 865 | 865 |
| 866 void | 866 void |
| 867 _initialize_bfin_tdep (void) | 867 _initialize_bfin_tdep (void) |
| 868 { | 868 { |
| 869 register_gdbarch_init (bfd_arch_bfin, bfin_gdbarch_init); | 869 register_gdbarch_init (bfd_arch_bfin, bfin_gdbarch_init); |
| 870 } | 870 } |
| OLD | NEW |