process.hh (4111:65fffcb4fae9) process.hh (4188:6a9ac3b35285)
1/*
2 * Copyright (c) 2003-2004 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 35 unchanged lines hidden (view full) ---

44class SparcLinuxProcess
45{
46 public:
47 SparcLinuxProcess();
48
49 /// Array of syscall descriptors, indexed by call number.
50 static SyscallDesc syscallDescs[];
51
1/*
2 * Copyright (c) 2003-2004 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 35 unchanged lines hidden (view full) ---

44class SparcLinuxProcess
45{
46 public:
47 SparcLinuxProcess();
48
49 /// Array of syscall descriptors, indexed by call number.
50 static SyscallDesc syscallDescs[];
51
52 /// Array of 32 bit compatibility syscall descriptors,
53 /// indexed by call number.
54 static SyscallDesc syscall32Descs[];
55
52 SyscallDesc* getDesc(int callnum);
56 SyscallDesc* getDesc(int callnum);
57 SyscallDesc* getDesc32(int callnum);
53
54 const int Num_Syscall_Descs;
58
59 const int Num_Syscall_Descs;
60 const int Num_Syscall32_Descs;
55};
56
57/// A process with emulated SPARC/Linux syscalls.
58class Sparc32LinuxProcess : public SparcLinuxProcess, public Sparc32LiveProcess
59{
60 public:
61 /// Constructor.
62 Sparc32LinuxProcess(const std::string &name,

--- 4 unchanged lines hidden (view full) ---

67 std::vector<std::string> &envp,
68 const std::string &cwd,
69 uint64_t _uid, uint64_t _euid,
70 uint64_t _gid, uint64_t _egid,
71 uint64_t _pid, uint64_t _ppid);
72
73 SyscallDesc* getDesc(int callnum)
74 {
61};
62
63/// A process with emulated SPARC/Linux syscalls.
64class Sparc32LinuxProcess : public SparcLinuxProcess, public Sparc32LiveProcess
65{
66 public:
67 /// Constructor.
68 Sparc32LinuxProcess(const std::string &name,

--- 4 unchanged lines hidden (view full) ---

73 std::vector<std::string> &envp,
74 const std::string &cwd,
75 uint64_t _uid, uint64_t _euid,
76 uint64_t _gid, uint64_t _egid,
77 uint64_t _pid, uint64_t _ppid);
78
79 SyscallDesc* getDesc(int callnum)
80 {
75 return SparcLinuxProcess::getDesc(callnum);
81 return SparcLinuxProcess::getDesc32(callnum);
76 }
77
78 void handleTrap(int trapNum, ThreadContext *tc);
79};
80
81/// A process with emulated 32 bit SPARC/Linux syscalls.
82class Sparc64LinuxProcess : public SparcLinuxProcess, public Sparc64LiveProcess
83{

--- 26 unchanged lines hidden ---
82 }
83
84 void handleTrap(int trapNum, ThreadContext *tc);
85};
86
87/// A process with emulated 32 bit SPARC/Linux syscalls.
88class Sparc64LinuxProcess : public SparcLinuxProcess, public Sparc64LiveProcess
89{

--- 26 unchanged lines hidden ---