| 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 | 2 |
| 3 Copyright (C) 1999-2001, 2003, 2005, 2007-2012 Free Software | 3 Copyright (C) 1999-2001, 2003, 2005, 2007-2012 Free Software |
| 4 Foundation, Inc. | 4 Foundation, Inc. |
| 5 | 5 |
| 6 Written by Michael Snyder at Cygnus Solutions. | 6 Written by Michael Snyder at Cygnus Solutions. |
| 7 Based on work by Fred Fish, Stu Grossman, Geoff Noer, and others. | 7 Based on work by Fred Fish, Stu Grossman, Geoff Noer, and others. |
| 8 | 8 |
| 9 This file is part of GDB. | 9 This file is part of GDB. |
| 10 | 10 |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 768 |
| 769 if (flags & (PR_STOPPED | PR_ISTOP)) | 769 if (flags & (PR_STOPPED | PR_ISTOP)) |
| 770 proc_prettyfprint_why (procfs_file ? procfs_file : stdout, | 770 proc_prettyfprint_why (procfs_file ? procfs_file : stdout, |
| 771 why, what, 0); | 771 why, what, 0); |
| 772 if (procfs_file) | 772 if (procfs_file) |
| 773 fflush (procfs_file); | 773 fflush (procfs_file); |
| 774 } | 774 } |
| 775 } | 775 } |
| 776 | 776 |
| 777 | 777 |
| 778 /* Provide a prototype to silence -Wmissing-prototypes. */ |
| 779 extern void _initialize_proc_api (void); |
| 780 |
| 778 void | 781 void |
| 779 _initialize_proc_api (void) | 782 _initialize_proc_api (void) |
| 780 { | 783 { |
| 781 struct cmd_list_element *c; | 784 struct cmd_list_element *c; |
| 782 | 785 |
| 783 add_setshow_boolean_cmd ("procfs-trace", no_class, &procfs_trace, _("\ | 786 add_setshow_boolean_cmd ("procfs-trace", no_class, &procfs_trace, _("\ |
| 784 Set tracing for /proc api calls."), _("\ | 787 Set tracing for /proc api calls."), _("\ |
| 785 Show tracing for /proc api calls."), NULL, | 788 Show tracing for /proc api calls."), NULL, |
| 786 set_procfs_trace_cmd, | 789 set_procfs_trace_cmd, |
| 787 NULL, /* FIXME: i18n: */ | 790 NULL, /* FIXME: i18n: */ |
| 788 &setlist, &showlist); | 791 &setlist, &showlist); |
| 789 | 792 |
| 790 add_setshow_filename_cmd ("procfs-file", no_class, &procfs_filename, _("\ | 793 add_setshow_filename_cmd ("procfs-file", no_class, &procfs_filename, _("\ |
| 791 Set filename for /proc tracefile."), _("\ | 794 Set filename for /proc tracefile."), _("\ |
| 792 Show filename for /proc tracefile."), NULL, | 795 Show filename for /proc tracefile."), NULL, |
| 793 set_procfs_file_cmd, | 796 set_procfs_file_cmd, |
| 794 NULL, /* FIXME: i18n: */ | 797 NULL, /* FIXME: i18n: */ |
| 795 &setlist, &showlist); | 798 &setlist, &showlist); |
| 796 } | 799 } |
| OLD | NEW |