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