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

Side by Side Diff: gdb/linespec.h

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/libunwind-frame.c ('k') | gdb/linespec.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 /* Header for GDB line completion. 1 /* Header for GDB line completion.
2 Copyright (C) 2000, 2007-2012 Free Software Foundation, Inc. 2 Copyright (C) 2000, 2007-2012 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or 6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version. 7 (at your option) any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 /* Destroy a linespec_result. */ 87 /* Destroy a linespec_result. */
88 88
89 extern void destroy_linespec_result (struct linespec_result *); 89 extern void destroy_linespec_result (struct linespec_result *);
90 90
91 /* Return a cleanup that destroys a linespec_result. */ 91 /* Return a cleanup that destroys a linespec_result. */
92 92
93 extern struct cleanup * 93 extern struct cleanup *
94 make_cleanup_destroy_linespec_result (struct linespec_result *); 94 make_cleanup_destroy_linespec_result (struct linespec_result *);
95 95
96 /* Decode a linespec using the provided default symtab and line. */
97
96 extern struct symtabs_and_lines 98 extern struct symtabs_and_lines
97 decode_line_1 (char **argptr, int flags, 99 decode_line_1 (char **argptr, int flags,
98 struct symtab *default_symtab, int default_line); 100 struct symtab *default_symtab, int default_line);
99 101
100 /* Parse *ARGPTR as a linespec and return results. This is the "full" 102 /* Parse *ARGPTR as a linespec and return results. This is the "full"
101 interface to this module, which handles multiple results 103 interface to this module, which handles multiple results
102 properly. 104 properly.
103 105
104 For FLAGS, see decode_line_flags. DECODE_LINE_LIST_MODE is not 106 For FLAGS, see decode_line_flags. DECODE_LINE_LIST_MODE is not
105 valid for this function. 107 valid for this function.
(...skipping 26 matching lines...) Expand all
132 non-NULL, then only locations whose canonical name is equal (in the 134 non-NULL, then only locations whose canonical name is equal (in the
133 strcmp sense) to FILTER will be returned; all others will be 135 strcmp sense) to FILTER will be returned; all others will be
134 filtered out. */ 136 filtered out. */
135 137
136 extern void decode_line_full (char **argptr, int flags, 138 extern void decode_line_full (char **argptr, int flags,
137 struct symtab *default_symtab, int default_line, 139 struct symtab *default_symtab, int default_line,
138 struct linespec_result *canonical, 140 struct linespec_result *canonical,
139 const char *select_mode, 141 const char *select_mode,
140 const char *filter); 142 const char *filter);
141 143
144 /* Given a string, return the line specified by it, using the current
145 source symtab and line as defaults.
146 This is for commands like "list" and "breakpoint". */
147
148 extern struct symtabs_and_lines decode_line_with_current_source (char *, int);
149
150 /* Given a string, return the line specified by it, using the last displayed
151 codepoint's values as defaults, or nothing if they aren't valid. */
152
153 extern struct symtabs_and_lines decode_line_with_last_displayed (char *, int);
154
142 #endif /* defined (LINESPEC_H) */ 155 #endif /* defined (LINESPEC_H) */
OLDNEW
« no previous file with comments | « gdb/libunwind-frame.c ('k') | gdb/linespec.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698