Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: gdb/iq2000-tdep.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/interps.c ('k') | gdb/jit.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « gdb/interps.c ('k') | gdb/jit.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698