Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: gdb/proc-api.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/probe.c ('k') | gdb/proc-events.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « gdb/probe.c ('k') | gdb/proc-events.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698