~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to sim/rx/syscall.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copied from libgloss */
 
2
/* General use syscall.h file.
 
3
   The more ports that use this file, the simpler sim/common/nltvals.def
 
4
   remains.  */
 
5
 
 
6
#ifndef LIBGLOSS_SYSCALL_H
 
7
#define LIBGLOSS_SYSCALL_H
 
8
 
 
9
/* Note: This file may be included by assembler source.  */
 
10
 
 
11
/* These should be as small as possible to allow a port to use a trap type
 
12
   instruction, which the system call # as the trap (the d10v for instance
 
13
   supports traps 0..31).  An alternative would be to define one trap for doing
 
14
   system calls, and put the system call number in a register that is not used
 
15
   for the normal calling sequence (so that you don't have to shift down the
 
16
   arguments to add the system call number).  Obviously, if these system call
 
17
   numbers are ever changed, all of the simulators and potentially user code
 
18
   will need to be updated.  */
 
19
 
 
20
/* There is no current need for the following: SYS_execv, SYS_creat, SYS_wait,
 
21
   etc. etc.  Don't add them.  */
 
22
 
 
23
/* These are required by the ANSI C part of newlib (excluding system() of
 
24
   course).  */
 
25
#define SYS_exit        1
 
26
#define SYS_open        2
 
27
#define SYS_close       3
 
28
#define SYS_read        4
 
29
#define SYS_write       5
 
30
#define SYS_lseek       6
 
31
#define SYS_unlink      7
 
32
#define SYS_getpid      8
 
33
#define SYS_kill        9
 
34
#define SYS_fstat       10
 
35
/*#define SYS_sbrk      11 - not currently a system call, but reserved.  */
 
36
 
 
37
/* ARGV support.  */
 
38
#define SYS_argvlen     12
 
39
#define SYS_argv        13
 
40
 
 
41
/* These are extras added for one reason or another.  */
 
42
#define SYS_chdir        14
 
43
#define SYS_stat         15
 
44
#define SYS_chmod        16
 
45
#define SYS_utime        17
 
46
#define SYS_time         18
 
47
#define SYS_gettimeofday 19
 
48
#define SYS_times        20
 
49
#define SYS_link         21
 
50
#endif