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

Side by Side Diff: sim/ppc/sim_calls.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 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 | « sim/ppc/sim_callbacks.h ('k') | sim/ppc/std-config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* This file is part of the program psim. 1 /* This file is part of the program psim.
2 2
3 Copyright 1994, 1995, 1996, 1998, 2003 Andrew Cagney 3 Copyright 1994, 1995, 1996, 1998, 2003 Andrew Cagney
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, see <http://www.gnu.org/licenses/>.
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 17
19 */ 18 */
20 19
21 20
22 #include <signal.h> /* FIXME - should be machine dependant version */ 21 #include <signal.h> /* FIXME - should be machine dependant version */
23 #include <stdarg.h> 22 #include <stdarg.h>
24 #include <ctype.h> 23 #include <ctype.h>
25 24
26 #include "psim.h" 25 #include "psim.h"
27 #include "options.h" 26 #include "options.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 TRACE(trace_gdb, ("sim_do_commands(cmd=%s) called\n", 252 TRACE(trace_gdb, ("sim_do_commands(cmd=%s) called\n",
254 cmd ? cmd : "(null)")); 253 cmd ? cmd : "(null)"));
255 if (cmd != NULL) { 254 if (cmd != NULL) {
256 char **argv = buildargv(cmd); 255 char **argv = buildargv(cmd);
257 psim_command(root_device, argv); 256 psim_command(root_device, argv);
258 freeargv(argv); 257 freeargv(argv);
259 } 258 }
260 } 259 }
261 260
262 char ** 261 char **
263 sim_complete_command (SIM_DESC sd, char *text, char *word) 262 sim_complete_command (SIM_DESC sd, const char *text, const char *word)
264 { 263 {
265 return NULL; 264 return NULL;
266 } 265 }
267 266
268 /* Polling, if required */ 267 /* Polling, if required */
269 268
270 void 269 void
271 sim_io_poll_quit (void) 270 sim_io_poll_quit (void)
272 { 271 {
273 if (callbacks->poll_quit != NULL && poll_quit_count-- < 0) 272 if (callbacks->poll_quit != NULL && poll_quit_count-- < 0)
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 387
389 void * 388 void *
390 zalloc(long size) 389 zalloc(long size)
391 { 390 {
392 void *memory = (void*)xmalloc(size); 391 void *memory = (void*)xmalloc(size);
393 if (memory == NULL) 392 if (memory == NULL)
394 error("xmalloc failed\n"); 393 error("xmalloc failed\n");
395 memset(memory, 0, size); 394 memset(memory, 0, size);
396 return memory; 395 return memory;
397 } 396 }
OLDNEW
« no previous file with comments | « sim/ppc/sim_callbacks.h ('k') | sim/ppc/std-config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698