OLD | NEW |
1 /* Machine independent support for SVR4 /proc (process file system) for GDB. | 1 /* Machine independent support for SVR4 /proc (process file system) for GDB. |
2 Copyright (C) 1999-2000, 2007-2012 Free Software Foundation, Inc. | 2 Copyright (C) 1999-2000, 2007-2012 Free Software Foundation, Inc. |
3 Written by Michael Snyder at Cygnus Solutions. | 3 Written by Michael Snyder at Cygnus Solutions. |
4 Based on work by Fred Fish, Stu Grossman, Geoff Noer, and others. | 4 Based on work by Fred Fish, Stu Grossman, Geoff Noer, and others. |
5 | 5 |
6 This file is part of GDB. | 6 This file is part of GDB. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "defs.h" | 28 #include "defs.h" |
29 | 29 |
30 #if defined (NEW_PROC_API) | 30 #if defined (NEW_PROC_API) |
31 #define _STRUCTURED_PROC 1 | 31 #define _STRUCTURED_PROC 1 |
32 #endif | 32 #endif |
33 | 33 |
34 #include <stdio.h> | 34 #include <stdio.h> |
35 #include <sys/types.h> | 35 #include <sys/types.h> |
36 #include <sys/procfs.h> | 36 #include <sys/procfs.h> |
37 | 37 |
| 38 #include "proc-utils.h" |
| 39 |
38 /* Much of the information used in the /proc interface, particularly for | 40 /* Much of the information used in the /proc interface, particularly for |
39 printing status information, is kept as tables of structures of the | 41 printing status information, is kept as tables of structures of the |
40 following form. These tables can be used to map numeric values to | 42 following form. These tables can be used to map numeric values to |
41 their symbolic names and to a string that describes their specific use. */ | 43 their symbolic names and to a string that describes their specific use. */ |
42 | 44 |
43 struct trans { | 45 struct trans { |
44 int value; /* The numeric value */ | 46 int value; /* The numeric value */ |
45 char *name; /* The equivalent symbolic value */ | 47 char *name; /* The equivalent symbolic value */ |
46 char *desc; /* Short description of value */ | 48 char *desc; /* Short description of value */ |
47 }; | 49 }; |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 } | 283 } |
282 if (!verbose) | 284 if (!verbose) |
283 fprintf (file, "\n"); | 285 fprintf (file, "\n"); |
284 } | 286 } |
285 | 287 |
286 void | 288 void |
287 proc_prettyprint_flags (unsigned long flags, int verbose) | 289 proc_prettyprint_flags (unsigned long flags, int verbose) |
288 { | 290 { |
289 proc_prettyfprint_flags (stdout, flags, verbose); | 291 proc_prettyfprint_flags (stdout, flags, verbose); |
290 } | 292 } |
OLD | NEW |