]>
Commit | Line | Data |
---|---|---|
3bfa51a7 TT |
1 | 2021-04-17 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * symtab.c (global_symbol_searcher::expand_symtabs): Update. | |
4 | * symmisc.c (maintenance_expand_symtabs): Update. | |
5 | * symfile.c (expand_symtabs_matching): Update. | |
6 | * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain' | |
7 | parameter. | |
8 | * quick-symbol.h (struct quick_symbol_functions) | |
9 | <expand_symtabs_matching>: Add 'domain' parameter. | |
10 | * psymtab.c (recursively_search_psymtabs) | |
11 | (psymbol_functions::expand_symtabs_matching): Add 'domain' | |
12 | parameter. | |
13 | * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>: | |
14 | Add 'domain' parameter. | |
15 | * objfiles.h (struct objfile) <expand_symtabs_matching>: Add | |
16 | 'domain' parameter. | |
17 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
18 | * dwarf2/read.c (struct dwarf2_gdb_index) | |
19 | <expand_symtabs_matching>: Add 'domain' parameter. | |
20 | (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add | |
21 | 'domain' parameter. | |
22 | (dw2_expand_symtabs_matching) | |
23 | (dwarf2_gdb_index::expand_symtabs_matching) | |
24 | (dw2_debug_names_iterator) | |
25 | (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain' | |
26 | parameter. | |
27 | ||
03a8ea51 TT |
28 | 2021-04-17 Tom Tromey <tom@tromey.com> |
29 | ||
30 | * symtab.c (global_symbol_searcher::expand_symtabs) | |
31 | (default_collect_symbol_completion_matches_break_on): Update. | |
32 | * symmisc.c (maintenance_expand_symtabs): Update. | |
33 | * symfile.h (expand_symtabs_matching): Add search_flags | |
34 | parameter. | |
35 | * symfile.c (expand_symtabs_matching): Add search_flags | |
36 | parameter. | |
37 | * symfile-debug.c (objfile::expand_symtabs_matching): Add | |
38 | search_flags parameter. | |
39 | * quick-symbol.h (struct quick_symbol_functions) | |
40 | <expand_symtabs_matching>: Add search_flags parameter. | |
41 | * python/py-symbol.c (gdbpy_lookup_static_symbols): Update. | |
42 | * psymtab.c (recursively_search_psymtabs) | |
43 | (psymbol_functions::expand_symtabs_matching): Add search_flags | |
44 | parameter. | |
45 | * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>: | |
46 | Add search_flags parameter. | |
47 | * objfiles.h (struct objfile) <expand_symtabs_matching>: Add | |
48 | search_flags parameter. | |
49 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
50 | * dwarf2/read.c (struct dwarf2_gdb_index) | |
51 | <expand_symtabs_matching>: Add search_flags parameter. | |
52 | (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add | |
53 | search_flags parameter. | |
54 | (dw2_map_matching_symbols): Update. | |
55 | (dw2_expand_marked_cus, dw2_expand_symtabs_matching) | |
56 | (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags | |
57 | parameter. | |
58 | (dw2_debug_names_iterator): Change block_index to search flags. | |
59 | <m_block_index>: Likewise. | |
60 | (dw2_debug_names_iterator::next) | |
61 | (dwarf2_debug_names_index::lookup_symbol) | |
62 | (dwarf2_debug_names_index::expand_symtabs_for_function) | |
63 | (dwarf2_debug_names_index::map_matching_symbols) | |
64 | (dwarf2_debug_names_index::map_matching_symbols): Update. | |
65 | (dwarf2_debug_names_index::expand_symtabs_matching): Add | |
66 | search_flags parameter. | |
67 | * ada-lang.c (ada_add_global_exceptions) | |
68 | (collect_symbol_completion_matches): Update. | |
69 | ||
df35e626 TT |
70 | 2021-04-17 Tom Tromey <tom@tromey.com> |
71 | ||
72 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
73 | Update. | |
74 | * symfile.h (expand_symtabs_matching): Return bool. | |
75 | * symfile.c (expand_symtabs_matching): Return bool. | |
76 | * symfile-debug.c (objfile::expand_symtabs_matching): Return | |
77 | bool. | |
78 | * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool. | |
79 | (struct quick_symbol_functions) <expand_symtabs_matching>: Return | |
80 | bool. | |
81 | * psymtab.c (psymbol_functions::expand_symtabs_matching): Return | |
82 | bool. | |
83 | * psympriv.h (struct psymbol_functions) | |
84 | <expand_symtabs_matching>: Return bool. | |
85 | * objfiles.h (struct objfile) <expand_symtabs_matching>: Return | |
86 | bool. | |
87 | * dwarf2/read.c (struct dwarf2_gdb_index) | |
88 | <expand_symtabs_matching>: Return bool. | |
89 | (struct dwarf2_debug_names_index) <expand_symtabs_matching>: | |
90 | Return bool. | |
91 | (dw2_expand_symtabs_matching_symbol): Return bool. | |
92 | (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus) | |
93 | (dw2_expand_symtabs_matching) | |
94 | (dwarf2_gdb_index::expand_symtabs_matching) | |
95 | (dwarf2_debug_names_index::expand_symtabs_matching) | |
96 | (dwarf2_debug_names_index::expand_symtabs_matching): Return bool. | |
97 | ||
e357e990 TT |
98 | 2021-04-17 Tom Tromey <tom@tromey.com> |
99 | ||
100 | * quick-symbol.h (enum block_search_flag_values): New. | |
101 | (block_search_flags): New enum flags type. | |
102 | ||
3cbc7ac3 TT |
103 | 2021-04-16 Tom Tromey <tom@tromey.com> |
104 | ||
105 | * rust-parse.c: New file. | |
106 | * rust-exp.y: Remove. | |
107 | * Makefile.in (COMMON_SFILES): Add rust-parse.c. | |
108 | (SFILES): Remove rust-exp.y. | |
109 | (YYFILES, local-maintainer-clean): Remove rust-exp.c. | |
110 | ||
1b6b755e LM |
111 | 2021-04-16 Luis Machado <luis.machado@linaro.org> |
112 | ||
113 | * arch-utils.c (default_floatformat_for_type): Handle bfloat16. | |
114 | ||
c45ecc9d JB |
115 | 2021-04-15 John Baldwin <jhb@FreeBSD.org> |
116 | ||
117 | * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New, | |
118 | use throughout file. | |
119 | ||
a15a276b TT |
120 | 2021-04-15 Tom Tromey <tromey@adacore.com> |
121 | ||
122 | * ada-valprint.c (ada_value_print_array): Handle optimized-out | |
123 | arrays. | |
124 | ||
644a2e75 TT |
125 | 2021-04-15 Tom Tromey <tromey@adacore.com> |
126 | ||
127 | * printcmd.c (print_variable_and_value): Use | |
128 | common_val_print_checked. | |
129 | ||
9e5e03df TT |
130 | 2021-04-15 Tom Tromey <tromey@adacore.com> |
131 | ||
132 | * rust-exp.y (rust_parser::convert_ast_to_expression): Update. | |
133 | * parse.c (parser_state::push_symbol, parser_state::push_dollar): | |
134 | Update. | |
135 | * p-exp.y (variable): Update. | |
136 | * m2-exp.y (variable): Update. | |
137 | * go-exp.y (variable): Update. | |
138 | * expprint.c (dump_for_expression): New overload. | |
139 | * expop.h (check_objfile): New overload. | |
140 | (check_constant): New overload. | |
141 | (class var_value_operation): Use block_symbol. | |
142 | <get_symbol>: Rewrite. | |
143 | * eval.c (var_value_operation::evaluate) | |
144 | (var_value_operation::evaluate_funcall) | |
145 | (var_value_operation::evaluate_for_address) | |
146 | (var_value_operation::evaluate_for_address) | |
147 | (var_value_operation::evaluate_with_coercion) | |
148 | (var_value_operation::evaluate_for_sizeof) | |
149 | (var_value_operation::evaluate_for_cast): Update. | |
150 | * d-exp.y (PrimaryExpression): Update. | |
151 | * c-exp.y (variable): Update. | |
152 | * ax-gdb.c (var_value_operation::do_generate_ax): Update. | |
153 | * ada-lang.c (ada_var_value_operation::evaluate_for_cast) | |
154 | (ada_var_value_operation::evaluate) | |
155 | (ada_var_value_operation::resolve) | |
156 | (ada_funcall_operation::resolve): Update. | |
157 | * ada-exp.y (write_var_from_sym, write_object_renaming) | |
158 | (write_ambiguous_var, write_var_or_type, write_name_assoc) | |
159 | (maybe_overload): Update. | |
160 | * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite. | |
161 | ||
5809fbf2 TT |
162 | 2021-04-15 Tom Tromey <tom@tromey.com> |
163 | Andrew Burgess <andrew.burgess@embecosm.com> | |
164 | ||
165 | * NEWS: Add entry. | |
166 | * main.c (captured_main_1): Call check_quiet_mode. | |
167 | * top.c (startup_quiet): New global. | |
168 | (check_quiet_mode): New function. | |
169 | (show_startup_quiet): New function. | |
170 | (init_main): Register new command. | |
171 | * top.h (check_quiet_mode): Declare. | |
172 | ||
92e4e97a AB |
173 | 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
174 | ||
175 | PR cli/25956 | |
176 | * NEWS: Mention new early init files and command line options. | |
177 | * config.in: Regenerate. | |
178 | * configure: Regenerate. | |
179 | * configure.ac: Define GDBEARLYINIT. | |
180 | * main.c (get_earlyinit_files): New function. | |
181 | (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and | |
182 | CMDARG_EARLYINIT_COMMAND. | |
183 | (captured_main_1): Add support for new command line flags, and for | |
184 | processing startup files. | |
185 | (print_gdb_help): Include startup files in the output. | |
186 | ||
54b4dcc5 AB |
187 | 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
188 | ||
189 | * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to... | |
190 | (relocate_file_path_maybe_in_datadir): ...this. | |
191 | (class gdb_initfile_finder): New class. | |
192 | (get_init_files): Now uses gdb_initfile_finder. | |
193 | (print_gdb_help): Print 'None found' when there are no init files. | |
194 | ||
34dc0f95 TBA |
195 | 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
196 | ||
197 | * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the | |
198 | corresponding child of the abstract DIE when iterating the | |
199 | children of the concrete DIE. | |
200 | ||
329534fd TV |
201 | 2021-04-13 Tom de Vries <tdevries@suse.de> |
202 | ||
203 | * ui-style.c (read_semi_number, extended_color): Change idx parameter | |
204 | type to regoff_t *. | |
205 | ||
d9d2ef05 LM |
206 | 2021-04-13 Luis Machado <luis.machado@linaro.org> |
207 | ||
208 | * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print | |
209 | hex values. | |
210 | ||
c8a37944 WS |
211 | 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com> |
212 | ||
213 | * rs6000-tdep.c: Add support for single-stepping of | |
214 | prefixed instructions. | |
215 | ||
b722acca WS |
216 | 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com> |
217 | ||
e3d528d7 WS |
218 | PR gdb/27525 |
219 | * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to | |
220 | handle the addpcis/lnia instruction. | |
221 | ||
222 | 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com> | |
223 | ||
b722acca WS |
224 | * MAINTAINERS (Write After Approval): Add myself. |
225 | ||
6ba4cb84 CL |
226 | 2021-4-12 Carl Love <cel@us.ibm.com> |
227 | ||
228 | * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable. | |
229 | (rs6000_builtin_type_vec128): Add append_composite_type_field for | |
230 | float128. | |
231 | ||
d4717483 SM |
232 | 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca> |
233 | ||
234 | * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE. | |
235 | * nat/windows-nat.h: Likewise. | |
236 | ||
b3885679 EZ |
237 | 2021-04-10 Eli Zaretskii <eliz@gnu.org> |
238 | ||
239 | * windows-nat.c (windows_nat::handle_load_dll): Call | |
240 | windows_add_dll if get_image_name failed to glean the name of the | |
241 | DLL by using the lpImageName pointer. | |
242 | (windows_add_all_dlls): Now a thin wrapper around windows_add_dll. | |
243 | (windows_add_dll): Now does what windows_add_all_dlls did before, | |
244 | but also accepts an argument LOAD_ADDR, which, if non-NULL, | |
245 | specifies the address where the DLL was loaded into the inferior, | |
246 | and looks for the single DLL loaded at that address. | |
247 | ||
1ef6a596 LM |
248 | 2021-04-09 Luis Machado <luis.machado@linaro.org> |
249 | ||
250 | * nat/aarch64-mte-linux-ptrace.c: Update include file order. | |
251 | ||
83a559f7 DQ |
252 | 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch> |
253 | ||
254 | * darwin-nat.c (darwin_nat_target::resume): Remove status | |
255 | variable. | |
256 | ||
16e311ab FW |
257 | 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com> |
258 | ||
259 | * i386-tdep.c (i386_skip_prologue): Use symbol table to find the | |
260 | prologue end for Intel compilers. | |
261 | * amd64-tdep.c (amd64_skip_prologue): Likewise. | |
262 | * producer.c (producer_is_icc_ge_19): New function. | |
263 | * producer.h (producer_is_icc_ge_19): New declaration. | |
264 | ||
fbb3bcfc FW |
265 | 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com> |
266 | ||
267 | * producer.c: (producer_is_icc): Update for new version scheme. | |
268 | (producer_parsing_tests): Update names and expected results. | |
269 | * producer.h: (producer_is_icc): Update comment accordingly. | |
270 | ||
e97007b6 SM |
271 | 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
272 | ||
273 | * target.h (struct target_ops) <follow_fork>: Return void. | |
274 | (target_follow_fork): Likewise. | |
275 | * target.c (default_follow_fork): Likewise. | |
276 | (target_follow_fork): Likewise. | |
277 | * infrun.c (follow_fork_inferior): Adjust. | |
278 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void. | |
279 | * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise. | |
280 | * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise. | |
281 | * linux-nat.c (linux_nat_target::follow_fork): Return void. | |
282 | * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void. | |
283 | * obsd-nat.c (obsd_nat_target::follow_fork): Likewise. | |
284 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
285 | (remote_target::follow_fork): Likewise. | |
286 | * target-delegates.c: Re-generate. | |
287 | ||
dc2b480f WP |
288 | 2021-04-07 Weimin Pan <weimin.pan@oracle.com> |
289 | ||
290 | * ctfread.c (fetch_tid_type): New function, use throughout file. | |
291 | (read_forward_type): New function. | |
292 | (read_type_record): Call read_forward_type. | |
293 | ||
0a703a4c AB |
294 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
295 | ||
296 | * f-exp.h (class fortran_structop_operation): New class. | |
297 | * f-exp.y (exp): Create fortran_structop_operation instead of the | |
298 | generic structop_operation. | |
299 | * f-lang.c (fortran_undetermined::evaluate): Re-evaluate | |
300 | expression as EVAL_NORMAL if the result type was dynamic so we can | |
301 | extract the actual array bounds. | |
302 | (fortran_structop_operation::evaluate): New function. | |
303 | ||
304 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> | |
305 | ||
306 | * eval.c (evaluate_subexp_standard): Remove | |
307 | EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and | |
308 | STRUCTOP_PTR. | |
309 | ||
30ab3586 AB |
310 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
311 | ||
312 | * valops.c (value_cast): Call value_deeply_equal before performing | |
313 | any cast. | |
314 | ||
5e18990f AB |
315 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
316 | ||
317 | * gdbtypes.c (types_equal): Move pointer equality check earlier in | |
318 | the function. | |
319 | ||
56d467f4 CT |
320 | 2021-04-07 Caroline Tice <cmtice@google.com> |
321 | ||
322 | * dwarf2/read.c (try_open_dwop_file): Add path for the binary to | |
323 | the search paths used resolve relative location of .dwo file. | |
324 | ||
1fd999d9 AB |
325 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
326 | ||
327 | * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an | |
328 | assert. | |
329 | (dwarf2_section_info::get_file_name): Add an assert. | |
330 | (dwarf2_section_info::read_string): Display a minimal, sane error | |
331 | when the dwarf2_section_info is not associated with a bfd section. | |
332 | ||
79c02443 AB |
333 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
334 | ||
335 | * top.c (staged_gdb_datadir): Update comment. | |
336 | (set_gdb_datadir): Copy the value of gdb_datadir back into | |
337 | staged_datadir. | |
338 | (init_main): Initialise staged_gdb_datadir. | |
339 | ||
340d00fb TV |
340 | 2021-04-06 Tom de Vries <tdevries@suse.de> |
341 | ||
342 | PR breakpoints/25884 | |
343 | * infcmd.c (prepare_one_step): Using inline frame info to narrow | |
344 | stepping range. | |
345 | ||
d811a7cf TV |
346 | 2021-04-06 Tom de Vries <tdevries@suse.de> |
347 | ||
348 | PR tui/27680 | |
349 | * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape | |
350 | to style.parse. | |
351 | ||
306b445a SM |
352 | 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
353 | ||
354 | * avr-tdep.c (avr_frame_unwind_cache): Use | |
355 | trad_frame_saved_reg::is_addr. | |
356 | ||
9161c89a SM |
357 | 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
358 | ||
359 | * objfiles.c (get_objfile_bfd_data): Remove objfile parameter, | |
360 | adjust callers. | |
361 | ||
0072c873 SM |
362 | 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
363 | ||
364 | * psympriv.h (struct partial_symtab) <partial_symtab>: Change | |
365 | objfile parameter for objfile_per_bfd_storage, adjust callers. | |
366 | (struct standard_psymtab) <standard_psymtab>: Likewise. | |
367 | (struct legacy_psymtab) <legacy_psymtab>: Likewise. | |
368 | * psymtab.c (partial_symtab::partial_symtab): Likewise. | |
369 | * ctfread.c (struct ctf_psymtab): Likewise. | |
370 | * dwarf2/read.h (struct dwarf2_psymtab): Likewise. | |
371 | * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise. | |
372 | (dwarf2_create_include_psymtab): Likewise. | |
373 | * objfiles.h (struct objfile_per_bfd_storage) | |
374 | <objfile_per_bfd_storage>: Add bfd parameter, adjust callers. | |
375 | <get_bfd>: New method. | |
376 | <m_bfd>: New field. | |
377 | * objfiles.c (get_objfile_bfd_data): Adjust. | |
378 | ||
9984dd99 SM |
379 | 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
380 | ||
381 | * psymtab.c (partial_symtab::partial_symtab): Change | |
382 | last_objfile_name to be an std::string. | |
383 | * symfile.c (allocate_symtab): Likewise. | |
384 | ||
4a4f97c1 SM |
385 | 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
386 | ||
387 | * objfiles.h (struct objfile_per_bfd_storage) <intern>: New | |
388 | methods. | |
389 | (struct objfile) <intern>: Use | |
390 | objfile::objfile_per_bfd_storage::intern. | |
391 | ||
0672875f SM |
392 | 2021-04-01 Simon Marchi <simon.marchi@efficios.com> |
393 | ||
394 | * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses | |
395 | with type::is_flag_enum. | |
396 | ||
9902b327 SM |
397 | 2021-04-01 Simon Marchi <simon.marchi@efficios.com> |
398 | ||
399 | * gdbtypes.h (struct type) <is_flag_enum, | |
400 | set_is_flag_enum>: New methods. | |
401 | (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all | |
402 | write call sites to use type::set_is_flag_enum. | |
403 | ||
3bc440a2 SM |
404 | 2021-04-01 Simon Marchi <simon.marchi@efficios.com> |
405 | ||
406 | * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses | |
407 | with type::is_declared_class. | |
408 | ||
aa70e35c SM |
409 | 2021-04-01 Simon Marchi <simon.marchi@efficios.com> |
410 | ||
411 | * gdbtypes.h (struct type) <is_declared_class, | |
412 | set_is_declared_class>: New methods. | |
413 | (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all | |
414 | write call sites to use type::set_is_declared_class. | |
415 | ||
bfb9f5dc BS |
416 | 2021-02-28 Boris Staletic <boris.staletic@gmail.com> |
417 | ||
418 | * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+ | |
419 | to avoid deprecation warnings. | |
420 | ||
733f5eea ML |
421 | 2021-04-01 Martin Liska <mliska@suse.cz> |
422 | ||
423 | * cp-name-parser.y: Use startswith instead of strncmp. | |
424 | * m2-exp.y: Likewise. | |
425 | * macroexp.c (substitute_args): Likewise. | |
426 | * mi/mi-main.c (command_notifies_uscc_observer): Likewise. | |
427 | * rust-exp.y: Likewise. | |
428 | ||
af82f89d TT |
429 | 2021-03-31 Tom Tromey <tom@tromey.com> |
430 | ||
431 | * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge | |
432 | with dw2_map_matching_symbols. | |
433 | (dwarf2_gdb_index::expand_symtabs_matching): Merge with | |
434 | dw2_expand_symtabs_matching. | |
435 | ||
3570682a TT |
436 | 2021-03-31 Tom Tromey <tromey@adacore.com> |
437 | ||
438 | * dwarf2/stringify.h: Fix typo. | |
439 | ||
8a91fbdf SM |
440 | 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
441 | ||
442 | PR gdb/27541 | |
443 | * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd | |
444 | with objfiles using READNOW. | |
445 | ||
9f67fc59 TT |
446 | 2021-03-29 Tom Tromey <tromey@adacore.com> |
447 | ||
448 | * top.c (check_frame_language_change): Update. | |
449 | * language.c (language_info): Remove parameter. | |
450 | * language.h (language_info): Remove parameter. | |
451 | ||
9b8ffbf4 LM |
452 | 2021-03-29 Luis Machado <luis.machado@linaro.org> |
453 | ||
454 | * compile/compile.c (get_args): Don't add empty argv entries. | |
455 | ||
25b48839 RO |
456 | 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
457 | ||
458 | gdb: | |
459 | * procfs.c (procfs_target::attach): Define inf. | |
460 | Use it. | |
461 | (procfs_target::create_inferior): Likewise. | |
462 | ||
edc02ceb TT |
463 | 2021-03-28 Tom Tromey <tom@tromey.com> |
464 | ||
465 | * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c. | |
466 | (elf_symfile_read): Simplify. | |
467 | * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c. | |
468 | (make_lazy_dwarf_reader): New function. | |
469 | (make_dwarf_gdb_index, make_dwarf_debug_names): Now static. | |
470 | (dwarf2_initialize_objfile): Return void. Remove index_kind | |
471 | parameter. Push on 'qf' list. | |
472 | * dwarf2/public.h (dwarf2_initialize_objfile): Change return | |
473 | type. Remove 'index_kind' parameter. | |
474 | (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare. | |
475 | ||
6e23d91a TT |
476 | 2021-03-27 Tom Tromey <tom@tromey.com> |
477 | ||
478 | * elfread.c (elf_sym_fns_lazy_psyms): Don't declare. | |
479 | ||
594b8948 TT |
480 | 2021-03-27 Tom Tromey <tom@tromey.com> |
481 | ||
482 | * elfread.c (elf_symfile_read): Don't clear 'qf'. | |
483 | ||
efe1ecd8 LS |
484 | 2021-03-26 Lancelot Six <lsix@lancelotsix.com> |
485 | ||
486 | * contrib/gdb-add-index.sh: Avoid variable shadowing and get | |
487 | rid of 'local'. | |
488 | ||
f4655dee TT |
489 | 2021-03-26 Tom Tromey <tom@tromey.com> |
490 | ||
491 | * symtab.c (struct output_source_filename_data): Add 'output' | |
492 | method and operator(). | |
493 | (output_source_filename_data::output): Rename from | |
494 | output_source_filename. | |
495 | (output_partial_symbol_filename): Remove. | |
496 | (info_sources_command): Update. | |
497 | (struct add_partial_filename_data): Add operator(). | |
498 | (add_partial_filename_data::operator()): Rename from | |
499 | maybe_add_partial_symtab_filename. | |
500 | (make_source_files_completion_list): Update. | |
501 | * symfile.c (quick_symbol_functions): Update. | |
502 | * symfile-debug.c (objfile::map_symbol_filenames): Update. | |
503 | * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and | |
504 | 'need_fullname'. Remove 'data' parameter. | |
505 | (struct quick_symbol_functions) <map_symbol_filenames>: Likewise. | |
506 | * psymtab.c (psymbol_functions::map_symbol_filenames): Update. | |
507 | * psympriv.h (struct psymbol_functions) <map_symbol_filenames>: | |
508 | Change type of 'fun' and 'need_fullname'. Remove 'data' | |
509 | parameter. | |
510 | * objfiles.h (struct objfile) <map_symbol_filenames>: Change type | |
511 | of 'fun' and 'need_fullname'. Remove 'data' parameter. | |
512 | * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore' | |
513 | parameter. | |
514 | (mi_cmd_file_list_exec_source_files): Update. | |
515 | * dwarf2/read.c | |
516 | (dwarf2_base_index_functions::map_symbol_filenames): Update. | |
517 | ||
2315bb2d TT |
518 | 2021-03-26 Tom Tromey <tom@tromey.com> |
519 | ||
520 | * ada-lang.c (struct match_data): Add operator(). | |
521 | (match_data::operator()): Rename from aux_add_nonlocal_symbols. | |
522 | (callback): Remove 'callback'. | |
523 | ||
e2cd5ca4 TT |
524 | 2021-03-26 Tom Tromey <tom@tromey.com> |
525 | ||
526 | * psymtab.c (psymbol_functions::expand_symtabs_matching): Only | |
527 | call make_ignore_params once. | |
528 | ||
cd43f63e TT |
529 | 2021-03-26 Tom Tromey <tom@tromey.com> |
530 | ||
531 | * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove | |
532 | "user" check. | |
533 | ||
b4b1a226 SM |
534 | 2021-03-26 Simon Marchi <simon.marchi@efficios.com> |
535 | Pedro Alves <pedro@palves.net> | |
536 | ||
537 | * async-event.c: Include "infrun.h". | |
538 | (async_event_handler_marked): New. | |
539 | * async-event.h (async_event_handler_marked): Declare. | |
540 | * infrun.c (maybe_set_commit_resumed_all_targets): Switch to | |
541 | inferior before calling target method. Don't commit-resumed if | |
542 | target_has_pending_events is true. | |
543 | * remote.c (remote_target::has_pending_events): New. | |
544 | * target-delegates.c: Regenerate. | |
545 | * target.c (target_has_pending_events): New. | |
546 | * target.h (target_ops::has_pending_events): New target method. | |
547 | (target_has_pending_events): New. | |
548 | ||
1192f124 SM |
549 | 2021-03-26 Simon Marchi <simon.marchi@efficios.com> |
550 | Pedro Alves <pedro@palves.net> | |
551 | ||
552 | * infcmd.c (run_command_1, attach_command, detach_command) | |
553 | (interrupt_target_1): Use scoped_disable_commit_resumed. | |
554 | * infrun.c (do_target_resume): Remove | |
555 | target_commit_resume call. | |
556 | (commit_resume_all_targets): Remove. | |
557 | (maybe_set_commit_resumed_all_targets): New. | |
558 | (maybe_call_commit_resumed_all_targets): New. | |
559 | (enable_commit_resumed): New. | |
560 | (scoped_disable_commit_resumed::scoped_disable_commit_resumed) | |
561 | (scoped_disable_commit_resumed::~scoped_disable_commit_resumed) | |
562 | (scoped_disable_commit_resumed::reset) | |
563 | (scoped_disable_commit_resumed::reset_and_commit) | |
564 | (scoped_enable_commit_resumed::scoped_enable_commit_resumed) | |
565 | (scoped_enable_commit_resumed::~scoped_enable_commit_resumed): | |
566 | New. | |
567 | (proceed): Use scoped_disable_commit_resumed and | |
568 | maybe_call_commit_resumed_all_targets. | |
569 | (fetch_inferior_event): Use scoped_disable_commit_resumed. | |
570 | * infrun.h (struct scoped_disable_commit_resumed): New. | |
571 | (maybe_call_commit_resumed_all_process_targets): New. | |
572 | (struct scoped_enable_commit_resumed): New. | |
573 | * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed. | |
574 | * process-stratum-target.h (class process_stratum_target): | |
575 | <commit_resumed_state>: New. | |
576 | * record-full.c (record_full_wait_1): Change commit_resumed_state | |
577 | around calling commit_resumed. | |
578 | * remote.c (class remote_target) <commit_resume>: Rename to... | |
579 | <commit_resumed>: ... this. | |
580 | (struct stop_reply): Move up. | |
581 | (remote_target::commit_resume): Rename to... | |
582 | (remote_target::commit_resumed): ... this. Check if there is any | |
583 | thread pending vCont resume. | |
584 | (remote_target::remote_stop_ns): Generate stop replies for resumed | |
585 | but pending vCont threads. | |
586 | (remote_target::wait_ns): Add gdb_assert. | |
587 | * target-delegates.c: Regenerate. | |
588 | * target.c (target_wait, target_resume): Assert that the current | |
589 | process_stratum target isn't in commit-resumed state. | |
590 | (defer_target_commit_resume): Remove. | |
591 | (target_commit_resume): Remove. | |
592 | (target_commit_resumed): New. | |
593 | (make_scoped_defer_target_commit_resume): Remove. | |
594 | (target_stop): Assert that the current process_stratum target | |
595 | isn't in commit-resumed state. | |
596 | * target.h (struct target_ops) <commit_resume>: Rename to ... | |
597 | <commit_resumed>: ... this. | |
598 | (target_commit_resume): Remove. | |
599 | (target_commit_resumed): New. | |
600 | (make_scoped_defer_target_commit_resume): Remove. | |
601 | * top.c (wait_sync_command_done): Use | |
602 | scoped_enable_commit_resumed. | |
603 | ||
e5b9b39f PA |
604 | 2021-03-26 Pedro Alves <pedro@palves.net> |
605 | ||
606 | * target.c (target_always_non_stop_p): Also check whether the | |
607 | target can async. | |
608 | ||
bab287cd TT |
609 | 2021-03-26 Tom Tromey <tom@tromey.com> |
610 | ||
611 | * dwarf2/read.c (dwarf2_read_debug_names) | |
612 | (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges) | |
613 | (dw2_debug_names_iterator::next, create_type_unit_group): | |
614 | Simplify. | |
615 | ||
eff4f69d PA |
616 | 2021-03-25 Pedro Alves <pedro@palves.net> |
617 | ||
618 | * gdb.server/bkpt-other-inferior.exp: Only enable remote output | |
619 | around setting the breakpoint. | |
620 | ||
323fd5b9 PA |
621 | 2021-03-25 Pedro Alves <pedro@palves.net> |
622 | ||
623 | * remote.c | |
624 | (remote_target::check_pending_events_prevent_wildcard_vcont): | |
625 | Check whether the event's ptid is not null_ptid before looking up | |
626 | the corresponding inferior. | |
627 | ||
d3cbca38 CD |
628 | 2021-03-24 Changbin Du <changbin.du@gmail.com> |
629 | ||
630 | * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to | |
631 | read_code. | |
632 | ||
328d42d8 SM |
633 | 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
634 | ||
635 | * target.h (current_top_target): Remove, make callers use the | |
636 | current inferior instead. | |
637 | * target.c (current_top_target): Remove. | |
638 | ||
d777bf0d SM |
639 | 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
640 | ||
641 | * target.h (target_shortname): Change to function declaration. | |
642 | (target_longname): Likewise. | |
643 | (target_attach_no_wait): Likewise. | |
644 | (target_post_attach): Likewise. | |
645 | (target_prepare_to_store): Likewise. | |
646 | (target_supports_enable_disable_tracepoint): Likewise. | |
647 | (target_supports_string_tracing): Likewise. | |
648 | (target_supports_evaluation_of_breakpoint_conditions): Likewise. | |
649 | (target_supports_dumpcore): Likewise. | |
650 | (target_dumpcore): Likewise. | |
651 | (target_can_run_breakpoint_commands): Likewise. | |
652 | (target_files_info): Likewise. | |
653 | (target_post_startup_inferior): Likewise. | |
654 | (target_insert_fork_catchpoint): Likewise. | |
655 | (target_remove_fork_catchpoint): Likewise. | |
656 | (target_insert_vfork_catchpoint): Likewise. | |
657 | (target_remove_vfork_catchpoint): Likewise. | |
658 | (target_insert_exec_catchpoint): Likewise. | |
659 | (target_remove_exec_catchpoint): Likewise. | |
660 | (target_set_syscall_catchpoint): Likewise. | |
661 | (target_rcmd): Likewise. | |
662 | (target_can_lock_scheduler): Likewise. | |
663 | (target_can_async_p): Likewise. | |
664 | (target_is_async_p): Likewise. | |
665 | (target_execution_direction): Likewise. | |
666 | (target_extra_thread_info): Likewise. | |
667 | (target_pid_to_exec_file): Likewise. | |
668 | (target_thread_architecture): Likewise. | |
669 | (target_find_memory_regions): Likewise. | |
670 | (target_make_corefile_notes): Likewise. | |
671 | (target_get_bookmark): Likewise. | |
672 | (target_goto_bookmark): Likewise. | |
673 | (target_stopped_by_watchpoint): Likewise. | |
674 | (target_stopped_by_sw_breakpoint): Likewise. | |
675 | (target_supports_stopped_by_sw_breakpoint): Likewise. | |
676 | (target_stopped_by_hw_breakpoint): Likewise. | |
677 | (target_supports_stopped_by_hw_breakpoint): Likewise. | |
678 | (target_have_steppable_watchpoint): Likewise. | |
679 | (target_can_use_hardware_watchpoint): Likewise. | |
680 | (target_region_ok_for_hw_watchpoint): Likewise. | |
681 | (target_can_do_single_step): Likewise. | |
682 | (target_insert_watchpoint): Likewise. | |
683 | (target_remove_watchpoint): Likewise. | |
684 | (target_insert_hw_breakpoint): Likewise. | |
685 | (target_remove_hw_breakpoint): Likewise. | |
686 | (target_can_accel_watchpoint_condition): Likewise. | |
687 | (target_can_execute_reverse): Likewise. | |
688 | (target_get_ada_task_ptid): Likewise. | |
689 | (target_filesystem_is_local): Likewise. | |
690 | (target_trace_init): Likewise. | |
691 | (target_download_tracepoint): Likewise. | |
692 | (target_can_download_tracepoint): Likewise. | |
693 | (target_download_trace_state_variable): Likewise. | |
694 | (target_enable_tracepoint): Likewise. | |
695 | (target_disable_tracepoint): Likewise. | |
696 | (target_trace_start): Likewise. | |
697 | (target_trace_set_readonly_regions): Likewise. | |
698 | (target_get_trace_status): Likewise. | |
699 | (target_get_tracepoint_status): Likewise. | |
700 | (target_trace_stop): Likewise. | |
701 | (target_trace_find): Likewise. | |
702 | (target_get_trace_state_variable_value): Likewise. | |
703 | (target_save_trace_data): Likewise. | |
704 | (target_upload_tracepoints): Likewise. | |
705 | (target_upload_trace_state_variables): Likewise. | |
706 | (target_get_raw_trace_data): Likewise. | |
707 | (target_get_min_fast_tracepoint_insn_len): Likewise. | |
708 | (target_set_disconnected_tracing): Likewise. | |
709 | (target_set_circular_trace_buffer): Likewise. | |
710 | (target_set_trace_buffer_size): Likewise. | |
711 | (target_set_trace_notes): Likewise. | |
712 | (target_get_tib_address): Likewise. | |
713 | (target_set_permissions): Likewise. | |
714 | (target_static_tracepoint_marker_at): Likewise. | |
715 | (target_static_tracepoint_markers_by_strid): Likewise. | |
716 | (target_traceframe_info): Likewise. | |
717 | (target_use_agent): Likewise. | |
718 | (target_can_use_agent): Likewise. | |
719 | (target_augmented_libraries_svr4_read): Likewise. | |
720 | (target_log_command): Likewise. | |
721 | * target.c (target_shortname): New. | |
722 | (target_longname): New. | |
723 | (target_attach_no_wait): New. | |
724 | (target_post_attach): New. | |
725 | (target_prepare_to_store): New. | |
726 | (target_supports_enable_disable_tracepoint): New. | |
727 | (target_supports_string_tracing): New. | |
728 | (target_supports_evaluation_of_breakpoint_conditions): New. | |
729 | (target_supports_dumpcore): New. | |
730 | (target_dumpcore): New. | |
731 | (target_can_run_breakpoint_commands): New. | |
732 | (target_files_info): New. | |
733 | (target_post_startup_inferior): New. | |
734 | (target_insert_fork_catchpoint): New. | |
735 | (target_remove_fork_catchpoint): New. | |
736 | (target_insert_vfork_catchpoint): New. | |
737 | (target_remove_vfork_catchpoint): New. | |
738 | (target_insert_exec_catchpoint): New. | |
739 | (target_remove_exec_catchpoint): New. | |
740 | (target_set_syscall_catchpoint): New. | |
741 | (target_rcmd): New. | |
742 | (target_can_lock_scheduler): New. | |
743 | (target_can_async_p): New. | |
744 | (target_is_async_p): New. | |
745 | (target_execution_direction): New. | |
746 | (target_extra_thread_info): New. | |
747 | (target_pid_to_exec_file): New. | |
748 | (target_thread_architecture): New. | |
749 | (target_find_memory_regions): New. | |
750 | (target_make_corefile_notes): New. | |
751 | (target_get_bookmark): New. | |
752 | (target_goto_bookmark): New. | |
753 | (target_stopped_by_watchpoint): New. | |
754 | (target_stopped_by_sw_breakpoint): New. | |
755 | (target_supports_stopped_by_sw_breakpoint): New. | |
756 | (target_stopped_by_hw_breakpoint): New. | |
757 | (target_supports_stopped_by_hw_breakpoint): New. | |
758 | (target_have_steppable_watchpoint): New. | |
759 | (target_can_use_hardware_watchpoint): New. | |
760 | (target_region_ok_for_hw_watchpoint): New. | |
761 | (target_can_do_single_step): New. | |
762 | (target_insert_watchpoint): New. | |
763 | (target_remove_watchpoint): New. | |
764 | (target_insert_hw_breakpoint): New. | |
765 | (target_remove_hw_breakpoint): New. | |
766 | (target_can_accel_watchpoint_condition): New. | |
767 | (target_can_execute_reverse): New. | |
768 | (target_get_ada_task_ptid): New. | |
769 | (target_filesystem_is_local): New. | |
770 | (target_trace_init): New. | |
771 | (target_download_tracepoint): New. | |
772 | (target_can_download_tracepoint): New. | |
773 | (target_download_trace_state_variable): New. | |
774 | (target_enable_tracepoint): New. | |
775 | (target_disable_tracepoint): New. | |
776 | (target_trace_start): New. | |
777 | (target_trace_set_readonly_regions): New. | |
778 | (target_get_trace_status): New. | |
779 | (target_get_tracepoint_status): New. | |
780 | (target_trace_stop): New. | |
781 | (target_trace_find): New. | |
782 | (target_get_trace_state_variable_value): New. | |
783 | (target_save_trace_data): New. | |
784 | (target_upload_tracepoints): New. | |
785 | (target_upload_trace_state_variables): New. | |
786 | (target_get_raw_trace_data): New. | |
787 | (target_get_min_fast_tracepoint_insn_len): New. | |
788 | (target_set_disconnected_tracing): New. | |
789 | (target_set_circular_trace_buffer): New. | |
790 | (target_set_trace_buffer_size): New. | |
791 | (target_set_trace_notes): New. | |
792 | (target_get_tib_address): New. | |
793 | (target_set_permissions): New. | |
794 | (target_static_tracepoint_marker_at): New. | |
795 | (target_static_tracepoint_markers_by_strid): New. | |
796 | (target_traceframe_info): New. | |
797 | (target_use_agent): New. | |
798 | (target_can_use_agent): New. | |
799 | (target_augmented_libraries_svr4_read): New. | |
800 | (target_log_command): New. | |
801 | * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust. | |
802 | * infrun.c (set_schedlock_func): Adjust. | |
803 | * mi/mi-main.c (exec_reverse_continue): Adjust. | |
804 | * reverse.c (exec_reverse_once): Adjust. | |
805 | * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust. | |
806 | * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust. | |
807 | * remote-sim.c (gdbsim_target::detach): Adjust. | |
808 | (gdbsim_target::files_info): Adjust. | |
809 | ||
b64f703b TT |
810 | 2021-03-24 Tom Tromey <tom@tromey.com> |
811 | ||
812 | * dwarf2/read.c (dw2_map_matching_symbols): Update. | |
813 | (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter. | |
814 | (check_match, dw2_expand_symtabs_matching) | |
815 | (dwarf2_debug_names_index::map_matching_symbols) | |
816 | (dwarf2_debug_names_index::expand_symtabs_matching): Update. | |
817 | ||
68f115f8 KS |
818 | 2021-03-24 Keith Seitz <keiths@redhat.com> |
819 | ||
820 | * compile/compile-cplus-types.c | |
821 | (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS | |
822 | thinko. | |
823 | ||
41c0087b SM |
824 | 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
825 | ||
826 | * gdbarch.sh (gdbarch_data_registry): Make static. | |
827 | * gdbarch.c: Re-generate. | |
828 | ||
ce192338 LM |
829 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
830 | ||
831 | * NEWS: Mention memory tagging changes. | |
832 | ||
bef382e6 LM |
833 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
834 | ||
835 | * printcmd.c (decode_format): Handle the 'm' modifier. | |
836 | (do_examine): Display allocation tags when required/supported. | |
837 | (should_validate_memtags): New function. | |
838 | (print_command_1): Display memory tag mismatches. | |
839 | * valprint.c (show_memory_tag_violations): New function. | |
840 | (value_print_option_defs): Add new option "memory-tag-violations". | |
841 | (user_print_options) <memory_tag_violations>: Initialize to 1. | |
842 | * valprint.h (struct format_data) <print_tags>: New field. | |
843 | (value_print_options) <memory_tag_violations>: New field. | |
844 | ||
48136e00 LM |
845 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
846 | ||
847 | * printcmd.c: Include gdbsupport/rsp-low.h. | |
848 | (memory_tag_list): New static global. | |
849 | (process_print_command_args): Factored out of | |
850 | print_command_1. | |
851 | (print_command_1): Use process_print_command_args. | |
852 | (show_addr_not_tagged, show_memory_tagging_unsupported) | |
853 | (memory_tag_command, memory_tag_print_tag_command) | |
854 | (memory_tag_print_logical_tag_command) | |
855 | (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input) | |
856 | (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input) | |
857 | (memory_tag_set_allocation_tag_command, memory_tag_check_command): New | |
858 | functions. | |
859 | (_initialize_printcmd): Add "memory-tag" prefix and subcommands. | |
860 | ||
ffcc2a15 LM |
861 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
862 | ||
863 | * aarch64-linux-tdep.c | |
864 | (aarch64_linux_iterate_over_regset_sections): Handle MTE register set. | |
865 | * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define. | |
866 | ||
cf44c9fa LM |
867 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
868 | ||
869 | * aarch64-linux-tdep.c | |
870 | (aarch64_linux_report_signal_info): New function. | |
871 | (aarch64_linux_init_abi): Register | |
872 | aarch64_linux_report_signal_info as the report_signal_info hook. | |
873 | * arch/aarch64-linux.h (SEGV_MTEAERR): Define. | |
874 | (SEGV_MTESERR): Define. | |
875 | ||
b4a7d4fc LM |
876 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
877 | ||
878 | * aarch64-linux-tdep.c: Include gdbsupport/selftest.h. | |
879 | (aarch64_linux_ltag_tests): New function. | |
880 | (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests. | |
881 | ||
c7782e50 LM |
882 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
883 | ||
884 | * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h. | |
885 | (aarch64_mte_get_atag, aarch64_linux_tagged_address_p) | |
886 | (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags) | |
887 | (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New | |
888 | functions. | |
889 | (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks. | |
890 | * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits) | |
891 | (aarch64_mte_make_ltag, aarch64_linux_set_ltag) | |
892 | (aarch64_linux_get_ltag): New functions. | |
893 | * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT) | |
894 | (AARCH64_MTE_LOGICAL_MAX_VALUE): Define. | |
895 | (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag) | |
896 | (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes. | |
897 | ||
1e735120 LM |
898 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
899 | ||
900 | * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag | |
901 | bit. | |
902 | (struct smaps_data): New struct. | |
903 | (decode_vmflags): Handle the 'mt' flag. | |
904 | (parse_smaps_data): New function, refactored from | |
905 | linux_find_memory_regions_full. | |
906 | (linux_address_in_memtag_page): New function. | |
907 | (linux_find_memory_regions_full): Refactor into parse_smaps_data. | |
908 | * linux-tdep.h (linux_address_in_memtag_page): New prototype. | |
909 | ||
93e447c6 LM |
910 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
911 | ||
912 | * linux-tdep.c (linux_find_memory_regions_full): Use std::string | |
913 | instead of char arrays. | |
914 | ||
4601818e LM |
915 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
916 | ||
917 | * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o. | |
918 | (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and | |
919 | nat/aarch64-mte-linux-ptrace.h. | |
920 | * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h. | |
921 | (aarch64_linux_nat_target) <supports_memory_tagging>: New method | |
922 | override. | |
923 | <fetch_memtags>: New method override. | |
924 | <store_memtags>: New method override. | |
925 | (aarch64_linux_nat_target::supports_memory_tagging): New method. | |
926 | (aarch64_linux_nat_target::fetch_memtags): New method. | |
927 | (aarch64_linux_nat_target::store_memtags): New method. | |
928 | * arch/aarch64-mte-linux.c: New file. | |
929 | * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h. | |
930 | (AARCH64_MTE_GRANULE_SIZE): Define. | |
931 | (aarch64_memtag_type): New enum. | |
932 | (aarch64_mte_get_tag_granules): New prototype. | |
933 | * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o. | |
934 | * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o. | |
935 | * nat/aarch64-mte-linux-ptrace.c: New file. | |
936 | * nat/aarch64-mte-linux-ptrace.h: New file. | |
937 | ||
3f3bd8b8 LM |
938 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
939 | ||
940 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h. | |
941 | * nat/aarch64-mte-linux-ptrace.h: New file. | |
942 | ||
5e984dbf LM |
943 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
944 | ||
945 | * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function. | |
946 | (store_mteregs_to_thread): New function. | |
947 | (aarch64_linux_nat_target::fetch_registers): Update to call | |
948 | fetch_mteregs_from_thread. | |
949 | (aarch64_linux_nat_target::store_registers): Update to call | |
950 | store_mteregs_to_thread. | |
951 | * aarch64-tdep.c (aarch64_mte_register_names): New struct. | |
952 | (aarch64_cannot_store_register): Handle MTE registers. | |
953 | (aarch64_gdbarch_init): Initialize and setup MTE registers. | |
954 | * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field. | |
955 | <has_mte>: New method. | |
956 | * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define. | |
957 | ||
c1bd443b LM |
958 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
959 | ||
960 | * aarch64-linux-nat.c | |
961 | (aarch64_linux_nat_target::read_description): Take MTE flag into | |
962 | account. | |
963 | Slight refactor to hwcap flag checking. | |
964 | * aarch64-linux-tdep.c | |
965 | (aarch64_linux_core_read_description): Likewise. | |
966 | * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for | |
967 | MTE. | |
968 | (aarch64_read_description): Add mte_p parameter and update to use it. | |
969 | Update the documentation. | |
970 | (aarch64_gdbarch_init): Update call to aarch64_read_description. | |
971 | * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter. | |
972 | * arch/aarch64.c: Include ../features/aarch64-mte.c. | |
973 | (aarch64_create_target_description): Add mte_p parameter and update | |
974 | the code to use it. | |
975 | * arch/aarch64.h (aarch64_create_target_description): Add mte_p | |
976 | parameter. | |
977 | * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml. | |
978 | * features/aarch64-mte.c: New file, generated. | |
979 | * features/aarch64-mte.xml: New file. | |
980 | ||
04245125 LM |
981 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
982 | ||
983 | * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h. | |
984 | * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h. | |
985 | * aarch64-linux-tdep.c: Likewise | |
986 | * arch/aarch64-mte-linux.h: New file. | |
987 | ||
754487e2 LM |
988 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
989 | ||
990 | * remote: Include gdbsupport/selftest.h. | |
991 | (test_memory_tagging_functions): New function. | |
992 | (_initialize_remote): Register test_memory_tagging_functions. | |
993 | ||
2c2e7f87 LM |
994 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
995 | ||
996 | * remote.c (PACKET_memory_tagging_feature): New enum. | |
997 | (remote_memory_tagging_p): New function. | |
998 | (remote_protocol_features): New "memory-tagging" entry. | |
999 | (remote_target::remote_query_supported): Handle memory tagging | |
1000 | support. | |
1001 | (remote_target::supports_memory_tagging): Implement. | |
1002 | (create_fetch_memtags_request, parse_fetch_memtags_reply) | |
1003 | (create_store_memtags_request): New functions. | |
1004 | (remote_target::fetch_memtags): Implement. | |
1005 | (remote_target::store_memtags): Implement. | |
1006 | (_initialize_remote): Add new "memory-tagging-feature" | |
1007 | config command. | |
1008 | ||
c193949e LM |
1009 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
1010 | ||
1011 | * arch-utils.c (default_memtag_to_string, default_tagged_address_p) | |
1012 | (default_memtag_matches_p, default_set_memtags) | |
1013 | (default_get_memtag): New functions. | |
1014 | * arch-utils.h (default_memtag_to_string, default_tagged_address_p) | |
1015 | (default_memtag_matches_p, default_set_memtags) | |
1016 | (default_get_memtag): New prototypes. | |
1017 | * gdbarch.c: Regenerate. | |
1018 | * gdbarch.h: Regenerate. | |
1019 | * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p) | |
1020 | (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks. | |
1021 | (enum memtag_type): New enum. | |
1022 | ||
dbe692af LM |
1023 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
1024 | ||
1025 | * remote.c (remote_target) <supports_memory_tagging>: New method | |
1026 | override. | |
1027 | <fetch_memtags>: New method override. | |
1028 | <store_memtags>: New method override. | |
1029 | (remote_target::supports_memory_tagging): New method. | |
1030 | (remote_target::fetch_memtags): New method. | |
1031 | (remote_target::store_memtags): New method. | |
1032 | * target-delegates.c: Regenerate. | |
1033 | * target.h (struct target_ops) <supports_memory_tagging>: New virtual | |
1034 | method. | |
1035 | <fetch_memtags>: New virtual method. | |
1036 | <store_memtags>: New virtual method. | |
1037 | (target_supports_memory_tagging): Define. | |
1038 | (target_fetch_memtags): Define. | |
1039 | (target_store_memtags): Define. | |
1040 | * target-debug.h (target_debug_print_size_t) | |
1041 | (target_debug_print_const_gdb_byte_vector_r) | |
1042 | (target_debug_print_gdb_byte_vector_r): New functions. | |
1043 | ||
66848ebc SM |
1044 | 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca> |
1045 | ||
1046 | * target.h (target_longname): Remove. | |
1047 | ||
c8fbd44a SM |
1048 | 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca> |
1049 | ||
1050 | * target.h (target_is_pushed): Remove, update callers to use | |
1051 | inferior::target_is_pushed instead. | |
1052 | * target.c (target_is_pushed): Remove. | |
1053 | ||
02980c56 SM |
1054 | 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca> |
1055 | ||
1056 | * target.h (push_target): Remove, update callers to use | |
1057 | inferior::push_target. | |
1058 | * target.c (push_target): Remove. | |
1059 | * inferior.h (class inferior) <push_target>: New overload. | |
1060 | ||
fadf6add SM |
1061 | 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca> |
1062 | ||
1063 | * target.h (unpush_target): Remove, update all callers | |
1064 | to use `inferior::unpush_target` instead. | |
1065 | (struct target_unpusher) <operator()>: Just declare. | |
1066 | * target.c (unpush_target): Remove. | |
1067 | (target_unpusher::operator()): New. | |
1068 | ||
702cf3f5 AB |
1069 | 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com> |
1070 | ||
1071 | * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an | |
1072 | error. | |
1073 | (process_full_comp_unit): Validate the top-level tag before | |
1074 | processing the first DIE. | |
1075 | (read_func_scope): Ensure we have a valid builder. | |
1076 | ||
46fec642 AB |
1077 | 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com> |
1078 | ||
1079 | * objc-lang.c (objc_demangle): Renamed to | |
1080 | objc_language::demangle_symbol, and moved later in the file. | |
1081 | (objc_language::sniff_from_mangled_name): Call demangle_symbol | |
1082 | member function. | |
1083 | (objc_language::demangle_symbol): Defined outside of class | |
1084 | declaration. The definition is the old objc_demangle with NULL | |
1085 | changed to nullptr, and if conditions relating to nullptr pointers | |
1086 | or null character checks made explicit. | |
1087 | * objc-lang.h (objc_demangle): Delete declaration. | |
1088 | ||
08dedd66 ML |
1089 | 2021-03-22 Martin Liska <mliska@suse.cz> |
1090 | ||
1091 | * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith. | |
1092 | (_initialize_arm_tdep): Likewise. | |
1093 | ||
eb36a3eb TT |
1094 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1095 | ||
1096 | * xcoffread.c (xcoff_initial_scan): Create partial symtabs. | |
1097 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. | |
1098 | * psymtab.h (make_psymbol_functions): Don't declare. | |
1099 | * psymtab.c (make_psymbol_functions): Remove. | |
1100 | (maintenance_print_psymbols): Update. | |
1101 | * psympriv.h (struct psymbol_functions): Add no-argument | |
1102 | constructor. | |
1103 | * objfiles.h (struct objfile) <reset_psymtabs>: Remove. | |
1104 | <partial_symtabs>: Remove. | |
1105 | * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs. | |
1106 | * elfread.c (read_partial_symbols): Update. | |
1107 | (elf_symfile_read): Remove check for existing partial symbols. | |
1108 | Don't clear "qf". | |
1109 | * dwarf2/read.c (dwarf2_has_info): Remove check for existing | |
1110 | partial symbols. | |
1111 | (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create | |
1112 | partial symtabs. | |
1113 | * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions | |
1114 | parameter. | |
1115 | * dbxread.c (dbx_symfile_read): Create partial symtabs. | |
1116 | * ctfread.c (elfctf_build_psymtabs): Create partial symtabs. | |
1117 | ||
e1114590 TT |
1118 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1119 | ||
1120 | * dwarf2/read.c (dwarf2_build_psymtabs): Update. | |
1121 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. | |
1122 | * symfile-debug.c (objfile::has_partial_symbols) | |
1123 | (objfile::find_last_source_symtab) | |
1124 | (objfile::forget_cached_source_info) | |
1125 | (objfile::map_symtabs_matching_filename, objfile::lookup_symbol) | |
1126 | (objfile::print_stats, objfile::dump) | |
1127 | (objfile::expand_symtabs_for_function) | |
1128 | (objfile::expand_all_symtabs) | |
1129 | (objfile::expand_symtabs_with_fullname) | |
1130 | (objfile::map_matching_symbols) | |
1131 | (objfile::expand_symtabs_matching) | |
1132 | (objfile::find_pc_sect_compunit_symtab) | |
1133 | (objfile::map_symbol_filenames) | |
1134 | (objfile::find_compunit_symtab_by_address) | |
1135 | (objfile::lookup_global_symbol_language) | |
1136 | (objfile::require_partial_symbols): Update. | |
1137 | * psymtab.c (maintenance_print_psymbols) | |
1138 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
1139 | * objfiles.h (struct objfile) <qf>: Now a forward_list. | |
1140 | * objfiles.c (objfile_relocate1): Update. | |
1141 | * elfread.c (elf_symfile_read): Update. | |
1142 | ||
de909f0b TT |
1143 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1144 | ||
1145 | * objfiles.h (struct objfile) <psymtabs>: Remove method. | |
1146 | ||
caf8c1e5 TT |
1147 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1148 | ||
1149 | * psymtab.c (psymbol_functions::count_psyms): Rename. | |
1150 | (psymbol_functions::print_stats): Update. | |
1151 | * psympriv.h (struct psymbol_functions) <count_psyms>: Declare | |
1152 | method. | |
1153 | ||
3aa31ce7 TT |
1154 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1155 | ||
1156 | * psymtab.c (psymbol_functions::require_partial_symbols): Rename. | |
1157 | (psymbol_functions::find_pc_sect_psymtab): Rename. | |
1158 | (psymbol_functions::find_pc_sect_compunit_symtab) | |
1159 | (maintenance_print_psymbols, maintenance_check_psymtabs): Update. | |
1160 | * psympriv.h (struct psymbol_functions) <require_partial_symbols>: | |
1161 | Declare new method. | |
1162 | <get_partial_symtabs, find_pc_sect_psymtab>: Likewise. | |
1163 | ||
7b249e47 TT |
1164 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1165 | ||
1166 | * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter. | |
1167 | (xcoff_end_psymtab, scan_xcoff_symtab): Update. | |
1168 | * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs | |
1169 | parameter. | |
1170 | (add_psymbol_to_bcache): Remove. | |
1171 | (partial_symtab::add_psymbol): Add partial_symtabs parameter. | |
1172 | (partial_symtab::add_psymbol, partial_symtab::partial_symtab): | |
1173 | Likewise. | |
1174 | * psympriv.h (partial_symtab): Add partial_symtabs parameter. | |
1175 | <add_psymbol>: Likewise. | |
1176 | (standard_psymtab, legacy_psymtab): Likewise. | |
1177 | * mdebugread.c (parse_partial_symbols): Update. | |
1178 | (handle_psymbol_enumerators): Add partial_symtabs parameter. | |
1179 | (handle_psymbol_enumerators): Update. | |
1180 | (new_psymtab): Add partial_symtabs parameter. | |
1181 | * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter. | |
1182 | * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs | |
1183 | parameter. | |
1184 | (dwarf2_create_include_psymtab): Add partial_symtabs parameter. | |
1185 | (create_partial_symtab, add_partial_symbol, dwarf_decode_lines): | |
1186 | Update. | |
1187 | * dbxread.c (read_dbx_symtab): Update. | |
1188 | (start_psymtab): Add partial_symtabs parameter. | |
1189 | (dbx_end_psymtab): Update. | |
1190 | * ctfread.c (struct ctf_context) <partial_symtabs>: New member. | |
1191 | (ctf_psymtab): Add partial_symtabs parameter. | |
1192 | (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb): | |
1193 | Update. | |
1194 | (scan_partial_symbols): Add partial_symtabs parameter. | |
1195 | (scan_partial_symbols, elfctf_build_psymtabs) | |
1196 | (ctf_psymtab_add_enums): Update. | |
1197 | ||
d1eef86d TT |
1198 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1199 | ||
1200 | * symfile.c (read_symbols): Use objfile method. | |
1201 | * symfile-debug.c (objfile::require_partial_symbols): New method. | |
1202 | * psymtab.h (require_partial_symbols): Don't declare. | |
1203 | * psymtab.c (require_partial_symbols): Use objfile method. Now | |
1204 | static. | |
1205 | (psymbol_functions::map_symtabs_matching_filename, OBJFILE) | |
1206 | (psymbol_functions::lookup_symbol) | |
1207 | (psymbol_functions::lookup_global_symbol_language) | |
1208 | (psymbol_functions::find_last_source_symtab) | |
1209 | (psymbol_functions::forget_cached_source_info) | |
1210 | (psymbol_functions::print_stats) | |
1211 | (psymbol_functions::expand_symtabs_for_function) | |
1212 | (psymbol_functions::expand_all_symtabs) | |
1213 | (psymbol_functions::expand_symtabs_with_fullname) | |
1214 | (psymbol_functions::map_symbol_filenames) | |
1215 | (psymbol_functions::map_matching_symbols) | |
1216 | (psymbol_functions::expand_symtabs_matching) | |
1217 | (psymbol_functions::find_compunit_symtab_by_address) | |
1218 | (maintenance_print_psymbols, maintenance_info_psymtabs) | |
1219 | (maintenance_check_psymtabs): Update. | |
1220 | * objfiles.h (struct objfile) <require_partial_symbols>: Declare | |
1221 | new method. | |
1222 | ||
eb00e468 TT |
1223 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1224 | ||
1225 | * xcoffread.c (xcoff_sym_fns): Update. | |
1226 | * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove. | |
1227 | * symfile-debug.c (objfile::has_partial_symbols): Use | |
1228 | can_lazily_read_symbols. | |
1229 | (debug_sym_read_psymbols): Remove. | |
1230 | (debug_sym_fns, install_symfile_debug_logging): Update. | |
1231 | * quick-symbol.h (struct quick_symbol_functions) | |
1232 | <can_lazily_read_symbols, read_partial_symbols>: New methods. | |
1233 | * psymtab.c (require_partial_symbols): Use new 'qf' methods. | |
1234 | * mipsread.c (ecoff_sym_fns): Update. | |
1235 | * machoread.c (macho_sym_fns): Update. | |
1236 | * elfread.c (struct lazy_dwarf_reader): New. | |
1237 | (elf_symfile_read): Update. | |
1238 | (read_psyms): Now a method of lazy_dwarf_reader. | |
1239 | (elf_sym_fns): Update. | |
1240 | (elf_sym_fns_lazy_psyms): Remove. | |
1241 | * dbxread.c (aout_sym_fns): Update. | |
1242 | * coffread.c (coff_sym_fns): Update. | |
1243 | ||
b29b98cf TT |
1244 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1245 | ||
1246 | * symfile.c (syms_from_objfile_1): Call reset_psymtabs. | |
1247 | (reread_symbols): Move reset_psymtabs call later. | |
1248 | * objfiles.c (objfile::objfile): Don't initialize | |
1249 | partial_symtabs. | |
1250 | ||
17d66340 TT |
1251 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1252 | ||
1253 | * dwarf2/read.c (dwarf2_build_psymtabs): Call | |
1254 | set_partial_symtabs. | |
1255 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. | |
1256 | * psymtab.h (make_psymbol_functions): Add partial_symtabs | |
1257 | parameter. | |
1258 | * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs | |
1259 | parameter. | |
1260 | (psymbol_functions::find_pc_sect_compunit_symtab) | |
1261 | (psymbol_functions::print_stats, psymbol_functions::dump) | |
1262 | (psymbol_functions::has_symbols): Update. | |
1263 | (make_psymbol_functions, dump_psymtab_addrmap): Add | |
1264 | partial_symtabs parameter. | |
1265 | (maintenance_print_psymbols): Update. | |
1266 | (psymbol_functions::expand_symtabs_matching): Update. | |
1267 | * psympriv.h (struct psymbol_functions): Add constructor. | |
1268 | <m_partial_symtabs>: New member. | |
1269 | <set_partial_symtabs>: New method. | |
1270 | ||
84685904 TT |
1271 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1272 | ||
1273 | * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd | |
1274 | parameter. | |
1275 | (process_psymtab_comp_unit_reader) | |
1276 | (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard) | |
1277 | (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines): | |
1278 | Reference psymtabs via per_bfd. | |
1279 | ||
79cc99f6 TT |
1280 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1281 | ||
1282 | * dwarf2/index-write.c (struct addrmap_index_data) <objfile>: | |
1283 | Remove. | |
1284 | (add_address_entry): Remove objfile parameter. | |
1285 | (add_address_entry_worker): Update. | |
1286 | (write_address_map): Replace objfile parameter with per_bfd. | |
1287 | (write_gdbindex, write_psymtabs_to_index): Update. | |
1288 | ||
4829711b TT |
1289 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1290 | ||
1291 | * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add | |
1292 | print_bcache parameter. | |
1293 | * symfile-debug.c (objfile::print_stats): Add print_bcache | |
1294 | parameter. | |
1295 | * quick-symbol.h (struct quick_symbol_functions) | |
1296 | <print_stats>: Add print_bcache parameter. | |
1297 | * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move | |
1298 | code to psymtab.c. | |
1299 | (print_objfile_statistics): Move psymtab code to psymtab.c. | |
1300 | * psymtab.c (count_psyms): Move from symmisc.c. | |
1301 | (psymbol_functions::print_stats): Print partial symbol and bcache | |
1302 | statistics. Add print_bcache parameter. | |
1303 | * objfiles.h (print_symbol_bcache_statistics): Don't declare. | |
1304 | (struct objfile) <print_stats>: Add print_bcache parameter. | |
1305 | * maint.c (maintenance_print_statistics): Update. | |
1306 | ||
efd7398e TT |
1307 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1308 | ||
1309 | * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New | |
1310 | member. | |
1311 | * dwarf2/read.c (create_addrmap_from_index) | |
1312 | (create_addrmap_from_aranges): Set per_bfd addrmap. | |
1313 | (dwarf2_read_gdb_index): Don't set partial_symtabs. | |
1314 | (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use | |
1315 | per_bfd addrmap. | |
1316 | (dwarf2_read_debug_names): Don't set partial_symtabs. | |
1317 | (dwarf2_initialize_objfile): Likewise. | |
1318 | ||
51962708 TT |
1319 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1320 | ||
1321 | * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs | |
1322 | earlier. | |
1323 | ||
484b1090 TT |
1324 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1325 | ||
1326 | * psympriv.h (psymtab_discarder): Take psymtab_storage parameter. | |
1327 | (~psymtab_discarder, keep): Update. | |
1328 | <m_objfile>: Remove. | |
1329 | <m_partial_symtabs>: New member. | |
1330 | * dwarf2/read.c (dwarf2_build_psymtabs): Update. | |
1331 | ||
7e9c0476 TT |
1332 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1333 | ||
1334 | * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter. | |
1335 | (xcoff_end_psymtab): Update. | |
1336 | (scan_xcoff_symtab): Add partial_symtabs parameter. | |
1337 | (xcoff_initial_scan): Update. | |
1338 | * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter. | |
1339 | * mdebugread.c (mdebug_build_psymtabs): Update. | |
1340 | (parse_partial_symbols): Add partial_symtabs parameter. | |
1341 | * dbxread.c (dbx_symfile_read): Update. | |
1342 | (read_dbx_symtab): Add partial_symtabs parameter. | |
1343 | (read_dbx_symtab): Update. | |
1344 | (dbx_end_psymtab): Add partial_symtabs parameter. | |
1345 | ||
75336a5a TT |
1346 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1347 | ||
1348 | * quick-symbol.h (struct quick_symbol_functions) | |
1349 | <relocated>: New method. | |
1350 | * psymtab.h (struct psymbol_functions) <relocated>: New | |
1351 | method. | |
1352 | <fill_psymbol_map>: Declare method. | |
1353 | <m_psymbol_map>: New member. | |
1354 | * psymtab.c (psymbol_functions::fill_psymbol_map): Rename. | |
1355 | (psymbol_functions::find_compunit_symtab_by_address): Update. | |
1356 | * objfiles.h (reset_psymtabs): Don't clear psymbol_map. | |
1357 | (struct objfile) <psymbol_map>: Remove. | |
1358 | * objfiles.c (objfile_relocate1): Update. | |
1359 | ||
39298a5d TT |
1360 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1361 | ||
1362 | * psympriv.h (struct psymbol_functions): New. | |
1363 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. | |
1364 | * symfile-debug.c (objfile::find_compunit_symtab_by_address) | |
1365 | (objfile::lookup_global_symbol_language): Update. | |
1366 | * quick-symbol.h (struct quick_symbol_functions): Convert function | |
1367 | pointers to methods. Add virtual destructor. | |
1368 | (quick_symbol_functions_up): New typedef. | |
1369 | * psymtab.h (psym_functions, dwarf2_gdb_index_functions) | |
1370 | (dwarf2_debug_names_functions): Don't declare. | |
1371 | (make_psymbol_functions): Declare. | |
1372 | * psymtab.c (psymbol_functions::map_symtabs_matching_filename) | |
1373 | (psymbol_functions::find_pc_sect_compunit_symtab) | |
1374 | (psymbol_functions::lookup_symbol) | |
1375 | (psymbol_functions::lookup_global_symbol_language) | |
1376 | (psymbol_functions::find_last_source_symtab) | |
1377 | (psymbol_functions::forget_cached_source_info) | |
1378 | (psymbol_functions::print_stats, psymbol_functions::dump) | |
1379 | (psymbol_functions::expand_symtabs_for_function) | |
1380 | (psymbol_functions::expand_all_symtabs) | |
1381 | (psymbol_functions::expand_symtabs_with_fullname) | |
1382 | (psymbol_functions::map_symbol_filenames) | |
1383 | (psymbol_functions::map_matching_symbols) | |
1384 | (psymbol_functions::expand_symtabs_matching) | |
1385 | (psymbol_functions::has_symbols) | |
1386 | (psymbol_functions::find_compunit_symtab_by_address): Rename. | |
1387 | (psym_functions): Remove. | |
1388 | (make_psymbol_functions): New function. | |
1389 | * objfiles.h (struct objfile) <qf>: Change type. | |
1390 | * elfread.c (elf_symfile_read): Update. | |
1391 | * dwarf2/read.c (struct dwarf2_base_index_functions) | |
1392 | (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New. | |
1393 | (make_dwarf_gdb_index, make_dwarf_debug_names): New functions. | |
1394 | (dwarf2_base_index_functions::find_last_source_symtab) | |
1395 | (dwarf2_base_index_functions::forget_cached_source_info) | |
1396 | (dwarf2_base_index_functions::map_symtabs_matching_filename) | |
1397 | (dwarf2_gdb_index::lookup_symbol) | |
1398 | (dwarf2_base_index_functions::print_stats) | |
1399 | (dwarf2_gdb_index::dump) | |
1400 | (dwarf2_gdb_index::expand_symtabs_for_function) | |
1401 | (dwarf2_base_index_functions::expand_all_symtabs) | |
1402 | (dwarf2_base_index_functions::expand_symtabs_with_fullname): | |
1403 | Rename. | |
1404 | (dwarf2_gdb_index::map_matching_symbols): New method. | |
1405 | (dwarf2_gdb_index::expand_symtabs_matching): New method. | |
1406 | (dwarf2_base_index_functions::find_pc_sect_compunit_symtab) | |
1407 | (dwarf2_base_index_functions::map_symbol_filenames) | |
1408 | (dwarf2_base_index_functions::has_symbols): Rename. | |
1409 | (dwarf2_gdb_index_functions): Remove. | |
1410 | (dwarf2_debug_names_index::lookup_symbol) | |
1411 | (dwarf2_debug_names_index::dump) | |
1412 | (dwarf2_debug_names_index::expand_symtabs_for_function) | |
1413 | (dwarf2_debug_names_index::map_matching_symbols) | |
1414 | (dwarf2_debug_names_index::expand_symtabs_matching): Rename. | |
1415 | (dwarf2_debug_names_functions): Remove. | |
1416 | * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names): | |
1417 | Declare. | |
1418 | ||
5c3f1e5b TT |
1419 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1420 | ||
1421 | * psymtab.c (require_partial_symbols): Check that 'sf' is not | |
1422 | null. | |
1423 | * xcoffread.c (xcoff_sym_fns): Update. | |
1424 | * symfile.h (struct sym_fns) <qf>: Remove. | |
1425 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. | |
1426 | * symfile-debug.c (objfile::has_partial_symbols) | |
1427 | (objfile::find_last_source_symtab) | |
1428 | (objfile::forget_cached_source_info) | |
1429 | (objfile::map_symtabs_matching_filename, objfile::lookup_symbol) | |
1430 | (objfile::print_stats, objfile::dump) | |
1431 | (objfile::expand_symtabs_for_function) | |
1432 | (objfile::expand_all_symtabs) | |
1433 | (objfile::expand_symtabs_with_fullname) | |
1434 | (objfile::map_matching_symbols) | |
1435 | (objfile::expand_symtabs_matching) | |
1436 | (objfile::find_pc_sect_compunit_symtab) | |
1437 | (objfile::map_symbol_filenames) | |
1438 | (objfile::find_compunit_symtab_by_address) | |
1439 | (objfile::lookup_global_symbol_language, debug_sym_fns) | |
1440 | (install_symfile_debug_logging): Update. | |
1441 | * objfiles.h (struct objfile) <qf>: New member. | |
1442 | * mipsread.c (ecoff_sym_fns): Update. | |
1443 | * machoread.c (macho_sym_fns): Update. | |
1444 | * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names): | |
1445 | Don't declare. | |
1446 | (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update. | |
1447 | * dbxread.c (aout_sym_fns): Update. | |
1448 | * coffread.c (coff_sym_fns): Update. | |
1449 | ||
9b99dcc8 TT |
1450 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1451 | ||
1452 | * symfile.h (symbol_compare_ftype, symbol_filename_ftype) | |
1453 | (expand_symtabs_file_matcher_ftype) | |
1454 | (expand_symtabs_symbol_matcher_ftype) | |
1455 | (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions): | |
1456 | Move to quick-symbol.h. | |
1457 | * quick-symbol.h: New file. | |
1458 | ||
4d080b46 TT |
1459 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1460 | ||
1461 | * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc) | |
1462 | (lookup_symbol_via_quick_fns, find_quick_global_symbol_language) | |
1463 | (basic_lookup_transparent_type_quick) | |
1464 | (find_pc_sect_compunit_symtab, find_symbol_at_address) | |
1465 | (find_line_symtab, global_symbol_searcher::expand_symtabs): | |
1466 | Update. | |
1467 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
1468 | (maintenance_expand_symtabs): Update. | |
1469 | * symfile.c (symbol_file_add_with_addrs) | |
1470 | (expand_symtabs_matching, map_symbol_filenames): Update. | |
1471 | * symfile-debug.c (objfile::has_partial_symbols) | |
1472 | (objfile::find_last_source_symtab) | |
1473 | (objfile::forget_cached_source_info) | |
1474 | (objfile::map_symtabs_matching_filename, objfile::lookup_symbol) | |
1475 | (objfile::print_stats, objfile::dump) | |
1476 | (objfile::expand_symtabs_for_function) | |
1477 | (objfile::expand_all_symtabs) | |
1478 | (objfile::expand_symtabs_with_fullname) | |
1479 | (objfile::map_matching_symbols) | |
1480 | (objfile::expand_symtabs_matching) | |
1481 | (objfile::find_pc_sect_compunit_symtab) | |
1482 | (objfile::map_symbol_filenames) | |
1483 | (objfile::find_compunit_symtab_by_address) | |
1484 | (objfile::lookup_global_symbol_language): New methods. | |
1485 | (debug_sym_quick_functions): Remove. | |
1486 | (debug_sym_fns, install_symfile_debug_logging): Update. | |
1487 | * source.c (forget_cached_source_info_for_objfile) | |
1488 | (select_source_symtab): Update. | |
1489 | * objfiles.h (struct objfile): Add methods corresponding to | |
1490 | quick_symbol_functions. | |
1491 | * objfiles.c (objfile::has_partial_symbols): Move to | |
1492 | symfile-debug.c. | |
1493 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
1494 | * cp-support.c (add_symbol_overload_list_qualified): Update. | |
1495 | * ada-lang.c (add_nonlocal_symbols): Update. | |
1496 | ||
fae2120b TT |
1497 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1498 | ||
1499 | * objfiles.h (struct objfile) <has_partial_symbols>: Return bool. | |
1500 | * symfile.h (struct quick_symbol_functions) <has_symbols>: Return | |
1501 | bool. | |
1502 | * symfile-debug.c (debug_qf_has_symbols): Return bool. | |
1503 | * psymtab.c (psym_has_symbols): Return bool. | |
1504 | * objfiles.c (objfile::has_partial_symbols): Return bool. | |
1505 | * dwarf2/read.c (dw2_has_symbols): Return bool. | |
1506 | ||
a8ad4f3c TT |
1507 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1508 | ||
1509 | * symfile.c (read_symbols): Update. | |
1510 | * objfiles.h (struct objfile) <has_partial_symbols>: New method. | |
1511 | (objfile_has_partial_symbols): Don't declare. | |
1512 | * objfiles.c (objfile::has_partial_symbols): Rename from | |
1513 | objfile_has_partial_symbols. | |
1514 | (objfile_has_symbols, have_partial_symbols): Update. | |
1515 | * elfread.c (elf_symfile_read): Update. | |
1516 | * dwarf2/read.c (dwarf2_has_info): Update. | |
1517 | * coffread.c (coff_symfile_read): Update. | |
1518 | ||
70182375 TT |
1519 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1520 | ||
1521 | * coffread.c: Include dwarf2/public.h. | |
1522 | * dwarf2/frame.c: Include dwarf2/public.h. | |
1523 | * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h. | |
1524 | * dwarf2/public.h: New file. | |
1525 | * dwarf2/read.c: Include dwarf2/public.h. | |
1526 | * elfread.c: Include dwarf2/public.h. | |
1527 | * machoread.c: Include dwarf2/public.h. | |
1528 | * symfile.h (dwarf2_has_info, enum dw_index_kind) | |
1529 | (dwarf2_initialize_objfile, dwarf2_build_psymtabs) | |
1530 | (dwarf2_build_frame_info): Move to dwarf2/public.h. | |
1531 | * xcoffread.c: Include dwarf2/public.h. | |
1532 | ||
18038e63 TT |
1533 | 2021-03-20 Tom Tromey <tom@tromey.com> |
1534 | ||
1535 | * symfile.h (enum dwarf2_section_enum) | |
1536 | (dwarf2_get_section_info): Move to dwarf2/read.h. | |
1537 | * dwarf2/read.h (enum dwarf2_section_enum) | |
1538 | (dwarf2_get_section_info): Move from symfile.h. | |
1539 | ||
219f56b4 PA |
1540 | 2021-03-19 Pedro Alves <pedro@palves.net> |
1541 | ||
1542 | * thread.c (any_thread_of_inferior): Check if there's a selected | |
1543 | thread before calling inferior_thread(). | |
1544 | ||
15310fd4 TT |
1545 | 2021-03-18 Tom Tromey <tromey@adacore.com> |
1546 | ||
1547 | * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use | |
1548 | get_DW_UT_name. | |
1549 | * dwarf2/stringify.h (dwarf_unit_type_name): Declare. | |
1550 | * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove. | |
1551 | ||
763b8efd AB |
1552 | 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com> |
1553 | ||
1554 | * python/py-param.c (get_set_value): Update header comment. | |
1555 | ||
f058c521 SM |
1556 | 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
1557 | ||
1558 | * infrun.c (check_multi_target_resumption): Remove argument to | |
1559 | all_non_exited_inferiors. | |
1560 | ||
383228bc CB |
1561 | 2021-03-16 Christian Biesinger <cbiesinger@google.com> |
1562 | ||
1563 | * windows-nat.c (windows_init_thread_list): Add message to | |
1564 | debug log. | |
1565 | ||
7807d76a AB |
1566 | 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com> |
1567 | ||
1568 | * python/py-framefilter.c (py_print_frame): Use PyInt_Check as | |
1569 | well as PyLong_Check for Python 2. | |
1570 | ||
675da9a5 TT |
1571 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
1572 | ||
1573 | PR build/27579: | |
1574 | * rust-exp.y (maker_map): Use gdb::hash_enum. | |
1575 | * stap-probe.c (stap_maker_map): Use gdb::hash_enum. | |
1576 | ||
4800761a SM |
1577 | 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
1578 | ||
1579 | * dwarf2/read.c (create_debug_type_hash_table): Remove colon at | |
1580 | end of debug print. | |
1581 | ||
eb5dd737 SM |
1582 | 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
1583 | ||
1584 | * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr | |
1585 | parameter, adjust caller. | |
1586 | ||
6813ceb0 TT |
1587 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
1588 | ||
1589 | * ada-exp.y (simple_exp): Always push a result for unary '+'. | |
1590 | ||
3b5c4de0 TT |
1591 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
1592 | ||
1593 | * ada-lang.c (ada_unop_ind_operation::evaluate): Call | |
1594 | ada_ensure_varsize_limit. | |
1595 | ||
c04da66c TT |
1596 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
1597 | ||
1598 | * ada-lang.c (numeric_type_p, integer_type_p): Return true for | |
1599 | fixed-point. | |
1600 | * ada-exp.y (maybe_overload): New function. | |
1601 | (ada_wrap_overload): New function. | |
1602 | (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload. | |
1603 | (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp) | |
1604 | (or_else_exp, xor_exp, primary): Update. | |
1605 | ||
9863c3b5 TT |
1606 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
1607 | ||
1608 | PR ada/27545: | |
1609 | * ada-lang.c (ada_var_value_operation::evaluate): Use recursive | |
1610 | call for tagged type. | |
1611 | ||
1ac74522 TT |
1612 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
1613 | ||
1614 | * ada-exp.y (exp1): Handle resolution of the right hand side of an | |
1615 | assignment. | |
1616 | ||
207582c0 TT |
1617 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
1618 | ||
1619 | * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return | |
1620 | container. | |
1621 | (ada_assign_operation::evaluate): Update. | |
1622 | * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>: | |
1623 | Change return type. | |
1624 | ||
8d624a9d FW |
1625 | 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com> |
1626 | ||
1627 | * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16. | |
1628 | ||
ba6a0ef3 AB |
1629 | 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com> |
1630 | ||
1631 | * python/python.c (gdbpy_source_objfile_script): Use | |
1632 | make_scoped_restore to restore gdbpy_current_objfile. | |
1633 | (gdbpy_execute_objfile_script): Likewise. | |
1634 | ||
7c290a04 TT |
1635 | 2021-03-14 Tom Tromey <tom@tromey.com> |
1636 | ||
1637 | * dwarf2/read.c (read_attribute_value): Use cu_header | |
1638 | consistently. | |
1639 | ||
0280fdcc TT |
1640 | 2021-03-14 Tom Tromey <tom@tromey.com> |
1641 | ||
1642 | * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting. | |
1643 | (peek_die_abbrev): Use reader.abfd. | |
1644 | ||
a9f172c6 TT |
1645 | 2021-03-14 Tom Tromey <tom@tromey.com> |
1646 | ||
1647 | * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set | |
1648 | m_header_read_in. | |
1649 | ||
7c32eebb TT |
1650 | 2021-03-13 Tom Tromey <tom@tromey.com> |
1651 | ||
1652 | * dwarf2/read.c (struct partial_die_info): Update. | |
1653 | (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1) | |
1654 | (load_partial_dies, partial_die_info::partial_die_info): Update. | |
1655 | * dwarf2/abbrev.h (lookup_abbrev): Constify. | |
1656 | ||
27012aba TT |
1657 | 2021-03-13 Tom Tromey <tom@tromey.com> |
1658 | ||
1659 | * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround. | |
1660 | ||
fece451c CB |
1661 | 2021-03-12 Christian Biesinger <cbiesinger@google.com> |
1662 | ||
1663 | PR threads/27239 | |
1664 | * cp-support.c: Use scoped_segv_handler_restore. | |
1665 | * event-top.c (thread_local_segv_handler): Made static. | |
1666 | (scoped_segv_handler_restore::scoped_segv_handler_restore): | |
1667 | New function. | |
1668 | (scoped_segv_handler_restore::~scoped_segv_handler_restore): New | |
1669 | function. | |
1670 | * event-top.h (class scoped_segv_handler_restore): New class. | |
1671 | (thread_local_segv_handler): Removed. | |
1672 | ||
7056f312 TT |
1673 | 2021-03-10 Tom Tromey <tromey@adacore.com> |
1674 | ||
1675 | * parser-defs.h (parser_state): Change completion to bool. | |
1676 | <parse_completion>: Likewise. | |
1677 | * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall) | |
1678 | (ada_resolve_variable, ada_resolve_function): Update. | |
1679 | * ada-lang.c (ada_find_operator_symbol): Change | |
1680 | parse_completion to bool. | |
1681 | (ada_resolve_funcall, ada_resolve_variable) | |
1682 | (ada_resolve_function): Likewise. | |
1683 | ||
ccdc02ed TT |
1684 | 2021-03-09 Tom Tromey <tromey@adacore.com> |
1685 | ||
1686 | * eval.c (operation::evaluate_funcall): Use function formal | |
1687 | parameter types when evaluating. | |
1688 | ||
fbb1aace AB |
1689 | 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com> |
1690 | ||
1691 | * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>: | |
1692 | Updated fields names flag_objfile_owned to m_flag_objfile_owned, | |
1693 | and owner to m_owner. | |
1694 | ||
611aa09d FW |
1695 | 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com> |
1696 | ||
1697 | * f-exp.h (eval_op_f_loc): Declare. | |
1698 | (expr::fortran_loc_operation): New typedef. | |
1699 | * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an | |
1700 | UNOP_INTRINSIC. | |
1701 | (f77_keywords): Add LOC keyword. | |
1702 | * f-lang.c (eval_op_f_loc): New function. | |
1703 | * std-operator.def (UNOP_FORTRAN_LOC): New operator. | |
1704 | ||
eef32f59 AB |
1705 | 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com> |
1706 | ||
1707 | * f-exp.h (eval_op_f_array_shape): Declare. | |
1708 | (fortran_array_shape_operation): New type. | |
1709 | * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing | |
1710 | UNOP_INTRINSIC. | |
1711 | (f77_keywords): Add "shape" keyword. | |
1712 | * f-lang.c (fortran_array_shape): New function. | |
1713 | (eval_op_f_array_shape): New function. | |
1714 | * std-operator.def (UNOP_FORTRAN_SHAPE): New operator. | |
1715 | ||
7ba155b3 AB |
1716 | 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com> |
1717 | ||
1718 | * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms | |
1719 | of this function. | |
1720 | (expr::fortran_array_size_1arg): New type. | |
1721 | (expr::fortran_array_size_2arg): Likewise. | |
1722 | * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing | |
1723 | UNOP_OR_BINOP_INTRINSIC. | |
1724 | (f77_keywords): Add "size" keyword. | |
1725 | * f-lang.c (fortran_array_size): New function. | |
1726 | (eval_op_f_array_size): New function, has a 1 arg and 2 arg form. | |
1727 | * std-operator.def (FORTRAN_ARRAY_SIZE): New operator. | |
1728 | ||
e14816a8 AB |
1729 | 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com> |
1730 | ||
1731 | * f-exp.h (eval_op_f_rank): Declare. | |
1732 | (expr::fortran_rank_operation): New typedef. | |
1733 | * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an | |
1734 | UNOP_INTRINSIC. | |
1735 | (f77_keywords): Add "rank" keyword. | |
1736 | * f-lang.c (eval_op_f_rank): New function. | |
1737 | * std-operator.def (UNOP_FORTRAN_RANK): New operator. | |
1738 | ||
3dd93bf8 TT |
1739 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1740 | ||
1741 | * printcmd.c (set_command): Remove null check. | |
1742 | * value.c (init_if_undefined_command): Remove null check. | |
1743 | ||
9c79936b TT |
1744 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1745 | ||
1746 | * parse.c (parser_state::push_symbol, parser_state::push_dollar): | |
1747 | Update. | |
1748 | * p-exp.y (variable): Update. | |
1749 | * go-exp.y (variable): Update. | |
1750 | * expprint.c (dump_for_expression): Use bound_minimal_symbol. | |
1751 | Remove overload for objfile. | |
1752 | * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol | |
1753 | parameter. | |
1754 | (check_objfile): Likewise. | |
1755 | (dump_for_expression): Likewise. Remove overload for objfile. | |
1756 | (class var_msym_value_operation): Use bound_minimal_symbol. | |
1757 | * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol | |
1758 | parameter. | |
1759 | (var_msym_value_operation::evaluate_for_address) | |
1760 | (var_msym_value_operation::evaluate_for_sizeof) | |
1761 | (var_msym_value_operation::evaluate_for_cast): Update. | |
1762 | * d-exp.y (PrimaryExpression): Update. | |
1763 | * c-exp.y (variable): Update. | |
1764 | * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update. | |
1765 | * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast): | |
1766 | Update. | |
1767 | * ada-exp.y (write_var_or_type): Update. | |
1768 | ||
40d07d07 TT |
1769 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1770 | ||
1771 | * parser-defs.h (exp_uses_objfile): Return bool. | |
1772 | * parse.c (exp_uses_objfile): Return bool. | |
1773 | ||
0b2b0b82 TT |
1774 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1775 | ||
1776 | * value.h (eval_skip_value): Don't declare. | |
1777 | * opencl-lang.c (eval_opencl_assign): Update. | |
1778 | * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update. | |
1779 | * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil) | |
1780 | (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove. | |
1781 | * expression.h (enum noside) <EVAL_SKIP>: Remove. | |
1782 | * expop.h (typeof_operation::evaluate) | |
1783 | (decltype_operation::evaluate, unop_addr_operation::evaluate) | |
1784 | (unop_sizeof_operation::evaluate, assign_operation::evaluate) | |
1785 | (cxx_cast_operation::evaluate): Update. | |
1786 | * eval.c (eval_skip_value): Remove. | |
1787 | (eval_op_scope, eval_op_var_entry_value) | |
1788 | (eval_op_func_static_var, eval_op_string, eval_op_objc_selector) | |
1789 | (eval_op_concat, eval_op_ternop, eval_op_structop_struct) | |
1790 | (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub) | |
1791 | (eval_op_binary, eval_op_subscript, eval_op_equal) | |
1792 | (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq) | |
1793 | (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg) | |
1794 | (eval_op_complement, eval_op_lognot, eval_op_ind) | |
1795 | (eval_op_memval, eval_op_preinc, eval_op_predec) | |
1796 | (eval_op_postinc, eval_op_postdec, eval_op_type) | |
1797 | (eval_binop_assign_modify, eval_op_objc_msgcall) | |
1798 | (eval_multi_subscript, logical_and_operation::evaluate) | |
1799 | (logical_or_operation::evaluate, array_operation::evaluate) | |
1800 | (operation::evaluate_for_cast) | |
1801 | (var_msym_value_operation::evaluate_for_cast) | |
1802 | (var_value_operation::evaluate_for_cast): Update. | |
1803 | * c-lang.c (c_string_operation::evaluate): Update. | |
1804 | * c-exp.h (objc_nsstring_operation::evaluate) | |
1805 | (objc_selector_operation::evaluate): Update. | |
1806 | * ada-lang.c (ada_assign_operation::evaluate) | |
1807 | (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range) | |
1808 | (ada_atr_size): Update. | |
1809 | ||
96db551d TT |
1810 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1811 | ||
1812 | * eval.c: Merge "namespace" scopes. | |
1813 | ||
ce284361 TT |
1814 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1815 | ||
1816 | * parser-defs.h (struct expr_builder) <expr_builder>: Inline. | |
1817 | <release>: Inline. | |
1818 | * parse.c (expr_builder::expr_builder, expr_builder::release): | |
1819 | Remove. | |
1820 | ||
b9d06571 TT |
1821 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1822 | ||
1823 | * parse.c (expression::expression, expression::~expression): | |
1824 | Remove. | |
1825 | * expression.h (struct expression): Inline constructor. Remove | |
1826 | destructor. | |
1827 | ||
79ab486e TT |
1828 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1829 | ||
1830 | * std-operator.def (BINOP_END): Remove. | |
1831 | * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END. | |
1832 | * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END. | |
1833 | * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END. | |
1834 | * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END. | |
1835 | * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not | |
1836 | BINOP_END. | |
1837 | ||
48fa6f23 TT |
1838 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1839 | ||
1840 | * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove. | |
1841 | ||
43f542e3 TT |
1842 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1843 | ||
1844 | * std-operator.def (OP_EXTENDED0): Remove. | |
1845 | ||
5d9ba982 TT |
1846 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1847 | ||
1848 | * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS) | |
1849 | (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE): | |
1850 | Remove. | |
1851 | ||
d357570d TT |
1852 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1853 | ||
1854 | * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT) | |
1855 | (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove. | |
1856 | ||
0922dc84 TT |
1857 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1858 | ||
1859 | * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove. | |
1860 | * ada-lang.c (ada_binop_minmax): Update. | |
1861 | * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation): | |
1862 | Use BINOP_MIN and BINOP_MAX. | |
1863 | ||
1eaebe02 TT |
1864 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1865 | ||
1866 | * value.h (evaluate_subexp_with_coercion): Don't declare. | |
1867 | * parse.c (exp_descriptor_standard): Remove. | |
1868 | (expr_builder::expr_builder, expr_builder::release): Update. | |
1869 | (expression::expression): Remove size_t parameter. | |
1870 | (expression::~expression): Simplify. | |
1871 | (expression::resize): Remove. | |
1872 | (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym) | |
1873 | (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile) | |
1874 | (write_exp_elt_longcst, write_exp_elt_floatcst) | |
1875 | (write_exp_elt_type, write_exp_elt_intern, write_exp_string) | |
1876 | (write_exp_string_vector, write_exp_bitstring): Remove. | |
1877 | * p-lang.h (class pascal_language) <opcode_print_table, | |
1878 | op_print_tab>: Remove. | |
1879 | * p-lang.c (pascal_language::op_print_tab): Remove. | |
1880 | * opencl-lang.c (class opencl_language) <opcode_print_table>: | |
1881 | Remove. | |
1882 | * objc-lang.c (objc_op_print_tab): Remove. | |
1883 | (class objc_language) <opcode_print_table>: Remove. | |
1884 | * m2-lang.h (class m2_language) <opcode_print_table, | |
1885 | op_print_tab>: Remove. | |
1886 | * m2-lang.c (m2_language::op_print_tab): Remove. | |
1887 | * language.h (struct language_defn) <post_parser, expression_ops, | |
1888 | opcode_print_table>: Remove. | |
1889 | * language.c (language_defn::expression_ops) | |
1890 | (auto_or_unknown_language::opcode_print_table): Remove. | |
1891 | * go-lang.h (class go_language) <opcode_print_table, | |
1892 | op_print_tab>: Remove. | |
1893 | * go-lang.c (go_language::op_print_tab): Remove. | |
1894 | * f-lang.h (class f_language) <opcode_print_table>: Remove | |
1895 | <op_print_tab>: Remove. | |
1896 | * f-lang.c (f_language::op_print_tab): Remove. | |
1897 | * expression.h (union exp_element): Remove. | |
1898 | (struct expression): Remove size_t parameter from constructor. | |
1899 | <resize>: Remove. | |
1900 | <first_opcode>: Update. | |
1901 | <nelts, elts>: Remove. | |
1902 | (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove. | |
1903 | (evaluate_subexp_standard, print_expression, op_string) | |
1904 | (dump_raw_expression): Don't declare. | |
1905 | * expprint.c (print_expression, print_subexp) | |
1906 | (print_subexp_funcall, print_subexp_standard, op_string) | |
1907 | (dump_raw_expression, dump_subexp, dump_subexp_body) | |
1908 | (dump_subexp_body_funcall, dump_subexp_body_standard): Remove. | |
1909 | (dump_prefix_expression): Update. | |
1910 | * eval.c (evaluate_subexp): Remove. | |
1911 | (evaluate_expression, evaluate_type): Update. | |
1912 | (evaluate_subexpression_type): Remove. | |
1913 | (fetch_subexp_value): Remove "pc" parameter. Update. | |
1914 | (extract_field_op, evaluate_struct_tuple, evaluate_funcall) | |
1915 | (evaluate_subexp_standard, evaluate_subexp_for_address) | |
1916 | (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof) | |
1917 | (evaluate_subexp_for_cast): Remove. | |
1918 | (parse_and_eval_type): Update. | |
1919 | * dtrace-probe.c (dtrace_probe::compile_to_ax): Update. | |
1920 | * d-lang.c (d_op_print_tab): Remove. | |
1921 | (class d_language) <opcode_print_table>: Remove. | |
1922 | * c-lang.h (c_op_print_tab): Don't declare. | |
1923 | * c-lang.c (c_op_print_tab): Remove. | |
1924 | (class c_language, class cplus_language, class asm_language, class | |
1925 | minimal_language) <opcode_print_table>: Remove. | |
1926 | * breakpoint.c (update_watchpoint, watchpoint_check) | |
1927 | (watchpoint_exp_is_const, watch_command_1): Update. | |
1928 | * ax-gdb.h (union exp_element): Don't declare. | |
1929 | * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr) | |
1930 | (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr) | |
1931 | (gen_expr_binop_rest): Remove. | |
1932 | (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update. | |
1933 | * ada-lang.c (ada_op_print_tab): Remove. | |
1934 | (class ada_language) <post_parser, opcode_print_table>: Remove. | |
1935 | ||
f2a98603 TT |
1936 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1937 | ||
1938 | * go-lang.c (go_language::expression_ops): Don't declare. | |
1939 | * go-lang.h (class go_language) <expression_ops>: Remove. | |
1940 | * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl): | |
1941 | Remove. | |
1942 | (class opencl_language) <expression_ops>: Remove. | |
1943 | * d-lang.c (class d_language) <expression_ops>: Remove. | |
1944 | * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare. | |
1945 | * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove. | |
1946 | (class c_language, class cplus_language, class asm_language) | |
1947 | (class minimal_language) <expression_ops>: Remove. | |
1948 | ||
d3c54a1c TT |
1949 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1950 | ||
1951 | * ada-lang.c (resolve_subexp, replace_operator_with_call) | |
1952 | (evaluate_subexp_type, assign_aggregate) | |
1953 | (aggregate_assign_positional, aggregate_assign_from_choices) | |
1954 | (aggregate_assign_others, ada_evaluate_subexp_for_cast) | |
1955 | (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length) | |
1956 | (ada_operator_check, ada_forward_operator_length) | |
1957 | (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor): | |
1958 | Remove. | |
1959 | (post_parser): Update. | |
1960 | (class ada_language) <expresssion_ops>: Remove. | |
1961 | ||
5871f0a3 TT |
1962 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1963 | ||
1964 | * m2-lang.h (class m2_language) <expresssion_ops, | |
1965 | exp_descriptor_modula2>: Remove. | |
1966 | * m2-lang.c (evaluate_subexp_modula2) | |
1967 | (m2_language::exp_descriptor_modula2): Remove. | |
1968 | ||
a99be8c1 TT |
1969 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1970 | ||
1971 | * f-lang.h (class f_language) <expresssion_ops>: Remove. | |
1972 | <exp_descriptor_tab>: Remove. | |
1973 | * f-lang.c (fortran_value_subarray, evaluate_subexp_f) | |
1974 | (operator_length_f, print_unop_subexp_f, print_binop_subexp_f) | |
1975 | (print_subexp_f, dump_subexp_body_f, operator_check_f) | |
1976 | (f_language::exp_descriptor_tab, fortran_prepare_argument): | |
1977 | Remove. | |
1978 | ||
aa1da9ed TT |
1979 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1980 | ||
1981 | * rust-lang.h (class rust_language) <expression_ops, | |
1982 | exp_descriptor_tab>: Remove. | |
1983 | * rust-lang.c (rust_evaluate_funcall): Remove. | |
1984 | (rust_range, rust_subscript, eval_op_rust_complement): Don't use | |
1985 | EVAL_SKIP. | |
1986 | (rust_evaluate_subexp): Remove. | |
1987 | (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP. | |
1988 | (rust_operator_length, rust_dump_subexp_body, rust_print_subexp) | |
1989 | (rust_operator_check, rust_language::exp_descriptor_tab): Remove. | |
1990 | ||
08a057e6 TT |
1991 | 2021-03-08 Tom Tromey <tom@tromey.com> |
1992 | ||
1993 | * ada-exp.y: Create operations. | |
1994 | (empty_stoken): Remove. | |
1995 | (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2) | |
1996 | (ada_wrap_op, ada_wrap3, ada_funcall): New functions. | |
1997 | (components): New global. | |
1998 | (push_component, choice_component, pop_component, pop_components): | |
1999 | New functions. | |
2000 | (associations): New global | |
2001 | (push_association, pop_association, pop_associations): New | |
2002 | functions. | |
2003 | (ada_parse): Update. | |
2004 | (write_var_from_sym, write_int): Create operations. | |
2005 | (write_exp_op_with_string): Remove. | |
2006 | (write_object_renaming, write_selectors, write_ambiguous_var) | |
2007 | (write_var_or_type, write_name_assoc): Create operations. | |
2008 | * ada-lang.h (ada_index_type): Declare. | |
2009 | * ada-lang.c (ada_index_type): No longer static. | |
2010 | ||
d308ba78 TT |
2011 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2012 | ||
2013 | * f-exp.y: Create operations. | |
2014 | (f_language::parser): Update. | |
2015 | ||
f1b8ceef TT |
2016 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2017 | ||
2018 | * m2-exp.y: Create operations. | |
2019 | (m2_language::parser): Update. | |
2020 | ||
3163898e TT |
2021 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2022 | ||
2023 | * p-exp.y: Create operations. | |
2024 | (pascal_language::parser): Update. | |
2025 | ||
9412fdcc TT |
2026 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2027 | ||
2028 | * d-exp.y: Create operations. | |
2029 | (d_parse): Update. | |
2030 | ||
bb4e0574 TT |
2031 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2032 | ||
2033 | * go-exp.y: Create operations. | |
2034 | (go_language::parser): Update. | |
2035 | ||
d182f279 TT |
2036 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2037 | ||
2038 | * objc-lang.c (end_msglist): Create operations. | |
2039 | * c-exp.y: Change parser to create operations. | |
2040 | (write_destructor_name): Remove. | |
2041 | (c_parse): Update. | |
2042 | ||
c1299a23 TT |
2043 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2044 | ||
2045 | * rust-exp.y: Create operations. | |
2046 | (rust_parser::convert_params_to_expression): Change return type. | |
2047 | (binop_maker_ftype): New typedef. | |
2048 | (maker_map): New global. | |
2049 | (rust_parser::convert_ast_to_expression): Change return type. | |
2050 | (rust_language::parser): Update. | |
2051 | (_initialize_rust_exp): Initialize maker_map. | |
2052 | ||
4c5e7a93 TT |
2053 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2054 | ||
2055 | * stap-probe.c (binop_maker_ftype): New typedef. | |
2056 | (stap_maker_map): New global. | |
2057 | (stap_make_binop): New function. | |
2058 | (stap_parse_register_operand): Return operation_up. | |
2059 | (stap_parse_single_operand, stap_parse_argument_conditionally) | |
2060 | (stap_parse_argument_1): Likewise. | |
2061 | (stap_parse_argument): Create operations. | |
2062 | (stap_probe::parse_arguments): Update. | |
2063 | (_initialize_stap_probe): Initialize stap_maker_map. | |
2064 | * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return | |
2065 | type. | |
2066 | * i386-tdep.h (i386_stap_parse_special_token): Change return | |
2067 | type. | |
2068 | * i386-tdep.c (i386_stap_parse_special_token_triplet) | |
2069 | (i386_stap_parse_special_token_three_arg_disp) | |
2070 | (i386_stap_parse_special_token): Change return type. | |
2071 | * gdbarch.sh (stap_parse_special_token): Change return type. | |
2072 | * gdbarch.c: Rebuild. | |
2073 | * gdbarch.h: Rebuild. | |
2074 | * arm-linux-tdep.c (arm_stap_parse_special_token): Change return | |
2075 | type. | |
2076 | * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change | |
2077 | return type. | |
2078 | ||
482ddd69 TT |
2079 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2080 | ||
2081 | * gdbarch.sh (dtrace_parse_probe_argument): Change return type. | |
2082 | * gdbarch.h: Rebuild. | |
2083 | * gdbarch.c: Rebuild. | |
2084 | * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update. | |
2085 | * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change | |
2086 | return type. | |
2087 | (amd64_dtrace_parse_probe_argument): Update. | |
2088 | ||
8227d9e2 TT |
2089 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2090 | ||
2091 | * parser-defs.h (struct parser_state) <push, push_new, | |
2092 | push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap, | |
2093 | wrap2>: New methods. | |
2094 | <m_operations>: New member. | |
2095 | * parse.c (parser_state::push_c_string) | |
2096 | (parser_state::push_symbol, parser_state::push_dollar): New | |
2097 | methods. | |
2098 | ||
4933522d TT |
2099 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2100 | ||
2101 | * parser-defs.h (struct expr_completion_state) <expout_last_op>: | |
2102 | New member. | |
2103 | (struct parser_state) <mark_struct_expression>: New method. | |
2104 | * parse.c (parser_state::mark_struct_expression): Update assert. | |
2105 | (parser_state::mark_struct_expression): New method. | |
2106 | (parser_state::mark_completion_tag): Update assert. | |
2107 | (parse_expression_for_completion): Handle expout_last_op. | |
2108 | ||
413403fc TT |
2109 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2110 | ||
2111 | * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove; | |
2112 | now in superclass. | |
2113 | * value.h (fetch_subexp_value): Add "op" parameter. | |
2114 | * value.c (init_if_undefined_command): Update. | |
2115 | * tracepoint.c (validate_actionline, encode_actions_1): Update. | |
2116 | * stap-probe.c (stap_probe::compile_to_ax): Update. | |
2117 | * printcmd.c (set_command): Update. | |
2118 | * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): | |
2119 | Update. | |
2120 | * parser-defs.h (struct expr_builder) <set_operation>: New | |
2121 | method. | |
2122 | * parse.c (parse_exp_in_context, exp_uses_objfile): Update. | |
2123 | * expression.h (struct expression) <first_opcode>: Update. | |
2124 | <op>: New member. | |
2125 | * expprint.c (dump_raw_expression, dump_prefix_expression): | |
2126 | Update. | |
2127 | * expop.h (class var_value_operation) <get_symbol>: New method. | |
2128 | (class register_operation) <get_name>: New method. | |
2129 | (class equal_operation): No longer a typedef, now a subclass. | |
2130 | (class unop_memval_operation) <get_type>: New method. | |
2131 | (class assign_operation) <get_lhs>: New method. | |
2132 | (class unop_cast_operation) <get_type>: New method. | |
2133 | * eval.c (evaluate_expression, evaluate_type) | |
2134 | (evaluate_subexpression_type): Update. | |
2135 | (fetch_subexp_value): Add "op" parameter. | |
2136 | (parse_and_eval_type): Update. | |
2137 | * dtrace-probe.c (dtrace_probe::compile_to_ax): Update. | |
2138 | * breakpoint.c (update_watchpoint, watchpoint_check) | |
2139 | (watchpoint_exp_is_const, watch_command_1): Update. | |
2140 | * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf): | |
2141 | Update. | |
2142 | ||
b0f9164c TT |
2143 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2144 | ||
2145 | * ada-lang.c (ada_value_binop): Do not use op_string. | |
2146 | ||
a88c4354 TT |
2147 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2148 | ||
2149 | * expprint.c (dump_for_expression): New overload. | |
2150 | * expop.h (check_objfile, dump_for_expression): Declare new | |
2151 | overloads. | |
2152 | * ada-lang.c (check_objfile): New overload. | |
2153 | (assign_component, ada_aggregate_component::uses_objfile) | |
2154 | (ada_aggregate_component::dump, ada_aggregate_component::assign) | |
2155 | (ada_aggregate_component::assign_aggregate) | |
2156 | (ada_positional_component::uses_objfile) | |
2157 | (ada_positional_component::dump, ada_positional_component::assign) | |
2158 | (ada_discrete_range_association::uses_objfile) | |
2159 | (ada_discrete_range_association::dump) | |
2160 | (ada_discrete_range_association::assign) | |
2161 | (ada_name_association::uses_objfile, ada_name_association::dump) | |
2162 | (ada_name_association::assign) | |
2163 | (ada_choices_component::uses_objfile, ada_choices_component::dump) | |
2164 | (ada_choices_component::assign) | |
2165 | (ada_others_component::uses_objfile, ada_others_component::dump) | |
2166 | (ada_others_component::assign, ada_assign_operation::evaluate): | |
2167 | New methods. | |
2168 | * ada-exp.h (ada_string_operation) <get_name>: New method. | |
2169 | (class ada_assign_operation): New. | |
2170 | (class ada_component): New. | |
2171 | (ada_component_up): New typedef. | |
2172 | (class ada_aggregate_operation, class ada_aggregate_component) | |
2173 | (class ada_positional_component, class ada_others_component) | |
2174 | (class ada_association): New. | |
2175 | (ada_association_up): New typedef. | |
2176 | (class ada_choices_component) | |
2177 | (class ada_discrete_range_association) | |
2178 | (class ada_name_association): New. | |
2179 | ||
d8a4ed8a TT |
2180 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2181 | ||
2182 | * ada-lang.c (ada_var_value_operation::resolve) | |
2183 | (ada_funcall_operation::resolve) | |
2184 | (ada_ternop_slice_operation::resolve): New methods. | |
2185 | * ada-exp.h (struct ada_resolvable): New. | |
2186 | (class ada_var_value_operation): Derive from ada_resolvable. | |
2187 | <get_block, resolve>: New methods. | |
2188 | (class ada_funcall_operation): Derive from ada_resolvable. | |
2189 | <resolve>: New method. | |
2190 | (class ada_ternop_slice_operation): Derive from ada_resolvable. | |
2191 | <resolve>: New method. | |
2192 | ||
efe3af2f TT |
2193 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2194 | ||
2195 | * ada-lang.c (ada_funcall_operation::evaluate): New method. | |
2196 | * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New | |
2197 | method. | |
2198 | (class ada_funcall_operation): New. | |
2199 | ||
ebc06ad8 TT |
2200 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2201 | ||
2202 | * ada-lang.c (ada_structop_operation::evaluate): New method. | |
2203 | * ada-exp.h (class ada_structop_operation): New. | |
2204 | ||
e8c33fa1 TT |
2205 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2206 | ||
2207 | * ada-lang.c (ada_unop_ind_operation::evaluate): New method. | |
2208 | * ada-exp.h (class ada_unop_ind_operation): New. | |
2209 | ||
065ec826 TT |
2210 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2211 | ||
2212 | * ada-lang.c (ada_binop_exp): No longer static. | |
2213 | * ada-exp.h (ada_binop_exp_operation): New typedef. | |
2214 | ||
9e99f48f TT |
2215 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2216 | ||
2217 | * ada-lang.c (ada_val_atr): No longer static. | |
2218 | (ada_atr_val_operation::evaluate): New method. | |
2219 | * ada-exp.h (class ada_atr_val_operation): New. | |
2220 | ||
7631cf6c TT |
2221 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2222 | ||
2223 | * ada-lang.c (ada_pos_atr): No longer static. | |
2224 | * ada-exp.h (ada_pos_operation): New typedef. | |
2225 | ||
7992accc TT |
2226 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2227 | ||
2228 | * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change | |
2229 | parameters. | |
2230 | (ada_evaluate_subexp): Use it. | |
2231 | ||
6ad3b8bf TT |
2232 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2233 | ||
2234 | * ada-lang.c (ada_binop_minmax): No longer static. | |
2235 | * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation): | |
2236 | New typedefs. | |
2237 | ||
3f4a0053 TT |
2238 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2239 | ||
2240 | * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast): | |
2241 | New method. | |
2242 | * ada-exp.h (class ada_var_msym_value_operation): New. | |
2243 | ||
99a3b1e7 TT |
2244 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2245 | ||
2246 | * ada-lang.c (ada_var_value_operation::evaluate_for_cast) | |
2247 | (ada_var_value_operation::evaluate): New methods. | |
2248 | * ada-exp.h (class ada_var_value_operation): New. | |
2249 | ||
60fa02ca TT |
2250 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2251 | ||
2252 | * ada-lang.c (ada_unop_atr_operation::evaluate): New method. | |
2253 | * ada-exp.h (class ada_unop_atr_operation): New. | |
2254 | ||
82c3886e TT |
2255 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2256 | ||
2257 | * ada-lang.c (ada_binop_in_bounds): No longer static. | |
2258 | * ada-exp.h (class ada_binop_in_bounds_operation): New. | |
2259 | ||
1b1ebfab TT |
2260 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2261 | ||
2262 | * ada-lang.c (ada_ternop_slice): No longer static. | |
2263 | * ada-exp.h (class ada_ternop_slice_operation): New. | |
2264 | ||
039e4b76 TT |
2265 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2266 | ||
2267 | * ada-exp.h (ada_bitwise_operation): New template class. | |
2268 | (ada_bitwise_and_operation, ada_bitwise_ior_operation) | |
2269 | (ada_bitwise_xor_operation): New typedefs. | |
2270 | ||
6e8fb7b7 TT |
2271 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2272 | ||
2273 | * ada-lang.c (ada_equal_binop): No longer static. | |
2274 | * ada-exp.h (class ada_binop_equal_operation): New. | |
2275 | ||
d9e7db06 TT |
2276 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2277 | ||
2278 | * ada-lang.c (ada_mult_binop): No longer static. | |
2279 | * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation) | |
2280 | (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs. | |
2281 | ||
73796c73 TT |
2282 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2283 | ||
2284 | * ada-lang.c (ada_binop_addsub_operation::evaluate): New method. | |
2285 | * ada-exp.h (class ada_binop_addsub_operation): New. | |
2286 | ||
cd9a3148 TT |
2287 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2288 | ||
2289 | * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall) | |
2290 | (ada_resolve_variable): Declare. | |
2291 | * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall) | |
2292 | (ada_resolve_variable): New functions. | |
2293 | (resolve_subexp): Update. | |
2294 | ||
cf12b17f TT |
2295 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2296 | ||
2297 | * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New | |
2298 | method. | |
2299 | * c-exp.h (class opencl_ternop_cond_operation): New. | |
2300 | ||
944fd3b8 TT |
2301 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2302 | ||
2303 | * opencl-lang.c (opencl_logical_binop_operation::evaluate): New | |
2304 | method. | |
2305 | * c-exp.h (class opencl_logical_binop_operation): New. | |
2306 | ||
33b79214 TT |
2307 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2308 | ||
2309 | * opencl-lang.c (opencl_structop_operation::evaluate): New | |
2310 | method. | |
2311 | * c-exp.h (class opencl_structop_operation): New. | |
2312 | ||
2492ba36 TT |
2313 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2314 | ||
2315 | * opencl-lang.c (opencl_logical_not): No longer static. Change | |
2316 | parameters. | |
2317 | (evaluate_subexp_opencl): Update. | |
2318 | * c-exp.h (opencl_notequal_operation): New typedef. | |
2319 | ||
a88c3c8d TT |
2320 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2321 | ||
2322 | * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer | |
2323 | static. Change parameters. | |
2324 | (eval_opencl_assign): No longer static. Add "op" parameter. | |
2325 | (evaluate_subexp_opencl): Update. | |
2326 | * c-exp.h (opencl_binop_operation): New template class. | |
2327 | (opencl_assign_operation, opencl_equal_operation) | |
2328 | (opencl_notequal_operation, opencl_less_operation) | |
2329 | (opencl_gtr_operation, opencl_geq_operation) | |
2330 | (opencl_leq_operation): New typedefs. | |
2331 | ||
e9677704 TT |
2332 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2333 | ||
2334 | * opencl-lang.c (opencl_value_cast): No longer static. | |
2335 | * c-exp.h (opencl_cast_type_operation): New typedef. | |
2336 | ||
f403a4e4 TT |
2337 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2338 | ||
2339 | * f-exp.h (eval_op_f_allocated): Declare. | |
2340 | (fortran_allocated_operation): New typedef. | |
2341 | * f-lang.c (eval_op_f_allocated): No longer static. | |
2342 | ||
eb4c9271 TT |
2343 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2344 | ||
2345 | * f-lang.c (eval_op_f_associated): New functions. | |
2346 | * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New | |
2347 | typedefs. | |
2348 | ||
58a76c72 TT |
2349 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2350 | ||
2351 | * f-lang.c (fortran_bound_1arg::evaluate) | |
2352 | (fortran_bound_2arg::evaluate): New methods. | |
2353 | * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg): | |
2354 | New. | |
2355 | ||
2f98abe1 TT |
2356 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2357 | ||
2358 | * expop.h (class unop_addr_operation) <get_expression>: New | |
2359 | method. | |
2360 | * f-lang.c (fortran_undetermined::value_subarray) | |
2361 | (fortran_undetermined::evaluate): New methods. | |
2362 | (fortran_prepare_argument): New overload. | |
2363 | * f-exp.h (class fortran_range_operation) | |
2364 | (class fortran_undetermined): New classes. | |
2365 | ||
638fd74a TT |
2366 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2367 | ||
2368 | * rust-lang.c (rust_structop::evaluate_funcall): New method. | |
2369 | * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare | |
2370 | method. | |
2371 | ||
a00b7254 TT |
2372 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2373 | ||
2374 | * expression.h (class operation) <evaluate_funcall>: New methods. | |
2375 | * expop.h (class scope_operation) <evaluate_funcall>: New method. | |
2376 | (class var_value_operation) <evaluate_funcall>: New method. | |
2377 | (class structop_base_operation) <evaluate_funcall>: New method. | |
2378 | (class var_msym_value_operation) <evaluate_funcall>: New method. | |
2379 | (class structop_member_base): New class. | |
2380 | (class structop_member_operation): Derive from | |
2381 | structop_member_base. | |
2382 | (class structop_mptr_operation): Derive from | |
2383 | structop_member_base. | |
2384 | (class funcall_operation): New class. | |
2385 | * eval.c (operation::evaluate_funcall) | |
2386 | (var_value_operation::evaluate_funcall) | |
2387 | (scope_operation::evaluate_funcall) | |
2388 | (structop_member_base::evaluate_funcall) | |
2389 | (structop_base_operation::evaluate_funcall): New methods. | |
2390 | ||
1c02eb30 TT |
2391 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2392 | ||
2393 | * expop.h (class array_operation): New. | |
2394 | * eval.c (array_operation::evaluate_struct_tuple) | |
2395 | (array_operation::evaluate): New methods. | |
2396 | ||
e4479080 TT |
2397 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2398 | ||
2399 | * expop.h (class adl_func_operation): New. | |
2400 | * eval.c (adl_func_operation::evaluate): New method. | |
2401 | ||
95d49dfb TT |
2402 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2403 | ||
2404 | * ada-lang.c (ada_unop_in_range): No longer static. | |
2405 | * ada-exp.h (class ada_unop_range_operation): New. | |
2406 | ||
7c15d377 TT |
2407 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2408 | ||
2409 | * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs): | |
2410 | No longer static. | |
2411 | * ada-exp.h (ada_neg_operation, ada_atr_tag_operation) | |
2412 | (ada_atr_size_operation, ada_abs_operation): New typedefs. | |
2413 | ||
5019124b TT |
2414 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2415 | ||
2416 | * expop.h (class logical_and_operation) | |
2417 | (class logical_or_operation): New. | |
2418 | * eval.c (logical_and_operation::evaluate) | |
2419 | (logical_or_operation::evaluate): New methods. | |
2420 | * ax-gdb.c (logical_and_operation::do_generate_ax) | |
2421 | (logical_or_operation::do_generate_ax): New methods. | |
2422 | ||
2bc9b40c TT |
2423 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2424 | ||
2425 | * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer | |
2426 | static. | |
2427 | * m2-exp.h: New file. | |
2428 | ||
5947d337 TT |
2429 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2430 | ||
2431 | * rust-lang.c (rust_aggregate_operation::evaluate): New method. | |
2432 | * rust-exp.h (class rust_aggregate_operation): New. | |
2433 | ||
e4407a20 TT |
2434 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2435 | ||
2436 | * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop): | |
2437 | No longer static. | |
2438 | * rust-exp.h (class rust_struct_anon): New. | |
2439 | (class rust_structop): New. | |
2440 | ||
9db6b6dd TT |
2441 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2442 | ||
2443 | * rust-lang.c (rust_range): No longer static. | |
2444 | * rust-exp.h (class rust_range_operation): New. | |
2445 | ||
6ce1ad67 TT |
2446 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2447 | ||
2448 | * rust-lang.c (rust_subscript): No longer static. | |
2449 | * rust-exp.h (class rust_subscript_operation): New. | |
2450 | ||
11dd3dce TT |
2451 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2452 | ||
2453 | * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode" | |
2454 | parameter. | |
2455 | (rust_evaluate_subexp): Update. | |
2456 | * rust-exp.h (class rust_unop_ind_operation): New. | |
2457 | ||
6fab4359 TT |
2458 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2459 | ||
2460 | * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No | |
2461 | longer static. Add "opcode" parameter. | |
2462 | (rust_evaluate_subexp): Update. | |
2463 | * rust-exp.h: New file. | |
2464 | ||
9dcd3e29 TT |
2465 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2466 | ||
2467 | * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil) | |
2468 | (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx) | |
2469 | (eval_op_f_kind): No longer static. Add "opcode" parameter. | |
2470 | (evaluate_subexp_f): Update. | |
2471 | * f-exp.h: New file. | |
2472 | ||
fc715eb2 TT |
2473 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2474 | ||
2475 | * ada-lang.c (ada_ternop_range_operation::evaluate): New method. | |
2476 | * ada-exp.h (class ada_ternop_range_operation): New. | |
2477 | ||
cc6bd32e TT |
2478 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2479 | ||
2480 | * ada-lang.c (ada_qual_operation::evaluate): New method. | |
2481 | * ada-exp.h (class ada_qual_operation): New. | |
2482 | ||
42fecb61 TT |
2483 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2484 | ||
2485 | * ada-lang.c (ada_string_operation::evaluate): New method. | |
2486 | * ada-exp.h (class ada_string_operation): New. | |
2487 | ||
03070ee9 TT |
2488 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2489 | ||
2490 | * ada-lang.c (ada_wrapped_operation::evaluate): New method. | |
2491 | * ada-exp.h: New file. | |
2492 | ||
821e72d7 TT |
2493 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2494 | ||
2495 | * expop.h (class multi_subscript_operation): New. | |
2496 | * eval.c (multi_subscript_operation::evaluate): New method. | |
2497 | ||
085734dd TT |
2498 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2499 | ||
2500 | * eval.c (objc_msgcall_operation::evaluate): New method. | |
2501 | * c-exp.h (class objc_msgcall_operation): New. | |
2502 | ||
e82a5afc TT |
2503 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2504 | ||
2505 | * expop.h (class var_value_operation): New. | |
2506 | * eval.c (var_value_operation::evaluate) | |
2507 | (var_value_operation::evaluate_for_address) | |
2508 | (var_value_operation::evaluate_with_coercion) | |
2509 | (var_value_operation::evaluate_for_sizeof) | |
2510 | (var_value_operation::evaluate_for_cast): New methods. | |
2511 | * ax-gdb.c (var_value_operation::do_generate_ax): New method. | |
2512 | ||
d9ad79d8 TT |
2513 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2514 | ||
2515 | * expop.h (cxx_cast_ftype): New typedef. | |
2516 | (cxx_cast_operation): New template. | |
2517 | (dynamic_cast_operation, reinterpret_cast_operation): New | |
2518 | typedefs. | |
2519 | ||
292382f4 TT |
2520 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2521 | ||
2522 | * expop.h (class unop_cast_type_operation): New. | |
2523 | * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New | |
2524 | method. | |
2525 | ||
165a813a TT |
2526 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2527 | ||
2528 | * expop.h (class unop_cast_operation): New. | |
2529 | * ax-gdb.c (unop_cast_operation::do_generate_ax): New method. | |
2530 | ||
e5946e16 TT |
2531 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2532 | ||
2533 | * expop.h (class assign_modify_operation): New. | |
2534 | * eval.c (eval_binop_assign_modify): No longer static. | |
2535 | * ax-gdb.c (assign_modify_operation::do_generate_ax): New method. | |
2536 | ||
40786782 TT |
2537 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2538 | ||
2539 | * expop.h (class assign_operation): New. | |
2540 | * ax-gdb.c (assign_operation::do_generate_ax): New method. | |
2541 | ||
44b675c8 TT |
2542 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2543 | ||
2544 | * expop.h (class type_instance_operation): New. | |
2545 | * eval.c (type_instance_operation::evaluate): New method. | |
2546 | ||
f6b42326 TT |
2547 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2548 | ||
2549 | * expop.h (class op_this_operation): New. | |
2550 | * ax-gdb.c (op_this_operation::do_generate_ax): New method. | |
2551 | ||
cbc18219 TT |
2552 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2553 | ||
2554 | * expop.h (class unop_memval_operation) | |
2555 | (class unop_memval_type_operation): New. | |
2556 | * eval.c (eval_op_memval): No longer static. | |
2557 | (unop_memval_operation::evaluate_for_address) | |
2558 | (unop_memval_type_operation::evaluate_for_address) | |
2559 | (unop_memval_operation::evaluate_for_sizeof) | |
2560 | (unop_memval_type_operation::evaluate_for_sizeof): New methods. | |
2561 | * ax-gdb.c (unop_memval_operation::do_generate_ax) | |
2562 | (unop_memval_type_operation::do_generate_ax): New methods. | |
2563 | ||
ae4bb61e TT |
2564 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2565 | ||
2566 | * expop.h (class unop_alignof_operation): New. | |
2567 | * eval.c (eval_op_alignof): No longer static. | |
2568 | ||
85d23bda TT |
2569 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2570 | ||
2571 | * expop.h (class unop_sizeof_operation): New. | |
2572 | * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method. | |
2573 | ||
14aff815 TT |
2574 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2575 | ||
2576 | * expop.h (class unop_addr_operation): New. | |
2577 | * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New. | |
2578 | ||
929f3aa7 TT |
2579 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2580 | ||
2581 | * expop.h (class typeid_operation): New. | |
2582 | ||
0af8829e TT |
2583 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2584 | ||
2585 | * expop.h (class decltype_operation): New. | |
2586 | ||
4efc574c TT |
2587 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2588 | ||
2589 | * expop.h (class typeof_operation): New. | |
2590 | ||
5b5f5140 TT |
2591 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2592 | ||
2593 | * expop.h (class type_operation): New. | |
2594 | * eval.c (eval_op_type): No longer static. | |
2595 | ||
876469ff TT |
2596 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2597 | ||
2598 | * expop.h (class unop_ind_base_operation) | |
2599 | (class unop_ind_operation): New. | |
2600 | * eval.c (eval_op_ind): No longer static. Remove "op" parameter. | |
2601 | (unop_ind_base_operation::evaluate_for_address) | |
2602 | (unop_ind_base_operation::evaluate_for_sizeof): New method. | |
2603 | * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New. | |
2604 | ||
6d89e296 TT |
2605 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2606 | ||
2607 | * expop.h (unop_incr_operation): New template. | |
2608 | (preinc_operation, predec_operation, postinc_operation) | |
2609 | (postdec_operation): New typedefs. | |
2610 | * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc) | |
2611 | (eval_op_postdec): No longer static. | |
2612 | ||
9307d17b TT |
2613 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2614 | ||
2615 | * expop.h (unary_ftype): New typedef. | |
2616 | (unop_operation, usual_ax_binop_operation): New templates. | |
2617 | (unary_plus_operation, unary_neg_operation) | |
2618 | (unary_complement_operation, unary_logical_not_operation): New | |
2619 | typedefs. | |
2620 | * eval.c (eval_op_plus, eval_op_neg, eval_op_complement) | |
2621 | (eval_op_lognot): No longer static. | |
2622 | * ax-gdb.c (gen_expr_unop): New function. | |
2623 | ||
ae64ba58 TT |
2624 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2625 | ||
2626 | * ax-gdb.c (comma_operation::do_generate_ax): New method. | |
2627 | ||
d4eff4c1 TT |
2628 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2629 | ||
2630 | * expop.h (class repeat_operation): New. | |
2631 | * eval.c (eval_op_repeat): No longer static. Remove "op" | |
2632 | parameter. | |
2633 | (evaluate_subexp_standard): Update. | |
2634 | * ax-gdb.c (repeat_operation::do_generate_ax): New method. | |
2635 | ||
46916f2b TT |
2636 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2637 | ||
2638 | * expop.h (class comparison_operation): New. | |
2639 | (equal_operation, notequal_operation, less_operation) | |
2640 | (gtr_operation, geq_operation, leq_operation): New typedefs. | |
2641 | * eval.c (eval_op_equal, eval_op_notequal, eval_op_less) | |
2642 | (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static. | |
2643 | ||
224d6424 TT |
2644 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2645 | ||
2646 | * expop.h (class subscript_operation): New. | |
2647 | * eval.c (eval_op_subscript): No longer static. | |
2648 | ||
373907ff TT |
2649 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2650 | ||
2651 | * expop.h (class binop_operation, class usual_ax_binop_operation): | |
2652 | New. | |
2653 | (exp_operation, intdiv_operation, mod_operation, mul_operation) | |
2654 | (div_operation, rem_operation, lsh_operation, rsh_operation) | |
2655 | (bitwise_and_operation, bitwise_ior_operation) | |
2656 | (bitwise_xor_operation): New typedefs. | |
2657 | * eval.c (eval_op_binary): No longer static. | |
2658 | ||
5133d78b TT |
2659 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2660 | ||
2661 | * expop.h (class sub_operation): New. | |
2662 | * eval.c (eval_op_sub): No longer static. Remove "op" parameter. | |
2663 | (evaluate_subexp_standard): Update. | |
2664 | ||
a94323b6 TT |
2665 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2666 | ||
2667 | * expop.h (class add_operation): New. | |
2668 | * eval.c (eval_op_add): No longer static. Remove "op" parameter. | |
2669 | (evaluate_subexp_standard): Update. | |
2670 | ||
e51e26a0 TT |
2671 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2672 | ||
2673 | * expop.h (class concat_operation): New. | |
2674 | * eval.c (eval_op_concat): No longer static. Remove "op" | |
2675 | parameter. | |
2676 | (evaluate_subexp_standard): Update. | |
2677 | ||
07f724a8 TT |
2678 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2679 | ||
2680 | * expop.h (class structop_member_operation) | |
2681 | (class structop_mptr_operation): New. | |
2682 | * eval.c (eval_op_member): No longer static. | |
2683 | ||
ab0609be TT |
2684 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2685 | ||
2686 | * expop.h (class structop_ptr_operation): New. | |
2687 | * eval.c (eval_op_structop_ptr): No longer static. Remove "op" | |
2688 | parameter. | |
2689 | ||
808b22cf TT |
2690 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2691 | ||
2692 | * expop.h (class structop_base_operation) | |
2693 | (class structop_operation): New. | |
2694 | * eval.c (eval_op_structop_struct): No longer static. | |
2695 | ||
8cfd3e95 TT |
2696 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2697 | ||
2698 | * expop.h (class complex_operation): New. | |
2699 | ||
09db3700 TT |
2700 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2701 | ||
2702 | * eval.c (eval_op_objc_selector): No longer static. | |
2703 | * c-exp.h (class objc_selector_operation): New. | |
2704 | ||
06dc61b9 TT |
2705 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2706 | ||
2707 | * eval.c: Include c-exp.h. | |
2708 | * c-exp.h (class objc_nsstring_operation): New. | |
2709 | ||
72d0a711 TT |
2710 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2711 | ||
2712 | * c-lang.c (c_string_operation::evaluate): New method. | |
2713 | * c-exp.h: New file. | |
2714 | ||
9186293f TT |
2715 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2716 | ||
2717 | * expop.h (class ternop_cond_operation): New. | |
2718 | * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method. | |
2719 | ||
1594e0bb TT |
2720 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2721 | ||
2722 | * expop.h (class ternop_slice_operation): New. | |
2723 | * eval.c (eval_op_ternop): No longer static. | |
2724 | ||
b50db09f TT |
2725 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2726 | ||
2727 | * expop.h (class string_operation): New. | |
2728 | * eval.c (eval_op_string): No longer static. | |
2729 | ||
e6e01e16 TT |
2730 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2731 | ||
2732 | * expop.h (class internalvar_operation): New. | |
2733 | * ax-gdb.c (internalvar_operation::do_generate_ax): New method. | |
2734 | ||
e6985c5e TT |
2735 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2736 | ||
2737 | * expop.h (class bool_operation): New. | |
2738 | ||
55bdbff8 TT |
2739 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2740 | ||
2741 | * expop.h (class register_operation): New. | |
2742 | * eval.c (eval_op_register): No longer static. | |
2743 | * ax-gdb.c (register_operation::do_generate_ax): New method. | |
2744 | ||
247d935b TT |
2745 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2746 | ||
2747 | * expop.h (class last_operation): New. | |
2748 | ||
17679395 TT |
2749 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2750 | ||
2751 | * expop.h (class func_static_var_operation): New. | |
2752 | * eval.c (eval_op_func_static_var): No longer static. | |
2753 | ||
b5cc3923 TT |
2754 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2755 | ||
2756 | * expop.h (class var_entry_value_operation): New. | |
2757 | * eval.c (eval_op_var_entry_value): No longer static. | |
2758 | ||
0c8effa3 TT |
2759 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2760 | ||
2761 | * expression.h (class operation) <set_outermost>: New method. | |
2762 | * expop.h (class var_msym_value_operation): New. | |
2763 | * eval.c (eval_op_var_msym_value): No longer static. | |
2764 | (var_msym_value_operation::evaluate_for_address) | |
2765 | (var_msym_value_operation::evaluate_for_sizeof) | |
2766 | (var_msym_value_operation::evaluate_for_cast): New methods. | |
2767 | * ax-gdb.c (var_msym_value_operation::do_generate_ax): New | |
2768 | method. | |
2769 | ||
d336c29e TT |
2770 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2771 | ||
2772 | * expop.h (class long_const_operation): New. | |
2773 | * ax-gdb.c (long_const_operation::do_generate_ax): New method. | |
2774 | ||
d5ab122c TT |
2775 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2776 | ||
2777 | * expop.h (class scope_operation): New. | |
2778 | * eval.c (eval_op_scope): No longer static. | |
2779 | (scope_operation::evaluate_for_address): New method. | |
2780 | * ax-gdb.c (scope_operation::do_generate_ax): New method. | |
2781 | ||
cae26a0c TT |
2782 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2783 | ||
2784 | * expprint.c (float_const_operation::dump): New method. | |
2785 | * expop.h (float_data): New typedef. | |
2786 | (class float_const_operation): New. | |
2787 | ||
75f9892d TT |
2788 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2789 | ||
2790 | * expop.h (gen_expr_binop, gen_expr_structop): Declare. | |
2791 | * ax-gdb.c (gen_expr_binop): New function. | |
2792 | (gen_expr_structop): Likewise. | |
2793 | ||
de401988 TT |
2794 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2795 | ||
2796 | * expprint.c (expr::dump_for_expression): New functions. | |
2797 | * expop.h (dump_for_expression): New overloads. | |
2798 | (tuple_holding_operation::dump, tuple_holding_operation::do_dump): | |
2799 | Update. | |
2800 | ||
e2803273 TT |
2801 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2802 | ||
2803 | * expression.h (expr::operation): New class. | |
2804 | (expr::make_operation): New function. | |
2805 | (expr::operation_up): New typedef. | |
2806 | * expop.h: New file. | |
2807 | * eval.c (operation::evaluate_for_cast) | |
2808 | (operation::evaluate_for_address, operation::evaluate_for_sizeof): | |
2809 | New methods. | |
2810 | * ax-gdb.c (operation::generate_ax): New method. | |
2811 | ||
e18c58f2 TT |
2812 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2813 | ||
2814 | * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter. | |
2815 | (gen_expr_binop_rest): New overload. | |
2816 | ||
c0d7ed8c TT |
2817 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2818 | ||
2819 | * eval.c (eval_multi_subscript): New function. | |
2820 | (evaluate_subexp_standard): Use it. | |
2821 | ||
dd5fd283 TT |
2822 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2823 | ||
2824 | * ada-lang.c (ada_binop_exp): New function. | |
2825 | (ada_evaluate_subexp): Use it. | |
2826 | ||
3848abd6 TT |
2827 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2828 | ||
2829 | * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change | |
2830 | parameters. | |
2831 | (ada_evaluate_subexp): Use it. | |
2832 | ||
38dc70cf TT |
2833 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2834 | ||
2835 | * ada-lang.c (ada_binop_minmax): New function. | |
2836 | (ada_evaluate_subexp): Use it. | |
2837 | ||
b84564fc TT |
2838 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2839 | ||
2840 | * ada-lang.c (ada_unop_atr): New function. | |
2841 | (ada_evaluate_subexp): Use it. | |
2842 | ||
b467efaa TT |
2843 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2844 | ||
2845 | * ada-lang.c (ada_binop_in_bounds): New function. | |
2846 | (ada_evaluate_subexp): Use it. | |
2847 | ||
5ce19db8 TT |
2848 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2849 | ||
2850 | * ada-lang.c (ada_ternop_slice): New function. | |
2851 | (ada_evaluate_subexp): Use it. | |
2852 | ||
214b13ac TT |
2853 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2854 | ||
2855 | * ada-lang.c (ada_equal_binop): New function. | |
2856 | (ada_evaluate_subexp): Use it. | |
2857 | ||
faa1dfd7 TT |
2858 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2859 | ||
2860 | * ada-lang.c (ada_mult_binop): New function. | |
2861 | (ada_evaluate_subexp): Use it. | |
2862 | ||
d05e24e6 TT |
2863 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2864 | ||
2865 | * ada-lang.c (ada_abs): New function. | |
2866 | (ada_evaluate_subexp): Use it. | |
2867 | ||
68c75735 TT |
2868 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2869 | ||
2870 | * ada-lang.c (ada_atr_size): New function. | |
2871 | (ada_evaluate_subexp): Use it. | |
2872 | ||
020dbabe TT |
2873 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2874 | ||
2875 | * ada-lang.c (ada_atr_tag): New function. | |
2876 | (ada_evaluate_subexp): Use it. | |
2877 | ||
7efc87ff TT |
2878 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2879 | ||
2880 | * ada-lang.c (ada_unop_in_range): New function. | |
2881 | (ada_evaluate_subexp): Use it. | |
2882 | ||
82390ab8 TT |
2883 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2884 | ||
2885 | * ada-lang.c (ada_unop_neg): New function. | |
2886 | (ada_evaluate_subexp): Use it. | |
2887 | ||
62d4bd94 TT |
2888 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2889 | ||
2890 | * ada-lang.c (eval_ternop_in_range): New function. | |
2891 | (ada_evaluate_subexp): Use it. | |
2892 | ||
3634f669 TT |
2893 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2894 | ||
2895 | * opencl-lang.c (eval_opencl_assign): New function. | |
2896 | (evaluate_subexp_opencl): Use it. | |
2897 | ||
5e80600e TT |
2898 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2899 | ||
2900 | * eval.c (eval_op_objc_msgcall): New function. | |
2901 | (evaluate_subexp_standard): Use it. | |
2902 | ||
fb5ba2ab TT |
2903 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2904 | ||
2905 | * eval.c (eval_binop_assign_modify): New function. | |
2906 | (evaluate_subexp_standard): Use it. | |
2907 | ||
a49881f7 TT |
2908 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2909 | ||
2910 | * m2-lang.c (eval_op_m2_subscript): New function. | |
2911 | (evaluate_subexp_modula2): Use it. | |
2912 | ||
41bdced5 TT |
2913 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2914 | ||
2915 | * m2-lang.c (eval_op_m2_high): New function. | |
2916 | (evaluate_subexp_modula2): Use it. | |
2917 | ||
13ea014a TT |
2918 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2919 | ||
2920 | * eval.c (evaluate_subexp_for_address_base): New function. | |
2921 | (evaluate_subexp_for_address): Use it. | |
2922 | (evaluate_subexp_for_sizeof_base): New function. | |
2923 | (evaluate_subexp_for_sizeof): Use it. | |
2924 | ||
1fa41fc7 TT |
2925 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2926 | ||
2927 | * rust-lang.c (eval_op_rust_structop): New function. | |
2928 | (rust_evaluate_subexp): Use it. | |
2929 | ||
575cae23 TT |
2930 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2931 | ||
2932 | * rust-lang.c (eval_op_rust_struct_anon): New function. | |
2933 | (rust_evaluate_subexp): Use it. | |
2934 | ||
05104233 TT |
2935 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2936 | ||
2937 | * rust-lang.c (eval_op_rust_array): New function. | |
2938 | (rust_evaluate_subexp): Use it. | |
2939 | ||
6fa9831f TT |
2940 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2941 | ||
2942 | * rust-lang.c (eval_op_rust_complement): New function. | |
2943 | (rust_evaluate_subexp): Use it. | |
2944 | ||
d123f9e4 TT |
2945 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2946 | ||
2947 | * rust-lang.c (eval_op_rust_ind): New function. | |
2948 | (rust_evaluate_subexp): Use it. | |
2949 | ||
984af2cb TT |
2950 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2951 | ||
2952 | * rust-lang.c (rust_subscript): Change parameters. | |
2953 | (rust_evaluate_subexp): Update. | |
2954 | ||
d148f803 TT |
2955 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2956 | ||
2957 | * rust-lang.c (rust_range): Change parameters. | |
2958 | (rust_evaluate_subexp): Update. | |
2959 | ||
9cbd1c20 TT |
2960 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2961 | ||
2962 | * f-lang.c (eval_op_f_allocated): New function. | |
2963 | (evaluate_subexp_f): Use it. | |
2964 | ||
3c18c49c TT |
2965 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2966 | ||
2967 | * f-lang.c (fortran_require_array): New function. | |
2968 | (evaluate_subexp_f): Use it. | |
2969 | ||
216f6fcb TT |
2970 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2971 | ||
2972 | * f-lang.c (eval_op_f_kind): New function. | |
2973 | (evaluate_subexp_f): Use it. | |
2974 | ||
00f2db6f TT |
2975 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2976 | ||
2977 | * f-lang.c (eval_op_f_cmplx): New function. | |
2978 | (evaluate_subexp_f): Use it. | |
2979 | ||
93b2b5fa TT |
2980 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2981 | ||
2982 | * f-lang.c (eval_op_f_modulo): New function. | |
2983 | (evaluate_subexp_f): Use it. | |
2984 | ||
9f1a1f3c TT |
2985 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2986 | ||
2987 | * f-lang.c (eval_op_f_floor): New function. | |
2988 | (evaluate_subexp_f): Use it. | |
2989 | ||
3dc41f3c TT |
2990 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2991 | ||
2992 | * f-lang.c (eval_op_f_ceil): New function. | |
2993 | (evaluate_subexp_f): Use it. | |
2994 | ||
e08109f2 TT |
2995 | 2021-03-08 Tom Tromey <tom@tromey.com> |
2996 | ||
2997 | * f-lang.c (eval_op_f_mod): New function. | |
2998 | (evaluate_subexp_f): Use it. | |
2999 | ||
cc05c68e TT |
3000 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3001 | ||
3002 | * f-lang.c (eval_op_f_abs): New function. | |
3003 | (evaluate_subexp_f): Use it. | |
3004 | ||
aec95807 TT |
3005 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3006 | ||
3007 | * eval.c (eval_op_type): New function. | |
3008 | (evaluate_subexp_standard): Use it. | |
3009 | ||
a220ead5 TT |
3010 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3011 | ||
3012 | * eval.c (eval_op_postdec): New function. | |
3013 | (evaluate_subexp_standard): Use it. | |
3014 | ||
abffe116 TT |
3015 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3016 | ||
3017 | * eval.c (eval_op_postinc): New function. | |
3018 | (evaluate_subexp_standard): Use it. | |
3019 | ||
9e1361b7 TT |
3020 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3021 | ||
3022 | * eval.c (eval_op_predec): New file. | |
3023 | (evaluate_subexp_standard): Use it. | |
3024 | ||
00f50884 TT |
3025 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3026 | ||
3027 | * eval.c (eval_op_preinc): New function. | |
3028 | (evaluate_subexp_standard): Use it. | |
3029 | ||
3aef2a07 TT |
3030 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3031 | ||
3032 | * eval.c (eval_op_memval): New function. | |
3033 | (evaluate_subexp_standard): Use it. | |
3034 | ||
acee9468 TT |
3035 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3036 | ||
3037 | * eval.c (eval_op_alignof): New function. | |
3038 | (evaluate_subexp_standard): Use it. | |
3039 | ||
786f70ee TT |
3040 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3041 | ||
3042 | * eval.c (eval_op_ind): New function. | |
3043 | (evaluate_subexp_standard): Use it. | |
3044 | ||
24338fb9 TT |
3045 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3046 | ||
3047 | * eval.c (eval_op_lognot): New function. | |
3048 | (evaluate_subexp_standard): Use it. | |
3049 | ||
1f09ec81 TT |
3050 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3051 | ||
3052 | * eval.c (eval_op_complement): New function. | |
3053 | (evaluate_subexp_standard): Use it. | |
3054 | ||
606d105f TT |
3055 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3056 | ||
3057 | * eval.c (eval_op_neg): New function. | |
3058 | (evaluate_subexp_standard): Use it. | |
3059 | ||
39f288be TT |
3060 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3061 | ||
3062 | * eval.c (eval_op_plus): New function. | |
3063 | (evaluate_subexp_standard): Use it. | |
3064 | ||
eed70b1c TT |
3065 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3066 | ||
3067 | * eval.c (eval_op_repeat): New function. | |
3068 | (evaluate_subexp_standard): Use it. | |
3069 | ||
60cdd487 TT |
3070 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3071 | ||
3072 | * eval.c (eval_op_leq): New function. | |
3073 | (evaluate_subexp_standard): Use it. | |
3074 | ||
96e3efd9 TT |
3075 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3076 | ||
3077 | * eval.c (eval_op_geq): New function. | |
3078 | (evaluate_subexp_standard): Use it. | |
3079 | ||
1f78d732 TT |
3080 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3081 | ||
3082 | * eval.c (eval_op_gtr): New function. | |
3083 | (evaluate_subexp_standard): Use it. | |
3084 | ||
6cad1349 TT |
3085 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3086 | ||
3087 | * eval.c (eval_op_less): New function. | |
3088 | (evaluate_subexp_standard): Use it. | |
3089 | ||
1fcb3559 TT |
3090 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3091 | ||
3092 | * eval.c (eval_op_notequal): New function. | |
3093 | (evaluate_subexp_standard): Use it. | |
3094 | ||
0cc96de8 TT |
3095 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3096 | ||
3097 | * eval.c (eval_op_equal): New function. | |
3098 | (evaluate_subexp_standard): Use it. | |
3099 | ||
288d26bc TT |
3100 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3101 | ||
3102 | * eval.c (eval_op_subscript): New function. | |
3103 | (evaluate_subexp_standard): Use it. | |
3104 | ||
7cdcdd02 TT |
3105 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3106 | ||
3107 | * eval.c (eval_op_binary): New function. | |
3108 | (evaluate_subexp_standard): Use it. | |
3109 | ||
d9790e22 TT |
3110 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3111 | ||
3112 | * eval.c (eval_op_sub): New function. | |
3113 | (evaluate_subexp_standard): Use it. | |
3114 | ||
aedaf9ac TT |
3115 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3116 | ||
3117 | * eval.c (eval_op_add): New function. | |
3118 | (evaluate_subexp_standard): Use it. | |
3119 | ||
b7a96ed2 TT |
3120 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3121 | ||
3122 | * eval.c (eval_op_member): New function. | |
3123 | (evaluate_subexp_standard): Use it. | |
3124 | ||
fb461aa3 TT |
3125 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3126 | ||
3127 | * eval.c (eval_op_structop_ptr): New function. | |
3128 | (evaluate_subexp_standard): Use it. | |
3129 | ||
3e96c4fc TT |
3130 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3131 | ||
3132 | * eval.c (eval_op_structop_struct): New function. | |
3133 | (evaluate_subexp_standard): Use it. | |
3134 | ||
f960a617 TT |
3135 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3136 | ||
3137 | * eval.c (eval_op_ternop): New function. | |
3138 | (evaluate_subexp_standard): Use it. | |
3139 | ||
5c2f201e TT |
3140 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3141 | ||
3142 | * eval.c (eval_op_concat): New function. | |
3143 | (evaluate_subexp_standard): Use it. | |
3144 | ||
f871bae1 TT |
3145 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3146 | ||
3147 | * eval.c (eval_op_objc_selector): New function. | |
3148 | (evaluate_subexp_standard): Use it. | |
3149 | ||
14a1c64a TT |
3150 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3151 | ||
3152 | * eval.c (eval_op_string): New function. | |
3153 | (evaluate_subexp_standard): Use it. | |
3154 | ||
ffff730b TT |
3155 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3156 | ||
3157 | * eval.c (eval_op_register): New function. | |
3158 | (evaluate_subexp_standard): Use it. | |
3159 | ||
9b1d8af6 TT |
3160 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3161 | ||
3162 | * eval.c (eval_op_func_static_var): New function. | |
3163 | (evaluate_subexp_standard): Use it. | |
3164 | ||
c0df9289 TT |
3165 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3166 | ||
3167 | * eval.c (eval_op_var_msym_value): New function. | |
3168 | (evaluate_subexp_standard): Use it. | |
3169 | ||
50b98adc TT |
3170 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3171 | ||
3172 | * eval.c (eval_op_var_entry_value): New function. | |
3173 | (evaluate_subexp_standard): Use it. | |
3174 | ||
ea2d29f7 TT |
3175 | 2021-03-08 Tom Tromey <tom@tromey.com> |
3176 | ||
3177 | * eval.c (eval_op_scope): New function. | |
3178 | (evaluate_subexp_standard): Use it. | |
3179 | ||
01573d73 TT |
3180 | 2021-03-06 Chernov Sergey <klen_s@mail.ru> |
3181 | ||
3182 | PR gdb/27528: | |
3183 | * ada-lang.c (ada_fold_name): Use gdb::to_string. | |
3184 | ||
9938d15a TT |
3185 | 2021-03-06 Tom Tromey <tom@tromey.com> |
3186 | ||
3187 | * dwarf2/sect-names.h (dwarf2_elf_names): Declare. | |
3188 | * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h. | |
3189 | * dwarf2/read.c (dwarf2_elf_names): No longer static. | |
3190 | (locate_dwz_sections, dwz_search_other_debugdirs) | |
3191 | (dwarf2_get_dwz_file): Move to dwz.c. | |
3192 | * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from | |
3193 | read.h. | |
3194 | * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs) | |
3195 | (dwarf2_get_dwz_file): Move from read.c. | |
3196 | ||
18035655 TT |
3197 | 2021-03-06 Tom Tromey <tom@tromey.com> |
3198 | ||
3199 | * debuginfod-support.h: Include scoped_fd.h. | |
3200 | ||
a7308ce0 TT |
3201 | 2021-03-06 Tom Tromey <tom@tromey.com> |
3202 | ||
3203 | * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter. | |
3204 | * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter. | |
3205 | (get_abbrev_section_for_cu, read_attribute_value) | |
3206 | (get_debug_line_section): Update. | |
3207 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
3208 | ||
fbedd546 TT |
3209 | 2021-03-06 Tom Tromey <tom@tromey.com> |
3210 | ||
3211 | * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New | |
3212 | method. | |
3213 | * dwarf2/read.c (section_is_p): Remove. | |
3214 | (dwarf2_per_bfd::locate_sections) | |
3215 | (dwarf2_per_bfd::locate_sections, locate_dwz_sections) | |
3216 | (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections) | |
3217 | (dwarf2_locate_common_dwp_sections) | |
3218 | (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections): | |
3219 | Update. | |
3220 | ||
c2a62a3d TT |
3221 | 2021-03-06 Tom Tromey <tom@tromey.com> |
3222 | ||
3223 | * xcoffread.c: Include sect-names.h. | |
3224 | * symfile.h (struct dwarf2_section_names, struct | |
3225 | dwarf2_debug_sections): Move to dwarf2/sect-names.h. | |
3226 | * dwarf2/sect-names.h: New file, from symfile.h. | |
3227 | * dwarf2/read.c: Include sect-names.h. | |
3228 | ||
4444f407 TT |
3229 | 2021-03-06 Tom Tromey <tom@tromey.com> |
3230 | ||
3231 | * dwarf2/read.c (read_attribute): Make 'abbrev' const. | |
3232 | * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove. | |
3233 | (abbrev_table::read): Update. | |
3234 | * dwarf2/abbrev.h (struct attr_abbrev): Move earlier. | |
3235 | (struct abbrev_info): Reformat. | |
3236 | <attrs>: Now an array. | |
3237 | (struct abbrev_table) <alloc_abbrev>: Remove. | |
3238 | ||
dd99cf0c WP |
3239 | 2021-03-06 Weimin Pan <weimin.pan@oracle.com> |
3240 | ||
3241 | * ctfread.c (ctf_psymtab_add_enums): New function. | |
3242 | (ctf_psymtab_type_cb): call ctf_psymtab_add_enums. | |
3243 | ||
844be3f2 WP |
3244 | 2021-03-06 Weimin Pan <weimin.pan@oracle.com> |
3245 | ||
3246 | * ctfread.c (read_func_kind_type): Set up function arguments. | |
3247 | ||
b2668f28 AB |
3248 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
3249 | Andrew Burgess <andrew.burgess@embecosm.com> | |
3250 | ||
3251 | * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h' | |
3252 | includes. | |
3253 | (riscv_csrset): New static global. | |
3254 | (riscv_update_csrmap): New function. | |
3255 | (riscv_iterate_over_regset_sections): Process CSRs. | |
3256 | ||
d782d24b AB |
3257 | 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com> |
3258 | ||
3259 | * riscv-tdep.c (riscv_feature_name_csr): Define. | |
3260 | (riscv_feature_name_cpu): Define. | |
3261 | (riscv_feature_name_fpu): Define. | |
3262 | (riscv_feature_name_virtual): Define. | |
3263 | (riscv_xreg_feature): Use riscv_feature_name_cpu. | |
3264 | (riscv_freg_feature): Use riscv_feature_name_fpu. | |
3265 | (riscv_virtual_feature): Use riscv_feature_name_virtual. | |
3266 | (riscv_csr_feature): Use riscv_feature_name_csr. | |
3267 | * riscv-tdep.h (riscv_feature_name_csr): Declare. | |
3268 | ||
fb8f3fc0 AB |
3269 | 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com> |
3270 | Craig Blackmore <craig.blackmore@embecosm.com> | |
3271 | ||
3272 | * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o. | |
3273 | (ALLDEPFILES): Add riscv-none-tdep.c. | |
3274 | * configure: Regenerate. | |
3275 | * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF | |
3276 | support. | |
3277 | * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c. | |
3278 | * elf-none-tdep.c: New file. | |
3279 | * elf-none-tdep.h: New file. | |
3280 | * riscv-none-tdep.c: New file. | |
3281 | ||
95ce627a AB |
3282 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
3283 | Andrew Burgess <andrew.burgess@embecosm.com> | |
3284 | ||
3285 | * corelow.c: Add 'xml-tdesc.h' include. | |
3286 | (core_target::read_description): Load the target description from | |
3287 | the core file when possible. | |
3288 | * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description | |
3289 | note. | |
3290 | * gcore-elf.c: Add 'gdbsupport/tdesc.h' include. | |
3291 | (gcore_elf_make_tdesc_note): New function. | |
3292 | * gcore-elf.h (gcore_elf_make_tdesc_note): Declare. | |
3293 | * linux-tdep.c (linux_make_corefile_notes): Add target description | |
3294 | note. | |
3295 | ||
f3a5df7b AB |
3296 | 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com> |
3297 | ||
3298 | * Makefile.in (SFILES): Add gcore-elf.c. | |
3299 | (HFILES_NO_SRCDIR): Add gcore-elf.h | |
3300 | * configure: Regenerate. | |
3301 | * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF | |
3302 | support. | |
3303 | * fbsd-tdep.c: Add 'gcore-elf.h' include. | |
3304 | (struct fbsd_collect_regset_section_cb_data): Delete. | |
3305 | (fbsd_collect_regset_section_cb): Delete. | |
3306 | (fbsd_collect_thread_registers): Delete. | |
3307 | (struct fbsd_corefile_thread_data): Delete. | |
3308 | (fbsd_corefile_thread): Delete. | |
3309 | (fbsd_make_corefile_notes): Call | |
3310 | gcore_elf_build_thread_register_notes instead of the now deleted | |
3311 | FreeBSD code. | |
3312 | * gcore-elf.c: New file, the content was moved here from | |
3313 | linux-tdep.c, functions were renamed and given minor cleanup. | |
3314 | * gcore-elf.h: New file. | |
3315 | * gcore.c (gcore_find_signalled_thread): Moved here from | |
3316 | linux-tdep.c and given a new name. Minor cleanups. | |
3317 | * gcore.h (gcore_find_signalled_thread): Declare. | |
3318 | * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes. | |
3319 | (struct linux_collect_regset_section_cb_data): Delete. | |
3320 | (linux_collect_regset_section_cb): Delete. | |
3321 | (linux_collect_thread_registers): Delete. | |
3322 | (linux_corefile_thread): Call | |
3323 | gcore_elf_build_thread_register_notes. | |
3324 | (find_signalled_thread): Delete. | |
3325 | (linux_make_corefile_notes): Call gcore_find_signalled_thread. | |
3326 | ||
d1e93af6 SM |
3327 | 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
3328 | ||
3329 | PR gdb/27147 | |
3330 | * sparc-nat.h (sparc_fetch_inferior_registers): Add | |
3331 | process_stratum_target parameter, | |
3332 | sparc_store_inferior_registers): update callers. | |
3333 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
3334 | sparc_store_inferior_registers): Add process_stratum_target | |
3335 | parameter. Switch current thread before calling | |
3336 | sparc_supply_gregset / sparc_collect_rwindow. | |
3337 | (sparc_store_inferior_registers): Likewise. | |
3338 | * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion. | |
3339 | (sparc32obsd_collect_uthread): Likewise. | |
3340 | * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): | |
3341 | Add assertion. | |
3342 | * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread, | |
3343 | sparc64obsd_supply_uthread): Add assertion. | |
3344 | ||
1178743e TT |
3345 | 2021-03-04 Tom Tromey <tromey@adacore.com> |
3346 | ||
3347 | * ada-lang.c (struct match_data) <found_sym>: Now bool. | |
3348 | (aux_add_nonlocal_symbols): Update. | |
3349 | (ada_add_block_symbols): Change "found_sym" to bool. | |
3350 | ||
1bfa81ac TT |
3351 | 2021-03-03 Tom Tromey <tromey@adacore.com> |
3352 | ||
3353 | * ada-lang.c (ada_resolve_function): Update comment. | |
3354 | (is_nonfunction, add_symbols_from_enclosing_procs) | |
3355 | (remove_extra_symbols): Likewise. | |
3356 | (struct match_data): Add constructor, initializers. | |
3357 | (add_nonlocal_symbols): Remove memset. | |
3358 | (aux_add_nonlocal_symbols): Update comment. | |
3359 | (ada_add_block_renamings, add_nonlocal_symbols) | |
3360 | (ada_add_all_symbols): Likewise. | |
3361 | * ada-exp.y (write_var_or_type): Clean up trailing whitespace. | |
3362 | ||
bbcdf9ab TT |
3363 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
3364 | ||
3365 | * ada-lang.c (cast_from_gnat_encoded_fixed_point_type) | |
3366 | (cast_to_gnat_encoded_fixed_point_type): Remove. | |
3367 | (ada_value_cast, ada_evaluate_subexp): Update. | |
3368 | (gnat_encoded_fixed_point_type_info) | |
3369 | (ada_is_gnat_encoded_fixed_point_type) | |
3370 | (gnat_encoded_fixed_point_delta) | |
3371 | (gnat_encoded_fixed_point_scaling_factor): Remove. | |
3372 | * ada-lang.h (ada_is_gnat_encoded_fixed_point_type) | |
3373 | (gnat_encoded_fixed_point_delta) | |
3374 | (gnat_encoded_fixed_point_scaling_factor): Don't declare. | |
3375 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove. | |
3376 | (ada_print_type): Update. | |
3377 | * ada-valprint.c (ada_value_print_num): Update. | |
3378 | * dwarf2/read.c (ada_get_gnat_encoded_number) | |
3379 | (ada_get_gnat_encoded_ratio): New functions. | |
3380 | (finish_fixed_point_type): Use them. Add parameters. | |
3381 | (GNAT_FIXED_POINT_SUFFIX): New define. | |
3382 | (gnat_encoded_fixed_point_type_info): New function. | |
3383 | (read_base_type): Handle gnat encodings. | |
3384 | ||
5f9febe0 TT |
3385 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
3386 | ||
3387 | * ada-lang.c (ada_fold_name, ada_variant_discrim_name) | |
3388 | (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use | |
3389 | std::string. | |
3390 | (GROW_VECT): Remove. | |
3391 | (grow_vect): Remove. | |
3392 | ||
d1183b06 TT |
3393 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
3394 | ||
3395 | * ada-lang.h (ada_lookup_symbol_list): Return a vector. | |
3396 | * ada-lang.c (resolve_subexp): Update. | |
3397 | (ada_resolve_function): Accept a vector. | |
3398 | (is_nonfunction, add_defn_to_vec) | |
3399 | (add_symbols_from_enclosing_procs): Likewise. | |
3400 | (num_defns_collected, defns_collected): Remove. | |
3401 | (remove_extra_symbols): Return a vector. | |
3402 | (remove_irrelevant_renamings): Return void. | |
3403 | (ada_add_local_symbols): Accept a vector. | |
3404 | (struct match_data) <obstackp>: Remove. | |
3405 | <resultp>: New member. | |
3406 | (aux_add_nonlocal_symbols): Update. | |
3407 | (ada_add_block_renamings, add_nonlocal_symbols) | |
3408 | (ada_add_all_symbols): Accept a vector. | |
3409 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a | |
3410 | vector. | |
3411 | (ada_lookup_symbol): Update. | |
3412 | (ada_add_block_symbols): Accept a vector. | |
3413 | (get_var_value, iterate_over_symbols): Update. | |
3414 | * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc): | |
3415 | Update. | |
3416 | ||
886d459f TT |
3417 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
3418 | ||
3419 | * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom. | |
3420 | ||
bdcccc56 TT |
3421 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
3422 | ||
3423 | * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an | |
3424 | auto_obstack. | |
3425 | <root>: Initialize. | |
3426 | (ada_pspace_data): Remove destructor. | |
3427 | <sym_cache>: Now a unique_ptr. | |
3428 | (ada_init_symbol_cache, ada_free_symbol_cache): Remove. | |
3429 | (ada_get_symbol_cache): Use 'new'. | |
3430 | (ada_clear_symbol_cache): Rewrite. | |
3431 | ||
1228719f TT |
3432 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
3433 | ||
3434 | * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf | |
3435 | is null. | |
3436 | ||
bb3a4efe LS |
3437 | 2021-02-27 Lancelot Six <lsix@lancelotsix.com> |
3438 | ||
3439 | PR gdb/27393 | |
3440 | * source.c (add_path): Skip empty dirnames. | |
3441 | ||
26b43ca6 | 3442 | 2021-02-25 Kevin Buettner <kevinb@redhat.com> |
0f977b77 KB |
3443 | |
3444 | * nat/aarch64-sve-linux-ptrace.h: Add comment regarding | |
3445 | include order for <sys/ptrace.h> and <asm/ptrace.h>. | |
3446 | ||
dffdd8b5 SM |
3447 | 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
3448 | ||
3449 | PR gdb/26861 | |
3450 | * target.c (target_mourn_inferior): Only compare pids in | |
3451 | target_mourn_inferior. | |
3452 | ||
64d38fdd JM |
3453 | 2021-02-25 Jan Matyas <jmatyas@codasip.com> |
3454 | ||
3455 | PR gdb/26819 | |
3456 | * remote.c (remote_target::start_remote): Ensure the single | |
3457 | thread, automatically added for remote targets without the | |
3458 | concept of threading, is initially in set to the "resumed" | |
3459 | state. | |
3460 | * remote.c (remote_target::add_current_inferior_and_thread): | |
3461 | Add return value - return the main thread. | |
3462 | ||
2450ad54 JV |
3463 | 2021-02-25 Jan Vrany <jan.vrany@labware.com> |
3464 | ||
3465 | * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output. | |
3466 | (mi_tsv_created): Likewise. | |
3467 | (mi_tsv_deleted): Likewise. | |
3468 | ||
30c80d88 TV |
3469 | 2021-02-25 Tom de Vries <tdevries@suse.de> |
3470 | ||
3471 | PR symtab/27354 | |
3472 | * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as | |
3473 | section_kind for &dwo_file->sections.info. | |
3474 | ||
68337b8b AB |
3475 | 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3476 | ||
3477 | PR fortran/26155 | |
3478 | * f-lang.c (fortran_argument_convert): Delete declaration. | |
3479 | (fortran_prepare_argument): New function. | |
3480 | (evaluate_subexp_f): Move logic to new function | |
3481 | fortran_prepare_argument. | |
3482 | ||
faeb9f13 AB |
3483 | 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3484 | ||
3485 | * f-exp.y (f77_keywords): Add 'associated'. | |
3486 | * f-lang.c (fortran_associated): New function. | |
3487 | (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED. | |
3488 | (operator_length_f): Likewise. | |
3489 | (print_unop_or_binop_subexp_f): New function. | |
3490 | (print_subexp_f): Make use of print_unop_or_binop_subexp_f for | |
3491 | FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND. | |
3492 | (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED. | |
3493 | (operator_check_f): Likewise. | |
3494 | * std-operator.def: Add FORTRAN_ASSOCIATED. | |
3495 | ||
170f4b23 AB |
3496 | 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3497 | ||
3498 | * f-exp.y (fortran_operators): Add ".xor.". | |
3499 | ||
aa659cfa TV |
3500 | 2021-02-24 Tom de Vries <tdevries@suse.de> |
3501 | ||
3502 | PR symtab/27336 | |
3503 | * dwarf2/attribute.c (attribute::form_is_signed): New function | |
3504 | factored out of ... | |
3505 | * dwarf2/attribute.h (attribute::as_signed): ... here. | |
3506 | (attribute::is_nonnegative, attribute::as_nonnegative): New function. | |
3507 | (attribute::form_is_signed): Declare. | |
3508 | * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative | |
3509 | for DW_AT_decl_file. | |
3510 | ||
268c77c1 KB |
3511 | 2021-02-24 Kevin Buettner <kevinb@redhat.com> |
3512 | ||
3513 | * nat/aarch64-linux-hw-point.c: Add comment regarding include | |
3514 | order for <sys/ptrace.h> and <asm/ptrace.h>. | |
3515 | ||
665af52e KB |
3516 | 2021-02-24 Kevin Buettner <kevinb@redhat.com> |
3517 | ||
3518 | * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after | |
3519 | <sys/ptrace.h>. | |
3520 | ||
dd80d750 AB |
3521 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3522 | ||
3523 | * exec.c (set_section_command): Move variable declarations into | |
3524 | the function body, and use std::string instead of a fixed size | |
3525 | buffer. | |
3526 | ||
336aa7b7 AB |
3527 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3528 | ||
3529 | * exec.c (exec_target::get_section_table): Delete member function. | |
3530 | (section_table_read_available_memory): Use current_top_target, not | |
3531 | just the exec_ops target. | |
3532 | * target-delegates.c: Regenerate. | |
3533 | * target.c (default_get_section_table): New function. | |
3534 | * target.h (target_ops::get_section_table): Change default | |
3535 | behaviour to call default_get_section_table. | |
3536 | (default_get_section_table): Declare. | |
3537 | ||
02f7d26b AB |
3538 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3539 | ||
3540 | * exec.c (exec_target::close): Call new clear_target_sections | |
3541 | function. | |
3542 | (program_space::add_target_sections): Update name of member | |
3543 | variable. | |
3544 | (program_space::add_target_sections): Update name of member | |
3545 | variable. | |
3546 | (program_space::remove_target_sections): Likewise. | |
3547 | (exec_one_fork): Use new target_sections member function. | |
3548 | (exec_target::get_section_table): Likewise. | |
3549 | (exec_target::files_info): Likewise. | |
3550 | (set_section_command): Likewise. | |
3551 | (exec_set_section_address): Likewise. | |
3552 | (exec_target::has_memory): Use new target_sections member | |
3553 | function. | |
3554 | * progspace.h (program_space::clear_target_sections): New member | |
3555 | function. | |
3556 | (program_space::target_sections): Rename member variable to | |
3557 | m_target_sections, replace with a new member function. | |
3558 | (program_space::m_target_sections): New member variable. | |
3559 | * solib-dsbt.c (scan_dyntag): Use new member function. | |
3560 | * solib-svr4.c (scan_dyntag): Likewise. | |
3561 | ||
19cf757a AB |
3562 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3563 | ||
3564 | * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make | |
3565 | return type const. | |
3566 | * gdb/exec.c (struct exec_target) <get_section_table>: Likewise. | |
3567 | (section_table_read_available_memory): Make local const. | |
3568 | (exec_target::xfer_partial): Make local const. | |
3569 | (print_section_info): Make parameter const. | |
3570 | * gdb/exec.h (print_section_info): Likewise. | |
3571 | * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local | |
3572 | const. | |
3573 | * gdb/record-btrace.c (record_btrace_target::xfer_partial): | |
3574 | Likewise. | |
3575 | * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial): | |
3576 | Likewise. | |
3577 | * gdb/s390-tdep.c (s390_load): Likewise. | |
3578 | * gdb/solib-dsbt.c (scan_dyntag): Likewise. | |
3579 | * gdb/solib-svr4.c (scan_dyntag): Likewise. | |
3580 | * gdb/target-debug.h (target_debug_print_target_section_table_p): | |
3581 | Rename to... | |
3582 | (target_debug_print_const_target_section_table_p): ...this. | |
3583 | * gdb/target-delegates.c: Regenerate. | |
3584 | * gdb/target.c (target_get_section_table): Make return type const. | |
3585 | (target_section_by_addr): Likewise. Also make some locals const. | |
3586 | (memory_xfer_partial_1): Make some locals const. | |
3587 | * gdb/target.h (struct target_ops) <get_section_table>: Make | |
3588 | return type const. | |
3589 | (target_section_by_addr): Likewise. | |
3590 | (target_get_section_table): Likewise. | |
3591 | ||
02a79309 AB |
3592 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3593 | ||
3594 | * NEWS: Mention new 'maint info target-sections' command. | |
3595 | * maint.c (maintenance_info_target_sections): New function. | |
3596 | (_initialize_maint_cmds): Register new command. | |
3597 | ||
895b7b4e AB |
3598 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3599 | ||
3600 | * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to... | |
3601 | (riscv_features_from_bfd): ...this. Change parameter type to | |
3602 | 'bfd*', and update as required. | |
3603 | (riscv_find_default_target_description): Update call to | |
3604 | riscv_features_from_bfd. Select a default xlen based on | |
3605 | info.bfd_arch_info. | |
3606 | (riscv_gdbarch_init): Update call to riscv_features_from_bfd. | |
3607 | ||
bc3c0632 AB |
3608 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3609 | ||
3610 | * eval.c (evaluate_subexp_standard): Call value_ind for points to | |
3611 | dynamic types in UNOP_IND. | |
3612 | ||
08ac5771 SM |
3613 | 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
3614 | ||
3615 | PR gdb/26828 | |
3616 | * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>: | |
3617 | Instantiate queue. | |
3618 | (~dwarf2_queue_guard): Clear queue. | |
3619 | (queue_comp_unit): Assert that queue is | |
3620 | instantiated. | |
3621 | (process_queue): Adjust. | |
3622 | * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional. | |
3623 | ||
616c069a SM |
3624 | 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
3625 | ||
3626 | PR gdb/26828 | |
3627 | * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded | |
3628 | to decide whether or not to enqueue it for expansion. | |
3629 | (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs | |
3630 | after calling maybe_queue_comp_unit. | |
3631 | ||
897608ed SM |
3632 | 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
3633 | ||
3634 | * linux-nat.c (linux_nat_filter_event): Return void. | |
3635 | ||
15908a11 TT |
3636 | 2021-02-22 Tom Tromey <tromey@adacore.com> |
3637 | ||
3638 | * solib-svr4.c (enable_break): Update. | |
3639 | * bfd-target.c (class target_bfd) <target_bfd>: Change parameter | |
3640 | type. | |
3641 | (target_bfd_reopen): Change parameter type. | |
3642 | * bfd-target.h (target_bfd_reopen): Change parameter type. | |
3643 | ||
f53fc427 SM |
3644 | 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
3645 | ||
3646 | * thread.c (add_thread_silent): Add assert. | |
3647 | (find_thread_ptid): Add assert. | |
3648 | ||
de146e19 SM |
3649 | 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
3650 | ||
3651 | PR gdb/27435 | |
3652 | * inf-ptrace.c (struct target_unpusher): Move to target.h. | |
3653 | (target_unpush_up): Likewise. | |
3654 | * procfs.c (procfs_target::attach): Push target early. Use | |
3655 | target_unpush_up to unpush target in case of error. | |
3656 | * target.h (struct target_unpusher): Move here. | |
3657 | (target_unpush_up): Likewise. | |
3658 | ||
8488c357 KB |
3659 | 2021-02-19 Kevin Buettner <kevinb@redhat.com> |
3660 | ||
3661 | * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h" | |
3662 | (which in turn includes <gnulib/config.h>) before include | |
3663 | of <signal.h>. | |
3664 | ||
5a9f5403 NC |
3665 | 2021-02-19 Nelson Chu <nelson.chu@sifive.com> |
3666 | ||
3667 | PR 27158 | |
3668 | * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros. | |
3669 | (decode_j_type_insn): Likewise. | |
3670 | (decode_cj_type_insn): Likewise. | |
3671 | (decode_b_type_insn): Likewise. | |
3672 | (decode): Likewise. | |
3673 | ||
26f53cd3 TT |
3674 | 2021-02-18 Tom Tromey <tom@tromey.com> |
3675 | ||
3676 | * expression.h (struct expression) <evaluate>: Declare method. | |
3677 | * eval.c (evaluate_subexp): Simplify. | |
3678 | (expression::evaluate): New method. | |
3679 | (evaluate_expression, evaluate_type): Use expression::evaluate. | |
3680 | ||
6a780b67 KB |
3681 | 2021-02-17 Kevin Buettner <kevinb@redhat.com> |
3682 | ||
3683 | * ada-lang.c (ada_fold_name): Check for non-empty string prior | |
3684 | to accessing it. | |
3685 | (ada_lookup_name_info): Likewise. | |
3686 | ||
adeab0c5 MF |
3687 | 2021-02-13 Mike Frysinger <vapier@gentoo.org> |
3688 | ||
3689 | * aclocal.m4: Regenerate. | |
3690 | ||
089436f7 TV |
3691 | 2021-02-12 Tom de Vries <tdevries@suse.de> |
3692 | ||
3693 | PR threads/26228 | |
3694 | * linux-nat.c (lin_thread_get_thread_signals): Remove. | |
3695 | (lin_thread_signals): New static var. | |
3696 | (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal): | |
3697 | New function. | |
3698 | * linux-nat.h (lin_thread_get_thread_signals): Remove. | |
3699 | (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal): | |
3700 | Declare. | |
3701 | * linux-thread-db.c (check_thread_signals): Use | |
3702 | lin_thread_get_thread_signal_num and lin_thread_get_thread_signal. | |
3703 | ||
96df3e28 AB |
3704 | 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
3705 | ||
3706 | * f-exp.y (f77_keywords): Add allocated. | |
3707 | * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED. | |
3708 | (operator_length_f): Likewise. | |
3709 | (print_subexp_f): Likewise. | |
3710 | (dump_subexp_body_f): Likewise. | |
3711 | (operator_check_f): Likewise. | |
3712 | * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator. | |
3713 | ||
05f68f52 TV |
3714 | 2021-02-11 Tom de Vries <tdevries@suse.de> |
3715 | ||
3716 | PR symtab/27353 | |
3717 | * dwarf2/attribute.c (attribute::form_requires_reprocessing): | |
3718 | Return true for DW_FORM_strx. | |
3719 | ||
b260f8d6 TT |
3720 | 2021-02-11 Tom Tromey <tromey@adacore.com> |
3721 | ||
3722 | PR gdb/27383: | |
3723 | * parse.c (write_exp_symbol_reference): Write sym.block. | |
3724 | ||
bf3386f0 AB |
3725 | 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com> |
3726 | ||
3727 | * NEWS: Mention changes to 'maint info sections'. | |
3728 | * maint.c (match_substring): Return a bool, fix whitespace issue. | |
3729 | (struct single_bfd_flag_info): New struct. | |
3730 | (bfd_flag_info): New static global. | |
3731 | (match_bfd_flags): Return a bool, use bfd_flag_info. | |
3732 | (print_bfd_flags): Use bfd_flag_info. | |
3733 | (maint_print_section_info): Delete trailing whitespace. | |
3734 | (struct maint_info_sections_opts): New struct. | |
3735 | (maint_info_sections_option_defs): New static global. | |
3736 | (maint_info_sections_completer): New function. | |
3737 | (maintenance_info_sections): Use option parsing mechanism. | |
3738 | (_initialize_maint_cmds): Update command help text for 'maint info | |
3739 | sections' and register a command completer. | |
3740 | ||
4790db14 AB |
3741 | 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com> |
3742 | ||
3743 | * maint.c (print_bfd_section_info_maybe_relocated): Delete, | |
3744 | functionality merged into... | |
3745 | (maint_print_all_sections): ...this new function. | |
3746 | (maintenance_info_sections): Make use of maint_print_all_sections, | |
3747 | allow all objects to be printed even where there's no executable. | |
3748 | ||
1db66e34 AB |
3749 | 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com> |
3750 | ||
3751 | * breakpoint.c (resolve_sal_pc): Make use of | |
3752 | bound_minimal_symbol::obj_section. | |
3753 | * maint.c (maintenance_translate_address): Likewise. | |
3754 | * minsyms.c (minimal_symbol_upper_bound): Likewise. | |
3755 | * minsyms.h (struct bound_minimal_symbol) <obj_section>: New | |
3756 | member function. | |
3757 | * printcmd.c (info_address_command): Make use of | |
3758 | bound_minimal_symbol::obj_section. | |
3759 | ||
18b8df43 AM |
3760 | 2021-02-11 Alan Modra <amodra@gmail.com> |
3761 | ||
3762 | * arm-symbian-tdep.c: Delete. | |
3763 | * NEWS: Mention arm-symbian removal. | |
3764 | * Makefile.in: Remove arm-symbian-tdep entries. | |
3765 | * configure.tgt: Remove arm*-*-symbianelf*. | |
3766 | * doc/gdb.texinfo: Remove mention of SymbianOS. | |
3767 | * osabi.c (gdb_osabi_names): Remove "Symbian". | |
3768 | * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN. | |
3769 | * testsuite/gdb.base/ending-run.exp: Remove E32Main handling. | |
3770 | * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf* | |
3771 | handling. | |
3772 | * testsuite/gdb.base/dup-sect.exp: Likewise. | |
3773 | * testsuite/gdb.base/long_long.exp: Likewise. | |
3774 | * testsuite/gdb.base/solib-weak.exp: Likewise. | |
3775 | * testsuite/gdb.guile/scm-section-script.exp: Likewise. | |
3776 | * testsuite/gdb.python/py-section-script.exp: Likewise. | |
3777 | * testsuite/lib/dwarf.exp: Likewise. | |
3778 | * testsuite/lib/gdb.exp: Likewise. | |
3779 | ||
e92c8eb8 AB |
3780 | 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com> |
3781 | ||
3782 | * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token. | |
3783 | (exp): New pattern using UNOP_OR_BINOP_INTRINSIC. | |
3784 | (one_or_two_args): New pattern. | |
3785 | (f77_keywords): Add lbound and ubound. | |
3786 | * f-lang.c (fortran_bounds_all_dims): New function. | |
3787 | (fortran_bounds_for_dimension): New function. | |
3788 | (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND. | |
3789 | (operator_length_f): Likewise. | |
3790 | (print_subexp_f): Likewise. | |
3791 | (dump_subexp_body_f): Likewise. | |
3792 | (operator_check_f): Likewise. | |
3793 | * std-operator.def (FORTRAN_LBOUND): Define. | |
3794 | (FORTRAN_UBOUND): Define. | |
3795 | ||
a52d653e AB |
3796 | 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com> |
3797 | ||
3798 | * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index | |
3799 | and set_section_index member functions where appropriate. | |
3800 | * coffread.c (coff_symtab_read): Likewise. | |
3801 | (process_coff_symbol): Likewise. | |
3802 | * ctfread.c (set_symbol_address): Likewise. | |
3803 | * dwarf2/read.c (add_partial_symbol): Likewise. | |
3804 | (var_decode_location): Likewise. | |
3805 | * language.c: Likewise. | |
3806 | * minsyms.c (minimal_symbol_reader::record_full): Likewise. | |
3807 | (compact_minimal_symbols): Likewise. | |
3808 | (minimal_symbol_upper_bound): Likewise. | |
3809 | * objfiles.c (relocate_one_symbol): Likewise. | |
3810 | * psympriv.h (partial_symbol::obj_section): Likewise. | |
3811 | (partial_symbol::address): Likewise. | |
3812 | * psymtab.c (partial_symtab::add_psymbol): Likewise. | |
3813 | * stabsread.c (scan_file_globals): Likewise. | |
3814 | * symmisc.c (dump_msymbols): Likewise. | |
3815 | * symtab.c (general_symbol_info::obj_section): Likewise. | |
3816 | (fixup_section): Likewise. | |
3817 | (get_msymbol_address): Likewise. | |
3818 | * symtab.h (general_symbol_info::section): Rename to... | |
3819 | (general_symbol_info::m_section): ...this. | |
3820 | (general_symbol_info::set_section_index): New member function. | |
3821 | (general_symbol_info::section_index): Likewise. | |
3822 | (SYMBOL_SECTION): Delete. | |
3823 | (MSYMBOL_VALUE_ADDRESS): Make use of section_index and | |
3824 | set_section_index member functions where appropriate. | |
3825 | (MSYMBOL_SECTION): Delete. | |
3826 | (symbol::symbol): Update to initialize 'm_section'. | |
3827 | * xcoffread.c (read_xcoff_symtab): Make use of set_section_index. | |
3828 | (process_xcoff_symbol): Likewise. | |
3829 | ||
ebbc3a7d AB |
3830 | 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com> |
3831 | ||
3832 | * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and | |
3833 | MSYMBOL_OBJ_SECTION. | |
3834 | * findvar.c (language_defn::read_var_value): Likewise. | |
3835 | * infcmd.c (jump_command): Likewise. | |
3836 | * linespec.c (minsym_found): Likewise. | |
3837 | * maint.c (maintenance_translate_address): Likewise. | |
3838 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise. | |
3839 | (minimal_symbol_upper_bound): Likewise. | |
3840 | * parse.c (find_minsym_type_and_address): Likewise. | |
3841 | (operator_check_standard): Likewise. | |
3842 | * printcmd.c (info_address_command): Likewise. | |
3843 | * symmisc.c (dump_msymbols): Likewise. | |
3844 | (print_symbol): Likewise. | |
3845 | * symtab.c (general_symbol_info::obj_section): Define new | |
3846 | function. | |
3847 | (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION. | |
3848 | (find_pc_sect_compunit_symtab): Likewise. | |
3849 | (find_function_start_sal): Likewise. | |
3850 | (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and | |
3851 | MSYMBOL_OBJ_SECTION. | |
3852 | * symtab.h (struct general_symbol_info) <obj_section>: Declare new | |
3853 | function. | |
3854 | (SYMBOL_OBJ_SECTION): Delete. | |
3855 | (MSYMBOL_OBJ_SECTION): Delete. | |
3856 | ||
9bb305b3 TT |
3857 | 2021-02-09 Tom Tromey <tom@tromey.com> |
3858 | ||
3859 | * stap-probe.c (stap_parse_argument_conditionally): Fix typo. | |
3860 | ||
cf2b2075 TV |
3861 | 2021-02-09 Tom de Vries <tdevries@suse.de> |
3862 | ||
3863 | PR symtab/27341 | |
3864 | * dwarf2/read.c (read_array_type): Return NULL when not being able to | |
3865 | construct an array type. Add assert to ensure that element_type is | |
3866 | not being modified. | |
3867 | ||
03642b71 AB |
3868 | 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com> |
3869 | ||
3870 | * gcore.c (struct gcore_collect_regset_section_cb_data): Delete. | |
3871 | (gcore_collect_regset_section_cb): Delete. | |
3872 | (gcore_collect_thread_registers): Delete. | |
3873 | (gcore_build_thread_register_notes): Delete. | |
3874 | (gcore_find_signalled_thread): Delete. | |
3875 | * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete | |
3876 | 'gdbarch' and 'thread_info' declarations. | |
3877 | (gcore_build_thread_register_notes): Delete declaration. | |
3878 | (gcore_find_signalled_thread): Likewise. | |
3879 | * fbsd-tdep.c: Remove 'gcore.h' include. | |
3880 | (struct fbsd_collect_regset_section_cb_data): New struct. | |
3881 | (fbsd_collect_regset_section_cb): New function. | |
3882 | (fbsd_collect_thread_registers): New function. | |
3883 | (struct fbsd_corefile_thread_data): New struct. | |
3884 | (fbsd_corefile_thread): New function. | |
3885 | (fbsd_make_corefile_notes): Call FreeBSD specific code. | |
3886 | * linux-tdep.c: Remove 'gcore.h' include. | |
3887 | (struct linux_collect_regset_section_cb_data): New struct. | |
3888 | (linux_collect_regset_section_cb): New function. | |
3889 | (linux_collect_thread_registers): New function. | |
3890 | (linux_corefile_thread): Call Linux specific code. | |
3891 | (find_signalled_thread): New function. | |
3892 | (linux_make_corefile_notes): Call find_signalled_thread. | |
3893 | ||
f73e424f TT |
3894 | 2021-02-09 Tom Tromey <tromey@adacore.com> |
3895 | ||
3896 | * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy | |
3897 | not_lval value. | |
3898 | * value.c (value_contents_copy_raw): Now static. | |
3899 | * value.h (value_contents_copy_raw): Don't declare. | |
3900 | ||
a4f0544b TT |
3901 | 2021-02-09 Tom Tromey <tromey@adacore.com> |
3902 | ||
3903 | * gdbtypes.c (resolve_dynamic_struct): Handle structure with no | |
3904 | fields. | |
3905 | ||
9b3e4b5d SV |
3906 | 2021-02-08 Shahab Vahedi <shahab@synopsys.com> |
3907 | ||
3908 | PR tdep/27369 | |
3909 | * arc-linux-tdep.c (handle_atomic_sequence): New. | |
3910 | (arc_linux_software_single_step): Call handle_atomic_sequence(). | |
3911 | ||
29db1eb3 AB |
3912 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
3913 | ||
3914 | * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member | |
3915 | function. | |
3916 | (REQUIRE_WINDOW): Call is_valid member function. | |
3917 | (REQUIRE_WINDOW_FOR_SETTER): New define. | |
3918 | (gdbpy_tui_is_valid): Call is_valid member function. | |
3919 | (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead. | |
3920 | * tui/tui-data.h (struct tui_win_info) <is_visible>: Check | |
3921 | tui_active too. | |
3922 | * tui/tui-layout.c (tui_apply_current_layout): Add an assert. | |
3923 | * tui/tui.c (tui_enable): Move setting of tui_active earlier in | |
3924 | the function. | |
3925 | ||
e0c23e11 AB |
3926 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
3927 | ||
3928 | * python/py-tui.c (gdbpy_tui_set_title): Check that the new value | |
3929 | for the title is not nullptr. | |
3930 | ||
1cf23996 AB |
3931 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
3932 | ||
3933 | * tui-layout.c (saved_tui_windows): Delete. | |
3934 | (tui_apply_current_layout): Don't make use of saved_tui_windows, | |
3935 | call new get_windows member function instead. | |
3936 | (tui_get_window_by_name): Check in tui_windows. | |
3937 | (tui_layout_window::apply): Don't add to tui_windows. | |
3938 | * tui-layout.h (tui_layout_base::get_windows): New member function. | |
3939 | (tui_layout_window::get_windows): Likewise. | |
3940 | (tui_layout_split::get_windows): Likewise. | |
3941 | ||
a53a2657 AB |
3942 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
3943 | ||
3944 | * tui/tui-layout.c (tui_apply_current_layout): Restore the delete | |
3945 | of the window objects. | |
3946 | ||
2708dbbd AB |
3947 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
3948 | ||
3949 | * python/python.c (gdbpy_print_stack): Reformat an error message. | |
3950 | ||
cd074e04 AB |
3951 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
3952 | ||
3953 | * tui/tui-interp.c (tui_command_line_handler): New function. | |
3954 | (tui_interp::resume): Register tui_command_line_handler as the | |
3955 | input_handler. | |
3956 | * tui/tui-io.c (tui_inject_newline_into_command_window): New | |
3957 | function. | |
3958 | (tui_getc_1): Delete handling of '\n' and '\r'. | |
3959 | * tui-io.h (tui_inject_newline_into_command_window): Declare. | |
3960 | ||
4cf28e91 HD |
3961 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
3962 | ||
3963 | * tui/tui-regs.c (tui_data_window::display_registers_from): | |
3964 | Mark invisible register sub windows. | |
3965 | (tui_data_window::check_register_values): Ignore invisible | |
3966 | register sub windows. | |
3967 | ||
3537bc23 HD |
3968 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
3969 | ||
3970 | * tui/tui-regs.c (tui_data_item_window::rerender): Don't call | |
3971 | n_spaces with a negative value. | |
3972 | ||
5fc2d6aa HD |
3973 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
3974 | ||
3975 | * tui/tui-regs.c (tui_data_window::display_registers_from): | |
3976 | Add refresh_window call. | |
3977 | ||
83962f83 HD |
3978 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
3979 | ||
3980 | * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next. | |
3981 | ||
0110ec82 SM |
3982 | 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca> |
3983 | ||
3984 | * symmisc.c (std_in, std_out, std_err): Remove. | |
3985 | (_initialize_symmisc): Don't set std_in, std_out and std_err. | |
3986 | ||
7c6944ab TV |
3987 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
3988 | ||
3989 | PR breakpoints/27330 | |
3990 | * breakpoint.c (create_exception_master_breakpoint): Handle case that | |
3991 | glibc object file has debug info. | |
3992 | ||
e77b0004 TV |
3993 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
3994 | ||
3995 | PR symtab/27333 | |
3996 | * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit. | |
3997 | ||
0e857c82 TV |
3998 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
3999 | ||
4000 | PR breakpoints/27313 | |
4001 | * break-catch-syscall.c (catch_syscall_split_args): Reject negative | |
4002 | syscall numbers. | |
4003 | ||
bdfea17e TT |
4004 | 2021-02-05 Tom Tromey <tom@tromey.com> |
4005 | ||
4006 | * compile/compile-c-support.c (get_compile_context) | |
4007 | (c_get_compile_context, cplus_get_compile_context): Change return | |
4008 | type. | |
4009 | * language.c (language_defn::get_compile_instance): New method. | |
4010 | * language.h (language_defn::get_compile_instance): Change return | |
4011 | type. No longer inline. | |
4012 | * c-lang.c (c_language::get_compile_instance): Change return type. | |
4013 | (cplus_language::get_compile_instance): Change return type. | |
4014 | * c-lang.h (c_get_compile_context, cplus_get_compile_context): | |
4015 | Change return type. | |
4016 | * compile/compile.c (compile_to_object): Update. | |
4017 | ||
1b30f421 TT |
4018 | 2021-02-05 Tom Tromey <tom@tromey.com> |
4019 | ||
4020 | * parser-defs.h (write_exp_symbol_reference): Declare. | |
4021 | * parse.c (write_exp_symbol_reference): New function. | |
4022 | * p-exp.y (variable): Use write_exp_symbol_reference. | |
4023 | * m2-exp.y (variable): Use write_exp_symbol_reference. | |
4024 | * f-exp.y (variable): Use write_exp_symbol_reference. | |
4025 | * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference. | |
4026 | * c-exp.y (variable): Use write_exp_symbol_reference. | |
4027 | ||
ae710496 TV |
4028 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
4029 | ||
4030 | PR exp/27265 | |
4031 | * valarith.c (complex_binop): Throw an error if complex type can't | |
4032 | be created. | |
4033 | ||
d3b54e63 TV |
4034 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
4035 | ||
4036 | PR symtab/27307 | |
4037 | * dwarf2/read.c (create_cus_from_debug_names_list): Add missing | |
4038 | return. | |
4039 | ||
fc9a13fb TV |
4040 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
4041 | ||
4042 | * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation. | |
4043 | ||
04b4939b MF |
4044 | 2021-02-04 Mike Frysinger <vapier@gentoo.org> |
4045 | ||
4046 | * configure.tgt (riscv*-*-*): Set gdb_sim. | |
4047 | ||
6ff267e1 SM |
4048 | 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca> |
4049 | ||
4050 | * target.c (target_is_non_stop_p): Return bool. | |
4051 | * target.h (target_is_non_stop_p): Return bool. | |
4052 | ||
fdbc5215 SM |
4053 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
4054 | ||
4055 | * record-full.c (record_full_async_inferior_event_handler): | |
4056 | Don't clear async event handler. | |
4057 | (record_full_base_target::wait): Clear async event handler at | |
4058 | beginning. | |
4059 | ||
85d3ad8e SM |
4060 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
4061 | ||
4062 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
4063 | Don't clear async event handler. | |
4064 | (record_btrace_target::wait): Clear async event handler at | |
4065 | beginning. | |
4066 | ||
baa8575b SM |
4067 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
4068 | ||
4069 | * remote.c (remote_target::wait): Clear async event handler at | |
4070 | beginning, mark if needed at the end. | |
4071 | (remote_async_inferior_event_handler): Don't set or clear async | |
4072 | event handler. | |
4073 | ||
6b36ddeb SM |
4074 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
4075 | ||
4076 | * async-event.h (async_event_handler_func): Add documentation. | |
4077 | * async-event.c (check_async_event_handlers): Don't clear | |
4078 | async_event_handler ready flag. | |
4079 | * infrun.c (infrun_async_inferior_event_handler): Clear ready | |
4080 | flag. | |
4081 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
4082 | Likewise. | |
4083 | * record-full.c (record_full_async_inferior_event_handler): | |
4084 | Likewise. | |
4085 | * remote-notif.c (remote_async_get_pending_events_handler): | |
4086 | Likewise. | |
4087 | * remote.c (remote_async_inferior_event_handler): Likewise. | |
4088 | ||
72d383bb SM |
4089 | 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca> |
4090 | ||
4091 | * infrun.c (handle_inferior_event): Move stop_soon variable to | |
4092 | inner scope. | |
4093 | ||
408f6686 PA |
4094 | 2021-02-03 Pedro Alves <pedro@palves.net> |
4095 | ||
4096 | * infcmd.c (detach_command): Hold strong reference to target, and | |
4097 | if all-stop on entry, restart threads on exit. | |
4098 | * infrun.c (switch_back_to_stepped_thread): Factor out bits to ... | |
4099 | (restart_stepped_thread): ... this new function. Also handle | |
4100 | trap_expected. | |
4101 | (restart_after_all_stop_detach): New function. | |
4102 | * infrun.h (restart_after_all_stop_detach): Declare. | |
4103 | ||
ac7d717c PA |
4104 | 2021-02-03 Pedro Alves <pedro@palves.net> |
4105 | ||
4106 | * infrun.c (struct step_over_info): Initialize fields. | |
4107 | (prepare_for_detach): Handle ongoing in-line step over. | |
4108 | ||
e87f0fe8 PA |
4109 | 2021-02-03 Pedro Alves <pedro@palves.net> |
4110 | ||
4111 | * linux-nat.c (linux_nat_target::detach): Remove breakpoints | |
4112 | here... | |
4113 | * remote.c (remote_target::remote_detach_1): ... and here ... | |
4114 | * target.c (target_detach): ... instead of here. | |
4115 | * target.h (target_ops::detach): Add comment. | |
4116 | ||
8ff53139 PA |
4117 | 2021-02-03 Pedro Alves <pedro@palves.net> |
4118 | ||
4119 | * infrun.c (struct wait_one_event): Move higher up. | |
4120 | (prepare_for_detach): Abort in-progress displaced steps instead of | |
4121 | letting them complete. | |
4122 | (handle_one): If the inferior is detaching, don't add the thread | |
4123 | back to the global step-over chain. | |
4124 | (restart_threads): Don't restart threads if detaching. | |
4125 | (handle_signal_stop): Remove inferior::detaching reference. | |
4126 | ||
91475068 PA |
4127 | 2021-02-03 Pedro Alves <pedro@palves.net> |
4128 | ||
4129 | * infrun.c (prepare_for_detach): Don't release scoped_restore | |
4130 | before returning. | |
4131 | ||
d758e62c PA |
4132 | 2021-02-03 Pedro Alves <pedro@palves.net> |
4133 | ||
4134 | * infrun.c (handle_one): New function, factored out from ... | |
4135 | (stop_all_threads): ... here. | |
4136 | ||
b0083dd7 PA |
4137 | 2021-02-03 Pedro Alves <pedro@palves.net> |
4138 | ||
4139 | * remote.c (remote_notif_stop_ack): Don't error out on | |
4140 | TARGET_WAITKIND_IGNORE; instead, just ignore the notification. | |
4141 | (remote_target::discard_pending_stop_replies): Don't delete | |
4142 | in-flight notification; instead, clear its contents. | |
4143 | ||
621cc310 PA |
4144 | 2021-02-03 Pedro Alves <pedro@palves.net> |
4145 | ||
4146 | * remote.c (extended_remote_target::attach): Set target async in | |
4147 | the target-non-stop path too. | |
4148 | ||
2ab76a18 PA |
4149 | 2021-02-03 Pedro Alves <pedro@palves.net> |
4150 | ||
4151 | PR gdb/27055 | |
4152 | * infrun.c (handle_signal_stop): Move main context_switch call | |
4153 | earlier, before STOP_QUIETLY_NO_SIGSTOP. | |
4154 | ||
2e3773ff LS |
4155 | 2021-02-02 Lancelot SIX <lsix@lancelotsix.com> |
4156 | ||
4157 | * NEWS (Changed commands): Add entry for the behavior change of | |
4158 | the inferior command. | |
4159 | * inferior.c (inferior_command): When no argument is given to the | |
4160 | inferior command, display info about the currently selected | |
4161 | inferior. | |
4162 | ||
e57933dc SM |
4163 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
4164 | ||
4165 | * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return | |
4166 | a sect_offset. | |
4167 | (read_attribute_reprocess): Adjust. | |
4168 | ||
2b0c7f41 SM |
4169 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
4170 | ||
4171 | * dwarf2/die.h (struct die_info) <ranges_base>: Split in... | |
4172 | <gnu_ranges_base>: ... this... | |
4173 | <rnglists_base>: ... and this. | |
4174 | * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in... | |
4175 | <gnu_ranges_base>: ... this... | |
4176 | <rnglists_base>: ... and this. | |
4177 | (read_cutu_die_from_dwo): Adjust | |
4178 | (dwarf2_get_pc_bounds): Adjust | |
4179 | (dwarf2_record_block_ranges): Adjust. | |
4180 | (read_full_die_1): Adjust | |
4181 | (partial_die_info::read): Adjust. | |
4182 | (read_rnglist_index): Adjust. | |
4183 | ||
a1c40103 SM |
4184 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
4185 | ||
4186 | PR gdb/26813 | |
4187 | * dwarf2/read.c (read_loclists_rnglists_header): Add | |
4188 | header_offset parameter and use it. | |
4189 | (read_loclist_index): Read header of the current contribution, | |
4190 | not the one at the beginning of the section. | |
4191 | (read_rnglist_index): Likewise. | |
4192 | ||
b1829e1b SM |
4193 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
4194 | ||
4195 | PR gdb/26813 | |
4196 | * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear | |
4197 | requires_reprocessing flag. | |
4198 | * dwarf2/attribute.c (attribute::form_is_unsigned): Handle | |
4199 | DW_FORM_loclistx. | |
4200 | (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx | |
4201 | and DW_FORM_loclistx. | |
4202 | * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned | |
4203 | instead of set_address for DW_FORM_loclistx and | |
4204 | DW_FORM_rnglistx. | |
4205 | ||
0c800c6e SM |
4206 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
4207 | ||
4208 | * dwarf2/read.c (read_loclist_index): Remove bound check for | |
4209 | start of offset. | |
4210 | (read_rnglist_index): Likewise. | |
4211 | ||
05787bad SM |
4212 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
4213 | ||
4214 | * dwarf2/read.c (read_loclist_index): Add bound check for the end | |
4215 | of the offset. | |
4216 | ||
5e4d9bbc SM |
4217 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
4218 | ||
4219 | * dwarf2/read.c (read_rnglist_index): Fix bound check. | |
4220 | ||
a0c1eeba SM |
4221 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
4222 | ||
4223 | * dwarf2/read.c (read_loclist_index): Change complaints into | |
4224 | errors. | |
4225 | ||
2bd3e4b8 TV |
4226 | 2021-02-02 Tom de Vries <tdevries@suse.de> |
4227 | ||
4228 | PR symtab/24620 | |
4229 | * dwarf2/index-write.c (write_one_signatured_type): Skip if | |
4230 | psymtab == nullptr. | |
4231 | ||
82a1fd3a AB |
4232 | 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com> |
4233 | ||
4234 | * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h. | |
4235 | * gcore.c (struct gcore_collect_regset_section_cb_data): Moved | |
4236 | here from linux-tdep.c and given a new name. Minor cleanups. | |
4237 | (gcore_collect_regset_section_cb): Likewise. | |
4238 | (gcore_collect_thread_registers): Likewise. | |
4239 | (gcore_build_thread_register_notes): Likewise. | |
4240 | (gcore_find_signalled_thread): Likewise. | |
4241 | * gcore.h (gcore_build_thread_register_notes): Declare. | |
4242 | (gcore_find_signalled_thread): Declare. | |
4243 | * fbsd-tdep.c: Add 'gcore.h' include. | |
4244 | (struct fbsd_collect_regset_section_cb_data): Delete. | |
4245 | (fbsd_collect_regset_section_cb): Delete. | |
4246 | (fbsd_collect_thread_registers): Delete. | |
4247 | (struct fbsd_corefile_thread_data): Delete. | |
4248 | (fbsd_corefile_thread): Delete. | |
4249 | (fbsd_make_corefile_notes): Call | |
4250 | gcore_build_thread_register_notes instead of the now deleted | |
4251 | FreeBSD code. | |
4252 | * linux-tdep.c: Add 'gcore.h' include. | |
4253 | (struct linux_collect_regset_section_cb_data): Delete. | |
4254 | (linux_collect_regset_section_cb): Delete. | |
4255 | (linux_collect_thread_registers): Delete. | |
4256 | (linux_corefile_thread): Call | |
4257 | gcore_build_thread_register_notes. | |
4258 | (find_signalled_thread): Delete. | |
4259 | (linux_make_corefile_notes): Call gcore_find_signalled_thread. | |
4260 | ||
ebde6f2d TV |
4261 | 2021-01-29 Tom de Vries <tdevries@suse.de> |
4262 | ||
4263 | PR breakpoints/26063 | |
4264 | * infrun.c (process_event_stop_test): Reset | |
4265 | ecs->event_thread->current_line to 0 if is-stmt=n and frame has | |
4266 | changed. | |
4267 | ||
0f93c3a2 AB |
4268 | 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com> |
4269 | ||
4270 | * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an | |
4271 | assert. Extend the header comment. | |
4272 | ||
f237f998 AB |
4273 | 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com> |
4274 | ||
4275 | * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c. | |
4276 | (HFILES_NO_SRCDIR): Add tui/tui-location.h. | |
4277 | * tui/tui-data.h (TUI_STATUS_WIN): Define. | |
4278 | (tui_locator_win_info_ptr): Delete declaration. | |
4279 | * tui/tui-disasm.c: Add 'tui/tui-location.h' include. | |
4280 | (tui_disasm_window::set_contents): Fetch state from tui_location | |
4281 | global. | |
4282 | (tui_get_begin_asm_address): Likewise. | |
4283 | * tui/tui-layout.c (tui_apply_current_layout): Remove special case | |
4284 | for locator window. | |
4285 | (get_locator_window): Delete. | |
4286 | (initialize_known_windows): Treat locator window just like all the | |
4287 | rest. | |
4288 | * tui/tui-source.c: Add 'tui/tui-location.h' include. | |
4289 | (tui_source_window::set_contents): Fetch state from tui_location | |
4290 | global. | |
4291 | (tui_source_window::showing_source_p): Likewise. | |
4292 | * tui/tui-stack.c: Add 'tui/tui-location.h' include. | |
4293 | (_locator): Delete. | |
4294 | (tui_locator_win_info_ptr): Delete. | |
4295 | (tui_locator_window::make_status_line): Fetch state from | |
4296 | tui_location global. | |
4297 | (tui_locator_window::rerender): Remove check of 'handle', | |
4298 | reindent function body. | |
4299 | (tui_locator_window::set_locator_fullname): Delete. | |
4300 | (tui_locator_window::set_locator_info): Delete. | |
4301 | (tui_update_locator_fullname): Delete. | |
4302 | (tui_show_frame_info): Likewise. | |
4303 | (tui_show_locator_content): Access window through TUI_STATUS_WIN. | |
4304 | * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to | |
4305 | tui/tui-location.h and renamed to | |
4306 | tui_location_tracker::set_location. | |
4307 | (tui_locator_window::set_locator_fullname): Moved to | |
4308 | tui/tui-location.h and renamed to | |
4309 | tui_location_tracker::set_fullname. | |
4310 | (tui_locator_window::full_name): Delete. | |
4311 | (tui_locator_window::proc_name): Delete. | |
4312 | (tui_locator_window::line_no): Delete. | |
4313 | (tui_locator_window::addr): Delete. | |
4314 | (tui_locator_window::gdbarch): Delete. | |
4315 | (tui_update_locator_fullname): Delete declaration. | |
4316 | * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling | |
4317 | for locator window. | |
4318 | * tui/tui-winsource.c: Add 'tui/tui-location.h' include. | |
4319 | (tui_display_main): Call function on tui_location directly. | |
4320 | * tui/tui.h (enum tui_win_type): Add STATUS_WIN. | |
4321 | * tui/tui-location.c: New file. | |
4322 | * tui/tui-location.h: New file. | |
4323 | ||
8ee511af SM |
4324 | 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca> |
4325 | ||
4326 | * gdbtypes.h (get_type_arch): Rename to... | |
4327 | (struct type) <arch>: ... this, update all users. | |
4328 | ||
6ac37371 SM |
4329 | 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca> |
4330 | ||
4331 | * gdbtypes.h (struct type) <arch>: Rename to... | |
4332 | <arch_owner>: ... this, update all users. | |
4333 | <objfile>: Rename to... | |
4334 | <objfile_owner>: ... this, update all users. | |
4335 | ||
24cf6389 AB |
4336 | 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com> |
4337 | ||
4338 | * gdbcmd.h (execute_command_to_string): Update comment. | |
4339 | * top.c (execute_command_to_string): Update header comment. | |
4340 | ||
2a7f6487 TV |
4341 | 2021-01-28 Tom de Vries <tdevries@suse.de> |
4342 | ||
4343 | PR breakpoints/27205 | |
4344 | * breakpoint.c (create_longjmp_master_breakpoint_probe) | |
4345 | (create_longjmp_master_breakpoint_names): New function, factored out | |
4346 | of ... | |
4347 | (create_longjmp_master_breakpoint): ... here. Only try to install | |
4348 | longjmp_names breakpoints in libc.so/libc.so.debug if installing probe | |
4349 | breakpoint in libc.so failed. | |
4350 | ||
59b59f08 LS |
4351 | 2021-01-27 Lancelot SIX <lsix@lancelotsix.com> |
4352 | ||
4353 | PR gdb/27133 | |
4354 | * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the | |
4355 | unique_ptr is released when the wrapped pointer is kept for later | |
4356 | use. | |
4357 | ||
807f647c MM |
4358 | 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com> |
4359 | ||
4360 | * aarch64-tdep.c (aarch64_displaced_step_others): Account for | |
4361 | BLR and BR instructions. | |
4362 | * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode. | |
4363 | (enum aarch64_masks): New. | |
4364 | ||
4ef367bf TT |
4365 | 2021-01-26 Tom Tromey <tromey@adacore.com> |
4366 | ||
4367 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
4368 | (DEBUG_EXCEPT): Use debug_prefixed_printf_cond. | |
4369 | (windows_init_thread_list, windows_nat::handle_load_dll) | |
4370 | (windows_nat::handle_unload_dll, windows_nat_target::resume) | |
4371 | (windows_nat_target::resume) | |
4372 | (windows_nat_target::get_windows_debug_event) | |
4373 | (windows_nat_target::interrupt, windows_xfer_memory) | |
4374 | (windows_nat_target::close): Update. | |
4375 | * nat/windows-nat.c (DEBUG_EVENTS): Use | |
4376 | debug_prefixed_printf_cond. | |
4377 | (matching_pending_stop, fetch_pending_stop) | |
4378 | (continue_last_debug_event): Update. | |
4379 | ||
4cb1265b MS |
4380 | 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com> |
4381 | ||
4382 | * linux-tdep.c (linux_make_mappings_corefile_notes): Start using | |
4383 | elfcore_write_file_note. | |
4384 | ||
d0cc52bd SV |
4385 | 2021-01-26 Shahab Vahedi <shahab@synopsys.com> |
4386 | ||
4387 | * arc-tdep.c (arc_add_reggroups): New function. | |
4388 | (arc_gdbarch_init): Call arc_add_reggroups. | |
4389 | ||
ac3571d9 | 4390 | 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com> |
d56834cb AK |
4391 | |
4392 | * arc-tdep.c (arc_skip_prologue): Log "pc" address. | |
4393 | ||
9f6c202e TV |
4394 | 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4395 | Simon Marchi <simon.marchi@polymtl.ca> | |
4396 | Tom de Vries <tdevries@suse.de> | |
4397 | ||
4398 | * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for | |
4399 | DW_AT_ranges. | |
4400 | ||
a625a8c9 TT |
4401 | 2021-01-25 Tom Tromey <tromey@adacore.com> |
4402 | ||
4403 | * dwarf2/read.c (get_mpz): New function. | |
4404 | (get_dwarf2_rational_constant): Use it. | |
4405 | ||
19184910 TT |
4406 | 2021-01-25 Tom Tromey <tromey@adacore.com> |
4407 | ||
4408 | * ada-lang.c (resolve_subexp): Handle array context. | |
4409 | ||
b10bae18 TT |
4410 | 2021-01-23 Tom Tromey <tom@tromey.com> |
4411 | ||
4412 | PR compile/25575 | |
4413 | * compile/compile-loc2c.c (note_register): New function. | |
4414 | (pushf_register_address, pushf_register): Use it. | |
4415 | ||
3637a558 TT |
4416 | 2021-01-23 Tom Tromey <tom@tromey.com> |
4417 | ||
4418 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
4419 | Change type of "registers_used". | |
4420 | * dwarf2/loc.h (dwarf2_compile_property_to_c): Update. | |
4421 | * dwarf2/loc.c (dwarf2_compile_property_to_c) | |
4422 | (locexpr_generate_c_location, loclist_generate_c_location): Change | |
4423 | type of "registers_used". | |
4424 | * compile/compile.h (compile_dwarf_expr_to_c) | |
4425 | (compile_dwarf_bounds_to_c): Update. | |
4426 | * compile/compile-loc2c.c (pushf_register_address) | |
4427 | (pushf_register, do_compile_dwarf_expr_to_c) | |
4428 | (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type | |
4429 | of "registers_used". | |
4430 | * compile/compile-c.h (generate_c_for_variable_locations): | |
4431 | Update. | |
4432 | * compile/compile-c-symbols.c (generate_vla_size) | |
4433 | (generate_c_for_for_one_variable): Change type of | |
4434 | "registers_used". | |
4435 | (generate_c_for_variable_locations): Return std::vector. | |
4436 | * compile/compile-c-support.c (generate_register_struct): Change | |
4437 | type of "registers_used". | |
4438 | (compute): Update. | |
4439 | ||
9f7f6cb8 TT |
4440 | 2021-01-23 Tom Tromey <tom@tromey.com> |
4441 | ||
4442 | * compile/compile-internal.h (class compile_instance) | |
4443 | <set_arguments>: Change return type. | |
4444 | * compile/compile.c (compile_to_object): Remove call to reset. | |
4445 | (compile_instance::set_arguments): Change return type. | |
4446 | ||
dd5ca05f SM |
4447 | 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
4448 | ||
4449 | * gdbtypes.c (copy_type_recursive): Use get_type_arch. | |
4450 | * gdbtypes.h (struct type) <set_owner>: Add asserts. | |
4451 | ||
d3ee35db LS |
4452 | 2021-01-23 Lancelot SIX <lsix@lancelotsix.com> |
4453 | ||
4454 | * Makefile.in (SELFTESTS_SRCS): Add | |
4455 | unittests/gdb_tilde_expand-selftests.c. | |
4456 | * unittests/gdb_tilde_expand-selftests.c: New file. | |
4457 | ||
9d2d8a16 AB |
4458 | 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com> |
4459 | ||
4460 | PR cli/25956 | |
4461 | * NEWS: Mention new command. | |
4462 | * cli/cli-style.c: Add 'cli/cli-setshow.h' include. | |
4463 | (version_style): Define. | |
4464 | (cli_style_option::cli_style_option): Add intensity parameter, and | |
4465 | use as appropriate. | |
4466 | (_initialize_cli_style): Register version style set/show commands. | |
4467 | * cli/cli-style.h (cli_style_option): Add intensity parameter. | |
4468 | (version_style): Declare. | |
4469 | * top.c (print_gdb_version): Use version_stype, and styled_string | |
4470 | to print the GDB version string. | |
4471 | ||
e7b43072 AB |
4472 | 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com> |
4473 | ||
4474 | * utils.c (emit_style_escape): Only emit an escape sequence if the | |
4475 | requested style is different than the current applied style. | |
4476 | (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and | |
4477 | current applied_style. | |
4478 | (fputs_styled): Remove is_default check. | |
4479 | (fputs_styled_unfiltered): Likewise. | |
4480 | (vfprintf_styled_no_gdbfmt): Likewise. | |
4481 | ||
2189c312 SM |
4482 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
4483 | ||
4484 | * remote.h (remote_debug_printf): New. | |
4485 | (remote_debug_printf_nofunc): New. | |
4486 | (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New. | |
4487 | * remote.c: Use above macros throughout file. | |
4488 | ||
02349803 SM |
4489 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
4490 | ||
4491 | * remote.h (remote_debug): Change to bool. | |
4492 | * remote.c (remote_debug): Change to bool. | |
4493 | (_initialize_remote): Adjust. | |
4494 | ||
cda09ec9 SM |
4495 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
4496 | ||
4497 | * target.h (remote_debug): Move to... | |
4498 | * remote.h (remote_debug): ... here. | |
4499 | * top.c (remote_debug): Move to... | |
4500 | * remote.c (remote_debug): ... here. | |
4501 | * remote-sim.c: Include remote.h. | |
4502 | ||
baf2b57f SM |
4503 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
4504 | ||
4505 | * cli/cli-cmds.c (show_remote_debug): Remove. | |
4506 | (show_remote_timeout): Remove. | |
4507 | (_initialize_cli_cmds): Don't register commands. | |
4508 | * remote.c (show_remote_debug): Move here. | |
4509 | (show_remote_timeout): Move here. | |
4510 | (_initialize_remote): Register commands. | |
4511 | ||
344e9841 SM |
4512 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
4513 | ||
4514 | * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the | |
4515 | type::objfile method instead. | |
4516 | ||
30625020 SM |
4517 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
4518 | ||
4519 | * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to | |
4520 | use the type::is_objfile_owned method. | |
4521 | ||
5b7d941b SM |
4522 | 2021-01-22 Simon Marchi <simon.marchi@efficios.com> |
4523 | ||
4524 | * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust. | |
4525 | (TYPE_OWNER): Remove. | |
4526 | (TYPE_OBJFILE): Adjust. | |
4527 | (struct main_type) <flag_objfile_owned>: Rename to... | |
4528 | <m_flag_objfile_owned>: ... this. | |
4529 | <owner>: Rename to... | |
4530 | <m_owner>: ... this. | |
4531 | (struct type) <is_objfile_owned, set_owner, objfile, arch>: New | |
4532 | methods. | |
4533 | (TYPE_ALLOC): Adjust. | |
4534 | * gdbtypes.c (alloc_type): Adjust. | |
4535 | (alloc_type_arch): Adjust. | |
4536 | (alloc_type_copy): Adjust. | |
4537 | (get_type_arch): Adjust. | |
4538 | (smash_type): Adjust. | |
4539 | (lookup_array_range_type): Adjust. | |
4540 | (recursive_dump_type): Adjust. | |
4541 | (copy_type_recursive): Adjust. | |
4542 | * compile/compile-c-types.c (convert_func): Adjust. | |
4543 | (convert_type_basic): Adjust. | |
4544 | * compile/compile-cplus-types.c (compile_cplus_convert_func): | |
4545 | Adjust. | |
4546 | * language.c | |
4547 | (language_arch_info::type_and_symbol::alloc_type_symbol): | |
4548 | Adjust. | |
4549 | ||
d5d24e12 LM |
4550 | 2021-01-21 Luis Machado <luis.machado@linaro.org> |
4551 | ||
4552 | * coffread.c (enter_linenos): Passing string to complaint. | |
4553 | * valops.c (value_assign): Make array view. | |
4554 | ||
a59902a7 SM |
4555 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
4556 | ||
4557 | * auto-load.h (debug_auto_load): Move here. | |
4558 | (auto_load_debug_printf): New. | |
4559 | * auto-load.c: Use auto_load_debug_printf. | |
4560 | (debug_auto_load): Move to header. | |
4561 | * linux-thread-db.c (try_thread_db_load): Use | |
4562 | auto_load_debug_printf. | |
4563 | * main.c (captured_main_1): Likewise. | |
4564 | ||
d3abc0ce SM |
4565 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
4566 | ||
4567 | * f-valprint.c (f77_array_offset_tbl): Remove. | |
4568 | ||
1e15fcac SM |
4569 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
4570 | ||
4571 | * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file. | |
4572 | ||
439706e6 SM |
4573 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
4574 | ||
4575 | * ser-tcp.c (wait_for_connect): Use interruptible_select instead | |
4576 | of gdb_select. | |
4577 | ||
325d39e4 HD |
4578 | 2021-01-21 Hannes Domani <ssbssa@yahoo.de> |
4579 | ||
4580 | PR python/19151 | |
4581 | * python/py-breakpoint.c (bppy_get_location): Handle | |
4582 | bp_hardware_breakpoint. | |
4583 | (bppy_init): Likewise. | |
4584 | (gdbpy_breakpoint_created): Likewise. | |
4585 | ||
7cb6d92a SM |
4586 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
4587 | ||
4588 | * arm-tdep.c (arm_debug_printf): Add and use throughout file. | |
4589 | ||
d4dd4fca SM |
4590 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
4591 | ||
4592 | * gdb_bfd.c (debug_bfd_cache): Change type to bool. | |
4593 | (_initialize_gdb_bfd): Adjust. | |
4594 | ||
de53369b SM |
4595 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
4596 | ||
4597 | PR gdb/26828 | |
4598 | * dwarf2/read.c (maybe_queue_comp_unit): Add assertion. | |
4599 | ||
17e593e9 SM |
4600 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
4601 | ||
4602 | * dwarf2/read.c (follow_die_offset): Add logging. | |
4603 | (dwarf2_per_objfile::age_comp_units): Add logging. | |
4604 | ||
6bd434d6 SM |
4605 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
4606 | ||
4607 | * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static. | |
4608 | * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind, | |
4609 | aarch64_stub_unwind, aarch64_normal_base, ): Make static. | |
4610 | * arm-linux-tdep.c (arm_prologue_unwind): Make static. | |
4611 | * arm-tdep.c (struct frame_unwind): Make static. | |
4612 | * auto-load.c (auto_load_safe_path_vec): Make static. | |
4613 | * csky-tdep.c (csky_stub_unwind): Make static. | |
4614 | * gdbarch.c (gdbarch_data_registry): Make static. | |
4615 | * gnu-v2-abi.c (gnu_v2_abi_ops): Make static. | |
4616 | * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static. | |
4617 | * i386-tdep.c (i386_frame_setup_skip_insns, | |
4618 | i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns): | |
4619 | Make static. | |
4620 | * infrun.c (observer_mode): Make static. | |
4621 | * linux-nat.c (sigchld_action): Make static. | |
4622 | * linux-thread-db.c (thread_db_list): Make static. | |
4623 | * maint-test-options.c (maintenance_test_options_list): | |
4624 | * mep-tdep.c (mep_csr_registers): Make static. | |
4625 | * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name. | |
4626 | (stats): Make static. | |
4627 | * nat/linux-osdata.c (struct osdata_type): Make static. | |
4628 | * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static. | |
4629 | * progspace.c (last_program_space_num): Make static. | |
4630 | * python/py-param.c (struct parm_constant): Remove struct type | |
4631 | name. | |
4632 | (parm_constants): Make static. | |
4633 | * python/py-record-btrace.c (btpy_list_methods): Make static. | |
4634 | * python/py-record.c (recpy_gap_type): Make static. | |
4635 | * record.c (record_goto_cmdlist): Make static. | |
4636 | * regcache.c (regcache_descr_handle): Make static. | |
4637 | * registry.h (DEFINE_REGISTRY): Make definition static. | |
4638 | * symmisc.c (std_in, std_out, std_err): Make static. | |
4639 | * top.c (previous_saved_command_line): Make static. | |
4640 | * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make | |
4641 | static. | |
4642 | * unittests/command-def-selftests.c (nr_duplicates, | |
4643 | nr_invalid_prefixcmd, lists): Make static. | |
4644 | * unittests/observable-selftests.c (test_notification): Make | |
4645 | static. | |
4646 | * unittests/optional/assignment/1.cc (counter): Make static. | |
4647 | * unittests/optional/assignment/2.cc (counter): Make static. | |
4648 | * unittests/optional/assignment/3.cc (counter): Make static. | |
4649 | * unittests/optional/assignment/4.cc (counter): Make static. | |
4650 | * unittests/optional/assignment/5.cc (counter): Make static. | |
4651 | * unittests/optional/assignment/6.cc (counter): Make static. | |
4652 | ||
a6c11cbb JS |
4653 | 2021-01-20 Joel Sherrill <joel@rtems.org> |
4654 | ||
4655 | PR gdb/27219 | |
4656 | * remote.c (struct remote_thread_info) <resume_state>: Rename | |
4657 | to... | |
4658 | <get_resume_state>: ... this. | |
4659 | (remote_target::resume): Adjust. | |
4660 | (remote_target::commit_resume): Adjust. | |
4661 | (remote_target::select_thread_for_ambiguous_stop_reply): Adjust. | |
4662 | ||
6f52fdf4 SDJ |
4663 | 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net> |
4664 | Tom Tromey <tom@tromey.com> | |
4665 | ||
4666 | * stap-probe.c (stap_parse_single_operand): Handle '!' | |
4667 | operator. | |
4668 | (stap_parse_argument_conditionally): Likewise. | |
4669 | Skip spaces after processing open-parenthesis sub-expression. | |
4670 | (stap_parse_argument_1): Skip spaces after call to | |
4671 | stap_parse_argument_conditionally. | |
4672 | Handle case when right-side expression is a parenthesized | |
4673 | sub-expression. | |
4674 | Skip spaces after call to stap_parse_argument_1. | |
4675 | ||
1c3b85ad LS |
4676 | 2021-01-19 Lancelot SIX <lsix@lancelotsix.com> |
4677 | ||
4678 | * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN. | |
4679 | ||
a9a87d35 LM |
4680 | 2021-01-19 Luis Machado <luis.machado@linaro.org> |
4681 | ||
4682 | * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate | |
4683 | memory and save data. | |
4684 | (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr) | |
4685 | (trad_frame_set_unknown, trad_frame_set_value_bytes) | |
4686 | (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p) | |
4687 | (trad_frame_value_bytes_p): Remove. | |
4688 | (trad_frame_reset_saved_regs): Adjust documentation. | |
4689 | * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a | |
4690 | constructor and reset the state of the registers. | |
4691 | (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p) | |
4692 | (trad_frame_value_bytes_p, trad_frame_set_value) | |
4693 | (trad_frame_set_realreg, trad_frame_set_addr) | |
4694 | (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove. | |
4695 | (trad_frame_set_reg_realreg): Update to call member function. | |
4696 | (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise. | |
4697 | (trad_frame_get_prev_register): Likewise. | |
4698 | ||
4699 | * aarch64-tdep.c (aarch64_analyze_prologue) | |
4700 | (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1) | |
4701 | (aarch64_prologue_prev_register): Update to use member functions. | |
4702 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise. | |
4703 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise. | |
4704 | * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise. | |
4705 | * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache) | |
4706 | (arm_make_epilogue_frame_cache): Likewise. | |
4707 | * avr-tdep.c (avr_frame_unwind_cache) | |
4708 | (avr_frame_prev_register): Likewise. | |
4709 | * cris-tdep.c (cris_scan_prologue): Likewise. | |
4710 | * csky-tdep.c (csky_frame_unwind_cache): Likewise. | |
4711 | * frv-tdep.c (frv_analyze_prologue): Likewise. | |
4712 | * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise. | |
4713 | * lm32-tdep.c (lm32_frame_cache): Likewise. | |
4714 | * m32r-tdep.c (m32r_frame_unwind_cache): Likewise. | |
4715 | * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise. | |
4716 | * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache) | |
4717 | (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise. | |
4718 | (reset_saved_regs): Adjust to set realreg. | |
4719 | * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to | |
4720 | call member functions. | |
4721 | * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache) | |
4722 | * s390-tdep.c (s390_prologue_frame_unwind_cache) | |
4723 | (s390_backchain_frame_unwind_cache): Likewise. | |
4724 | * score-tdep.c (score7_analyze_prologue) | |
4725 | (score3_analyze_prologue, score_make_prologue_cache): Likewise. | |
4726 | * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise. | |
4727 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise. | |
4728 | * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise. | |
4729 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise. | |
4730 | * tilegx-tdep.c (tilegx_analyze_prologue) | |
4731 | (tilegx_frame_cache): Likewise. | |
4732 | * v850-tdep.c (v850_frame_cache): Likewise. | |
4733 | * vax-tdep.c (vax_frame_cache): Likewise. | |
4734 | ||
bdec2917 LM |
4735 | 2021-01-19 Luis Machado <luis.machado@linaro.org> |
4736 | ||
4737 | * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead | |
4738 | of buffer + length. | |
4739 | (put_frame_register_bytes): Likewise. | |
4740 | Adjust documentation. | |
4741 | (get_frame_memory): Pass a gdb::array_view instead of buffer + length. | |
4742 | (safe_frame_unwind_memory): Likewise. | |
4743 | * frame.c (get_frame_register_bytes, put_frame_register_bytes) | |
4744 | (get_frame_memory, safe_frame_unwind_memory): Adjust to use | |
4745 | gdb::array_view. | |
4746 | * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise. | |
4747 | * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise. | |
4748 | * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise. | |
4749 | * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise. | |
4750 | * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise. | |
4751 | * dwarf2/loc.c (rw_pieced_value): Likewise. | |
4752 | * hppa-tdep.c (hppa_frame_cache): Likewise. | |
4753 | * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise. | |
4754 | * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise. | |
4755 | * i386-linux-tdep.c (i386_linux_sigtramp_start) | |
4756 | (i386_linux_rt_sigtramp_start): Likewise. | |
4757 | * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise. | |
4758 | * i386-tdep.c (i386_register_to_value): Likewise. | |
4759 | * i387-tdep.c (i387_register_to_value): Likewise. | |
4760 | * ia64-tdep.c (ia64_register_to_value): Likewise. | |
4761 | * m32r-linux-tdep.c (m32r_linux_sigtramp_start) | |
4762 | (m32r_linux_rt_sigtramp_start): Likewise. | |
4763 | * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise. | |
4764 | * m68k-tdep.c (m68k_register_to_value): Likewise. | |
4765 | * mips-tdep.c (mips_register_to_value) | |
4766 | (mips_value_to_register): Likewise. | |
4767 | * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer) | |
4768 | (ppcfbsd_sigtramp_frame_cache): Likewise. | |
4769 | * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer) | |
4770 | (ppcobsd_sigtramp_frame_cache): Likewise. | |
4771 | * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p) | |
4772 | (rs6000_register_to_value): Likewise. | |
4773 | * tilegx-tdep.c (tilegx_analyze_prologue): Likewise. | |
4774 | * tramp-frame.c (tramp_frame_start): Likewise. | |
4775 | * valops.c (value_assign): Likewise. | |
4776 | ||
ccbe4c82 LM |
4777 | 2021-01-19 Luis Machado <luis.machado@linaro.org> |
4778 | ||
4779 | * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an | |
4780 | array_view. | |
4781 | * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view | |
4782 | instead of buffer and size. | |
4783 | (trad_frame_set_reg_value_bytes): Likewise. | |
4784 | * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise. | |
4785 | (trad_frame_set_value_bytes): Likewise. | |
4786 | ||
0e7620dc MF |
4787 | 2021-01-18 Mike Frysinger <vapier@gentoo.org> |
4788 | ||
4789 | * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s. | |
4790 | ||
6a9ad81c AB |
4791 | 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com> |
4792 | ||
4793 | * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete. | |
4794 | (riscv_fbsd_gregset): Use riscv_supply_regset. | |
4795 | (riscv_fbsd_fpregset): Likewise. | |
4796 | * riscv-linux-tdep.c (riscv_linux_gregset): Likewise. | |
4797 | (riscv_linux_fregset): Likewise. | |
4798 | * riscv-tdep.c (riscv_supply_regset): Define new function. | |
4799 | * riscv-tdep.h (riscv_supply_regset): Declare new function. | |
4800 | ||
d3d7d1ba TV |
4801 | 2021-01-18 Tom de Vries <tdevries@suse.de> |
4802 | ||
4803 | PR tdep/27172 | |
4804 | * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR): | |
4805 | New macro. | |
4806 | (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper | |
4807 | for SEGV_BNDERR. | |
4808 | ||
aa2838cc SM |
4809 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
4810 | ||
4811 | * remote.c (class remote_target) <remote_hostio_send_command, | |
4812 | remote_hostio_parse_result>: Constify parameter. | |
4813 | (remote_hostio_parse_result): Likewise. | |
4814 | (remote_target::remote_hostio_send_command): Adjust. | |
4815 | (remote_target::remote_hostio_pread_vFile): Adjust. | |
4816 | (remote_target::fileio_readlink): Adjust. | |
4817 | (remote_target::fileio_fstat): Adjust. | |
4818 | ||
b5c8f22d SM |
4819 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
4820 | ||
4821 | * remote.c (remote_target::start_remote): Move wait_status to | |
4822 | narrower scope. | |
4823 | ||
e3b2741b SM |
4824 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
4825 | ||
4826 | * remote.c (class remote_target): | |
4827 | <add_current_inferior_and_thread>: Constify parameter. | |
4828 | (stop_reply_extract_thread): Likewise. | |
4829 | (remote_target::get_current_thread): Likewise. | |
4830 | (remote_target::add_current_inferior_and_thread): Likewise. | |
4831 | ||
cecb1912 SM |
4832 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
4833 | ||
4834 | * remote.c (class remote_target) | |
4835 | <remote_unpack_thread_info_response, | |
4836 | parse_threadlist_response>: Constify parameter and/or return | |
4837 | value and or local variable. | |
4838 | (stub_unpack_int): Likewise. | |
4839 | (unpack_nibble): Likewise. | |
4840 | (unpack_byte): Likewise. | |
4841 | (unpack_int): Likewise. | |
4842 | (unpack_string): Likewise. | |
4843 | (unpack_threadid): Likewise. | |
4844 | (remote_target::remote_unpack_thread_info_response): Likewise. | |
4845 | (remote_target::parse_threadlist_response): Likewise. | |
4846 | ||
5a11fff0 AB |
4847 | 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com> |
4848 | ||
4849 | * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0. | |
4850 | ||
17e89137 LS |
4851 | 2021-01-14 Lancelot Six <lsix@lancelotsix.com> |
4852 | ||
4853 | * MAINTAINERS (Write After Approval): Add myself. | |
4854 | ||
58eadc4b BE |
4855 | 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4856 | ||
4857 | * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error | |
4858 | because is_trivially_default_constructible was first implemented with | |
4859 | gcc-5. | |
4860 | ||
5fae2a2c TV |
4861 | 2021-01-14 Tom de Vries <tdevries@suse.de> |
4862 | ||
4863 | PR breakpoints/27151 | |
4864 | * objfiles.h (in_plt_section): Handle .plt.sec. | |
4865 | ||
8f66807b AB |
4866 | 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
4867 | ||
4868 | PR gdb/26819 | |
4869 | * remote.c | |
4870 | (remote_target::select_thread_for_ambiguous_stop_reply): New | |
4871 | member function. | |
4872 | (remote_target::process_stop_reply): Call | |
4873 | select_thread_for_ambiguous_stop_reply. | |
4874 | ||
bd497355 SM |
4875 | 2021-01-13 Simon Marchi <simon.marchi@efficios.com> |
4876 | ||
4877 | * record-btrace.c (class record_btrace_target): Remove. | |
4878 | (record_btrace_target::commit_resume): Remove. | |
4879 | * record-full.c (class record_full_target): Remove. | |
4880 | (record_full_target::commit_resume): Remove. | |
4881 | ||
c9d22089 SM |
4882 | 2021-01-13 Simon Marchi <simon.marchi@efficios.com> |
4883 | ||
4884 | * remote.c (enum class resume_state): New. | |
4885 | (struct resumed_pending_vcont_info): New. | |
4886 | (struct remote_thread_info) <resume_state, set_not_resumed, | |
4887 | set_resumed_pending_vcont, resumed_pending_vcont_info, | |
4888 | set_resumed, m_resume_state, m_resumed_pending_vcont_info>: | |
4889 | New. | |
4890 | <last_resume_step, last_resume_sig, vcont_resumed>: Remove. | |
4891 | (remote_target::remote_add_thread): Adjust. | |
4892 | (remote_target::process_initial_stop_replies): Adjust. | |
4893 | (remote_target::resume): Adjust. | |
4894 | (remote_target::commit_resume): Rely on state in | |
4895 | remote_thread_info and not on tp->executing. | |
4896 | (remote_target::process_stop_reply): Adjust. | |
4897 | ||
d8d1feb4 SM |
4898 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
4899 | ||
4900 | * arc-tdep.h (arc_debug_printf): New. | |
4901 | * arc-tdep.c: Use arc_debug_printf. | |
4902 | * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use. | |
4903 | * arc-linux-tdep.c (arc_linux_debug_printf): Add and use. | |
4904 | * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use. | |
4905 | ||
fb0f5031 SM |
4906 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
4907 | ||
4908 | * arc-tdep.h (arc_debug): Change type to bool. | |
4909 | * arc-tdep.c (arc_debug): Change type to bool. | |
4910 | (arc_analyze_prologue): Adjust. | |
4911 | (_initialize_arc_tdep): Use add_setshow_boolean_cmd. | |
4912 | * arc-linux-nat.c (ps_get_thread_area): Adjust. | |
4913 | ||
5bf7e91b SM |
4914 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
4915 | ||
4916 | * auto-load.c (auto_load_objfile_script_1): Use bool. | |
4917 | (execute_script_contents): Use bool. | |
4918 | ||
db972fce SM |
4919 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
4920 | ||
4921 | * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move | |
4922 | comment here. | |
4923 | * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move | |
4924 | comment to header. | |
4925 | * extension-priv.h (struct extension_language_script_ops) | |
4926 | <auto_load_enabled>: Return bool. | |
4927 | * extension.h (ext_lang_auto_load_enabled): Return bool, move | |
4928 | comment here. | |
4929 | * extension.c (ext_lang_auto_load_enabled): Return bool, move | |
4930 | comment to header. | |
4931 | * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool, | |
4932 | move comment here. | |
4933 | * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool, | |
4934 | move comment to header. | |
4935 | * python/python-header.h (gdbpy_auto_load_enabled): Return bool, | |
4936 | move comment here. | |
4937 | * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool, | |
4938 | move comment to header. | |
4939 | ||
5e12f48f SM |
4940 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
4941 | ||
4942 | * auto-load.h (file_is_auto_load_safe): Change return type to | |
4943 | bool, move comment here. | |
4944 | * auto-load.c (file_is_auto_load_safe): Change return type and | |
4945 | advice_printed to bool. Move comment to header. | |
4946 | ||
54ca9002 SM |
4947 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
4948 | ||
4949 | * jit.c (jit_debug_printf): New, use throughout file. | |
4950 | ||
24a7f1b5 SM |
4951 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
4952 | ||
4953 | * infrun.c (normal_stop): Fix indentation. | |
4954 | ||
fe7a351a SM |
4955 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
4956 | ||
4957 | * top.h (readnow_symbol_files, readnever_symbol_files): Move | |
4958 | declarations to ... | |
4959 | * symfile.h: ... here. | |
4960 | * symfile.c: Update doc. | |
4961 | ||
16e9019e SM |
4962 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
4963 | ||
4964 | * target.h (baud_rate, serial_parity): Move declarations... | |
4965 | * serial.h: ... here. | |
4966 | * main.c: Include serial.h. | |
4967 | * serial.c (baud_rate, serial_parity): Update doc. | |
4968 | ||
b2f2ae0d SM |
4969 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
4970 | ||
4971 | * top.c (pre_init_ui_hook): Remove. | |
4972 | ||
5291fe3c SP |
4973 | 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com> |
4974 | ||
4975 | * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers. | |
4976 | (aarch64_vnv_type): Add "bf" type in h field of v registers. | |
4977 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated. | |
4978 | * features/aarch64-fpu.xml: Add bfloat16 type. | |
4979 | ||
ce38f5ed AB |
4980 | 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com> |
4981 | ||
4982 | * expprint.c (dump_subexp_body_standard): Handle OP_BOOL. | |
4983 | ||
7c654b71 AB |
4984 | 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com> |
4985 | ||
4986 | * f-exp.y (dot_ops): Rename to... | |
4987 | (fortran_operators): ...this. Add a header comment. Add symbol | |
4988 | based operators. | |
4989 | (yylex): Update to use fortran_operators not dot_ops. Remove | |
4990 | special handling for '**', this is now included in | |
4991 | fortran_operators. | |
4992 | ||
c6185dce SM |
4993 | 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca> |
4994 | ||
4995 | * arch/aarch64-insn.h (aarch64_debug_printf): New. | |
4996 | * arch/aarch64-insn.c: Use aarch64_debug_printf. | |
4997 | * aarch64-tdep.c: Use aarch64_debug_printf. | |
4998 | ||
eef401dc SM |
4999 | 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca> |
5000 | ||
5001 | * solib-aix.c (solib_aix_debug_printf): New, use throughout | |
5002 | file. | |
5003 | ||
062eaacb SM |
5004 | 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca> |
5005 | ||
5006 | * jit.c (jit_debug): Change type to bool. | |
5007 | (_initialize_jit): Adjust. | |
5008 | ||
54585eee TT |
5009 | 2021-01-09 Tom Tromey <tom@tromey.com> |
5010 | ||
5011 | PR compile/23672 | |
5012 | * compile/compile.c (compile_to_object): Avoid crash when | |
5013 | osabi_triplet_regexp returns NULL. | |
5014 | ||
bc167b6b TT |
5015 | 2021-01-09 Tom Tromey <tom@tromey.com> |
5016 | ||
5017 | * tracepoint.h (class collection_list) <append_exp>: Take a | |
5018 | std::string. | |
5019 | * tracepoint.c (collection_list::append_exp): Take a std::string. | |
5020 | (encode_actions_1): Update. | |
5021 | ||
8fc48b79 TT |
5022 | 2021-01-08 Tom Tromey <tromey@adacore.com> |
5023 | ||
5024 | * parse.c (parse_expression): Add void_context_p parameter. Use | |
5025 | parse_exp_in_context. | |
5026 | * printcmd.c (print_command_1): Change voidprint to bool. Pass to | |
5027 | parse_expression. | |
5028 | (print_command, call_command): Update. | |
5029 | * expression.h (parse_expression): Add void_context_p parameter. | |
5030 | ||
3c8c6de2 AB |
5031 | 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
5032 | ||
5033 | * value.c (set_value_component_location): Adjust the VALUE_LVAL | |
5034 | for internalvar components that have a dynamic location. | |
5035 | ||
1940319c TV |
5036 | 2021-01-08 Tom de Vries <tdevries@suse.de> |
5037 | ||
5038 | PR gdb/26881 | |
5039 | * breakpoint.c (create_exception_master_breakpoint_probe) | |
5040 | (create_exception_master_breakpoint_hook): Factor out | |
5041 | of ... | |
5042 | (create_exception_master_breakpoint): ... here. Only try to install | |
5043 | the master exception breakpoint in objfile.debug using the | |
5044 | _Unwind_DebugHook method, if the install using probes in objfile | |
5045 | failed. | |
5046 | ||
e3436813 AB |
5047 | 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
5048 | ||
5049 | * f-lang.c (fortran_value_subarray): Call value_from_component. | |
5050 | ||
e904f56d MF |
5051 | 2021-01-07 Mike Frysinger <vapier@gentoo.org> |
5052 | ||
5053 | * remote-sim.c: Include memory-map.h. | |
5054 | (gdbsim_target): Define memory_map override. | |
5055 | (gdbsim_target::memory_map): Define. | |
5056 | ||
959d6a67 TT |
5057 | 2021-01-07 Tom Tromey <tromey@adacore.com> |
5058 | ||
5059 | * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix. | |
5060 | ||
d4813f10 TT |
5061 | 2021-01-07 Tom Tromey <tromey@adacore.com> |
5062 | ||
5063 | * ada-lang.c (add_component_interval): Start loop using vector's | |
5064 | updated size. | |
5065 | ||
b49180ac TT |
5066 | 2021-01-06 Tom Tromey <tromey@adacore.com> |
5067 | ||
5068 | * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>: | |
5069 | Do not cast result. | |
5070 | * valarith.c (fixed_point_binop): Handle multiplication | |
5071 | and division specially. | |
5072 | * valops.c (value_to_gdb_mpq): New function. | |
5073 | (value_cast_to_fixed_point): Use it. | |
5074 | ||
55195361 HD |
5075 | 2021-01-05 Hannes Domani <ssbssa@yahoo.de> |
5076 | ||
5077 | * tui/tui-winsource.c (tui_source_window_base::refresh_window): | |
5078 | Call wnoutrefresh instead of tui_win_info::refresh_window. | |
5079 | ||
1b6d4bb2 HD |
5080 | 2021-01-05 Hannes Domani <ssbssa@yahoo.de> |
5081 | ||
5082 | * tui/tui-source.c (tui_source_window::show_line_number): | |
5083 | Redraw second space after line number. | |
5084 | ||
b5ff370e HD |
5085 | 2021-01-05 Hannes Domani <ssbssa@yahoo.de> |
5086 | ||
5087 | PR tui/26927 | |
5088 | * tui/tui-winsource.c (tui_source_window_base::refresh_window): | |
5089 | Fix source pad size in prefresh. | |
5090 | (tui_source_window_base::show_source_content): Grow source pad | |
5091 | if necessary. | |
5092 | ||
c68ea49f MF |
5093 | 2021-01-04 Mike Frysinger <vapier@gentoo.org> |
5094 | ||
5095 | * bfin-tdep.c (bfin_push_dummy_call): Use align_up. | |
5096 | (bfin_frame_align): Use align_down. | |
5097 | ||
e4ad960a TV |
5098 | 2021-01-04 Tom de Vries <tdevries@suse.de> |
5099 | ||
5100 | * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq | |
5101 | terminators that do not terminate anything. | |
5102 | ||
3ec3145c SM |
5103 | 2021-01-04 Simon Marchi <simon.marchi@efficios.com> |
5104 | ||
5105 | * debug.c (debug_print_depth): New. | |
5106 | * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New. | |
5107 | (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New. | |
5108 | * infrun.c (start_step_over): Use | |
5109 | INFRUN_SCOPED_DEBUG_ENTER_EXIT. | |
5110 | (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and | |
5111 | INFRUN_SCOPED_DEBUG_START_END. | |
5112 | (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT. | |
5113 | ||
e71daf80 SM |
5114 | 2021-01-04 Simon Marchi <simon.marchi@efficios.com> |
5115 | ||
5116 | * infrun.c (print_target_wait_results): Use infrun_debug_printf. | |
5117 | ||
335709bc SM |
5118 | 2021-01-04 Simon Marchi <simon.marchi@efficios.com> |
5119 | ||
5120 | * utils.c (vfprintf_unfiltered): Print timestamp only when | |
5121 | previous debug output ended with a newline. | |
5122 | ||
098caef4 LM |
5123 | 2021-01-04 Luis Machado <luis.machado@linaro.org> |
5124 | ||
5125 | Update all users of trad_frame_saved_reg to use the new member | |
5126 | functions. | |
5127 | ||
5128 | Remote all struct keywords from declarations of trad_frame_saved_reg | |
5129 | types, except on forward declarations. | |
5130 | ||
5131 | * aarch64-tdep.c: Update. | |
5132 | * alpha-mdebug-tdep.c: Update. | |
5133 | * alpha-tdep.c: Update. | |
5134 | * arc-tdep.c: Update. | |
5135 | * arm-tdep.c: Update. | |
5136 | * avr-tdep.c: Update. | |
5137 | * cris-tdep.c: Update. | |
5138 | * csky-tdep.c: Update. | |
5139 | * frv-tdep.c: Update. | |
5140 | * hppa-linux-tdep.c: Update. | |
5141 | * hppa-tdep.c: Update. | |
5142 | * hppa-tdep.h: Update. | |
5143 | * lm32-tdep.c: Update. | |
5144 | * m32r-linux-tdep.c: Update. | |
5145 | * m32r-tdep.c: Update. | |
5146 | * m68hc11-tdep.c: Update. | |
5147 | * mips-tdep.c: Update. | |
5148 | * moxie-tdep.c: Update. | |
5149 | * riscv-tdep.c: Update. | |
5150 | * rs6000-tdep.c: Update. | |
5151 | * s390-linux-tdep.c: Update. | |
5152 | * s390-tdep.c: Update. | |
5153 | * score-tdep.c: Update. | |
5154 | * sparc-netbsd-tdep.c: Update. | |
5155 | * sparc-sol2-tdep.c: Update. | |
5156 | * sparc64-fbsd-tdep.c: Update. | |
5157 | * sparc64-netbsd-tdep.c: Update. | |
5158 | * sparc64-obsd-tdep.c: Update. | |
5159 | * sparc64-sol2-tdep.c: Update. | |
5160 | * tilegx-tdep.c: Update. | |
5161 | * v850-tdep.c: Update. | |
5162 | * vax-tdep.c: Update. | |
5163 | ||
5164 | * frame-unwind.c (frame_unwind_got_bytes): Make parameter const. | |
5165 | * frame-unwind.h (frame_unwind_got_bytes): Likewise. | |
5166 | ||
5167 | * trad-frame.c: Update. | |
5168 | Remove TF_REG_* enum. | |
5169 | (trad_frame_alloc_saved_regs): Add a static assertion to check for | |
5170 | a trivially-constructible struct. | |
5171 | (trad_frame_reset_saved_regs): Adjust to use member function. | |
5172 | (trad_frame_value_p): Likewise. | |
5173 | (trad_frame_addr_p): Likewise. | |
5174 | (trad_frame_realreg_p): Likewise. | |
5175 | (trad_frame_value_bytes_p): Likewise. | |
5176 | (trad_frame_set_value): Likewise. | |
5177 | (trad_frame_set_realreg): Likewise. | |
5178 | (trad_frame_set_addr): Likewise. | |
5179 | (trad_frame_set_unknown): Likewise. | |
5180 | (trad_frame_set_value_bytes): Likewise. | |
5181 | (trad_frame_get_prev_register): Likewise. | |
5182 | * trad-frame.h: Update. | |
5183 | (trad_frame_saved_reg_kind): New enum. | |
5184 | (struct trad_frame_saved_reg) <addr, realreg, data>: Remove. | |
5185 | <m_kind, m_reg>: New member fields. | |
5186 | <set_value, set_realreg, set_addr, set_unknown, set_value_bytes> | |
5187 | <kind, value, realreg, addr, value_bytes, is_value, is_realreg> | |
5188 | <is_addr, is_unknown, is_value_bytes>: New member functions. | |
5189 | ||
9898e882 SM |
5190 | 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca> |
5191 | ||
5192 | * target-float.c: Fix typos. | |
5193 | ||
b66b4e65 HD |
5194 | 2021-01-02 Hannes Domani <ssbssa@yahoo.de> |
5195 | ||
5196 | * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer. | |
5197 | ||
b5b5650a JB |
5198 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
5199 | ||
5200 | * gdbarch.sh: Update copyright year range. | |
5201 | ||
3666a048 JB |
5202 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
5203 | ||
5204 | Update copyright year range in copyright header of all GDB files. | |
5205 | ||
ff7e39b6 JB |
5206 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
5207 | ||
5208 | * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport" | |
5209 | to the list of directories to update. | |
5210 | ||
2b47c078 JB |
5211 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
5212 | ||
5213 | * top.c (print_gdb_version): Update copyright year. | |
5214 | ||
9e5e03df | 5215 | 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com> |
c8f02daa | 5216 | |
476923f1 | 5217 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020. |
c8f02daa | 5218 | |
476923f1 | 5219 | For older changes see ChangeLog-2020. |
c906108c SS |
5220 | \f |
5221 | Local Variables: | |
5222 | mode: change-log | |
5223 | left-margin: 8 | |
5224 | fill-column: 74 | |
5225 | version-control: never | |
57da7796 | 5226 | coding: utf-8 |
c906108c | 5227 | End: |