OLD | NEW |
1 /* Target-dependent code for the IQ2000 architecture, for GDB, the GNU | 1 /* Target-dependent code for the IQ2000 architecture, for GDB, the GNU |
2 Debugger. | 2 Debugger. |
3 | 3 |
4 Copyright (C) 2000, 2004-2005, 2007-2012 Free Software Foundation, | 4 Copyright (C) 2000, 2004-2005, 2007-2012 Free Software Foundation, |
5 Inc. | 5 Inc. |
6 | 6 |
7 Contributed by Red Hat. | 7 Contributed by Red Hat. |
8 | 8 |
9 This file is part of GDB. | 9 This file is part of GDB. |
10 | 10 |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 /* Return values > 8 bytes are returned in memory, | 576 /* Return values > 8 bytes are returned in memory, |
577 pointed to by FN_RETURN_REGNUM. */ | 577 pointed to by FN_RETURN_REGNUM. */ |
578 ULONGEST return_buffer; | 578 ULONGEST return_buffer; |
579 regcache_cooked_read_unsigned (regcache, E_FN_RETURN_REGNUM, | 579 regcache_cooked_read_unsigned (regcache, E_FN_RETURN_REGNUM, |
580 &return_buffer); | 580 &return_buffer); |
581 read_memory (return_buffer, valbuf, TYPE_LENGTH (type)); | 581 read_memory (return_buffer, valbuf, TYPE_LENGTH (type)); |
582 } | 582 } |
583 } | 583 } |
584 | 584 |
585 static enum return_value_convention | 585 static enum return_value_convention |
586 iq2000_return_value (struct gdbarch *gdbarch, struct type *func_type, | 586 iq2000_return_value (struct gdbarch *gdbarch, struct value *function, |
587 struct type *type, struct regcache *regcache, | 587 struct type *type, struct regcache *regcache, |
588 gdb_byte *readbuf, const gdb_byte *writebuf) | 588 gdb_byte *readbuf, const gdb_byte *writebuf) |
589 { | 589 { |
590 if (iq2000_use_struct_convention (type)) | 590 if (iq2000_use_struct_convention (type)) |
591 return RETURN_VALUE_STRUCT_CONVENTION; | 591 return RETURN_VALUE_STRUCT_CONVENTION; |
592 if (writebuf) | 592 if (writebuf) |
593 iq2000_store_return_value (type, regcache, writebuf); | 593 iq2000_store_return_value (type, regcache, writebuf); |
594 else if (readbuf) | 594 else if (readbuf) |
595 iq2000_extract_return_value (type, regcache, readbuf); | 595 iq2000_extract_return_value (type, regcache, readbuf); |
596 return RETURN_VALUE_REGISTER_CONVENTION; | 596 return RETURN_VALUE_REGISTER_CONVENTION; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 Called by gdb at start-up. */ | 861 Called by gdb at start-up. */ |
862 | 862 |
863 /* Provide a prototype to silence -Wmissing-prototypes. */ | 863 /* Provide a prototype to silence -Wmissing-prototypes. */ |
864 extern initialize_file_ftype _initialize_iq2000_tdep; | 864 extern initialize_file_ftype _initialize_iq2000_tdep; |
865 | 865 |
866 void | 866 void |
867 _initialize_iq2000_tdep (void) | 867 _initialize_iq2000_tdep (void) |
868 { | 868 { |
869 register_gdbarch_init (bfd_arch_iq2000, iq2000_gdbarch_init); | 869 register_gdbarch_init (bfd_arch_iq2000, iq2000_gdbarch_init); |
870 } | 870 } |
OLD | NEW |