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

Side by Side Diff: gdb/utils.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/ui-out.c ('k') | gdb/v850-tdep.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
None
OLDNEW
1 /* General utility routines for GDB, the GNU debugger. 1 /* General utility routines for GDB, the GNU debugger.
2 2
3 Copyright (C) 1986, 1988-2012 Free Software Foundation, Inc. 3 Copyright (C) 1986, 1988-2012 Free Software Foundation, Inc.
4 4
5 This file is part of GDB. 5 This file is part of GDB.
6 6
7 This program is free software; you can redistribute it and/or modify 7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or 9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version. 10 (at your option) any later version.
11 11
12 This program is distributed in the hope that it will be useful, 12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details. 15 GNU General Public License for more details.
16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 19
20 #include "defs.h" 20 #include "defs.h"
21 #include "dyn-string.h" 21 #include "dyn-string.h"
22 #include "gdb_assert.h" 22 #include "gdb_assert.h"
23 #include <ctype.h> 23 #include <ctype.h>
24 #include "gdb_string.h" 24 #include "gdb_string.h"
25 #include "gdb_wait.h"
25 #include "event-top.h" 26 #include "event-top.h"
26 #include "exceptions.h" 27 #include "exceptions.h"
27 #include "gdbthread.h" 28 #include "gdbthread.h"
29 #include "fnmatch.h"
28 #ifdef HAVE_SYS_RESOURCE_H 30 #ifdef HAVE_SYS_RESOURCE_H
29 #include <sys/resource.h> 31 #include <sys/resource.h>
30 #endif /* HAVE_SYS_RESOURCE_H */ 32 #endif /* HAVE_SYS_RESOURCE_H */
31 33
32 #ifdef TUI 34 #ifdef TUI
33 #include "tui/tui.h" /* For tui_get_command_dimension. */ 35 #include "tui/tui.h" /* For tui_get_command_dimension. */
34 #endif 36 #endif
35 37
36 #ifdef __GO32__ 38 #ifdef __GO32__
37 #include <pc.h> 39 #include <pc.h>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 93
92 void (*deprecated_error_begin_hook) (void); 94 void (*deprecated_error_begin_hook) (void);
93 95
94 /* Prototypes for local functions */ 96 /* Prototypes for local functions */
95 97
96 static void vfprintf_maybe_filtered (struct ui_file *, const char *, 98 static void vfprintf_maybe_filtered (struct ui_file *, const char *,
97 va_list, int) ATTRIBUTE_PRINTF (2, 0); 99 va_list, int) ATTRIBUTE_PRINTF (2, 0);
98 100
99 static void fputs_maybe_filtered (const char *, struct ui_file *, int); 101 static void fputs_maybe_filtered (const char *, struct ui_file *, int);
100 102
101 static void do_my_cleanups (struct cleanup **, struct cleanup *);
102
103 static void prompt_for_continue (void); 103 static void prompt_for_continue (void);
104 104
105 static void set_screen_size (void); 105 static void set_screen_size (void);
106 static void set_width (void); 106 static void set_width (void);
107 107
108 /* A flag indicating whether to timestamp debugging messages. */ 108 /* A flag indicating whether to timestamp debugging messages. */
109 109
110 static int debug_timestamp = 0; 110 static int debug_timestamp = 0;
111 111
112 /* Chain of cleanup actions established with make_cleanup,
113 to be executed if an error happens. */
114
115 static struct cleanup *cleanup_chain; /* cleaned up after a failed command */
116 static struct cleanup *final_cleanup_chain; /* cleaned up when gdb exits */
117
118 /* Nonzero if we have job control. */ 112 /* Nonzero if we have job control. */
119 113
120 int job_control; 114 int job_control;
121 115
122 /* Nonzero means a quit has been requested. */ 116 /* Nonzero means a quit has been requested. */
123 117
124 int quit_flag; 118 int quit_flag;
125 119
126 /* Nonzero means quit immediately if Control-C is typed now, rather 120 /* Nonzero means quit immediately if Control-C is typed now, rather
127 than waiting until QUIT is executed. Be careful in setting this; 121 than waiting until QUIT is executed. Be careful in setting this;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 /* String to be printed before warning messages, if any. */ 155 /* String to be printed before warning messages, if any. */
162 156
163 char *warning_pre_print = "\nwarning: "; 157 char *warning_pre_print = "\nwarning: ";
164 158
165 int pagination_enabled = 1; 159 int pagination_enabled = 1;
166 static void 160 static void
167 show_pagination_enabled (struct ui_file *file, int from_tty, 161 show_pagination_enabled (struct ui_file *file, int from_tty,
168 struct cmd_list_element *c, const char *value) 162 struct cmd_list_element *c, const char *value)
169 { 163 {
170 fprintf_filtered (file, _("State of pagination is %s.\n"), value); 164 fprintf_filtered (file, _("State of pagination is %s.\n"), value);

error: old chunk mismatch

OLDNEW
« no previous file with comments | « gdb/ui-out.c ('k') | gdb/v850-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698