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

Side by Side Diff: gdb/xstormy16-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/xml-syscall.c ('k') | gdb/xtensa-linux-nat.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 Sanyo Xstormy16a (LC590000) processor. 1 /* Target-dependent code for the Sanyo Xstormy16a (LC590000) processor.
2 2
3 Copyright (C) 2001-2005, 2007-2012 Free Software Foundation, Inc. 3 Copyright (C) 2001-2005, 2007-2012 Free Software Foundation, Inc.
4 4
5 This file is part of GDB. 5 This file is part of GDB.
6 6
7 This program is free software; you can redistribute it and/or modify 7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or 9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version. 10 (at your option) any later version.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 { 190 {
191 int len = TYPE_LENGTH (type); 191 int len = TYPE_LENGTH (type);
192 int i, regnum = E_1ST_ARG_REGNUM; 192 int i, regnum = E_1ST_ARG_REGNUM;
193 193
194 for (i = 0; i < len; i += xstormy16_reg_size) 194 for (i = 0; i < len; i += xstormy16_reg_size)
195 regcache_raw_write (regcache, regnum++, (char *) valbuf + i); 195 regcache_raw_write (regcache, regnum++, (char *) valbuf + i);
196 } 196 }
197 } 197 }
198 198
199 static enum return_value_convention 199 static enum return_value_convention
200 xstormy16_return_value (struct gdbarch *gdbarch, struct type *func_type, 200 xstormy16_return_value (struct gdbarch *gdbarch, struct value *function,
201 struct type *type, struct regcache *regcache, 201 struct type *type, struct regcache *regcache,
202 gdb_byte *readbuf, const gdb_byte *writebuf) 202 gdb_byte *readbuf, const gdb_byte *writebuf)
203 { 203 {
204 if (xstormy16_use_struct_convention (type)) 204 if (xstormy16_use_struct_convention (type))
205 return RETURN_VALUE_STRUCT_CONVENTION; 205 return RETURN_VALUE_STRUCT_CONVENTION;
206 if (writebuf) 206 if (writebuf)
207 xstormy16_store_return_value (type, regcache, writebuf); 207 xstormy16_store_return_value (type, regcache, writebuf);
208 else if (readbuf) 208 else if (readbuf)
209 xstormy16_extract_return_value (type, regcache, readbuf); 209 xstormy16_extract_return_value (type, regcache, readbuf);
210 return RETURN_VALUE_REGISTER_CONVENTION; 210 return RETURN_VALUE_REGISTER_CONVENTION;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 406
407 Note: the input address is likely to be the function start, 407 Note: the input address is likely to be the function start,
408 since this function is mainly used for advancing a breakpoint 408 since this function is mainly used for advancing a breakpoint
409 to the first line, or stepping to the first line when we have 409 to the first line, or stepping to the first line when we have
410 stepped into a function call. */ 410 stepped into a function call. */
411 411
412 static CORE_ADDR 412 static CORE_ADDR
413 xstormy16_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) 413 xstormy16_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
414 { 414 {
415 CORE_ADDR func_addr = 0, func_end = 0; 415 CORE_ADDR func_addr = 0, func_end = 0;
416 char *func_name; 416 const char *func_name;
417 417
418 if (find_pc_partial_function (pc, &func_name, &func_addr, &func_end)) 418 if (find_pc_partial_function (pc, &func_name, &func_addr, &func_end))
419 { 419 {
420 struct symtab_and_line sal; 420 struct symtab_and_line sal;
421 struct symbol *sym; 421 struct symbol *sym;
422 struct xstormy16_frame_cache cache; 422 struct xstormy16_frame_cache cache;
423 CORE_ADDR plg_end; 423 CORE_ADDR plg_end;
424 424
425 memset (&cache, 0, sizeof cache); 425 memset (&cache, 0, sizeof cache);
426 426
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 Called by gdb at start-up. */ 858 Called by gdb at start-up. */
859 859
860 /* -Wmissing-prototypes */ 860 /* -Wmissing-prototypes */
861 extern initialize_file_ftype _initialize_xstormy16_tdep; 861 extern initialize_file_ftype _initialize_xstormy16_tdep;
862 862
863 void 863 void
864 _initialize_xstormy16_tdep (void) 864 _initialize_xstormy16_tdep (void)
865 { 865 {
866 register_gdbarch_init (bfd_arch_xstormy16, xstormy16_gdbarch_init); 866 register_gdbarch_init (bfd_arch_xstormy16, xstormy16_gdbarch_init);
867 } 867 }
OLDNEW
« no previous file with comments | « gdb/xml-syscall.c ('k') | gdb/xtensa-linux-nat.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698