Appendix D. gdb Remote Serial Protocol
349
The target gets a struct stat of the above representation and is responsible to coerce it to the target
representation before continuing.
Note that due to size differences between the host and target representation of stat members, these
members could eventually get truncated on the target.
D.7.11.4. struct timeval
The buffer of type struct timeval used by the target and gdb is defined as follows:
struct timeval {
time_t tv_sec;
/* second */
long
tv_usec; /* microsecond */
};
The integral datatypes are conforming to the definitions given in the approriate section ((refer to
Section D.7.11.1
Integral datatypes
, for details) so this structure is of size 8 bytes.
D.7.12. Constants
The following values are used for the constants inside of the protocol. gdb and target are resposible to
translate these values before and after the call as needed.
D.7.12.1. Open flags
All values are given in hexadecimal representation.
O_RDONLY
0x0
O_WRONLY
0x1
O_RDWR
0x2
O_APPEND
0x8
O_CREAT
0x200
O_TRUNC
0x400
O_EXCL
0x800
D.7.12.2. mode_t values
All values are given in octal representation.
S_IFREG
0100000
S_IFDIR
040000
S_IRUSR
0400
S_IWUSR
0200
S_IXUSR
0100
S_IRGRP
040
S_IWGRP
020
S_IXGRP
010
S_IROTH
04
S_IWOTH
02
Summary of Contents for ENTERPRISE LINUX 4 - DEVELOPER TOOLS GUIDE
Page 1: ...Red Hat Enterprise Linux 4 Debugging with gdb ...
Page 12: ...2 Chapter 1 Debugging with gdb ...
Page 28: ...18 Chapter 4 Getting In and Out of gdb ...
Page 34: ...24 Chapter 5 gdb Commands ...
Page 44: ...34 Chapter 6 Running Programs Under gdb ...
Page 68: ...58 Chapter 8 Examining the Stack ...
Page 98: ...88 Chapter 10 Examining Data ...
Page 112: ...102 Chapter 12 Tracepoints ...
Page 118: ...108 Chapter 13 Debugging Programs That Use Overlays ...
Page 138: ...128 Chapter 14 Using gdb with Different Languages ...
Page 144: ...134 Chapter 15 Examining the Symbol Table ...
Page 170: ...160 Chapter 19 Debugging remote programs ...
Page 198: ...188 Chapter 21 Controlling gdb ...
Page 204: ...194 Chapter 22 Canned Sequences of Commands ...
Page 206: ...196 Chapter 23 Command Interpreters ...
Page 216: ...206 Chapter 25 Using gdb under gnu Emacs ...
Page 296: ...286 Chapter 27 gdb Annotations ...
Page 300: ...290 Chapter 28 Reporting Bugs in gdb ...
Page 322: ...312 Chapter 30 Using History Interactively ...
Page 362: ...352 Appendix D gdb Remote Serial Protocol ...
Page 380: ...370 Appendix F GNU GENERAL PUBLIC LICENSE ...
Page 386: ...376 Appendix G GNU Free Documentation License ...
Page 410: ......