Update release tools with libctf support.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c0e70c62
TT
12019-05-28 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (ada_remove_Xbn_suffix)
4 (find_old_style_renaming_symbol)
5 (parse_old_style_renaming): Remove.
6 (ada_find_renaming_symbol): Don't call
7 find_old_style_renaming_symbol.
8 (ada_is_renaming_symbol): Rename from
9 ada_find_renaming_symbol. Remove "block" parameter. Return
10 bool. Now static.
11 (ada_read_var_value): Update and simplify.
12 * ada-exp.y (write_var_or_type): Remove old code.
13
766f8836
AH
142019-05-28 Alan Hayward <alan.hayward@arm.com>
15
16 * event-top.c: Remove include comment.
17 * inflow.c (class scoped_ignore_sigttou): Move from here...
18 * inflow.h (class scoped_ignore_sigttou): ...to here.
19 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
20 * top.c: Remove include comment.
21
eb41253a
TT
222019-05-27 Tom Tromey <tom@tromey.com>
23
24 * NEWS: Fix typo.
25
4ca51187
TT
262019-05-22 Tom Tromey <tromey@adacore.com>
27
28 * target.c (target_follow_exec): Constify parameter.
29 * target-delegates.c: Rebuild.
30 * remote.c (remote_target::follow_exec): Constify parameter.
31 * infrun.c (follow_exec): Constify parameter.
32 * target.h (struct target_ops) <follow_exec>: Constify parameter.
33 (target_follow_exec): Likewise.
34
8fca4da0
AH
352019-05-22 Alan Hayward <alan.hayward@arm.com>
36
37 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
38 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
39
b7060614
AH
402019-05-22 Alan Hayward <alan.hayward@arm.com>
41
42 * NEWS: Add debugredirect and testsuite sections.
43
0a5954bd
SC
442019-05-22 Simon Cook <simon.cook@embecosm.com>
45
46 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
47 target descriptions using exclusively floating point register name
48 aliases.
49
dc42e902
AB
502019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
51
52 PR gdb/18644:
53 * f-lang.c (build_fortran_types): Handle the case where
54 gdbarch_floatformat_for_type returns a nullptr.
55
fb7806c7
TV
562019-05-21 Tom de Vries <tdevries@suse.de>
57
58 PR cli/24587
59 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
60
34d11c68
AB
612019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 PR gdb/18644:
64 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
65 16-byte floats.
66 * i386-tdep.c (i386_floatformat_for_type): Use
67 floatformats_ia64_quad for the 16-byte floating point component
68 within a fortran 32-byte complex number.
69
122cf0f2
AB
702019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
73 delete default constructor.
74 (find_partial_die): Update to return const struct.
75 (partial_die_parent_scope): Move variable declaration into scope
76 of its use and change its type to auto.
77 (guess_partial_die_structure_name): Likewise.
78 (partial_die_info::fixup): Likewise.
79
33d0e35a
TT
802019-05-17 Tom Tromey <tromey@adacore.com>
81
82 * source.c (find_and_open_source): Remove cast.
83
a45575b0
TT
842019-05-17 Tom Tromey <tromey@adacore.com>
85
86 * annotate.c (annotate_source): Make "filename" const.
87 * annotate.h (annotate_source): Use const.
88
81f47ac2
AH
892019-05-17 Alan Hayward <alan.hayward@arm.com>
90
91 * disasm.c (set_disassembler_options): Send errors to stderr.
92
ca1285d1
AH
932019-05-17 Alan Hayward <alan.hayward@arm.com>
94
95 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
96 (cli_interp_base::set_logging): Check debug_redirect.
97 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
98 * cli/cli-logging.c (debug_redirect): Add static variable.
99 (pop_output_files): Add default param.
100 (handle_redirections): Print debug setting.
101 (show_logging_command): Likewise.
102 (_initialize_cli_logging): Add debugredirect command.
103 * interps.c (current_interp_set_logging): Add debug_redirect
104 parameter.
105 * interps.h (set_logging): Add debug_redirect parameter.
106 (current_interp_set_logging): Likewise.
107 * mi/mi-common.h: Likewise.
108 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
109
1102019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
111 Tom Tromey <tromey@adacore.com>
112
113 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
114 directly.
115 * cli/cli-interp.h (make_logging_output): Remove declaration.
116 * cli/cli-logging.c (make_logging_output): Remove function.
117 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
118 directly.
119 * ui-file.c (tee_file::tee_file): Remove bools.
120 (tee_file::~tee_file): Remove deletes.
121 * ui-file.h (tee_file): Remove bools.
122
26648588
JV
1232019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
124
125 * mi/mi-cmds.h (mi_cmd_complete): New function.
126 * mi/mi-main.c (mi_cmd_complete): Likewise.
127 * mi/mi-cmds.c: Define new MI command -complete.
128 * NEWS: Mention new -complete command.
129
6e035501
JV
1302019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
131
132 * completer.h (complete): New function.
133 * completer.c (complete): Likewise.
134 * cli/cli-cmds.c: (complete_command): Update to use new complete()
135 function defined in completer.h.
136
7d0e2ece
JV
1372019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
138
139 * MAINTAINERS (Write After Approval): Add myself.
140
fb816e8b
TV
1412019-05-17 Tom de Vries <tdevries@suse.de>
142
143 PR gdb/24094
144 * dwarf2read.c (struct cu_partial_die_info): New struct.
145 (find_partial_die): Return cu_partial_die_info.
146 (partial_die_parent_scope, guess_partial_die_structure_name)
147 (partial_die_info::fixup): Handle new return type of find_partial_die.
148
677052f2
SDJ
1492019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
150
151 * stap-probe.c (stap_parse_register_operand): Make "regname" an
152 "std::string", simplifying the algorithm.
153
f3da9116
SDJ
1542019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
155
156 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
157 (stap_static_probe_ops::get_probes): Likewise.
158
f1bb75ab
SDJ
1592019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
160
161 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
162 '-')" and "else if".
163 (stap_parse_single_operand): Join checks for
164 "gdbarch_stap_parse_special_token_p" and
165 "gdbarch_stap_parse_special_token" in the same "if" statement.
166 Invert check when verifying for operation on register
167 displacement.
168
3ca58cde
SDJ
1692019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
170
171 * stap-probe.c (stap_get_opcode): Update comment.
172 (stap_get_expected_argument_type): Likewise.
173 (handle_stap_probe): Likewise.
174
af2d9bee
SDJ
1752019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
176
177 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
178 return type to 'bool'. Adjust comment. Use 'bool' when
179 appropriate.
180 (i386_stap_parse_special_token_three_arg_disp): Likewise.
181 * stap-probe.c (stap_parse_argument_1): Likewise.
182 (stap_is_operator): Likewise.
183 (stap_is_generic_prefix): Likewise.
184 (stap_is_register_prefix): Likewise.
185 (stap_is_register_indirection_prefix): Likewise.
186 (stap_is_integer_prefix): Likewise.
187 (stap_generic_check_suffix): Likewise.
188 (stap_check_integer_suffix): Likewise.
189 (stap_check_register_suffix): Likewise.
190 (stap_check_register_indirection_suffix): Likewise.
191 (stap_parse_register_operand): Likewise.
192 (stap_parse_single_operand): Likewise.
193 (stap_parse_argument_1): Likewise.
194 (stap_probe::get_argument_count): Likewise.
195 (stap_is_operator): Likewise.
196
61c9c421
TT
1972019-05-16 Tom Tromey <tromey@adacore.com>
198
199 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
200 keyword to foreach.
201
9ddc1af1
SM
2022019-05-15 Simon Marchi <simon.marchi@efficios.com>
203
204 * linux-thread-db.c (try_thread_db_load_1): Change return type
205 to bool.
206 (try_thread_db_load): Likewise.
207 (try_thread_db_load_from_pdir_1): Likewise.
208 (try_thread_db_load_from_pdir): Likewise.
209 (try_thread_db_load_from_sdir): Likewise.
210 (try_thread_db_load_from_dir): Likewise.
211 (thread_db_load_search): Likewise.
212 (has_libpthread): Likewise.
213 (thread_db_load): Likewise.
214
7bede828
SDJ
2152019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
216
217 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
218 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
219 NULL, and complain/return if that's the case.
220
c5358db4
JD
2212019-05-15 John Darrington <john@darrington.wattle.id.au>
222
223 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
224 (advance, posn, abstract_read_memory): New functions.
225 [struct mem_read_abstraction]: New struct.
226 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
227
c408a94f
TT
2282019-05-14 Tom Tromey <tromey@adacore.com>
229
230 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
231 value is not lval_memory.
232
e7bd7fba
TT
2332019-05-14 Tom Tromey <tromey@adacore.com>
234
235 * solib.c (info_sharedlibrary_command): Style the file name.
236
a6d0f249
AH
2372019-05-14 Alan Hayward <alan.hayward@arm.com>
238
239 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
240 (aarch64_vnv_type): Likewise.
241 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
242 * common/tdesc.c: Likewise.
243 * common/tdesc.h (enum tdesc_type_kind): Likewise.
244 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
245 * features/aarch64-fpu.xml: Add ieee half view.
246 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
247 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
248 * gdbtypes.h (struct builtin_type): Likewise.
249 (struct objfile_type): Likewise.
250
66b8bb74
SM
2512019-05-12 Paul Naert <paul.naert@polymtl.ca>
252
253 * language.c (language_sniff_from_mangled_name): Fix "langauge"
254 typo.
255 * location.h (string_to_event_location): Likewise.
256
21c219fd
JB
2572019-05-11 Joel Brobecker <brobecker@adacore.com>
258
259 GDB 8.3 released.
260
13674803
SM
2612019-05-10 Simon Marchi <simon.marchi@efficios.com>
262
263 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
264 New variable declaration.
265 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
266 New variable.
267 (print_one_breakpoint): Use ui_out::test_flags and new global
268 variable to compute use_fixed_output.
269 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
270 Remove.
271 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
272 (mi_multi_location_breakpoint_output_fixed): Remove.
273 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
274 new variable.
275 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
276 fix_multi_location_breakpoint_output flag if version >= 3.
277 * ui-out.h (enum ui_out_flag)
278 <fix_multi_location_breakpoint_output>: New enumerator.
279
a9eac7f9
SM
2802019-05-10 Simon Marchi <simon.marchi@efficios.com>
281
282 * contrib/cc-with-tweaks.sh: Validate dwz's work.
283
71bed2db
TT
2842019-05-10 Tom Tromey <tromey@adacore.com>
285
286 * ada-lang.c (catch_ada_completer): New function.
287 (_initialize_ada_language): Use it.
288
24c54127
TT
2892019-05-10 Tom Tromey <tromey@adacore.com>
290
291 * thread.c (print_thread_info): Make "requested_threads" const.
292 * gdbthread.h (print_thread_info): Make "requested_threads"
293 const.
294 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
295 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
296
7a102139
TT
2972019-05-08 Tom Tromey <tom@tromey.com>
298
299 * gdbtypes.c (objfile_type_data): Change type.
300 (objfile_type, _initialize_gdbtypes): Update.
301
924d79e2
TT
3022019-05-08 Tom Tromey <tom@tromey.com>
303
304 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
305 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
306 (_initialize_dwarf2_frame): Update.
307
4c58e337
TT
3082019-05-08 Tom Tromey <tom@tromey.com>
309
310 * objc-lang.c (objc_objfile_data): Change type.
311 (find_methods): Update.
312 (_initialize_objc_lang): Remove.
313
d772d2ab
TT
3142019-05-08 Tom Tromey <tom@tromey.com>
315
316 * stabsread.c (rs6000_builtin_type_data): Change type.
317 (rs6000_builtin_type, _initialize_stabsread): Update.
318
d11d83f4
TT
3192019-05-08 Tom Tromey <tom@tromey.com>
320
321 * mips-tdep.c (mips_pdr_data): Remove.
322 (_initialize_mips_tdep): Update.
323
9a73f0ad
TT
3242019-05-08 Tom Tromey <tom@tromey.com>
325
326 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
327 (hppa_init_objfile_priv_data, read_unwind_info)
328 (find_unwind_entry, _initialize_hppa_tdep): Update.
329
8127a2fa
TT
3302019-05-08 Tom Tromey <tom@tromey.com>
331
332 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
333 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
334 on obstack.
335 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
336
91d3055d
TT
3372019-05-08 Tom Tromey <tom@tromey.com>
338
339 * mdebugread.c (basic_type_data): Change type.
340 (basic_type, _initialize_mdebugread): Update.
341
31930bd3
TT
3422019-05-08 Tom Tromey <tom@tromey.com>
343
344 * common/gdb_unique_ptr.h (struct noop_deleter): New.
345
bdb3ed9e
TT
3462019-05-08 Tom Tromey <tom@tromey.com>
347
348 * nto-tdep.c (nto_inferior_data_reg): Change type.
349 (nto_inferior_data): Update.
350 (nto_inferior_data_cleanup, nto_new_inferior_data)
351 (_initialize_nto_tdep): Remove.
352 * nto-tdep.h (struct nto_inferior_data): Add initializers.
353
f37b313d
TT
3542019-05-08 Tom Tromey <tom@tromey.com>
355
356 * ada-lang.c (struct ada_inferior_data): Add initializers.
357 (ada_inferior_data): Change type.
358 (ada_inferior_data_cleanup): Remove.
359 (get_ada_inferior_data, ada_inferior_exit)
360 (struct ada_pspace_data): Add initializers, destructor.
361 (ada_pspace_data_handle): Change type.
362 (get_ada_pspace_data): Update.
363 (ada_pspace_data_cleanup): Remove.
364
24699405
TT
3652019-05-08 Tom Tromey <tom@tromey.com>
366
367 * coffread.c (struct coff_symfile_info): Add initializers.
368 (coff_objfile_data_key): Move lower. Change type.
369 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
370 Update.
371 (coff_free_info): Remove.
372
d4e05d2f
TT
3732019-05-08 Tom Tromey <tom@tromey.com>
374
375 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
376 (fbsd_pspace_data_handle): Move lower. Change type.
377 (get_fbsd_pspace_data): Update.
378 (fbsd_pspace_data_cleanup): Remove.
379 (_initialize_fbsd_tdep): Update.
380
14ef6690
TT
3812019-05-08 Tom Tromey <tom@tromey.com>
382
383 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
384 (get_ada_tasks_pspace_data): Update.
385 (ada_tasks_pspace_data_cleanup): Remove.
386 (_initialize_tasks): Update.
387 (ada_tasks_inferior_data_handle): Change type.
388 (get_ada_tasks_inferior_data): Update.
389 (ada_tasks_inferior_data_cleanup): Remove.
390 (struct ada_tasks_pspace_data): Add initializers.
391
814cf43a
TT
3922019-05-08 Tom Tromey <tom@tromey.com>
393
394 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
395 * symfile-debug.c (debug_sym_get_probes): Change type.
396 * stap-probe.c (handle_stap_probe):
397 (stap_static_probe_ops::get_probes): Change type.
398 * probe.h (class static_probe_ops) <get_probes>: Change type.
399 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
400 (parse_probes_in_pspace): Update.
401 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
402 Update.
403 (any_static_probe_ops::get_probes): Change type.
404 * elfread.c (elfread_data): New typedef.
405 (probe_key): Change type.
406 (elf_get_probes): Likewise. Update.
407 (probe_key_free): Remove.
408 (_initialize_elfread): Update.
409 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
410 Change type.
411 (dtrace_process_dof_probe, dtrace_process_dof)
412 (dtrace_static_probe_ops::get_probe): Change type.
413
02dc647e
TT
4142019-05-08 Tom Tromey <tom@tromey.com>
415
416 * xcoffread.c (struct xcoff_symfile_info): Rename from
417 coff_symfile_info. Add initializers.
418 (xcoff_objfile_data_key): Move lower. Change type.
419 (XCOFF_DATA): Rewrite.
420 (xcoff_free_info): Remove.
421 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
422 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
423 (xcoff_initial_scan): Update.
424
09232438
TT
4252019-05-08 Tom Tromey <tom@tromey.com>
426
427 * solib-svr4.c (struct svr4_info): Add initializers and
428 destructor.
429 <probes_table>: Now an htab_up.
430 (solib_svr4_pspace_data): Change type.
431 (free_probes_table): Simplify.
432 (~svr4_info): Rename from svr4_pspace_data_cleanup.
433 (get_svr4_info, probes_table_htab_remove_objfile_probes)
434 (probes_table_remove_objfile_probes, register_solib_event_probe)
435 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
436 (_initialize_svr4_solib): Update.
437
7b4a314f
TT
4382019-05-08 Tom Tromey <tom@tromey.com>
439
440 * remote.c (remote_pspace_data): Change type.
441 (remote_pspace_data_cleanup): Remove.
442 (get_remote_exec_file, set_pspace_remote_exec_file)
443 (_initialize_remote): Update.
444
51d3063a
TT
4452019-05-08 Tom Tromey <tom@tromey.com>
446
447 * breakpoint.c (breakpoint_objfile_key): Change type.
448 (get_breakpoint_objfile_data): Update.
449 (free_breakpoint_objfile_data): Remove.
450 (_initialize_breakpoint): Update.
451
89fb8848
TT
4522019-05-08 Tom Tromey <tom@tromey.com>
453
454 * linux-tdep.c (struct linux_info): Add initializers.
455 (linux_inferior_data): Move. Change type.
456 (invalidate_linux_cache_inf): Update.
457 (linux_inferior_data_cleanup): Remove.
458 (get_linux_inferior_data, _initialize_linux_tdep): Update.
459
e9b89e2d
TT
4602019-05-08 Tom Tromey <tom@tromey.com>
461
462 * auxv.c (auxv_inferior_data): Move. Change type.
463 (auxv_inferior_data_cleanup): Remove.
464 (invalidate_auxv_cache_inf): Rewrite.
465 (get_auxv_inferior_data, _initialize_auxv): Update.
466
8c42777c
TT
4672019-05-08 Tom Tromey <tom@tromey.com>
468
469 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
470 (symfile_debug_objfile_data_key): Change type.
471 (symfile_debug_installed, debug_qf_has_symbols)
472 (debug_qf_find_last_source_symtab)
473 (debug_qf_forget_cached_source_info)
474 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
475 (debug_qf_print_stats, debug_qf_dump)
476 (debug_qf_expand_symtabs_for_function)
477 (debug_qf_expand_all_symtabs)
478 (debug_qf_expand_symtabs_with_fullname)
479 (debug_qf_map_matching_symbols)
480 (debug_qf_expand_symtabs_matching)
481 (debug_qf_find_pc_sect_compunit_symtab)
482 (debug_qf_map_symbol_filenames)
483 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
484 (debug_sym_new_init, debug_sym_init, debug_sym_read)
485 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
486 (debug_sym_read_linetable, debug_sym_relocate): Update.
487 (symfile_debug_free_objfile): Remove.
488 (install_symfile_debug_logging, _initialize_symfile_debug):
489 Update.
490
5bfd760d
TT
4912019-05-08 Tom Tromey <tom@tromey.com>
492
493 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
494 allocate_on_obstack.
495 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
496 (get_dwarf2_per_objfile): Update.
497 (set_dwarf2_per_objfile): Remove.
498 (dwarf2_has_info, dwarf2_get_section_info): Update.
499 (dwarf2_free_objfile): Remove.
500 (_initialize_dwarf2_read): Update.
501
e85e19b4
TT
5022019-05-08 Tom Tromey <tom@tromey.com>
503
504 * auto-load.c (struct auto_load_pspace_info): Add destructor and
505 initializers.
506 <unsupported_script_warning_printed,
507 script_not_found_warning_printed>: Now bool.
508 (auto_load_pspace_data): Change type.
509 (~auto_load_pspace_info): Rename from
510 auto_load_pspace_data_cleanup.
511 (get_auto_load_pspace_data, init_loaded_scripts_info)
512 (clear_section_scripts, maybe_print_unsupported_script_warning)
513 (maybe_print_script_not_found_warning, _initialize_auto_load):
514 Update.
515
f6aa7436
TT
5162019-05-08 Tom Tromey <tom@tromey.com>
517
518 * objfiles.c (objfile_pspace_info): Add destructor and
519 initializers.
520 (objfiles_pspace_data): Change type.
521 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
522 (get_objfile_pspace_data): Update.
523 (objfiles_bfd_data): Change type.
524 (get_objfile_bfd_data): Update.
525 (objfile_bfd_data_free, _initialize_objfiles): Remove.
526
6ae614f6
TT
5272019-05-08 Tom Tromey <tom@tromey.com>
528
529 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
530 Change type.
531 (get_catch_syscall_inferior_data): Update.
532 (catch_syscall_inferior_data_cleanup): Remove.
533 (_initialize_break_catch_syscall): Update.
534
6509b8eb
TT
5352019-05-08 Tom Tromey <tom@tromey.com>
536
537 * inflow.c (struct terminal_info): Add destructor and
538 initializers.
539 (inflow_inferior_data): Change type.
540 (~terminal_info): Rename from inflow_inferior_data_cleanup.
541 (get_inflow_inferior_data, inflow_inferior_exit)
542 (swap_terminal_info, _initialize_inflow): Update.
543
35632941
TT
5442019-05-08 Tom Tromey <tom@tromey.com>
545
546 * target-dcache.c (target_dcache_cleanup): Remove.
547 (target_dcache_aspace_key): Change type.
548 (target_dcache_init_p, target_dcache_invalidate)
549 (target_dcache_get, target_dcache_get_or_init)
550 (_initialize_target_dcache): Update.
551 * dcache.h (struct dcache_deleter): New.
552
3017b94d
TT
5532019-05-08 Tom Tromey <tom@tromey.com>
554
555 * symtab.c (struct symbol_cache): Add destructor and
556 initializers.
557 (symbol_cache_key): Move. Change type.
558 (make_symbol_cache, free_symbol_cache): Remove.
559 (get_symbol_cache): Update.
560 (symbol_cache_cleanup): Remove.
561 (ALL_PSPACES, symbol_cache_flush)
562 (maintenance_print_symbol_cache)
563 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
564 Update.
565
a32ad8c5
TT
5662019-05-08 Tom Tromey <tom@tromey.com>
567
568 * symtab.c (struct main_info): Add destructor and initializers.
569 (main_progspace_key): Move. Change type.
570 (get_main_info): Update.
571 (main_info_cleanup): Remove.
572 (_initialize_symtab): Update.
573
5f6e90a0
TT
5742019-05-08 Tom Tromey <tom@tromey.com>
575
576 * registry.h (DECLARE_REGISTRY): Define the _key class.
577
1bd0c6e4
AB
5782019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
579
580 * NEWS: Merge two 'New commands' sections.
581
2228ef77
XR
5822019-05-08 Joel Brobecker <brobecker@adacore.com>
583
584 * ada-valprint.c (ada_val_print_gnat_array): Remove language
585 parameter and use Ada language definition instead.
586 (ada_val_print_ptr): Remove unused language parameter.
587 (ada_val_print_num): Remove language parameter and use Ada language
588 definition instead.
589 (ada_val_print_enum, ada_val_print_flt): Remove unused language
590 parameter.
591 (ada_val_print_struct_union, ada_val_print_ref): Remove language
592 parameter and use Ada language definition instead.
593 (ada_val_print_1): Update all ada_val_print_xxx calls.
594 Remove language parameter.
595 (ada_val_print): Update ada_val_print_1 call.
596
60fcc1c3
TT
5972019-05-08 Tom Tromey <tromey@adacore.com>
598
599 * remote.c (remote_hw_watchpoint_limit)
600 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
601 Now static.
602
ed2b7c17
TT
6032019-05-08 Tom Tromey <tromey@adacore.com>
604
605 * maint.c (_initialize_maint_cmds): Move initialization code to
606 remote.c.
607 (watchdog, show_watchdog): Move to remote.c.
608 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
609 "watchdog" static.
610 (_initialize_remote): Move initialization code from maint.c.
611 * defs.h (watchdog): Don't declare.
612
b0be6c91
TT
6132019-05-08 Tom Tromey <tromey@adacore.com>
614
615 * tui/tui-interp.c: Include main.h.
616 * interps.c: Include main.h.
617 * main.h (interpreter_p): Declare.
618 * defs.h (interpreter_p): Don't declare.
619
587ee17b
TT
6202019-05-08 Tom Tromey <tromey@adacore.com>
621
622 * dwarf2loc.c: Include dwarf2read.h.
623 * defs.h (read_unsigned_leb128): Don't declare.
624 * dwarf2read.h (read_unsigned_leb128): Declare.
625
ca1df239
TT
6262019-05-08 Tom Tromey <tromey@adacore.com>
627
628 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
629 method.
630
99f20f08
TT
6312019-05-08 Tom Tromey <tromey@adacore.com>
632
633 * utils.c (fputs_maybe_filtered): Reset style after paging, even
634 when no wrap column is set.
635
80e55b13
TT
6362019-05-08 Tom Tromey <tromey@adacore.com>
637
638 * c-lang.c (c_get_string): Handle non-C-style arrays.
639
9d3421af
TT
6402019-05-08 Tom Tromey <tromey@adacore.com>
641
642 * typeprint.c (print_offset_data::update): Print the bit offset,
643 not the number of bits remaining.
644
844333e2
TT
6452019-05-08 Tom Tromey <tromey@adacore.com>
646
647 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
648 padding at end of comment.
649
988915ee
TT
6502019-05-08 Tom Tromey <tromey@adacore.com>
651
652 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
653 Compare main types.
654
26bfd823
TT
6552019-05-06 Tom Tromey <tom@tromey.com>
656
657 * common/scoped_mmap.c: Include common-defs.h.
658 * common/scoped_mmap.h: Don't include config.h.
659
89055eaa
TT
6602019-05-04 Tom Tromey <tom@tromey.com>
661
662 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
663 (struct aarch64_call_info): Add initializers.
664 <si>: Now a std::vector.
665 (pass_on_stack, aarch64_push_dummy_call): Update.
666
5da01df5
TT
6672019-05-04 Simon Marchi <simon.marchi@efficios.com>
668 Tom Tromey <tom@tromey.com>
669
670 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
671 (ppc_threads): Now a std::vector. Now static.
672 (hwdebug_find_thread_points_by_tid)
673 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
674 Update.
675
fbdf05a1
TT
6762019-05-04 Tom Tromey <tom@tromey.com>
677
678 * arc-tdep.c (arc_tdesc_init): Return bool.
679
06d16ec9
TT
6802019-05-04 Tom Tromey <tom@tromey.com>
681
682 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
683 Use gdb_assert_not_reached.
684
9c056022
TT
6852019-05-04 Tom Tromey <tom@tromey.com>
686
687 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
688 "false".
689
fa9c2a59
TT
6902019-05-04 Tom Tromey <tom@tromey.com>
691
692 * arc-tdep.c (arc_tdesc_init): Use bool.
693
e2eb806a
TT
6942019-05-04 Tom Tromey <tom@tromey.com>
695
696 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
697
6fe87677
TT
6982019-05-04 Tom Tromey <tom@tromey.com>
699
700 * cli/cli-cmds.c (valid_command_p): Return bool.
701
7f008c9e
TT
7022019-05-04 Tom Tromey <tom@tromey.com>
703
704 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
705 * command.h (valid_user_defined_cmd_name_p): Channge return type.
706
b6484282
RT
7072019-05-04 Raul Tambre <raul@tambre.ee>
708
709 * python/lib/gdb/prompt.py (_ExtendedPrompt)
710 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
711 operator for comparison.
712
af97b416
TT
7132019-05-04 Tom Tromey <tom@tromey.com>
714
715 * psymtab.c (psymbol_name_matches, match_partial_symbol)
716 (lookup_partial_symbol, print_partial_symbols)
717 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
718 (psymbol_compare): Update.
719 (add_psymbol_to_bcache): Clear the entire psymbol.
720 (maintenance_check_psymtabs): Update.
721 * psympriv.h (struct partial_symbol): Don't derive from
722 general_symbol_info.
723 <obj_section, unrelocated_address, address,
724 set_unrelocated_address>: Update.
725 <ginfo>: New member.
726 * dwarf-index-write.c (write_psymbols, debug_names::insert)
727 (debug_names::write_psymbols): Update.
728
9d6d4be8
TV
7292019-05-04 Tom de Vries <tdevries@suse.de>
730
731 * contrib/cc-with-tweaks.sh: Support -n arg.
732
66452beb
PW
7332019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
734
735 * corelow.c (core_target::detach): Ensure frame cache and
736 register caches are cleared.
737 inferior.c (exit_inferior_1): Likewise.
738
bde09ab7
TT
7392019-05-03 Sandra Loosemore <sandra@codesourcery.com>
740 Tom Tromey <tom@tromey.com>
741
742 * dictionary.c (collate_pending_symbols_by_language): Remove
743 "struct" from foreach.
744 * symtab.c (lookup_global_symbol_from_objfile)
745 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
746 foreach.
747 * ser-tcp.c (net_open): Remove "struct" from foreach.
748 * objfiles.c (objfile_relocate, objfile_rebase)
749 (objfile_has_symbols): Remove "struct" from foreach.
750 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
751 from foreach.
752 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
753 foreach.
754 * darwin-nat.c (thread_info_from_private_thread_info): Remove
755 "struct" from foreach.
756 * ada-lang.c (create_excep_cond_exprs)
757 (ada_exception_catchpoint_cond_string): Remove "struct" from
758 foreach.
759
222a8d25
TT
7602019-05-03 Tom Tromey <tromey@adacore.com>
761
762 * ada-exp.y (convert_char_literal): Check suffix of each
763 enumerator.
764
fcd60b84
DP
7652019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
766
767 PR ada/21406:
768 * ada-exp.y (yywrap): Don't define.
769 * ada-lex.l (%option): Add noyywrap
770 (yywrap): Remove.
771
5f2459c2
EZ
7722019-05-03 Eli Zaretskii <eliz@gnu.org>
773
353ea2d1
EZ
774 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
775 _WIN32_WINNT to the XP level, unless already defined to a higher
776 level.
777
778 * unittests/parse-connection-spec-selftests.c:
779 * ser-tcp.c:
780 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
781 override.
782
5f2459c2
EZ
783 * symfile.c (find_separate_debug_file): Remove colon from the
784 drive spec of DOS/Windows file names of the target, so that the
785 file name produced from DEBUGDIR and the target's directory will
786 be valid on DOS/Windows systems.
787
80062eb9
AB
7882019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
789
790 * rust-lang.c (val_print_struct): Handle printing structures
791 containing strings.
792
b8c05e85
TT
7932019-05-02 Tom Tromey <tromey@adacore.com>
794
795 * valarith.c (_initialize_valarith): Remove.
796
4504bbde
TT
7972019-05-01 Tom Tromey <tromey@adacore.com>
798
799 * ada-lang.c (ada_value_primitive_field): Treat more fields as
800 bitfields.
801
d48e62f4
TT
8022019-05-01 Tom Tromey <tromey@adacore.com>
803
804 * ada-lang.c (ada_value_assign): Correctly compute starting offset
805 for big-endian copies.
806
15f18d14
AT
8072019-04-30 Ali Tamur <tamur@google.com>
808 * gdb/dwarf2read.c (read_3_bytes): New declaration.
809 (read_attribute_value): Added DW_FORM_strx1-4 cases.
810 (read_3_bytes): New function.
811
ab4ee614
JB
8122019-04-30 Joel Brobecker <brobecker@adacore.com>
813
814 * windows-nat.c (main_thread_id): Delete.
815 (handle_output_debug_string): Replace main_thread_id by
816 current_event.dwThreadId.
817 (fake_create_process): Likewise.
818 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
819 Do not set main_thread_id.
820 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
821 current_event.dwThreadId.
822 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
823
8ed5b76e
JB
8242019-04-30 Joel Brobecker <brobecker@adacore.com>
825
826 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
827 Use current_event.dwThreadId instead of main_thread_id.
828
2ff0a947
TT
8292019-04-30 Tom Tromey <tromey@adacore.com>
830
831 * ada-lang.c (ada_lookup_simple_minsyms): New function.
832 (create_excep_cond_exprs): Iterate over program spaces.
833 (ada_exception_catchpoint_cond_string): Examine all minimal
834 symbols for exception types.
835
a776957c
TT
8362019-04-30 Tom Tromey <tromey@adacore.com>
837
838 PR c++/24470:
839 * dwarf2read.c (process_structure_scope): Handle case where type
840 has template parameters but no symbol was created.
841
bc68014d
AB
8422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
843 Chris January <chris.january@arm.com>
844
845 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
846 qualifier.
847 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
848
f1fdc960
AB
8492019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
850
851 * f-typeprint.c (f_print_type): Update rules for printing
852 whitespace.
853 (f_type_print_varspec_suffix): Likewise.
854
bf7a4de1
AB
8552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
856 Chris January <chris.january@arm.com>
857
858 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
859 function arguments.
860
bbe75b9d
AB
8612019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * f-lang.c (build_fortran_types): Change name of void type to
864 lower case.
865 * f-typeprint.c (f_type_print_base): Print the name of the void
866 type, rather than a fixed string.
867 * f-valprint.c (f_decorations): Use lower case void string.
868
1db455a7
AB
8692019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
870 Chris January <chris.january@arm.com>
871
872 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
873 types for Fortran.
874
b6d03bb2
AB
8752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
876 Chris January <chris.january@arm.com>
877 David Lecomber <david.lecomber@arm.com>
878
879 * f-exp.y (BINOP_INTRINSIC): New token.
880 (exp): New parser rule handling BINOP_INTRINSIC.
881 (f77_keywords): Add new builtin procedures.
882 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
883 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
884 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
885 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
886 (print_unop_subexp_f): New function.
887 (print_binop_subexp_f): New function.
888 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
889 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
890 (dump_subexp_body_f): Likewise.
891 (operator_check_f): Likewise.
892 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
893 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
894
83228e93
AB
8952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
898 UNOP_KIND.
899 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
900 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
901 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
902 (operator_length_f): New fuction.
903 (print_subexp_f): New function.
904 (op_name_f): New function.
905 (dump_subexp_body_f): New function.
906 (operator_check_f): New function.
907 (exp_descriptor_f): Replace standard expression handling functions
908 with new functions.
909 * gdb/fortran-operator.def: New file.
910 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
911 * gdb/std-operator.def: Remove UNOP_KIND.
912
6fdcd7cc
AB
9132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
914
915 * std-operator.def: Remove unbalanced, stray double quote
916 character.
917
2e62ab40
AB
9182019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
919 Chris January <chris.january@arm.com>
920 Daniel Everett <daniel.everett@arm.com>
921 Nick Forrington <nick.forrington@arm.com>
922 Richard Bunt <richard.bunt@arm.com>
923
924 * cp-valprint.c (cp_print_value_fields): Allow an additional level
925 of depth when printing anonymous structs or unions.
926 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
927 Don't print either the top-level value, or the children if the
928 max-depth is exceeded.
929 (ppscm_print_children): When printing the key of a map, allow one
930 extra level of depth.
931 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
932 print either the top-level value, or the children if the max-depth
933 is exceeded.
934 (print_children): When printing the key of a map, allow one extra
935 level of depth.
936 * python/py-value.c (valpy_format_string): Add max_depth keyword.
937 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
938 (user_print_options): Initialise max_depth field.
939 (val_print_scalar_or_string_type_p): New function.
940 (val_print): Check to see if the max depth has been reached.
941 (val_print_check_max_depth): Define new function.
942 (show_print_max_depth): New function.
943 (_initialize_valprint): Add 'print max-depth' option.
944 * valprint.h (struct value_print_options) <max_depth>: New field.
945 (val_print_check_max_depth): Declare new function.
946 * NEWS: Document new feature.
947
4be290b2
AB
9482019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
949
950 * ada-lang.c (ada_language_defn): Initialise new field.
951 * c-lang.c (c_is_string_type_p): New function.
952 (c_language_defn): Initialise new field.
953 (cplus_language_defn): Initialise new field.
954 (asm_language_defn): Initialise new field.
955 (minimal_language_defn): Initialise new field.
956 * c-lang.h (c_is_string_type_p): Declare new function.
957 * d-lang.c (d_language_defn): Initialise new field.
958 * f-lang.c (f_is_string_type_p): New function.
959 (f_language_defn): Initialise new field.
960 * go-lang.c (go_is_string_type_p): New function.
961 (go_language_defn): Initialise new field.
962 * language.c (default_is_string_type_p): New function.
963 (unknown_language_defn): Initialise new field.
964 (auto_language_defn): Initialise new field.
965 * language.h (struct language_defn) <la_is_string_type_p>: New
966 member variable.
967 (default_is_string_type_p): Declare new function.
968 * m2-lang.c (m2_language_defn): Initialise new field.
969 * objc-lang.c (objc_language_defn): Initialise new field.
970 * opencl-lang.c (opencl_language_defn): Initialise new field.
971 * p-lang.c (pascal_is_string_type_p): New function.
972 (pascal_language_defn): Initialise new field.
973 * rust-lang.c (rust_is_string_type_p): New function.
974 (rust_language_defn): Initialise new field.
975
721b08c6
AB
9762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
977
978 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
979 New field.
980 * ada-lang.c (ada_language_defn): Initialise new field.
981 * c-lang.c (c_language_defn): Likewise.
982 (cplus_language_defn): Likewise.
983 (asm_language_defn): Likewise.
984 (minimal_language_defn): Likewise.
985 * d-lang.c (d_language_defn): Likewise.
986 * f-lang.c (f_language_defn): Likewise.
987 * go-lang.c (go_language_defn): Likewise.
988 * language.c (unknown_language_defn): Likewise.
989 (auto_language_defn): Likewise.
990 * m2-lang.c (m2_language_defn): Likewise.
991 * objc-lang.c (objc_language_defn): Likewise.
992 * opencl-lang.c (opencl_language_defn): Likewise.
993 * p-lang.c (pascal_language_defn): Likewise.
994 * rust-lang.c (rust_language_defn): Likewise.
995
fc913e53
AB
9962019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
997
998 * ada-lang.c (ada_is_character_type): Change return type to bool.
999 (ada_is_string_type): Likewise.
1000 * ada-lang.h (ada_is_character_type): Update declaration
1001 (ada_is_string_type): Likewise.
1002
fa731fa0
PW
10032019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1004
1005 Support style in 'frame|thread apply'
1006
1007 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1008 * record.c (record_start, record_stop): Update callers of
1009 execute_command_to_string with false.
1010 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1011 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1012 methods.
1013 (class string_file): New constructor with term_out parameter.
1014 Override methods term_out and can_emit_style_escape. New member
1015 term_out.
1016 (class stdio_file): Override can_emit_style_escape.
1017 (class tee_file): Override term_out and can_emit_style_escape.
1018 * utils.h (can_emit_style_escape): Remove.
1019 * utils.c (can_emit_style_escape): Likewise.
1020 Update all callers of can_emit_style_escape (SOMESTREAM) to
1021 SOMESTREAM->can_emit_style_escape.
1022 * source-cache.c (source_cache::get_source_lines): Likewise.
1023 * stack.c (frame_apply_command_count): Call execute_command_to_string
1024 passing the term_out characteristic of the current gdb_stdout.
1025 * thread.c (thr_try_catch_cmd): Likewise.
1026 * top.c (execute_command_to_string): pass term_out parameter
1027 to construct the string_file for the command output.
1028 * ui-file.c (term_cli_styling): New function (most code moved
1029 from utils.c can_emit_style_escape).
1030 (string_file::string_file, string_file::can_emit_style_escape,
1031 stdio_file::can_emit_style_escape, tee_file::term_out,
1032 tee_file::can_emit_style_escape): New functions.
1033
136afab8
PW
10342019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1035
1036 * NEWS: Mention the new set|show may-call-functions.
1037 * infcall.c (may_call_functions_p): New variable.
1038 (show_may_call_functions_p): New function.
1039 (call_function_by_hand_dummy): Throws an error if not
1040 may-call-functions.
1041 (_initialize_infcall): Call add_setshow_boolean_cmd for
1042 may-call-functions.
1043
725cbb63
KS
10442019-04-25 Keith Seitz <keiths@redhat.com>
1045
1046 PR c++/24367
1047 * cp-support.c (inspect_type): Don't attempt substitutions
1048 of symbol with the same name.
1049
3d1cbb78
TT
10502019-04-25 Tom Tromey <tromey@adacore.com>
1051
1052 PR gdb/24475:
1053 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1054 static.
1055
94aeb44b
TT
10562019-04-25 Tom Tromey <tromey@adacore.com>
1057
1058 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1059 rvalue reference.
1060 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1061 (gdb_xml_parser::parse): Use std::move.
1062 * python/python-internal.h (gdbpy_convert_exception): Take a const
1063 reference.
1064 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1065 std::move.
1066 * python/py-utils.c (gdbpy_convert_exception): Take a const
1067 reference.
1068 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1069 Use std::move.
1070 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1071 Use std::move.
1072 * mi/mi-main.c (mi_print_exception): Take a const reference.
1073 * main.c (handle_command_errors): Take a const reference.
1074 * linespec.c (parse_linespec): Use std::move.
1075 * infcall.c (run_inferior_call): Use std::move.
1076 (call_function_by_hand_dummy): Use std::move.
1077 * exec.c (try_open_exec_file): Use std::move.
1078 * exceptions.h (exception_print, exception_fprintf)
1079 (exception_print_same): Update.
1080 * exceptions.c (print_exception, exception_print)
1081 (exception_fprintf, exception_print_same): Change parameters to
1082 const reference.
1083 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1084 * common/new-op.c: Use std::move.
1085 * common/common-exceptions.h (struct gdb_exception): Add move
1086 constructor.
1087 (struct gdb_exception_error, struct gdb_exception_quit, struct
1088 gdb_quit_bad_alloc): Change constructor to move constructor.
1089 (throw_exception): Change parameter to rvalue reference.
1090 * common/common-exceptions.c (throw_exception): Take rvalue
1091 reference.
1092 * cli/cli-interp.c (safe_execute_command): Use std::move.
1093 * breakpoint.c (insert_bp_location, location_to_sals): Use
1094 std::move.
1095
680d7fd5
TT
10962019-04-25 Tom Tromey <tromey@adacore.com>
1097
1098 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1099 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1100 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1101 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1102 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1103 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1104 guile/scm-value.c: Use unpack.
1105 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1106 gdbscm_gdb_exception.
1107 (gdbscm_throw_gdb_exception): Likewise.
1108 (struct gdbscm_gdb_exception): New.
1109 (unpack): New function.
1110 (gdbscm_wrap): Use unpack.
1111
c6fdd8b2
TT
11122019-04-25 Tom Tromey <tromey@adacore.com>
1113
1114 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1115 (gdb_rl_callback_handler): Use std::move.
1116 * common/common-exceptions.h (struct gdb_exception): Add move
1117 assignment operator.
1118 (throw_exception_sjlj): Change "exception" to const reference.
1119 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1120 (throw_exception_sjlj): Change "exception" to const reference.
1121
cc06b668
TT
11222019-04-25 Tom Tromey <tromey@adacore.com>
1123
1124 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1125 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1126 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1127 Update.
1128 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1129 Update.
1130 * mi/mi-interp.c (mi_interp::exec): Update.
1131 * linespec.c (parse_linespec): Update.
1132 * infcall.c (run_inferior_call): Update.
1133 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1134 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1135 (gdbscm_lookup_global_symbol): Update.
1136 * guile/scm-param.c (gdbscm_parameter_value): Update.
1137 * guile/scm-frame.c (gdbscm_frame_read_register)
1138 (gdbscm_frame_read_var): Update.
1139 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1140 * exec.c (try_open_exec_file): Update.
1141 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1142 (gdb_rl_callback_handler): Update.
1143 * common/common-exceptions.h (exception_none): Don't declare.
1144 * common/common-exceptions.c (exception_none): Don't define.
1145 (struct catcher) <exception>: Update.
1146 * cli/cli-interp.c (safe_execute_command): Update.
1147 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1148
cf532bd1
AT
11492019-04-25 Ali Tamur <tamur@google.com>
1150
1151 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1152 (read_attribute_value): Likewise.
1153 (dwarf2_read_addr_index): Update comment.
1154 (read_str_index): Add DW_FORM_strx.
1155 (dwarf2_string_attr): Likewise.
1156 (dwarf2_const_value_attr): Likewise.
1157 (dump_die_shallow): Likewise.
1158 (dwarf2_fetch_constant_bytes): Likewise.
1159 (skip_form_bytes): Likewise.
1160 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1161
82433e3e
SDJ
11622019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1163
1164 PR corefiles/11608
1165 PR corefiles/18187
1166 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1167 OFFSET. Verify if current mapping contains an ELF header.
1168 (linux_find_memory_regions_full): Adjust call to
1169 dump_mapping_p.
1170
723adb65
SL
11712019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1172 Kang Li <kanglictf@gmail.com>
1173
1174 PR gdb/21600
1175
1176 * dwarf2-frame.c (read_initial_length): Be consistent about using
1177 unsigned representation of length.
1178 (decode_frame_entry_1): Likewise. Check for wraparound of
1179 end pointer as well as buffer overflow.
1180
596179f7
SDJ
11812019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1182
1183 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1184 "vq".
1185
a59240a4
TT
11862019-04-24 Tom Tromey <tromey@adacore.com>
1187
1188 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1189
f872fdbb
AB
11902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * s12z-tdep.c (s12z_unwind_pc): Delete.
1193 (s12z_unwind_sp): Delete.
1194 (s12z_gdbarch_init): Don't register deleted functions with
1195 gdbarch.
1196
b614e6f3
AB
11972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * rl78-tdep.c (rl78_unwind_sp): Delete.
1200 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1201
14faed38
AB
12022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1205 (xstormy16_unwind_pc): Delete.
1206 (xstormy16_dummy_id): Delete.
1207 (xstormy16_gdbarch_init): Don't register deleted functions with
1208 gdbarch.
1209
541aad8a
AB
12102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1211
1212 * vax-tdep.c (vax_unwind_pc): Delete.
1213 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1214
29222070
AB
12152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * v850-tdep.c (v850_unwind_sp): Delete.
1218 (v850_unwind_pc): Delete.
1219 (v850_dummy_id): Delete.
1220 (v850_gdbarch_init): Don't register deleted functions with
1221 gdbarch.
1222
0f534d76
AB
12232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1226 (tilegx_unwind_pc): Delete.
1227 (tilegx_unwind_dummy_id): Delete.
1228 (tilegx_gdbarch_init): Don't register deleted functions with
1229 gdbarch.
1230
1ba7b7f9
AB
12312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1234 (tic6x_dummy_id): Delete.
1235 (tic6x_gdbarch_init): Don't register deleted functions with
1236 gdbarch.
1237
d31f262c
AB
12382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1239
1240 * sparc-tdep.c (sparc_unwind_pc): Delete.
1241 (sparc32_gdbarch_init): Don't register deleted function with
1242 gdbarch.
1243
6d14d64d
AB
12442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * sh-tdep.c (sh_unwind_sp): Delete.
1247 (sh_unwind_pc): Delete.
1248 (sh_dummy_id): Delete.
1249 (sh_gdbarch_init): Don't register deleted functions with
1250 gdbarch.
1251
a40dde9d
AB
12522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * score-tdep.c (score_unwind_sp): Delete.
1255 (score_unwind_pc): Delete.
1256 (score_dummy_id): Delete.
1257 (score_gdbarch_init): Don't register deleted functions with
1258 gdbarch.
1259
47c47d69
AB
12602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1261
1262 * rx-tdep.c (rx_unwind_pc): Delete.
1263 (rx_unwind_sp): Delete.
1264 (rx_dummy_id): Delete.
1265 (rx_gdbarch_init): Don't register deleted functions with
1266 gdbarch. Update comment.
1267
833a4480
AB
12682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1271 (rs6000_dummy_id): Delete.
1272 (rs6000_gdbarch_init): Don't register deleted functions with
1273 gdbarch.
1274
3f2cef49
AB
12752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1276
1277 * or1k-tdep.c (or1k_dummy_id): Delete.
1278 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1279
96acf884
AB
12802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1281
1282 * nios2-tdep.c (nios2_dummy_id): Delete.
1283 (nios2_unwind_sp): Delete.
1284 (nios2_gdbarch_init): Don't register deleted functions with
1285 gdbarch.
1286
ca0ab0aa
AB
12872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1288
1289 * nds32-tdep.c (nds32_dummy_id): Delete.
1290 (nds32_unwind_pc): Delete.
1291 (nds32_unwind_sp): Delete.
1292 (nds32_gdbarch_init): Don't register deleted functions with
1293 gdbarch.
1294
c8259044
AB
12952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * msp430-tdep.c (msp430_unwind_pc): Delete.
1298 (msp430_unwind_sp): Delete.
1299 (msp430_dummy_id): Delete.
1300 (msp430_gdbarch_init): Don't register deleted functions with
1301 gdbarch.
1302
27f113c8
AB
13032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * moxie-tdep.c (moxie_unwind_sp): Delete.
1306 (moxie_unwind_pc): Delete.
1307 (moxie_dummy_id): Delete.
1308 (moxie_gdbarch_init): Don't register deleted functions with
1309 gdbarch.
1310
aee6c3cd
AB
13112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1312
1313 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1314 (mn10300_unwind_pc): Delete.
1315 (mn10300_unwind_sp): Delete.
1316 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1317 mn10300_unwind_sp.
1318 (mn10300_frame_unwind_init): Don't register deleted functions with
1319 gdbarch.
1320
8e2b5aea
AB
13212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 * mep-tdep.c (mep_unwind_pc): Delete.
1324 (mep_unwind_sp): Delete.
1325 (mep_dummy_id): Delete.
1326 (mep_gdbarch_init): Don't register deleted functions with
1327 gdbarch.
1328
43cf3ede
AB
13292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1332 (m68hc11_unwind_sp): Delete.
1333 (m68hc11_gdbarch_init): Don't register deleted functions with
1334 gdbarch.
1335
5e79b7bb
AB
13362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * m32r-tdep.c (m32r_unwind_sp): Delete.
1339 (m32r_unwind_pc): Delete.
1340 (m32r_dummy_id): Delete.
1341 (m32r_gdbarch_init): Don't register deleted functions with
1342 gdbarch.
1343
89b268d8
AB
13442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * m32c-tdep.c (m32c_unwind_pc): Delete.
1347 (m32c_unwind_sp): Delete.
1348 (m32c_dummy_id): Delete.
1349 (m32c_gdbarch_init): Don't register deleted functions with
1350 gdbarch.
1351
946c28d2
AB
13522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1355 (lm32_unwind_pc): Delete.
1356 (lm32_dummy_id): Delete.
1357 (lm32_gdbarch_init): Don't register deleted functions with
1358 gdbarch.
1359
bf12844a
AB
13602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1363 (iq2000_unwind_pc): Delete.
1364 (iq2000_dummy_id): Delete.
1365 (iq2000_gdbarch_init): Don't register deleted functions with
1366 gdbarch.
1367
ecbc06d2
AB
13682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * nds32-tdep.c (nds32_type_align): Delete.
1371 (nds32_push_dummy_call): Use type_align instead.
1372
030197b4
AB
13732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1374
1375 * arm-tdep.c (arm_type_align): Only handle vector override case.
1376 (arm_push_dummy_call): Use type_align.
1377 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1378
b907456c
AB
13792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1380
1381 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1382 case.
1383 (pass_on_stack): Use type_align.
1384 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1385 function.
1386
9e97ba43
TT
13872019-04-23 Tom Tromey <tromey@adacore.com>
1388
1389 * dwarf2read.c (line_header::file_name_at): Remove unused
1390 overload.
1391
6892f601
TV
13922019-04-23 Tom de Vries <tdevries@suse.de>
1393
1394 PR gdb/24438
1395 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1396 invocation.
1397
336d760d
AT
1398
13992019-03-27 Ali Tamur <tamur@google.com>
1400
1401 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1402 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1403 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1404 (dwarf_expr_context::get_addr_index): Likewise
1405 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1406 (symbol_needs_eval_context::get_addr_index): Likewise
1407 (disassemble_dwarf_expression): Add DW_OP_addrx
1408 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1409 (read_cutu_die_from_dwo): Update comment
1410 (skip_one_die): Add DW_FORM_addrx
1411 (read_attribute_value): Likewise
1412 (var_decode_location): Add DW_OP_addrx
1413 (dwarf2_const_value_attr): Add DW_FORM_addrx
1414 (dump_die_shallow): Likewise
1415 (dwarf2_fetch_constant_bytes): Likewise
1416 (decode_locdesc): Add DW_OP_addrx
1417 (skip_form_bytes): Add DW_FORM_addrx
1418
ad9d13f8
AT
14192019-04-22 Ali Tamur <tamur@google.com>
1420
1421 * MAINTAINERS (Write After Approval): Add self.
1422
d70cc3ba
SM
14232019-04-22 Simon Marchi <simon.marchi@efficios.com>
1424
1425 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1426 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1427 (open_symbol_file_object): Likewise.
1428 (svr4_default_sos): Add info parameter.
1429 (svr4_read_so_list): Likewise.
1430 (svr4_current_sos_direct): Adjust functions calls to pass down
1431 info.
1432 (svr4_current_sos_1): Add info parameter.
1433 (svr4_current_sos): Call get_svr4_info, pass info down to
1434 svr4_current_sos_1.
1435 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1436 get_svr4_info.
1437 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1438 get_svr4_info.
1439 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1440 to get_svr4_info.
1441 (probes_table_remove_objfile_probes): Likewise.
1442 (register_solib_event_probe): Add info parameter.
1443 (solist_update_incremental): Pass info parameter down to
1444 svr4_read_so_list.
1445 (disable_probes_interface): Add info parameter.
1446 (svr4_handle_solib_event): Pass current_program_space to
1447 get_svr4_info. Adjust disable_probes_interface cleanup.
1448 (svr4_create_probe_breakpoints): Add info parameter, pass it
1449 down to register_solib_event_probe.
1450 (svr4_create_solib_event_breakpoints): Add info parameter,
1451 pass it down to svr4_create_probe_breakpoints.
1452 (enable_break): Pass info down to
1453 svr4_create_solib_event_breakpoints.
1454 (svr4_solib_create_inferior_hook): Pass current_program_space to
1455 get_svr4_info.
1456 (svr4_clear_solib): Likewise.
1457
7905fc35
PA
14582019-04-22 Pedro Alves <palves@redhat.com>
1459
1460 * solib-svr4.c (svr4_free_objfile_observer): New.
1461 (probe_and_action::objfile): New field.
1462 (probes_table_htab_remove_objfile_probes)
1463 (probes_table_remove_objfile_probes): New functions.
1464 (register_solib_event_probe): Add 'objfile' parameter. Store it
1465 in the new probe_and_action. Don't store the probe in 'lookup'.
1466 (svr4_create_probe_breakpoints): Pass objfile to
1467 register_solib_event_probe.
1468 (_initialize_svr4_solib): Register a free_objfile observer.
1469
fb881986
TT
14702019-04-19 Tom Tromey <tom@tromey.com>
1471
1472 * common/queue.h: Remove.
1473
8732db6c
TT
14742019-04-19 Tom Tromey <tom@tromey.com>
1475
1476 * event-loop.c: Don't include "common/queue.h".
1477
97dfbadd
TT
14782019-04-19 Tom Tromey <tom@tromey.com>
1479
1480 * remote.c (remote_target): Use delete.
1481 * remote-notif.h: Include <list>, not "common/queue.h".
1482 (notif_client_p): Remove typedef.
1483 (remote_notif_state): Add constructor, destructor, initializer.
1484 <notif_queue>: Now a std::list.
1485 (remote_notif_state_xfree): Don't declare.
1486 * remote-notif.c (remote_notif_process, handle_notification)
1487 (remote_notif_state_allocate): Update.
1488 (~remote_notif_state): Rename from remote_notif_state_xfree.
1489
cf250e36
TT
14902019-04-19 Tom Tromey <tom@tromey.com>
1491
1492 * symfile.c (reread_symbols): Update.
1493 * objfiles.c (objfile_register_static_link)
1494 (objfile_lookup_static_link): Update
1495 (~objfile) Don't delete static_links.
1496 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1497
61f4b350
TT
14982019-04-19 Tom Tromey <tom@tromey.com>
1499
1500 * type-stack.h (struct type_stack) <insert>: Constify string.
1501 * type-stack.c (type_stack::insert): Constify string.
1502 * gdbtypes.h (lookup_template_type): Update.
1503 (address_space_name_to_int): Update.
1504 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1505 const.
1506 (lookup_template_type): Make name const.
1507 * c-exp.y: Update rules.
1508 (lex_one_token, classify_name, classify_inner_name)
1509 (c_print_token): Update.
1510 * p-exp.y: Update rules.
1511 (yylex): Update.
1512 * f-exp.y: Update rules.
1513 (yylex): Update.
1514 * d-exp.y: Update rules.
1515 (lex_one_token, classify_name, classify_inner_name): Update.
1516 * parse.c (write_dollar_variable, copy_name): Return std::string.
1517 * parser-defs.h (copy_name): Change return type.
1518 * m2-exp.y: Update rules.
1519 (yylex): Update.
1520 * go-exp.y (lex_one_token): Update.
1521 Update rules.
1522 (classify_unsafe_function, classify_packaged_name)
1523 (classify_name, yylex): Update.
1524
189b8c2e
ST
15252019-04-19 Sergei Trofimovich <siarheit@google.com>
1526
1527 * configure.ac: add --enable-source-highlight switch.
1528 * configure: Regenerate.
1529 * top.c (print_gdb_version): plumb --enable-source-highlight
1530 status to "show configuration".
1531
8ecb59f8
TT
15322019-04-19 Tom Tromey <tromey@adacore.com>
1533
1534 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1535 Check ADA_TYPE_P.
1536 (empty_record, ada_template_to_fixed_record_type_1)
1537 (template_to_static_fixed_type)
1538 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1539 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1540 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1541 macros.
1542
62160ec9
TT
15432019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1544
1545 PR symtab/24423:
1546 * source.c (print_source_lines_base): Advance "iter" when a
1547 control character is seen.
1548
f2ae8bc8
PW
15492019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1550
1551 * inferior.h (struct infcall_suspend_state_deleter):
1552 Catch exception in destructor to avoid crash.
1553
d563b953
PW
15542019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1555
1556 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1557 close to the add_com "shell".
1558
dc34c897
TT
15592019-04-18 Tom Tromey <tromey@adacore.com>
1560
1561 * process-stratum-target.h (class process_stratum_target)
1562 <stratum>: Add "final".
1563
a12e5744
TT
15642019-04-17 Tom Tromey <tromey@adacore.com>
1565
1566 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1567 against nullptr before use.
1568
a7e559cc
AH
15692019-04-17 Alan Hayward <alan.hayward@arm.com>
1570
1571 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1572
c01660c6
AB
15732019-04-17 Jim Wilson <jimw@sifive.com>
1574 Andrew Burgess <andrew.burgess@embecosm.com>
1575
1576 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1577 code read might fail, assume 4-byte breakpoint in that case.
1578
4aa866af
LS
15792019-04-15 Leszek Swirski <leszeks@google.com>
1580
1581 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1582 rather than a hand-rolled POD check when checking for forced MEMORY
1583 classification.
1584
48574d91
AH
15852019-04-15 Alan Hayward <alan.hayward@arm.com>
1586
1587 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1588 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1589 function.
1590 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1591 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1592 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1593 declaration.
1594
4da037ef
AH
15952019-04-15 Alan Hayward <alan.hayward@arm.com>
1596
1597 * aarch64-linux-nat.c
1598 (aarch64_linux_nat_target::thread_architecture): Add override.
1599 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1600 each VQ.
1601
ccb8d7e8
AH
16022019-04-15 Alan Hayward <alan.hayward@arm.com>
1603
1604 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1605
35add35e
AB
16062019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1607
1608 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1609 target types of size 96-bits, add some additional comments, and
1610 check that the builtin type we found was the correct size.
1611
51196bbc
EZ
16122019-04-12 Eli Zaretskii <eliz@gnu.org>
1613
1614 * utils.c (prompt_for_continue): Don't restore the styling at the
1615 end, as applied_style has the wrong value. This fixes styling in
1616 long lists of file names that are interrupted by the "Continue?"
1617 prompt.
1618
62253a61
AB
16192019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1622 * c-lang.c (c_language_defn): Likewise.
1623 (cplus_language_defn): Likewise.
1624 (asm_language_defn): Likewise.
1625 (minimal_language_defn): Likewise.
1626 * d-lang.c (d_language_defn): Likewise.
1627 * f-lang.c (f_language_defn): Likewise.
1628 * go-lang.c (go_language_defn): Likewise.
1629 * language.c (unknown_language_defn): Likewise.
1630 (auto_language_defn): Likewise.
1631 * language.h (struct language_defn): Remove la_magic field.
1632 (LANG_MAGIC): Delete.
1633 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1634 * objc-lang.c (objc_language_defn): Likewise.
1635 * opencl-lang.c (opencl_language_defn): Likewise.
1636 * p-lang.c (pascal_language_defn): Likewise.
1637 * rust-lang.c (rust_language_defn): Likewise.
1638
a9158a86
AB
16392019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 * riscv-tdep.c (riscv_type_align): New function.
1642 (riscv_type_alignment): Delete.
1643 (riscv_arg_location): Use 'type_align'.
1644 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1645
41077b66
AB
16462019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1647
1648 * gdbtypes.c (type_align): A struct with no non-static fields also
1649 has alignment of 1.
1650
9f0272f8
AB
16512019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1654 component to 0.
1655 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1656 member.
1657 (riscv_struct_info::analyse): New implementation using new
1658 analyse_inner member function.
1659 (riscv_struct_info::field_offset): New member function.
1660 (riscv_struct_info::m_offsets): New member variable.
1661 (riscv_struct_info::analyse_inner): New private member function,
1662 takes the old implementation of riscv_struct_info::analyse but
1663 extended to track field offsets.
1664 (riscv_call_arg_struct): Update the struct folding special cases
1665 to handle cases where empty C++ structs, which are non-zero
1666 length, are found.
1667 (riscv_arg_location): Initialise the length of each location, a
1668 non-zero length now indicates the location is in use.
1669 (riscv_push_dummy_call): Allow for the first location having a
1670 non-zero offset when setting up arguments.
1671 (riscv_return_value): Likewise, but for return values.
1672
02cf60c7
TT
16732019-04-11 Tom Tromey <tromey@adacore.com>
1674
1675 * utils.c (internal_vproblem): Make "msg" const.
1676
68811f8f
AH
16772019-04-11 Alan Hayward <alan.hayward@arm.com>
1678
1679 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1680 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1681 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1682 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1683
3f52fdbc
KB
16842019-04-10 Kevin Buettner <kevinb@redhat.com>
1685
1686 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1687 function.
1688 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1689 of amd64_collect_native_gregset.
1690 (amd64_linux_nat_target::store_registers): Likewise.
1691
e9ad22ee
TT
16922019-04-10 Tom Tromey <tom@tromey.com>
1693
1694 * symtab.c (lookup_global_symbol_from_objfile)
1695 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1696 * objfiles.h (class separate_debug_iterator): New.
1697 (class separate_debug_range): New.
1698 (struct objfile) <separate_debug_objfiles>: New method.
1699 (objfile_separate_debug_iterate): Don't declare.
1700 * objfiles.c (separate_debug_iterator::operator++): Rename from
1701 objfile_separate_debug_iterate.
1702 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1703 iterator.
1704 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1705 iterator.
1706
ee371134
TT
17072019-04-10 Tom Tromey <tom@tromey.com>
1708
1709 * symfile.c (reread_symbols): Remove old comment.
1710 * objfiles.c (free_all_objfiles): Fix a typo.
1711
bf227d61
TT
17122019-04-10 Tom Tromey <tom@tromey.com>
1713
1714 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1715 * minsyms.c (lookup_minimal_symbol): Use foreach.
1716 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1717 (lookup_minimal_symbol_solib_trampoline): Likewise.
1718 * symfile.c (reread_symbols): Use foreach.
1719
8dc433a0
TT
17202019-04-09 Ivan Begert <ivanbegert@gmail.com>
1721 Tom Tromey <tromey@adacore.com>
1722
1723 PR rust/24414:
1724 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1725 (rust_lex_int_test): Change "value" to be LONGEST.
1726 (rust_lex_tests): Add test for long integer literal.
1727
9ab8741a
TT
17282019-04-09 Tom Tromey <tromey@adacore.com>
1729
1730 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1731 to bool.
1732 (extended_remote_target::attach): Update.
1733 (remote_target::remote_notice_new_inferior): Update.
1734 (remote_target::add_current_inferior_and_thread): Update.
1735 * inferior.c (exit_inferior_1): Use "false".
1736 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1737
e242fd12
SM
17382019-04-09 Simon Marchi <simon.marchi@efficios.com>
1739
9ca1957f 1740 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
1741 the "start" command.
1742
2b0c8b01
KB
17432019-04-08 Kevin Buettner <kevinb@redhat.com>
1744
1745 * python/py-inferior.c (infpy_thread_from_thread_handle):
1746 Adjust comments to reflect renaming of thread_from_thread_handle
1747 to thread_from_handle. Adjust keywords. Fix type error message.
1748 (inferior_object_methods): Add thread_from_handle. Retain
1749 thread_from_thread_handle, but mark it as deprecated.
1750
50a82723
KB
17512019-04-08 Kevin Buettner <kevinb@redhat.com>
1752
1753 * gdbthread.h (find_thread_by_handle): Revise declaration.
1754 * thread.c (find_thread_by_handle): Likewise. Adjust
1755 implementation too.
1756 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1757 support for buffer objects as handles.
1758
cf63b016
KB
17592019-04-08 Kevin Buettner <kevinb@redhat.com>
1760
1761 * python/py-infthread.c (thpy_thread_handle): New function.
1762 (thread_object_methods): Register thpy_thread_handle.
1763
3d6c6204
KB
17642019-04-08 Kevin Buettner <kevinb@redhat.com>
1765
1766 * gdbthread.h (thread_to_thread_handle): Declare.
1767 * thread.c (gdbtypes.h): Include.
1768 (thread_to_thread_handle): New function.
1769
1770 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1771 (target_thread_info_to_thread_handle): Declare.
1772 * target.c (target_thread_info_to_thread_handle): New function.
1773 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1774 * target-delegates.c: Regenerate.
1775
1776 * linux-thread-db.c (class thread_db_target): Add method
1777 thread_info_to_thread_handle.
1778 (thread_db_target::thread_info_to_thread_handle): Define.
1779 * remote.c (class remote_target): Add new method
1780 thread_info_to_thread_handle.
1781 (remote_target::thread_info_to_thread_handle): Define.
1782
56be6ea8
PA
17832019-04-08 Pedro Alves <palves@redhat.com>
1784
1785 * common/common-exceptions.c (throw_exception): Don't create
1786 named object to throw; throw directly.
1787 (throw_it): Likewise. Don't initialize gdb_exception::message
1788 here, with new; pass FMT and AP to the ctor instead.
1789 * common/common-exceptions.h: Include <string>.
1790 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1791 const char *, va_list)): New ctor. Use std::make_shared.
1792 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1793 errors)): Delete.
1794 (gdb_exception_error::gdb_exception_error(enum errors, const char
1795 *, va_list)): New.
1796 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1797 Add assertion.
1798 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1799 errors)): Delete.
1800 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1801 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1802 Add assertion.
1803
eedc3f4f
TT
18042019-04-08 Tom Tromey <tom@tromey.com>
1805
1806 * valops.c (value_rtti_indirect_type): Replace throw_exception
1807 with throw.
1808 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1809 with throw.
1810 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1811 throw.
1812 * target.c (target_translate_tls_address): Replace throw_exception
1813 with throw.
1814 * stack.c (frame_apply_command_count): Replace throw_exception
1815 with throw.
1816 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1817 throw.
1818 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1819 with throw.
1820 * rs6000-tdep.c (rs6000_frame_cache)
1821 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1822 * remote.c: Replace throw_exception with throw.
1823 * record-full.c (record_full_message, record_full_wait_1)
1824 (record_full_restore): Replace throw_exception with throw.
1825 * record-btrace.c:
1826 (get_thread_current_frame_id, record_btrace_start_replaying)
1827 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1828 (cmd_record_btrace_start): Replace throw_exception with throw.
1829 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1830 throw.
1831 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1832 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1833 * linespec.c:
1834 (find_linespec_symbols): Replace throw_exception with throw.
1835 * infrun.c (displaced_step_prepare, resume): Replace
1836 throw_exception with throw.
1837 * infcmd.c (post_create_inferior): Replace throw_exception with
1838 throw.
1839 * inf-loop.c (inferior_event_handler): Replace throw_exception
1840 with throw.
1841 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1842 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1843 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1844 (get_prev_frame_always, get_frame_pc_if_available)
1845 (get_frame_address_in_block_if_available, get_frame_language):
1846 Replace throw_exception with throw.
1847 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1848 throw_exception with throw.
1849 * eval.c (fetch_subexp_value, evaluate_var_value)
1850 (evaluate_funcall, evaluate_subexp_standard): Replace
1851 throw_exception with throw.
1852 * dwarf2loc.c (call_site_find_chain)
1853 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1854 Replace throw_exception with throw.
1855 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1856 with throw.
1857 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1858 throw.
1859 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1860 * completer.c (complete_line_internal): Replace throw_exception
1861 with throw.
1862 * compile/compile-object-run.c (compile_object_run): Replace
1863 throw_exception with throw.
1864 * cli/cli-script.c (process_next_line): Replace throw_exception
1865 with throw.
1866 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1867 (btrace_enable, btrace_maint_update_pt_packets): Replace
1868 throw_exception with throw.
1869 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1870 throw_exception with throw.
1871 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1872 throw_exception with throw.
1873 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1874 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1875 * aarch64-tdep.c (aarch64_make_prologue_cache)
1876 (aarch64_make_stub_cache): Replace throw_exception with throw.
1877
26003a20
TT
18782019-04-08 Tom Tromey <tom@tromey.com>
1879
1880 * common/common-exceptions.c (throw_exception): Rename from
1881 throw_exception_cxx. Remove old copy. Make argument const.
1882 (throw_it): Create and throw exception objects directly.
1883 * common/common-exceptions.h (throw_exception): Make argument
1884 const.
1885 (struct gdb_exception_error): Add constructor.
1886 (struct gdb_exception_quit): Add constructor.
1887
d272eb37
TT
18882019-04-08 Tom Tromey <tom@tromey.com>
1889
1890 * common/common-exceptions.h (exception_rethrow): Don't declare.
1891 (TRY_SJLJ): Update comment.
1892 (TRY, CATCH, END_CATCH): Remove.
1893 * common/common-exceptions.c (exception_rethrow): Remove.
1894
230d2906
TT
18952019-04-08 Tom Tromey <tom@tromey.com>
1896
1897 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1898 Remove.
1899 (gdb_exception_error): Rename from
1900 gdb_exception_RETURN_MASK_ERROR.
1901 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1902 (gdb_quit_bad_alloc): Update.
1903 * aarch64-tdep.c: Update.
1904 * ada-lang.c: Update.
1905 * ada-typeprint.c: Update.
1906 * ada-valprint.c: Update.
1907 * amd64-tdep.c: Update.
1908 * arch-utils.c: Update.
1909 * break-catch-throw.c: Update.
1910 * breakpoint.c: Update.
1911 * btrace.c: Update.
1912 * c-varobj.c: Update.
1913 * cli/cli-cmds.c: Update.
1914 * cli/cli-interp.c: Update.
1915 * cli/cli-script.c: Update.
1916 * common/common-exceptions.c: Update.
1917 * common/new-op.c: Update.
1918 * common/selftest.c: Update.
1919 * compile/compile-c-symbols.c: Update.
1920 * compile/compile-cplus-symbols.c: Update.
1921 * compile/compile-object-load.c: Update.
1922 * compile/compile-object-run.c: Update.
1923 * completer.c: Update.
1924 * corelow.c: Update.
1925 * cp-abi.c: Update.
1926 * cp-support.c: Update.
1927 * cp-valprint.c: Update.
1928 * darwin-nat.c: Update.
1929 * disasm-selftests.c: Update.
1930 * dtrace-probe.c: Update.
1931 * dwarf-index-cache.c: Update.
1932 * dwarf-index-write.c: Update.
1933 * dwarf2-frame-tailcall.c: Update.
1934 * dwarf2-frame.c: Update.
1935 * dwarf2loc.c: Update.
1936 * dwarf2read.c: Update.
1937 * eval.c: Update.
1938 * event-loop.c: Update.
1939 * event-top.c: Update.
1940 * exec.c: Update.
1941 * f-valprint.c: Update.
1942 * fbsd-tdep.c: Update.
1943 * frame-unwind.c: Update.
1944 * frame.c: Update.
1945 * gdbtypes.c: Update.
1946 * gnu-v3-abi.c: Update.
1947 * guile/guile-internal.h: Update.
1948 * guile/scm-block.c: Update.
1949 * guile/scm-breakpoint.c: Update.
1950 * guile/scm-cmd.c: Update.
1951 * guile/scm-disasm.c: Update.
1952 * guile/scm-frame.c: Update.
1953 * guile/scm-lazy-string.c: Update.
1954 * guile/scm-math.c: Update.
1955 * guile/scm-param.c: Update.
1956 * guile/scm-ports.c: Update.
1957 * guile/scm-pretty-print.c: Update.
1958 * guile/scm-symbol.c: Update.
1959 * guile/scm-symtab.c: Update.
1960 * guile/scm-type.c: Update.
1961 * guile/scm-value.c: Update.
1962 * i386-linux-tdep.c: Update.
1963 * i386-tdep.c: Update.
1964 * inf-loop.c: Update.
1965 * infcall.c: Update.
1966 * infcmd.c: Update.
1967 * infrun.c: Update.
1968 * jit.c: Update.
1969 * language.c: Update.
1970 * linespec.c: Update.
1971 * linux-fork.c: Update.
1972 * linux-nat.c: Update.
1973 * linux-tdep.c: Update.
1974 * linux-thread-db.c: Update.
1975 * main.c: Update.
1976 * mi/mi-cmd-break.c: Update.
1977 * mi/mi-cmd-stack.c: Update.
1978 * mi/mi-interp.c: Update.
1979 * mi/mi-main.c: Update.
1980 * objc-lang.c: Update.
1981 * p-valprint.c: Update.
1982 * parse.c: Update.
1983 * ppc-linux-tdep.c: Update.
1984 * printcmd.c: Update.
1985 * python/py-arch.c: Update.
1986 * python/py-breakpoint.c: Update.
1987 * python/py-cmd.c: Update.
1988 * python/py-finishbreakpoint.c: Update.
1989 * python/py-frame.c: Update.
1990 * python/py-framefilter.c: Update.
1991 * python/py-gdb-readline.c: Update.
1992 * python/py-inferior.c: Update.
1993 * python/py-infthread.c: Update.
1994 * python/py-lazy-string.c: Update.
1995 * python/py-linetable.c: Update.
1996 * python/py-objfile.c: Update.
1997 * python/py-param.c: Update.
1998 * python/py-prettyprint.c: Update.
1999 * python/py-progspace.c: Update.
2000 * python/py-record-btrace.c: Update.
2001 * python/py-record.c: Update.
2002 * python/py-symbol.c: Update.
2003 * python/py-type.c: Update.
2004 * python/py-unwind.c: Update.
2005 * python/py-utils.c: Update.
2006 * python/py-value.c: Update.
2007 * python/python.c: Update.
2008 * record-btrace.c: Update.
2009 * record-full.c: Update.
2010 * remote-fileio.c: Update.
2011 * remote.c: Update.
2012 * riscv-tdep.c: Update.
2013 * rs6000-aix-tdep.c: Update.
2014 * rs6000-tdep.c: Update.
2015 * rust-exp.y: Update.
2016 * rust-lang.c: Update.
2017 * s390-tdep.c: Update.
2018 * selftest-arch.c: Update.
2019 * solib-dsbt.c: Update.
2020 * solib-frv.c: Update.
2021 * solib-spu.c: Update.
2022 * solib-svr4.c: Update.
2023 * solib.c: Update.
2024 * sparc64-linux-tdep.c: Update.
2025 * stack.c: Update.
2026 * symfile-mem.c: Update.
2027 * symmisc.c: Update.
2028 * target.c: Update.
2029 * thread.c: Update.
2030 * top.c: Update.
2031 * tracefile-tfile.c: Update.
2032 * tui/tui.c: Update.
2033 * typeprint.c: Update.
2034 * unittests/cli-utils-selftests.c: Update.
2035 * unittests/parse-connection-spec-selftests.c: Update.
2036 * valops.c: Update.
2037 * valprint.c: Update.
2038 * value.c: Update.
2039 * varobj.c: Update.
2040 * windows-nat.c: Update.
2041 * x86-linux-nat.c: Update.
2042 * xml-support.c: Update.
2043
a70b8144
TT
20442019-04-08 Tom Tromey <tom@tromey.com>
2045
2046 * xml-support.c: Use C++ exception handling.
2047 * x86-linux-nat.c: Use C++ exception handling.
2048 * windows-nat.c: Use C++ exception handling.
2049 * varobj.c: Use C++ exception handling.
2050 * value.c: Use C++ exception handling.
2051 * valprint.c: Use C++ exception handling.
2052 * valops.c: Use C++ exception handling.
2053 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2054 handling.
2055 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2056 * typeprint.c: Use C++ exception handling.
2057 * tui/tui.c: Use C++ exception handling.
2058 * tracefile-tfile.c: Use C++ exception handling.
2059 * top.c: Use C++ exception handling.
2060 * thread.c: Use C++ exception handling.
2061 * target.c: Use C++ exception handling.
2062 * symmisc.c: Use C++ exception handling.
2063 * symfile-mem.c: Use C++ exception handling.
2064 * stack.c: Use C++ exception handling.
2065 * sparc64-linux-tdep.c: Use C++ exception handling.
2066 * solib.c: Use C++ exception handling.
2067 * solib-svr4.c: Use C++ exception handling.
2068 * solib-spu.c: Use C++ exception handling.
2069 * solib-frv.c: Use C++ exception handling.
2070 * solib-dsbt.c: Use C++ exception handling.
2071 * selftest-arch.c: Use C++ exception handling.
2072 * s390-tdep.c: Use C++ exception handling.
2073 * rust-lang.c: Use C++ exception handling.
2074 * rust-exp.y: Use C++ exception handling.
2075 * rs6000-tdep.c: Use C++ exception handling.
2076 * rs6000-aix-tdep.c: Use C++ exception handling.
2077 * riscv-tdep.c: Use C++ exception handling.
2078 * remote.c: Use C++ exception handling.
2079 * remote-fileio.c: Use C++ exception handling.
2080 * record-full.c: Use C++ exception handling.
2081 * record-btrace.c: Use C++ exception handling.
2082 * python/python.c: Use C++ exception handling.
2083 * python/py-value.c: Use C++ exception handling.
2084 * python/py-utils.c: Use C++ exception handling.
2085 * python/py-unwind.c: Use C++ exception handling.
2086 * python/py-type.c: Use C++ exception handling.
2087 * python/py-symbol.c: Use C++ exception handling.
2088 * python/py-record.c: Use C++ exception handling.
2089 * python/py-record-btrace.c: Use C++ exception handling.
2090 * python/py-progspace.c: Use C++ exception handling.
2091 * python/py-prettyprint.c: Use C++ exception handling.
2092 * python/py-param.c: Use C++ exception handling.
2093 * python/py-objfile.c: Use C++ exception handling.
2094 * python/py-linetable.c: Use C++ exception handling.
2095 * python/py-lazy-string.c: Use C++ exception handling.
2096 * python/py-infthread.c: Use C++ exception handling.
2097 * python/py-inferior.c: Use C++ exception handling.
2098 * python/py-gdb-readline.c: Use C++ exception handling.
2099 * python/py-framefilter.c: Use C++ exception handling.
2100 * python/py-frame.c: Use C++ exception handling.
2101 * python/py-finishbreakpoint.c: Use C++ exception handling.
2102 * python/py-cmd.c: Use C++ exception handling.
2103 * python/py-breakpoint.c: Use C++ exception handling.
2104 * python/py-arch.c: Use C++ exception handling.
2105 * printcmd.c: Use C++ exception handling.
2106 * ppc-linux-tdep.c: Use C++ exception handling.
2107 * parse.c: Use C++ exception handling.
2108 * p-valprint.c: Use C++ exception handling.
2109 * objc-lang.c: Use C++ exception handling.
2110 * mi/mi-main.c: Use C++ exception handling.
2111 * mi/mi-interp.c: Use C++ exception handling.
2112 * mi/mi-cmd-stack.c: Use C++ exception handling.
2113 * mi/mi-cmd-break.c: Use C++ exception handling.
2114 * main.c: Use C++ exception handling.
2115 * linux-thread-db.c: Use C++ exception handling.
2116 * linux-tdep.c: Use C++ exception handling.
2117 * linux-nat.c: Use C++ exception handling.
2118 * linux-fork.c: Use C++ exception handling.
2119 * linespec.c: Use C++ exception handling.
2120 * language.c: Use C++ exception handling.
2121 * jit.c: Use C++ exception handling.
2122 * infrun.c: Use C++ exception handling.
2123 * infcmd.c: Use C++ exception handling.
2124 * infcall.c: Use C++ exception handling.
2125 * inf-loop.c: Use C++ exception handling.
2126 * i386-tdep.c: Use C++ exception handling.
2127 * i386-linux-tdep.c: Use C++ exception handling.
2128 * guile/scm-value.c: Use C++ exception handling.
2129 * guile/scm-type.c: Use C++ exception handling.
2130 * guile/scm-symtab.c: Use C++ exception handling.
2131 * guile/scm-symbol.c: Use C++ exception handling.
2132 * guile/scm-pretty-print.c: Use C++ exception handling.
2133 * guile/scm-ports.c: Use C++ exception handling.
2134 * guile/scm-param.c: Use C++ exception handling.
2135 * guile/scm-math.c: Use C++ exception handling.
2136 * guile/scm-lazy-string.c: Use C++ exception handling.
2137 * guile/scm-frame.c: Use C++ exception handling.
2138 * guile/scm-disasm.c: Use C++ exception handling.
2139 * guile/scm-cmd.c: Use C++ exception handling.
2140 * guile/scm-breakpoint.c: Use C++ exception handling.
2141 * guile/scm-block.c: Use C++ exception handling.
2142 * guile/guile-internal.h: Use C++ exception handling.
2143 * gnu-v3-abi.c: Use C++ exception handling.
2144 * gdbtypes.c: Use C++ exception handling.
2145 * frame.c: Use C++ exception handling.
2146 * frame-unwind.c: Use C++ exception handling.
2147 * fbsd-tdep.c: Use C++ exception handling.
2148 * f-valprint.c: Use C++ exception handling.
2149 * exec.c: Use C++ exception handling.
2150 * event-top.c: Use C++ exception handling.
2151 * event-loop.c: Use C++ exception handling.
2152 * eval.c: Use C++ exception handling.
2153 * dwarf2read.c: Use C++ exception handling.
2154 * dwarf2loc.c: Use C++ exception handling.
2155 * dwarf2-frame.c: Use C++ exception handling.
2156 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2157 * dwarf-index-write.c: Use C++ exception handling.
2158 * dwarf-index-cache.c: Use C++ exception handling.
2159 * dtrace-probe.c: Use C++ exception handling.
2160 * disasm-selftests.c: Use C++ exception handling.
2161 * darwin-nat.c: Use C++ exception handling.
2162 * cp-valprint.c: Use C++ exception handling.
2163 * cp-support.c: Use C++ exception handling.
2164 * cp-abi.c: Use C++ exception handling.
2165 * corelow.c: Use C++ exception handling.
2166 * completer.c: Use C++ exception handling.
2167 * compile/compile-object-run.c: Use C++ exception handling.
2168 * compile/compile-object-load.c: Use C++ exception handling.
2169 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2170 * compile/compile-c-symbols.c: Use C++ exception handling.
2171 * common/selftest.c: Use C++ exception handling.
2172 * common/new-op.c: Use C++ exception handling.
2173 * cli/cli-script.c: Use C++ exception handling.
2174 * cli/cli-interp.c: Use C++ exception handling.
2175 * cli/cli-cmds.c: Use C++ exception handling.
2176 * c-varobj.c: Use C++ exception handling.
2177 * btrace.c: Use C++ exception handling.
2178 * breakpoint.c: Use C++ exception handling.
2179 * break-catch-throw.c: Use C++ exception handling.
2180 * arch-utils.c: Use C++ exception handling.
2181 * amd64-tdep.c: Use C++ exception handling.
2182 * ada-valprint.c: Use C++ exception handling.
2183 * ada-typeprint.c: Use C++ exception handling.
2184 * ada-lang.c: Use C++ exception handling.
2185 * aarch64-tdep.c: Use C++ exception handling.
2186
3d6e9d23
TT
21872019-04-08 Tom Tromey <tom@tromey.com>
2188
2189 * xml-support.c (gdb_xml_parser::parse): Update.
2190 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2191 * value.c (show_convenience): Update.
2192 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2193 (test_parse_flags_qcs): Update.
2194 * thread.c (thr_try_catch_cmd): Update.
2195 * target.c (target_translate_tls_address): Update.
2196 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2197 (info_frame_command_core, frame_apply_command_count): Update.
2198 * rust-exp.y (rust_lex_exception_test): Update.
2199 * riscv-tdep.c (riscv_print_one_register_info): Update.
2200 * remote.c (remote_target::enable_btrace): Update.
2201 * record-btrace.c (record_btrace_enable_warn): Update.
2202 * python/py-utils.c (gdbpy_convert_exception): Update.
2203 * printcmd.c (do_one_display, print_variable_and_value): Update.
2204 * mi/mi-main.c (mi_print_exception): Update.
2205 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2206 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2207 * linux-nat.c (linux_nat_target::attach): Update.
2208 * linux-fork.c (class scoped_switch_fork_info): Update.
2209 * infrun.c (displaced_step_prepare): Update.
2210 * infcall.c (call_function_by_hand_dummy): Update.
2211 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2212 * gnu-v3-abi.c (print_one_vtable): Update.
2213 * frame.c (get_prev_frame_always): Update.
2214 * f-valprint.c (info_common_command_for_block): Update.
2215 * exec.c (try_open_exec_file): Update.
2216 * exceptions.c (print_exception, exception_print)
2217 (exception_fprintf, exception_print_same): Update.
2218 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2219 * dwarf-index-cache.c (index_cache::store)
2220 (index_cache::lookup_gdb_index): Update.
2221 * darwin-nat.c (maybe_cache_shell): Update.
2222 * cp-valprint.c (cp_print_value_fields): Update.
2223 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2224 (gcc_cplus_symbol_address): Update.
2225 * compile/compile-c-symbols.c (gcc_convert_symbol)
2226 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2227 * common/selftest.c: Update.
2228 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2229 a std::string.
2230 (exception_try_scope_entry, exception_try_scope_exit): Don't
2231 declare.
2232 (struct exception_try_scope): Remove.
2233 (TRY): Don't use exception_try_scope.
2234 (struct gdb_exception): Add constructor, operator=.
2235 <what>: New method.
2236 (struct gdb_exception_RETURN_MASK_ALL)
2237 (struct gdb_exception_RETURN_MASK_ERROR)
2238 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2239 (struct gdb_quit_bad_alloc): Update.
2240 * common/common-exceptions.c (exception_none): Change
2241 initializer.
2242 (struct catcher) <state, exception>: Initialize inline.
2243 <prev>: Remove member.
2244 (current_catcher): Remove.
2245 (catchers): New global.
2246 (exceptions_state_mc_init): Simplify.
2247 (catcher_pop): Remove.
2248 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2249 (try_scope_depth, exception_try_scope_entry)
2250 (exception_try_scope_exit): Remove.
2251 (throw_exception_sjlj): Update.
2252 (exception_messages, exception_messages_size): Remove.
2253 (throw_it): Simplify.
2254 (gdb_exception_sliced_copy): Remove.
2255 (throw_exception_cxx): Update.
2256 * cli/cli-script.c (script_from_file): Update.
2257 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2258 Update.
2259 * ada-valprint.c (ada_val_print): Update.
2260 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2261 (create_excep_cond_exprs): Update.
2262
c5c10118
TT
22632019-04-08 Tom Tromey <tom@tromey.com>
2264
2265 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2266 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2267 (TRY, CATCH, END_CATCH): Remove some definitions.
2268 * common/common-exceptions.c: Don't use GDB_XCPT.
2269 (catcher_list_size): Remove.
2270 (throw_exception, throw_it): Simplify.
2271
4de283e4
TT
22722019-04-05 Tom Tromey <tom@tromey.com>
2273
2274 Revert the header-sorting patch.
2275 * ft32-tdep.c: Revert.
2276 * frv-tdep.c: Revert.
2277 * frv-linux-tdep.c: Revert.
2278 * frame.c: Revert.
2279 * frame-unwind.c: Revert.
2280 * frame-base.c: Revert.
2281 * fork-child.c: Revert.
2282 * findvar.c: Revert.
2283 * findcmd.c: Revert.
2284 * filesystem.c: Revert.
2285 * filename-seen-cache.h: Revert.
2286 * filename-seen-cache.c: Revert.
2287 * fbsd-tdep.c: Revert.
2288 * fbsd-nat.h: Revert.
2289 * fbsd-nat.c: Revert.
2290 * f-valprint.c: Revert.
2291 * f-typeprint.c: Revert.
2292 * f-lang.c: Revert.
2293 * extension.h: Revert.
2294 * extension.c: Revert.
2295 * extension-priv.h: Revert.
2296 * expprint.c: Revert.
2297 * exec.h: Revert.
2298 * exec.c: Revert.
2299 * exceptions.c: Revert.
2300 * event-top.c: Revert.
2301 * event-loop.c: Revert.
2302 * eval.c: Revert.
2303 * elfread.c: Revert.
2304 * dwarf2read.h: Revert.
2305 * dwarf2read.c: Revert.
2306 * dwarf2loc.c: Revert.
2307 * dwarf2expr.h: Revert.
2308 * dwarf2expr.c: Revert.
2309 * dwarf2-frame.c: Revert.
2310 * dwarf2-frame-tailcall.c: Revert.
2311 * dwarf-index-write.h: Revert.
2312 * dwarf-index-write.c: Revert.
2313 * dwarf-index-common.c: Revert.
2314 * dwarf-index-cache.h: Revert.
2315 * dwarf-index-cache.c: Revert.
2316 * dummy-frame.c: Revert.
2317 * dtrace-probe.c: Revert.
2318 * disasm.h: Revert.
2319 * disasm.c: Revert.
2320 * disasm-selftests.c: Revert.
2321 * dictionary.c: Revert.
2322 * dicos-tdep.c: Revert.
2323 * demangle.c: Revert.
2324 * dcache.h: Revert.
2325 * dcache.c: Revert.
2326 * darwin-nat.h: Revert.
2327 * darwin-nat.c: Revert.
2328 * darwin-nat-info.c: Revert.
2329 * d-valprint.c: Revert.
2330 * d-namespace.c: Revert.
2331 * d-lang.c: Revert.
2332 * ctf.c: Revert.
2333 * csky-tdep.c: Revert.
2334 * csky-linux-tdep.c: Revert.
2335 * cris-tdep.c: Revert.
2336 * cris-linux-tdep.c: Revert.
2337 * cp-valprint.c: Revert.
2338 * cp-support.c: Revert.
2339 * cp-namespace.c: Revert.
2340 * cp-abi.c: Revert.
2341 * corelow.c: Revert.
2342 * corefile.c: Revert.
2343 * continuations.c: Revert.
2344 * completer.h: Revert.
2345 * completer.c: Revert.
2346 * complaints.c: Revert.
2347 * coffread.c: Revert.
2348 * coff-pe-read.c: Revert.
2349 * cli-out.h: Revert.
2350 * cli-out.c: Revert.
2351 * charset.c: Revert.
2352 * c-varobj.c: Revert.
2353 * c-valprint.c: Revert.
2354 * c-typeprint.c: Revert.
2355 * c-lang.c: Revert.
2356 * buildsym.c: Revert.
2357 * buildsym-legacy.c: Revert.
2358 * build-id.h: Revert.
2359 * build-id.c: Revert.
2360 * btrace.c: Revert.
2361 * bsd-uthread.c: Revert.
2362 * breakpoint.h: Revert.
2363 * breakpoint.c: Revert.
2364 * break-catch-throw.c: Revert.
2365 * break-catch-syscall.c: Revert.
2366 * break-catch-sig.c: Revert.
2367 * blockframe.c: Revert.
2368 * block.c: Revert.
2369 * bfin-tdep.c: Revert.
2370 * bfin-linux-tdep.c: Revert.
2371 * bfd-target.c: Revert.
2372 * bcache.c: Revert.
2373 * ax-general.c: Revert.
2374 * ax-gdb.h: Revert.
2375 * ax-gdb.c: Revert.
2376 * avr-tdep.c: Revert.
2377 * auxv.c: Revert.
2378 * auto-load.c: Revert.
2379 * arm-wince-tdep.c: Revert.
2380 * arm-tdep.c: Revert.
2381 * arm-symbian-tdep.c: Revert.
2382 * arm-pikeos-tdep.c: Revert.
2383 * arm-obsd-tdep.c: Revert.
2384 * arm-nbsd-tdep.c: Revert.
2385 * arm-nbsd-nat.c: Revert.
2386 * arm-linux-tdep.c: Revert.
2387 * arm-linux-nat.c: Revert.
2388 * arm-fbsd-tdep.c: Revert.
2389 * arm-fbsd-nat.c: Revert.
2390 * arm-bsd-tdep.c: Revert.
2391 * arch-utils.c: Revert.
2392 * arc-tdep.c: Revert.
2393 * arc-newlib-tdep.c: Revert.
2394 * annotate.h: Revert.
2395 * annotate.c: Revert.
2396 * amd64-windows-tdep.c: Revert.
2397 * amd64-windows-nat.c: Revert.
2398 * amd64-tdep.c: Revert.
2399 * amd64-sol2-tdep.c: Revert.
2400 * amd64-obsd-tdep.c: Revert.
2401 * amd64-obsd-nat.c: Revert.
2402 * amd64-nbsd-tdep.c: Revert.
2403 * amd64-nbsd-nat.c: Revert.
2404 * amd64-nat.c: Revert.
2405 * amd64-linux-tdep.c: Revert.
2406 * amd64-linux-nat.c: Revert.
2407 * amd64-fbsd-tdep.c: Revert.
2408 * amd64-fbsd-nat.c: Revert.
2409 * amd64-dicos-tdep.c: Revert.
2410 * amd64-darwin-tdep.c: Revert.
2411 * amd64-bsd-nat.c: Revert.
2412 * alpha-tdep.c: Revert.
2413 * alpha-obsd-tdep.c: Revert.
2414 * alpha-nbsd-tdep.c: Revert.
2415 * alpha-mdebug-tdep.c: Revert.
2416 * alpha-linux-tdep.c: Revert.
2417 * alpha-linux-nat.c: Revert.
2418 * alpha-bsd-tdep.c: Revert.
2419 * alpha-bsd-nat.c: Revert.
2420 * aix-thread.c: Revert.
2421 * agent.c: Revert.
2422 * addrmap.c: Revert.
2423 * ada-varobj.c: Revert.
2424 * ada-valprint.c: Revert.
2425 * ada-typeprint.c: Revert.
2426 * ada-tasks.c: Revert.
2427 * ada-lang.c: Revert.
2428 * aarch64-tdep.c: Revert.
2429 * aarch64-ravenscar-thread.c: Revert.
2430 * aarch64-newlib-tdep.c: Revert.
2431 * aarch64-linux-tdep.c: Revert.
2432 * aarch64-linux-nat.c: Revert.
2433 * aarch64-fbsd-tdep.c: Revert.
2434 * aarch64-fbsd-nat.c: Revert.
2435 * aarch32-linux-nat.c: Revert.
2436
d55e5aa6
TT
24372019-04-05 Tom Tromey <tom@tromey.com>
2438
2439 * ft32-tdep.c: Sort headers.
2440 * frv-tdep.c: Sort headers.
2441 * frv-linux-tdep.c: Sort headers.
2442 * frame.c: Sort headers.
2443 * frame-unwind.c: Sort headers.
2444 * frame-base.c: Sort headers.
2445 * fork-child.c: Sort headers.
2446 * findvar.c: Sort headers.
2447 * findcmd.c: Sort headers.
2448 * filesystem.c: Sort headers.
2449 * filename-seen-cache.h: Sort headers.
2450 * filename-seen-cache.c: Sort headers.
2451 * fbsd-tdep.c: Sort headers.
2452 * fbsd-nat.h: Sort headers.
2453 * fbsd-nat.c: Sort headers.
2454 * f-valprint.c: Sort headers.
2455 * f-typeprint.c: Sort headers.
2456 * f-lang.c: Sort headers.
2457 * extension.h: Sort headers.
2458 * extension.c: Sort headers.
2459 * extension-priv.h: Sort headers.
2460 * expprint.c: Sort headers.
2461 * exec.h: Sort headers.
2462 * exec.c: Sort headers.
2463 * exceptions.c: Sort headers.
2464 * event-top.c: Sort headers.
2465 * event-loop.c: Sort headers.
2466 * eval.c: Sort headers.
2467 * elfread.c: Sort headers.
2468 * dwarf2read.h: Sort headers.
2469 * dwarf2read.c: Sort headers.
2470 * dwarf2loc.c: Sort headers.
2471 * dwarf2expr.h: Sort headers.
2472 * dwarf2expr.c: Sort headers.
2473 * dwarf2-frame.c: Sort headers.
2474 * dwarf2-frame-tailcall.c: Sort headers.
2475 * dwarf-index-write.h: Sort headers.
2476 * dwarf-index-write.c: Sort headers.
2477 * dwarf-index-common.c: Sort headers.
2478 * dwarf-index-cache.h: Sort headers.
2479 * dwarf-index-cache.c: Sort headers.
2480 * dummy-frame.c: Sort headers.
2481 * dtrace-probe.c: Sort headers.
2482 * disasm.h: Sort headers.
2483 * disasm.c: Sort headers.
2484 * disasm-selftests.c: Sort headers.
2485 * dictionary.c: Sort headers.
2486 * dicos-tdep.c: Sort headers.
2487 * demangle.c: Sort headers.
2488 * dcache.h: Sort headers.
2489 * dcache.c: Sort headers.
2490 * darwin-nat.h: Sort headers.
2491 * darwin-nat.c: Sort headers.
2492 * darwin-nat-info.c: Sort headers.
2493 * d-valprint.c: Sort headers.
2494 * d-namespace.c: Sort headers.
2495 * d-lang.c: Sort headers.
2496 * ctf.c: Sort headers.
2497 * csky-tdep.c: Sort headers.
2498 * csky-linux-tdep.c: Sort headers.
2499 * cris-tdep.c: Sort headers.
2500 * cris-linux-tdep.c: Sort headers.
2501 * cp-valprint.c: Sort headers.
2502 * cp-support.c: Sort headers.
2503 * cp-namespace.c: Sort headers.
2504 * cp-abi.c: Sort headers.
2505 * corelow.c: Sort headers.
2506 * corefile.c: Sort headers.
2507 * continuations.c: Sort headers.
2508 * completer.h: Sort headers.
2509 * completer.c: Sort headers.
2510 * complaints.c: Sort headers.
2511 * coffread.c: Sort headers.
2512 * coff-pe-read.c: Sort headers.
2513 * cli-out.h: Sort headers.
2514 * cli-out.c: Sort headers.
2515 * charset.c: Sort headers.
2516 * c-varobj.c: Sort headers.
2517 * c-valprint.c: Sort headers.
2518 * c-typeprint.c: Sort headers.
2519 * c-lang.c: Sort headers.
2520 * buildsym.c: Sort headers.
2521 * buildsym-legacy.c: Sort headers.
2522 * build-id.h: Sort headers.
2523 * build-id.c: Sort headers.
2524 * btrace.c: Sort headers.
2525 * bsd-uthread.c: Sort headers.
2526 * breakpoint.h: Sort headers.
2527 * breakpoint.c: Sort headers.
2528 * break-catch-throw.c: Sort headers.
2529 * break-catch-syscall.c: Sort headers.
2530 * break-catch-sig.c: Sort headers.
2531 * blockframe.c: Sort headers.
2532 * block.c: Sort headers.
2533 * bfin-tdep.c: Sort headers.
2534 * bfin-linux-tdep.c: Sort headers.
2535 * bfd-target.c: Sort headers.
2536 * bcache.c: Sort headers.
2537 * ax-general.c: Sort headers.
2538 * ax-gdb.h: Sort headers.
2539 * ax-gdb.c: Sort headers.
2540 * avr-tdep.c: Sort headers.
2541 * auxv.c: Sort headers.
2542 * auto-load.c: Sort headers.
2543 * arm-wince-tdep.c: Sort headers.
2544 * arm-tdep.c: Sort headers.
2545 * arm-symbian-tdep.c: Sort headers.
2546 * arm-pikeos-tdep.c: Sort headers.
2547 * arm-obsd-tdep.c: Sort headers.
2548 * arm-nbsd-tdep.c: Sort headers.
2549 * arm-nbsd-nat.c: Sort headers.
2550 * arm-linux-tdep.c: Sort headers.
2551 * arm-linux-nat.c: Sort headers.
2552 * arm-fbsd-tdep.c: Sort headers.
2553 * arm-fbsd-nat.c: Sort headers.
2554 * arm-bsd-tdep.c: Sort headers.
2555 * arch-utils.c: Sort headers.
2556 * arc-tdep.c: Sort headers.
2557 * arc-newlib-tdep.c: Sort headers.
2558 * annotate.h: Sort headers.
2559 * annotate.c: Sort headers.
2560 * amd64-windows-tdep.c: Sort headers.
2561 * amd64-windows-nat.c: Sort headers.
2562 * amd64-tdep.c: Sort headers.
2563 * amd64-sol2-tdep.c: Sort headers.
2564 * amd64-obsd-tdep.c: Sort headers.
2565 * amd64-obsd-nat.c: Sort headers.
2566 * amd64-nbsd-tdep.c: Sort headers.
2567 * amd64-nbsd-nat.c: Sort headers.
2568 * amd64-nat.c: Sort headers.
2569 * amd64-linux-tdep.c: Sort headers.
2570 * amd64-linux-nat.c: Sort headers.
2571 * amd64-fbsd-tdep.c: Sort headers.
2572 * amd64-fbsd-nat.c: Sort headers.
2573 * amd64-dicos-tdep.c: Sort headers.
2574 * amd64-darwin-tdep.c: Sort headers.
2575 * amd64-bsd-nat.c: Sort headers.
2576 * alpha-tdep.c: Sort headers.
2577 * alpha-obsd-tdep.c: Sort headers.
2578 * alpha-nbsd-tdep.c: Sort headers.
2579 * alpha-mdebug-tdep.c: Sort headers.
2580 * alpha-linux-tdep.c: Sort headers.
2581 * alpha-linux-nat.c: Sort headers.
2582 * alpha-bsd-tdep.c: Sort headers.
2583 * alpha-bsd-nat.c: Sort headers.
2584 * aix-thread.c: Sort headers.
2585 * agent.c: Sort headers.
2586 * addrmap.c: Sort headers.
2587 * ada-varobj.c: Sort headers.
2588 * ada-valprint.c: Sort headers.
2589 * ada-typeprint.c: Sort headers.
2590 * ada-tasks.c: Sort headers.
2591 * ada-lang.c: Sort headers.
2592 * aarch64-tdep.c: Sort headers.
2593 * aarch64-ravenscar-thread.c: Sort headers.
2594 * aarch64-newlib-tdep.c: Sort headers.
2595 * aarch64-linux-tdep.c: Sort headers.
2596 * aarch64-linux-nat.c: Sort headers.
2597 * aarch64-fbsd-tdep.c: Sort headers.
2598 * aarch64-fbsd-nat.c: Sort headers.
2599 * aarch32-linux-nat.c: Sort headers.
2600
699bd4cf
TT
26012019-04-04 Tom Tromey <tom@tromey.com>
2602
2603 * varobj.c (varobj_create): Update.
2604 * rust-exp.y (struct rust_parser) <update_innermost_block,
2605 lookup_symbol>: New methods.
2606 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2607 Rename.
2608 (rust_parser::rust_lookup_type)
2609 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2610 * printcmd.c (display_command, do_one_display): Update.
2611 * parser-defs.h (struct parser_state) <parser_state>: Add
2612 "tracker" parameter.
2613 (block_tracker): New member.
2614 (class innermost_block_tracker) <innermost_block_tracker>: Add
2615 "types" parameter.
2616 <reset>: Remove method.
2617 (innermost_block): Don't declare.
2618 (null_post_parser): Update.
2619 * parse.c (innermost_block): Remove global.
2620 (write_dollar_variable): Update.
2621 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2622 Remove "tracker_types" parameter.
2623 (parse_expression): Add "tracker" parameter.
2624 (parse_expression_for_completion): Update.
2625 (null_post_parser): Add "tracker" parameter.
2626 * p-exp.y: Update rules.
2627 * m2-exp.y: Update rules.
2628 * language.h (struct language_defn) <la_post_parser>: Add
2629 "tracker" parameter.
2630 * go-exp.y: Update rules.
2631 * f-exp.y: Update rules.
2632 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2633 parameter.
2634 * d-exp.y: Update rules.
2635 * c-exp.y: Update rules.
2636 * breakpoint.c (set_breakpoint_condition): Create an
2637 innermost_block_tracker.
2638 (watch_command_1): Likewise.
2639 * ada-lang.c (resolve): Add "tracker" parameter.
2640 (resolve_subexp): Likewise.
2641 * ada-exp.y (write_var_from_sym): Update.
2642
dac43e32
TT
26432019-04-04 Tom Tromey <tom@tromey.com>
2644
2645 * type-stack.h: New file.
2646 * type-stack.c: New file.
2647 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2648 type-stack.h.
2649 (insert_into_type_stack, insert_type, push_type, push_type_int)
2650 (insert_type_address_space, pop_type, pop_type_int)
2651 (pop_typelist, pop_type_stack, append_type_stack)
2652 (push_type_stack, get_type_stack, push_typelist)
2653 (follow_type_instance_flags, follow_types): Don't declare.
2654 * parse.c (type_stack): Remove global.
2655 (parse_exp_in_context): Update.
2656 (insert_into_type_stack, insert_type, push_type, push_type_int)
2657 (insert_type_address_space, pop_type, pop_type_int)
2658 (pop_typelist, pop_type_stack, append_type_stack)
2659 (push_type_stack, get_type_stack, push_typelist)
2660 (follow_type_instance_flags, follow_types): Remove (moved to
2661 type-stack.c).
2662 * f-exp.y (type_stack): New global.
2663 Update rules.
2664 (push_kind_type, f_parse): Update.
2665 * d-exp.y (type_stack): New global.
2666 Update rules.
2667 (d_parse): Update.
2668 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2669 Update rules.
2670 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2671 (HFILES_NO_SRCDIR): Add type-stack.h.
2672
2a612529
TT
26732019-04-04 Tom Tromey <tom@tromey.com>
2674
2675 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2676 (rust_parser::convert_ast_to_expression, rust_parse)
2677 (rust_lex_test_completion, rust_lex_tests): Update.
2678 * parser-defs.h (struct expr_completion_state): New.
2679 (struct parser_state) <parser_state>: Add completion parameter.
2680 <mark_struct_expression, mark_completion_tag>: New methods.
2681 <parse_completion, m_completion_state>: New members.
2682 (prefixify_expression, null_post_parser): Update.
2683 (mark_struct_expression, mark_completion_tag): Don't declare.
2684 * parse.c (parse_completion, expout_last_struct)
2685 (expout_tag_completion_type, expout_completion_name): Remove
2686 globals.
2687 (parser_state::mark_struct_expression)
2688 (parser_state::mark_completion_tag): Now methods.
2689 (prefixify_expression): Add last_struct parameter.
2690 (prefixify_subexp): Likewise.
2691 (parse_exp_1): Update.
2692 (parse_exp_in_context): Add cstate parameter. Update.
2693 (parse_expression_for_completion): Create an
2694 expr_completion_state.
2695 (null_post_parser): Add "completion" parameter.
2696 * p-exp.y: Update rules.
2697 (yylex): Update.
2698 * language.h (struct language_defn) <la_post_parser>: Add
2699 "completing" parameter.
2700 * go-exp.y: Update rules.
2701 (lex_one_token): Update.
2702 * expression.h (parse_completion): Don't declare.
2703 * d-exp.y: Update rules.
2704 (lex_one_token): Update rules.
2705 * c-exp.y: Update rules.
2706 (lex_one_token): Update.
2707 * ada-lang.c (resolve): Add "parse_completion" parameter.
2708 (resolve_subexp): Likewise.
2709 (ada_resolve_function): Likewise.
2710
43476f0b
TT
27112019-04-04 Tom Tromey <tom@tromey.com>
2712
2713 * parser-defs.h (struct parser_state) <start_arglist,
2714 end_arglist>: New methods.
2715 <arglist_len, m_funcall_chain>: New members.
2716 (arglist_len, start_arglist, end_arglist): Don't declare.
2717 * parse.c (arglist_len, funcall_chain): Remove global.
2718 (start_arglist, end_arglist): Remove functions.
2719 (parse_exp_in_context): Update.
2720 * p-exp.y: Update rules.
2721 * m2-exp.y: Update rules.
2722 * go-exp.y: Update rules.
2723 * f-exp.y: Update rules.
2724 * d-exp.y: Update rules.
2725 * c-exp.y: Update rules.
2726
5776fca3
TT
27272019-04-04 Tom Tromey <tom@tromey.com>
2728
2729 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2730 lex_operator, push_back>: New methods.
2731 Update all rules.
2732 (rust_parser::lex_hex, lex_escape): Rename and update.
2733 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2734 (rust_parser::lex_operator): Rename and update.
2735 (rust_parser::lex_number, rustyylex, rustyyerror)
2736 (rust_lex_test_init, rust_lex_test_sequence)
2737 (rust_lex_test_push_back, rust_lex_tests): Update.
2738 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2739 parameter.
2740 <lexptr, prev_lexptr>: New members.
2741 (lexptr, prev_lexptr): Don't declare.
2742 * parse.c (lexptr, prev_lexptr): Remove globals.
2743 (parse_exp_in_context): Update.
2744 * p-exp.y (yylex, yyerror): Update.
2745 * m2-exp.y (parse_number, yylex, yyerror): Update.
2746 * go-exp.y (lex_one_token, yyerror): Update.
2747 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2748 * d-exp.y (lex_one_token, yyerror): Update.
2749 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2750 (lex_one_token, yyerror): Update.
2751 * ada-lex.l (YY_INPUT): Update.
2752 (rewind_to_char): Update.
2753 * ada-exp.y (yyerror): Update.
2754
8621b685
TT
27552019-04-04 Tom Tromey <tom@tromey.com>
2756
2757 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2758 * parser-defs.h (struct parser_state) <parser_state>: Add new
2759 parameter.
2760 <comma_terminates>: New member.
2761 (comma_terminates): Don't declare global.
2762 * parse.c (comma_terminates): Remove global.
2763 (parse_exp_in_context): Update.
2764 * p-exp.y (yylex): Update.
2765 * m2-exp.y (yylex): Update.
2766 * go-exp.y (lex_one_token): Update.
2767 * f-exp.y (yylex): Update.
2768 * d-exp.y (lex_one_token): Update.
2769 * c-exp.y (lex_one_token): Update.
2770 * ada-lex.l: Update.
2771
28aaf3fd
TT
27722019-04-04 Tom Tromey <tom@tromey.com>
2773
2774 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2775 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2776 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2777 * parser-defs.h (paren_depth): Don't declare.
2778 * parse.c (paren_depth): Remove global.
2779 (parse_exp_in_context): Update.
2780 * p-exp.y (paren_depth): New global.
2781 (pascal_parse): Initialize it.
2782 * m2-exp.y (paren_depth): New global.
2783 (m2_parse): Initialize it.
2784 * go-exp.y (paren_depth): New global.
2785 (go_parse): Initialize it.
2786 * f-exp.y (paren_depth): New global.
2787 (f_parse): Initialize it.
2788 * d-exp.y (paren_depth): New global.
2789 (d_parse): Initialize it.
2790 * c-exp.y (paren_depth): New global.
2791 (c_parse): Initialize it.
2792 * ada-lex.l (paren_depth): New global.
2793 (lexer_init): Initialize it.
2794
1e58a4a4
TT
27952019-04-04 Tom Tromey <tom@tromey.com>
2796
2797 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2798 (rust_parser::convert_ast_to_type)
2799 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2800 * parser-defs.h (struct parser_state) <parser_state>: Add
2801 parameters. Initialize new members.
2802 <expression_context_block, expression_context_pc>: New members.
2803 * parse.c (expression_context_block, expression_context_pc):
2804 Remove globals.
2805 (parse_exp_in_context): Update.
2806 * p-exp.y: Update all rules.
2807 (yylex): Update.
2808 * m2-exp.y: Update all rules.
2809 (yylex): Update.
2810 * go-exp.y (yylex): Update.
2811 * f-exp.y (yylex): Update.
2812 * d-exp.y: Update all rules.
2813 (yylex): Update.
2814 * c-exp.y: Update all rules.
2815 (lex_one_token, classify_name, yylex, c_parse): Update.
2816 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2817
37eedb39
TT
28182019-04-04 Tom Tromey <tom@tromey.com>
2819
2820 * gdbarch.h, gdbarch.c: Rebuild.
2821 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2822 * stap-probe.h:
2823 (struct stap_parse_info): Replace "parser_state" with
2824 "expr_builder".
2825 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2826 (parser_state): New class.
2827 * parse.c (expr_builder): Rename.
2828 (expr_builder::release): Rename.
2829 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2830 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2831 (write_exp_elt_longcst, write_exp_elt_floatcst)
2832 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2833 (write_exp_string_vector, write_exp_bitstring)
2834 (write_exp_msymbol, mark_struct_expression)
2835 (write_dollar_variable)
2836 (insert_type_address_space, increase_expout_size): Replace
2837 "parser_state" with "expr_builder".
2838 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2839 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2840 "parser_state" with "expr_builder".
2841
73923d7e
TT
28422019-04-04 Tom Tromey <tom@tromey.com>
2843
2844 * rust-exp.y: Replace "parse_language" with method call.
2845 * p-exp.y:
2846 (yylex): Replace "parse_language" with method call.
2847 * m2-exp.y:
2848 (yylex): Replace "parse_language" with method call.
2849 * go-exp.y (classify_name): Replace "parse_language" with method
2850 call.
2851 * f-exp.y (yylex): Replace "parse_language" with method call.
2852 * d-exp.y (lex_one_token): Replace "parse_language" with method
2853 call.
2854 * c-exp.y:
2855 (lex_one_token, classify_name, yylex): Replace "parse_language"
2856 with method call.
2857 * ada-exp.y (find_primitive_type, type_char)
2858 (type_system_address): Replace "parse_language" with method call.
2859
fa9f5be6
TT
28602019-04-04 Tom Tromey <tom@tromey.com>
2861
2862 * rust-exp.y: Replace "parse_gdbarch" with method call.
2863 * parse.c (write_dollar_variable, insert_type_address_space):
2864 Replace "parse_gdbarch" with method call.
2865 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2866 call.
2867 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2868 call.
2869 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2870 "parse_gdbarch" with method call.
2871 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2872 with method call.
2873 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2874 "parse_gdbarch" with method call.
2875 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2876 "parse_gdbarch" with method call.
2877 * c-exp.y (parse_type, parse_number, classify_name): Replace
2878 "parse_gdbarch" with method call.
2879 * ada-lex.l: Replace "parse_gdbarch" with method call.
2880 * ada-exp.y (parse_type, find_primitive_type, type_char)
2881 (type_system_address): Replace "parse_gdbarch" with method call.
2882
1201a264
TT
28832019-04-04 Tom Tromey <tom@tromey.com>
2884
2885 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2886 * stap-probe.c (stap_parse_argument): Update.
2887 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
2888 initial_size parameter.
2889 * rust-exp.y (rust_lex_tests): Update.
2890 * parse.c (parser_state): Update.
2891 (parse_exp_in_context): Update.
2892 * parser-defs.h (struct parser_state) <parser_state>: Remove
2893 "initial_size" parameter.
2894
e3980ce2
TT
28952019-04-04 Tom Tromey <tom@tromey.com>
2896
2897 * parser-defs.h (increase_expout_size): Don't declare.
2898 * parse.c (increase_expout_size): Now static.
2899
e9f8e3f1
TS
29002019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2901
2902 * gnu-nat.c (gnu_nat_target::wait): Fix
2903 target_waitstatus_to_string call.
2904
d7df6549
AB
29052019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * eval.c (evaluate_subexp_standard): Handle internal functions
2908 during Fortran function call handling.
2909
8bdc1658
AB
29102019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2911
2912 * NEWS: Mention new internal functions.
2913 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2914 (read_base_type): Use dwarf2_init_complex_target_type.
2915 * value.c (creal_internal_fn): New function.
2916 (cimag_internal_fn): New function.
2917 (_initialize_values): Register new internal functions.
2918
c29705b7
PW
29192019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2920
2921 * infrun.c (stop_all_threads): If debug_infrun, always
2922 trace the wait status after wait_one, using
2923 target_waitstatus_to_string and target_pid_to_str.
2924 (handle_inferior_event): Replace various trace of
2925 wait status kind by a single trace.
2926 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2927 wait status kind image by target_waitstatus_to_string.
2928 * target/waitstatus.c (target_waitstatus_to_string): Fix
2929 obsolete comment.
2930
05caa1d2
TT
29312019-04-01 Tom Tromey <tromey@adacore.com>
2932
2933 PR symtab/23331:
2934 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2935
9d1447e0
SDJ
29362019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2937 Pedro Alves <palves@redhat.com>
2938
2939 * top.c (quit_force): Call 'finalize_values'.
2940 * value.c (finalize_values): New function.
2941 * value.h (finalize_values): Declare.
2942
7734102d
EZ
29432019-03-30 Eli Zaretskii <eliz@gnu.org>
2944
2945 * NEWS: Announce $_gdb_major and $_gdb_minor.
2946
2947 * top.c (init_gdb_version_vars): New function.
2948 (gdb_init): Call init_gdb_version_vars.
2949
188e1fa9
TT
29502019-03-29 Tom Tromey <tromey@adacore.com>
2951
2952 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2953 help text. Remove dead code.
2954
2880242d
KS
29552019-03-29 Keith Seitz <keiths@redhat.com>
2956
2957 From Siddhesh Poyarekar:
2958 * f-lang.h (f77_get_upperbound): Return LONGEST.
2959 (f77_get_lowerbound): Likewise.
2960 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2961 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2962 print them.
2963 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2964 plongest to format print it.
2965 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2966 (f77_get_upperbound): Likewise.
2967 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2968 LOWER_BOUND to LONGEST.
2969 (f77_create_arrayprint_offset_tbl): Likewise.
2970
cc1defb1
KS
29712019-03-29 Keith Seitz <keiths@redhat.com>
2972
2973 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2974 %s/pulongest for TYPE_LENGTH instead of %d in format
2975 strings.
2976 * ada-typerint.c (ada_print_type): Likewise.
2977 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2978 * compile/compile-c-support.c (generate_register_struct): Likewise.
2979 * gdbtypes.c (recursive_dump_type): Likewise.
2980 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2981 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2982 instead of %d in format strings.
2983 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2984 to std::min to ULONGEST.
2985 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2986 instead of %d in format strings.
2987 * tracepoint.c (info_scope_command): Likewise.
2988 * typeprint.c (print_offset_data::update)
2989 (print_offset_data::finish): Likewise.
2990 * xtensa-tdep.c (xtensa_store_return_value)
2991 (xtensa_push_dummy_call): Likewise.
2992
e432ccf1
JT
29932019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2994
2995 * windows-nat.c (display_selector): Fixed format specifications
2996 for 64-bit Cygwin.
2997
65d2b333
PW
29982019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2999
3000 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3001
f489207e
SL
30022019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3003
3004 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3005 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3006 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3007 (nios2_linux_init_abi): Install it.
3008
bffa1015
AH
30092019-03-28 Alan Hayward <alan.hayward@arm.com>
3010
3011 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3012
fc96163a
AH
30132019-03-28 Alan Hayward <alan.hayward@arm.com>
3014
3015 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3016
20dc7e9b
PW
30172019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3018 Tom Tromey <tromey@adacore.com>
3019
3020 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3021
7f5331a8
JB
30222019-03-26 Joel Brobecker <brobecker@adacore.com>
3023
3024 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3025 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3026 method to compute the bounds of range types. Also print "[evaluated]"
3027 if the bounds' values come from a dynamic evaluation.
3028
18c77628
AB
30292019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3030
3031 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3032 whitespace when pretty printing is on.
3033
53c973f2
AH
30342019-03-26 Alan Hayward <alan.hayward@arm.com>
3035
3036 * ppc-linux-nat.c: Add include.
3037
d851aa71
AH
30382019-03-26 Alan Hayward <alan.hayward@arm.com>
3039
3040 * NEWS: Mention AArch64 Pointer Authentication.
3041
2fe7bab7
AH
30422019-03-26 Alan Hayward <alan.hayward@arm.com>
3043
3044 * arm-linux-nat.c: Add include.
3045
068ef30e
SM
30462019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3047
3048 * source-cache.c (source_cache::get_source_lines): Re-read
3049 fullname after calling open_source_file.
3050
81a24d04
JB
30512019-03-25 John Baldwin <jhb@FreeBSD.org>
3052
3053 * NEWS: Mention TLS support for FreeBSD.
3054
79e7ae11
TT
30552019-03-25 Tom Tromey <tromey@adacore.com>
3056
3057 * minsyms.c (BUNCH_SIZE): Update comment.
3058 (~minimal_symbol_reader): Remove old comment.
3059 (compact_minimal_symbols): Update comment.
3060 (minimal_symbol_reader::install): Remove old comment. Update
3061 other comments.
3062
d45963c2
AH
30632019-03-25 Alan Hayward <alan.hayward@arm.com>
3064
3065 * s390-linux-nat.c: Add include.
3066
0f83012e
AH
30672019-03-25 Alan Hayward <alan.hayward@arm.com>
3068
3069 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3070 Call linux_get_hwcap.
3071 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3072 Likewise.
3073 (aarch64_linux_get_hwcap): Remove function.
3074 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3075 declaration.
3076 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3077 linux_get_hwcap.
3078 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3079 * linux-tdep.c (linux_get_hwcap): Add function.
3080 (linux_get_hwcap2): Likewise.
3081 * linux-tdep.h (linux_get_hwcap): Add declaration.
3082 (linux_get_hwcap2): Likewise.
3083 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3084 (ppc_linux_get_hwcap2): Likewise.
3085 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3086 linux_get_hwcap.
3087 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3088 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3089 (ppc_linux_nat_target::read_description): Likewise.
3090 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3091 * s390-linux-nat.c: Likewise.
3092 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3093
6640a367
TT
30942019-03-24 Tom Tromey <tom@tromey.com>
3095
3096 * ada-lang.c (standard_lookup): Simplify initialization.
3097 (ada_lookup_symbol_nonlocal): Simplify return.
3098 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3099 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3100 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3101 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3102 initialization.
3103 * solib.c (solib_global_lookup): Simplify.
3104 * symtab.c (null_block_symbol): Remove.
3105 (symbol_cache_lookup): Simplify returns.
3106 (lookup_language_this): Simplify returns.
3107 (lookup_symbol_aux): Simplify return.
3108 (lookup_local_symbol): Simplify returns.
3109 (lookup_global_symbol_from_objfile): Simplify return.
3110 (lookup_symbol_in_objfile_symtabs)
3111 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3112 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3113 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3114 * cp-namespace.c (cp_lookup_bare_symbol)
3115 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3116 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3117 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3118 (cp_lookup_symbol_via_imports): Simplify initialization.
3119 (find_symbol_in_baseclass): Likewise.
3120 * symtab.h (null_block_symbol): Remove.
3121 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3122 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3123 (d_lookup_symbol_module): Likewise.
3124 (find_symbol_in_baseclass): Simplify initialization.
3125
a930ebcd
TT
31262019-03-24 Tom Tromey <tom@tromey.com>
3127
3128 * expression.h: Don't include symtab.h.
3129 (struct block): Forward declare.
3130
582942f4
TT
31312019-03-24 Tom Tromey <tom@tromey.com>
3132
3133 * c-exp.y (typebase): Remove casts.
3134 * gdbtypes.c (lookup_unsigned_typename, )
3135 (lookup_signed_typename): Remove cast.
3136 * eval.c (parse_to_comma_and_eval): Remove cast.
3137 * parse.c (write_dollar_variable): Remove cast.
3138 * block.h (struct block) <superblock>: Now const.
3139 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3140 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3141 (map_block): Make "block" const.
3142 * symfile.h (struct quick_symbol_functions)
3143 <map_matching_symbols>: Constify block argument to "callback".
3144 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3145 const.
3146 (find_pc_sect_compunit_symtab): Make "b" const.
3147 (find_symbol_at_address): Likewise.
3148 (search_symbols): Likewise.
3149 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3150 (dw2_debug_names_lookup_symbol): Likewise.
3151 (dw2_map_matching_symbols): Update.
3152 * p-valprint.c (pascal_val_print): Remove "block".
3153 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3154 (aux_add_nonlocal_symbols): Make "block" const.
3155 (resolve_subexp): Remove cast.
3156 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3157 const.
3158 (iterate_over_file_blocks): Likewise.
3159 * f-exp.y (%union) <bval>: Remove.
3160 * coffread.c (patch_opaque_types): Make "b" const.
3161 * spu-tdep.c (spu_catch_start): Make "block" const.
3162 * c-valprint.c (print_unpacked_pointer): Remove "block".
3163 * symmisc.c (dump_symtab_1): Make "b" const.
3164 (block_depth): Make "block" const.
3165 * d-exp.y (%union) <bval>: Remove.
3166 * cp-support.h (cp_lookup_rtti_type): Update.
3167 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3168 * psymtab.c (psym_lookup_symbol): Make "block" const.
3169 (maintenance_check_psymtabs): Make "b" const.
3170 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3171 (enumerate_locals, enumerate_args): Update.
3172 * python/py-symtab.c (stpy_global_block): Make "block" const.
3173 (stpy_static_block): Likewise.
3174 * inline-frame.c (block_starting_point_at): Make "new_block"
3175 const.
3176 * block.c (find_block_in_blockvector): Make return type const.
3177 (blockvector_for_pc_sect): Make "b" const.
3178 (find_block_in_blockvector): Make "b" const.
3179
7ad417dd
TT
31802019-03-23 Tom Tromey <tom@tromey.com>
3181
3182 * varobj.c (varobj_create): Update.
3183 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3184 * printcmd.c (display_command, do_one_display): Don't reset
3185 innermost_block.
3186 * parser-defs.h (enum innermost_block_tracker_type): Move to
3187 expression.h.
3188 (innermost_block): Update comment.
3189 * parse.c (parse_exp_1): Add tracker_types parameter.
3190 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3191 tracker_types parameter. Reset innermost_block.
3192 (parse_exp_in_context): Remove.
3193 (parse_expression_for_completion): Update.
3194 * objfiles.c (~objfile): Don't reset expression_context_block or
3195 innermost_block.
3196 * expression.h (enum innermost_block_tracker_type): Move from
3197 parser-defs.h.
3198 (parse_exp_1): Add tracker_types parameter.
3199 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3200 reset innermost_block.
3201
b366c208
TT
32022019-03-23 Tom Tromey <tom@tromey.com>
3203
3204 * objfiles.h: Include bcache.h.
3205
9bb9b2f9
TT
32062019-03-23 Tom Tromey <tom@tromey.com>
3207
3208 * linespec.c (get_current_search_block): Use
3209 scoped_restore_current_language.
3210 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3211
59c28372
AH
32122019-03-22 Alan Hayward <alan.hayward@arm.com>
3213 Jiong Wang <jiong.wang@arm.com>
3214
3215 * aarch64-linux-tdep.c
3216 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3217 section.
3218 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3219
17e116a7
AH
32202019-03-22 Alan Hayward <alan.hayward@arm.com>
3221 Jiong Wang <jiong.wang@arm.com>
3222
3223 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3224 instructions.
3225 (aarch64_analyze_prologue_test): Add PACIASP test.
3226 (aarch64_prologue_prev_register): Unmask PC value.
3227
11e1b75f
AH
32282019-03-22 Alan Hayward <alan.hayward@arm.com>
3229 Jiong Wang <jiong.wang@arm.com>
3230
3231 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3232 (aarch64_dwarf2_prev_register): Unmask PC value.
3233 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3234 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3235 DW_CFA_AARCH64_negate_ra_state.
3236 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3237
34dcc7cf
AH
32382019-03-22 Alan Hayward <alan.hayward@arm.com>
3239 Jiong Wang <jiong.wang@arm.com>
3240
3241 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3242 registers.
3243 (aarch64_pseudo_register_name): Likewise.
3244 (aarch64_pseudo_register_type): Likewise.
3245 (aarch64_pseudo_register_reggroup_p): Likewise.
3246 (aarch64_gdbarch_init): Add pauth registers.
3247 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3248 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3249 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3250 (struct gdbarch_tdep): Add regnum for ra_state.
3251
1ef53e6b
AH
32522019-03-22 Alan Hayward <alan.hayward@arm.com>
3253 Jiong Wang <jiong.wang@arm.com>
3254
3255 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3256
76bed0fd
AH
32572019-03-22 Alan Hayward <alan.hayward@arm.com>
3258 Jiong Wang <jiong.wang@arm.com>
3259
3260 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3261 function.
3262 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3263 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3264 (aarch64_gdbarch_init): Add puth registers.
3265 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3266 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3267 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3268
ee4fbcfa
AH
32692019-03-22 Alan Hayward <alan.hayward@arm.com>
3270 Jiong Wang <jiong.wang@arm.com>
3271
3272 * aarch64-linux-nat.c
3273 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3274 * aarch64-linux-tdep.c
3275 (aarch64_linux_core_read_description): Likewise.
3276 (aarch64_linux_get_hwcap): New function.
3277 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3278 (aarch64_linux_get_hwcap): New declaration.
3279
6dc0ebde
AH
32802019-03-22 Alan Hayward <alan.hayward@arm.com>
3281 Jiong Wang <jiong.wang@arm.com>
3282
3283 * aarch64-linux-nat.c
3284 (aarch64_linux_nat_target::read_description): Add pauth param.
3285 * aarch64-linux-tdep.c
3286 (aarch64_linux_core_read_description): Likewise.
3287 * aarch64-tdep.c (struct target_desc): Add in pauth.
3288 (aarch64_read_description): Add pauth param.
3289 (aarch64_gdbarch_init): Likewise.
3290 * aarch64-tdep.h (aarch64_read_description): Likewise.
3291 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3292 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3293 * features/Makefile: Add new files.
3294 * features/aarch64-pauth.c: New file.
3295 * features/aarch64-pauth.xml: New file.
3296
595915c1
TT
32972019-03-20 Tom Tromey <tromey@adacore.com>
3298
3299 * infrun.c (handle_inferior_event): Rename from
3300 handle_inferior_event_1. Create a scoped_value_mark.
3301 (handle_inferior_event): Remove.
3302
4c7d57e7
TT
33032019-03-19 Tom Tromey <tromey@adacore.com>
3304
3305 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3306 * infrun.h (print_stop_event): Add "displays" parameter.
3307 * infrun.c (print_stop_event): Add "displays" parameter.
3308
cb246234
PA
33092019-03-19 Pedro Alves <palves@redhat.com>
3310
3311 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3312 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3313 to -1. Fix TABs vs spaces.
3314 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3315 * tui/tui-out.h (tui_ui_out) Add intro comments.
3316 <m_line, m_start_of_line>: In-class initialize, and add describing
3317 comment.
3318
3a0e45b2
AH
33192019-03-18 Alan Hayward <alan.hayward@arm.com>
3320
3321 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3322 variable names.
3323 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3324
5371b850
PA
33252019-03-18 Pedro Alves <palves@redhat.com>
3326 Eli Zaretskii <eliz@gnu.org>
3327
3328 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3329 m_line and m_start_of_line.
3330
b17c4cd0
EZ
33312019-03-18 Eli Zaretskii <eliz@gnu.org>
3332
3333 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3334 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3335 it returns a newline. This fixes a regression in TU mode, whereby
3336 the next line is output on the same screen line as the user input.
3337
4bd56d18
TT
33382019-03-18 Tom Tromey <tromey@adacore.com>
3339
3340 * minsyms.c (minimal_symbol_reader::install): Remove call to
3341 obstack_blank.
3342
55c10aca
PA
33432019-03-18 Pedro Alves <palves@redhat.com>
3344
3345 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3346 New globals.
3347 (apply_style): New, factored out from ...
3348 (apply_ansi_escape): ... this. Handle reverse video mode.
3349 (tui_set_reverse_mode): New function.
3350 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3351 * tui/tui-winsource.c (tui_show_source_line): Use
3352 tui_set_reverse_mode instead of setting A_STANDOUT.
3353 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3354 New setter methods.
3355
647bb750
HD
33562019-03-18 Hannes Domani <ssbssa@yahoo.de>
3357
3358 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3359 Handle tabs.
3360
bff8c71f
TT
33612019-03-18 Tom Tromey <tromey@adacore.com>
3362
3363 * ada-lang.c (empty_array): Add "high" parameter.
3364 (ada_evaluate_subexp): Update.
3365
58785d98
ST
33662019-03-17 Sergei Trofimovich <siarheit@google.com>
3367
3368 * unittests/string_view-selftests.c: Define
3369 _initialize_string_view_selftests unconditionally.
3370
d4cbef22
ВМ
33712019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3372
3373 PR gdb/24350
3374 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3375
fce4c071
ВМ
33762019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3377
3378 PR gdb/24351
3379 * windows-nat.c (display_selector): Fix format specifiers.
3380
f7f0a123
EZ
33812019-03-17 Eli Zaretskii <eliz@gnu.org>
3382
3383 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3384 tui_refill_source_window instead of tui_refresh_win, to update the
3385 current execution line. This fixes redisplay of the current line
3386 when stepping through the code with "next" or "step".
3387
ab42892f
EZ
33882019-03-16 Eli Zaretskii <eliz@gnu.org>
3389
3390 * source-cache.c (source_cache::get_source_lines): Call
3391 find_source_lines to initialize s->nlines. This fixes vertical
3392 scrolling of TUI source window when the DOWN arrow is pressed.
3393
8d8c087f
PW
33942019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3395
3396 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3397 linux-thread-db.c (_initialize_thread_db): Likewise.
3398
798e1c30
EZ
33992019-03-16 Eli Zaretskii <eliz@gnu.org>
3400
3401 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3402 wclrtoeol in tui_show_source_line". This reverts changes made in
3403 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3404
eefba3da
TT
34052019-03-15 Tom Tromey <tom@tromey.com>
3406
3407 * symtab.h (struct minimal_symbol): Derive from
3408 general_symbol_info.
3409 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3410 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3411 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3412 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3413 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3414 (MSYMBOL_SEARCH_NAME): Update.
3415 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3416 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3417 * minsyms.c (minimal_symbol_reader::record_full): Update.
3418
0de2420c
TT
34192019-03-15 Tom Tromey <tom@tromey.com>
3420
3421 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3422
042d75e4
TT
34232019-03-15 Tom Tromey <tom@tromey.com>
3424
3425 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3426 unique_xmalloc_ptr.
3427 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3428 Update.
3429 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3430 (build_minimal_symbol_hash_tables)
3431 (minimal_symbol_reader::install): Update.
3432
db92718b
TT
34332019-03-15 Tom Tromey <tom@tromey.com>
3434
3435 * symtab.c (create_demangled_names_hash): Update.
3436 (symbol_set_names): Update.
3437 * objfiles.h (struct objfile_per_bfd_storage)
3438 <demangled_names_hash>: Now an htab_up.
3439 * objfiles.c (objfile_per_bfd_storage): Simplify.
3440
d6797f46
TT
34412019-03-15 Tom Tromey <tom@tromey.com>
3442
3443 * objfiles.h (struct objfile_per_bfd_storage): Declare
3444 destructor.
3445 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3446 New.
3447 (get_objfile_bfd_data): Use new. Don't initialize
3448 language_of_main.
3449 (free_objfile_per_bfd_storage): Remove.
3450 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3451
741d7538
TT
34522019-03-15 Tom Tromey <tom@tromey.com>
3453
3454 * symfile.c (reread_symbols): Update.
3455 * objfiles.c (objfile::objfile): Update.
3456 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3457 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3458 comment.
3459 (minimal_symbol_reader::install): Update.
3460 (terminate_minimal_symbol_table): Remove.
3461 * jit.c (jit_object_close_impl): Update.
3462
788c80d1
TT
34632019-03-15 Tom Tromey <tom@tromey.com>
3464
3465 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3466 initializations.
3467
1b7a07cb
TT
34682019-03-15 Tom Tromey <tom@tromey.com>
3469
3470 * objfiles.h (struct objfile_per_bfd_storage)
3471 <demangled_hash_languages>: Now a bitset.
3472 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3473 (lookup_minimal_symbol): Update.
3474
3db066bc
TT
34752019-03-15 Tom Tromey <tom@tromey.com>
3476
3477 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3478 Don't return the symbol.
3479 * coffread.c (record_minimal_symbol): Use record_full.
3480
3fff2c37
EZ
34812019-03-14 Eli Zaretskii <eliz@gnu.org>
3482
3483 The MS-Windows port of ncurses fails to switch to a color pair if
3484 one or both of the colors are the implicit default colors. This
3485 change records the default colors when TUI is initialized, and
3486 then specifies them explicitly when a color pair uses the default
3487 colors. This allows color styling in TUI mode on MS-Windows.
3488
3489 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3490 ncurses_norm_attr.
3491 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3492 colors in ncurses_norm_attr.
3493 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3494 "none", replace it with the default color recorded in
3495 ncurses_norm_attr.
3496
3b336828
TT
34972019-03-14 Tom Tromey <tromey@adacore.com>
3498
3499 * source-cache.h (class source_cache) <get_source_lines>: Return
3500 std::string.
3501 * source-cache.c (source_cache::extract_lines): Handle case where
3502 first_pos==npos. Return std::string.
3503 (source_cache::get_source_lines): Update.
3504
d085f989
TT
35052019-03-14 Tom Tromey <tromey@adacore.com>
3506
3507 * NEWS: Add item for "style sources" commands.
3508 * source-cache.c (source_cache::get_source_lines): Check
3509 source_styling.
3510 * cli/cli-style.c (source_styling): New global.
3511 (_initialize_cli_style): Add "style sources" commands.
3512 (show_style_sources): New function.
3513 * cli/cli-style.h (source_styling): Declare.
3514
6f11e682
TT
35152019-03-14 Pedro Alves <palves@redhat.com>
3516 Tom Tromey <tromey@adacore.com>
3517
3518 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3519 * tui/tui-winsource.c (tui_refill_source_window): New function,
3520 from...
3521 (tui_horizontal_source_scroll): ... here. Move some logic.
3522 * cli/cli-style.c (set_style_enabled): Notify new observable.
3523 * tui/tui-hooks.c (tui_redisplay_source): New function.
3524 (tui_attach_detach_observers): Attach or detach
3525 tui_redisplay_source.
3526 * observable.h (source_styling_changed): New observable.
3527 * observable.c: Define source_styling_changed observable.
3528
a068643d
TT
35292019-03-13 Tom Tromey <tromey@adacore.com>
3530
3531 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3532 (i386_gnu_nat_target::store_registers): Update.
3533 * target-debug.h (target_debug_print_std_string): New macro.
3534 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3535 * windows-tdep.c (display_one_tib): Update.
3536 * tui/tui-stack.c (tui_make_status_line): Update.
3537 * top.c (print_inferior_quit_action): Update.
3538 * thread.c (thr_try_catch_cmd): Update.
3539 (add_thread_with_info): Update.
3540 (thread_target_id_str): Update.
3541 (thr_try_catch_cmd): Update.
3542 (thread_command): Update.
3543 (thread_find_command): Update.
3544 * record-btrace.c (record_btrace_target::info_record)
3545 (record_btrace_resume_thread, record_btrace_target::resume)
3546 (record_btrace_cancel_resume, record_btrace_step_thread)
3547 (record_btrace_target::wait, record_btrace_target::wait)
3548 (record_btrace_target::wait, record_btrace_target::stop): Update.
3549 * progspace.c (print_program_space): Update.
3550 * process-stratum-target.c
3551 (process_stratum_target::thread_address_space): Update.
3552 * linux-fork.c (linux_fork_mourn_inferior)
3553 (detach_checkpoint_command, info_checkpoints_command)
3554 (linux_fork_context): Update.
3555 (linux_fork_detach): Update.
3556 (class scoped_switch_fork_info): Update.
3557 (delete_checkpoint_command): Update.
3558 * infrun.c (follow_fork_inferior): Update.
3559 (follow_fork_inferior): Update.
3560 (proceed_after_vfork_done): Update.
3561 (handle_vfork_child_exec_or_exit): Update.
3562 (follow_exec): Update.
3563 (displaced_step_prepare_throw): Update.
3564 (displaced_step_restore): Update.
3565 (start_step_over): Update.
3566 (resume_1): Update.
3567 (clear_proceed_status_thread): Update.
3568 (proceed): Update.
3569 (print_target_wait_results): Update.
3570 (do_target_wait): Update.
3571 (context_switch): Update.
3572 (stop_all_threads): Update.
3573 (restart_threads): Update.
3574 (finish_step_over): Update.
3575 (handle_signal_stop): Update.
3576 (switch_back_to_stepped_thread): Update.
3577 (keep_going_pass_signal): Update.
3578 (print_exited_reason): Update.
3579 (normal_stop): Update.
3580 * inferior.c (inferior_pid_to_str): Change return type.
3581 (print_selected_inferior): Update.
3582 (add_inferior): Update.
3583 (detach_inferior): Update.
3584 * dummy-frame.c (fprint_dummy_frames): Update.
3585 * dcache.c (dcache_info_1): Update.
3586 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3587 (btrace_fetch, btrace_clear): Update.
3588 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3589 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3590 type.
3591 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3592 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3593 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3594 * gdbarch.c, gdbarch.h: Rebuild.
3595 * gdbarch.sh (core_pid_to_str): Change return type.
3596 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3597 return type.
3598 (windows_nat_target::pid_to_str): Change return type.
3599 (windows_delete_thread): Update.
3600 (windows_nat_target::attach): Update.
3601 (windows_nat_target::files_info): Update.
3602 * target-delegates.c: Rebuild.
3603 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3604 return type.
3605 (sol_thread_target::pid_to_str): Change return type.
3606 * remote.c (class remote_target) <pid_to_str>: Change return
3607 type.
3608 (remote_target::pid_to_str): Change return type.
3609 (extended_remote_target::attach, remote_target::remote_stop_ns)
3610 (remote_target::remote_notif_remove_queued_reply)
3611 (remote_target::push_stop_reply, remote_target::disable_btrace):
3612 Update.
3613 (extended_remote_target::attach): Update.
3614 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3615 type.
3616 (gdbsim_target::pid_to_str): Change return type.
3617 * ravenscar-thread.c (struct ravenscar_thread_target)
3618 <pid_to_str>: Change return type.
3619 (ravenscar_thread_target::pid_to_str): Change return type.
3620 * procfs.c (class procfs_target) <pid_to_str>: Change return
3621 type.
3622 (procfs_target::pid_to_str): Change return type.
3623 (procfs_target::attach): Update.
3624 (procfs_target::detach): Update.
3625 (procfs_target::fetch_registers): Update.
3626 (procfs_target::store_registers): Update.
3627 (procfs_target::wait): Update.
3628 (procfs_target::files_info): Update.
3629 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3630 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3631 return type.
3632 (nto_procfs_target::pid_to_str): Change return type.
3633 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3634 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3635 return type.
3636 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3637 (exit_lwp): Update.
3638 (attach_proc_task_lwp_callback, get_detach_signal)
3639 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3640 (linux_nat_target::resume, wait_lwp, stop_callback)
3641 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3642 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3643 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3644 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3645 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3646 type.
3647 (inf_ptrace_target::attach): Update.
3648 (inf_ptrace_target::files_info): Update.
3649 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3650 type.
3651 (go32_nat_target::pid_to_str): Change return type.
3652 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3653 (gnu_nat_target::wait): Update.
3654 (gnu_nat_target::wait): Update.
3655 (gnu_nat_target::resume): Update.
3656 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3657 (fbsd_nat_target::wait): Update.
3658 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3659 type.
3660 (darwin_nat_target::attach): Update.
3661 * corelow.c (class core_target) <pid_to_str>: Change return type.
3662 (core_target::pid_to_str): Change return type.
3663 * target.c (normal_pid_to_str): Change return type.
3664 (default_pid_to_str): Likewise.
3665 (target_pid_to_str): Change return type.
3666 (target_translate_tls_address): Update.
3667 (target_announce_detach): Update.
3668 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3669 return type.
3670 (bsd_uthread_target::pid_to_str): Change return type.
3671 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3672 type.
3673 (bsd_kvm_target::pid_to_str): Change return type.
3674 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3675 return type.
3676 (aix_thread_target::pid_to_str): Change return type.
3677 * target.h (struct target_ops) <pid_to_str>: Change return type.
3678 (target_pid_to_str, normal_pid_to_str): Likewise.
3679 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3680 type.
3681 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3682 type.
3683 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3684 return type.
3685 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3686 type.
3687 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3688 type.
3689 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3690 return type.
3691
b4be1b06
SM
36922019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3693
3694 * NEWS: Mention that the new default MI version is 3. Mention
3695 changes to the output of commands and events that deal with
3696 multi-location breakpoints.
3697 * breakpoint.c: Include "mi/mi-out.h".
3698 (print_one_breakpoint): Change output syntax if using MI version
3699 >= 3.
3700 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3701 New.
3702 (mi_multi_location_breakpoint_output_fixed): New.
3703 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3704 (mi_cmd_fix_multi_location_breakpoint_output): New.
3705 (mi_multi_location_breakpoint_output_fixed): New.
3706 * mi/mi-cmds.c (mi_cmds): Register command
3707 -fix-multi-location-breakpoint-output.
3708 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3709 interpreter "mi".
3710
8e5e5494
SM
37112019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3712
3713 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3714 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3715 instantiate mi_ui_out based on interpreter name.
3716 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3717 * mi/mi-main.c (mi_load_progress): Likewise.
3718
197df35e
JB
37192019-03-12 John Baldwin <jhb@FreeBSD.org>
3720
3721 * NEWS: Combine separate "New targets" sections for 8.3.
3722
8399425f
JB
37232019-03-12 John Baldwin <jhb@FreeBSD.org>
3724
3725 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3726 (ppcfbsd_init_abi): Install gdbarch
3727 "fetch_tls_load_module_address" and "get_thread_local_address"
3728 methods.
3729
b0f87ed0
JB
37302019-03-12 John Baldwin <jhb@FreeBSD.org>
3731
3732 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3733 (riscv_fbsd_init_abi): Install gdbarch
3734 "fetch_tls_load_module_address" and "get_thread_local_address"
3735 methods.
3736
ce25aa57
JB
37372019-03-12 John Baldwin <jhb@FreeBSD.org>
3738
3739 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3740 (i386fbsd_init_abi): Install gdbarch
3741 "fetch_tls_load_module_address" and "get_thread_local_address"
3742 methods.
3743
f5424cfa
JB
37442019-03-12 John Baldwin <jhb@FreeBSD.org>
3745
3746 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3747 (amd64fbsd_init_abi): Install gdbarch
3748 "fetch_tls_load_module_address" and "get_thread_local_address"
3749 methods.
3750
945f3901
JB
37512019-03-12 John Baldwin <jhb@FreeBSD.org>
3752
3753 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3754 (struct fbsd_pspace_data): New type.
3755 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3756 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3757 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3758 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3759 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3760
ef0bd204
JB
37612019-03-12 John Baldwin <jhb@FreeBSD.org>
3762
3763 * gdbtypes.c (lookup_struct_elt): New function.
3764 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3765 * gdbtypes.h (struct struct_elt): New type.
3766 (lookup_struct_elt): New prototype.
3767
36c53a02
JB
37682019-03-12 John Baldwin <jhb@FreeBSD.org>
3769
3770 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3771 remove disabled code block.
3772
6e056c81
JB
37732019-03-12 John Baldwin <jhb@FreeBSD.org>
3774
3775 * gdbarch.sh (get_thread_local_address): New method.
3776 * gdbarch.h, gdbarch.c: Regenerate.
3777 * target.c (target_translate_tls_address): Use
3778 gdbarch_get_thread_local_address if present instead of
3779 target::get_thread_local_address.
3780
cd250a18
JB
37812019-03-12 John Baldwin <jhb@FreeBSD.org>
3782
3783 * target.h (target::get_thread_local_address): Update comment.
3784
df22c1e5
JB
37852019-03-12 John Baldwin <jhb@FreeBSD.org>
3786
3787 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3788 objfile->separate_debug_objfile_backlink if not NULL.
3789
dd6876c9
JB
37902019-03-12 John Baldwin <jhb@FreeBSD.org>
3791
3792 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3793 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3794 (amd64bsd_store_inferior_registers): Likewise.
3795 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3796 Enable segment base registers.
3797 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3798 PT_GETFSBASE and PT_GETGSBASE.
3799 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3800 PT_SETGSBASE.
3801 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3802 segment base registers.
3803 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3804
1163a4b7
JB
38052019-03-12 John Baldwin <jhb@FreeBSD.org>
3806
3807 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3808 Update calls to i386_target_description to add 'segments'
3809 parameter.
3810 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3811 add segment base registers.
3812 * arch/i386.c (i386_create_target_description): Add 'segments'
3813 parameter to enable segment base registers.
3814 * arch/i386.h (i386_create_target_description): Likewise.
3815 * features/i386/32bit-segments.xml: New file.
3816 * features/i386/32bit-segments.c: Generate.
3817 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3818 call to i386_target_description to add 'segments' parameter.
3819 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3820 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3821 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3822 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3823 if feature is present.
3824 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3825 Add 'segments' parameter to call to i386_target_description.
3826 (i386_target_description): Add 'segments' parameter to enable
3827 segment base registers.
3828 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3829 to call to i386_target_description.
3830 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3831 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3832 Define I386_NUM_REGS.
3833 (i386_target_description): Add 'segments' parameter to enable
3834 segment base registers.
3835
3a350822
EZ
38362019-03-12 Eli Zaretskii <eliz@gnu.org>
3837
3838 PR/24325
3839 * source-cache.c: #undef open and close, to avoid unresolved
3840 externals during linking.
3841
ffdd69cf
TT
38422019-03-12 Tom Tromey <tromey@adacore.com>
3843
3844 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3845 const. Add initializers.
3846 (_initialize_remote): Don't initialize ptid globals.
3847
ec148c57
PA
38482019-03-12 Pedro Alves <palves@redhat.com>
3849
3850 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3851
32764270
PA
38522019-03-12 Pedro Alves <palves@redhat.com>
3853
3854 * cp-name-parser.y (main): Remove unused 'len' variable.
3855
17547186
TT
38562019-03-12 Tom Tromey <tromey@adacore.com>
3857
3858 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3859 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3860
d3a70e03
TT
38612019-03-12 Tom Tromey <tromey@adacore.com>
3862
3863 * linux-nat.c (iterate_over_lwps): Update.
3864 (stop_callback): Remove parameter.
3865 (stop_wait_callback, detach_callback, resume_set_callback)
3866 (select_singlestep_lwp_callback, set_ignore_sigint)
3867 (status_callback, resumed_callback, resume_clear_callback)
3868 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3869 data parameter.
3870 (linux_nat_target::detach, linux_nat_target::resume)
3871 (linux_stop_and_wait_all_lwps, select_event_lwp)
3872 (linux_nat_filter_event, linux_nat_wait_1)
3873 (linux_nat_target::kill, linux_nat_target::stop)
3874 (linux_nat_target::stop): Update.
3875 (linux_nat_resume_callback): Change type.
3876 (resume_stopped_resumed_lwps, count_events_callback)
3877 (select_event_lwp_callback): Likewise.
3878 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3879 * arm-linux-nat.c (struct update_registers_data): Remove.
3880 (update_registers_callback): Change type.
3881 (arm_linux_insert_hw_breakpoint1): Update.
3882 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
3883 parameter.
3884 (x86_linux_dr_set_addr): Update.
3885 (x86_linux_dr_set_control): Update.
3886 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
3887 (iterate_over_lwps): Use gdb::function_view.
3888 * nat/aarch64-linux-hw-point.c (struct
3889 aarch64_dr_update_callback_param): Remove.
3890 (debug_reg_change_callback): Change type.
3891 (aarch64_notify_debug_reg_change): Update.
3892 * s390-linux-nat.c (s390_refresh_per_info): Update.
3893
82cb27ff
TT
38942019-03-11 Tom Tromey <tromey@adacore.com>
3895
3896 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3897 redundant assignment to "this_cu".
3898
568c0683
SM
38992019-03-08 Simon Marchi <simon.marchi@efficios.com>
3900
3901 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3902
f09ce22d
SM
39032019-03-08 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3906 from...
3907 (rank_one_type): ... this.
3908
595f96a9
SM
39092019-03-08 Simon Marchi <simon.marchi@efficios.com>
3910
3911 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3912 from...
3913 (rank_one_type): ... this.
3914
2598a94b
SM
39152019-03-08 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3918 from...
3919 (rank_one_type): ... this.
3920
7f17b20d
SM
39212019-03-08 Simon Marchi <simon.marchi@efficios.com>
3922
3923 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3924 from...
3925 (rank_one_type): ... this.
3926
2c509035
SM
39272019-03-08 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3930 from...
3931 (rank_one_type): ... this.
3932
0dd322dc
SM
39332019-03-08 Simon Marchi <simon.marchi@efficios.com>
3934
3935 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3936 from...
3937 (rank_one_type): ... this.
3938
41ea4728
SM
39392019-03-08 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3942 from...
3943 (rank_one_type): ... this.
3944
793cd1d2
SM
39452019-03-08 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3948 from...
3949 (rank_one_type): ... this.
3950
34910087
SM
39512019-03-08 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3954 from...
3955 (rank_one_type): ... this.
3956
f1f832d6
SM
39572019-03-08 Simon Marchi <simon.marchi@efficios.com>
3958
3959 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3960 from...
3961 (rank_one_type): ... this.
3962
b9f4512f
SM
39632019-03-08 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3966 from...
3967 (rank_one_type): ... this.
3968
9293fc63
SM
39692019-03-08 Simon Marchi <simon.marchi@efficios.com>
3970
3971 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3972 from...
3973 (rank_one_type): ... this.
3974
e3abbe7e
PW
39752019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3976
3977 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3978 inferior-events' shows the example events.
3979
e4adb939
EZ
39802019-03-08 Eli Zaretskii <eliz@gnu.org>
3981
3982 Support styling on native MS-Windows console
3983
3984 PR/24315
3985 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3986 on MS-Windows if $TERM is not defined.
3987
3988 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3989
3990 * posix-hdep.c (gdb_console_fputs):
3991 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3992 functions.
3993 * ui-file.h (gdb_console_fputs): Add prototype.
3994
3995 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3996 back to fputs only if the former returns zero.
3997
25629dfd
TT
39982019-03-07 Tom Tromey <tom@tromey.com>
3999
4000 * symmisc.c (print_symbol_bcache_statistics): Update.
4001 (print_objfile_statistics): Update.
4002 * symfile.c (allocate_symtab): Update.
4003 * stabsread.c: Don't include bcache.h.
4004 * psymtab.h (struct psymbol_bcache): Don't declare.
4005 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4006 (psymbol_bcache_init, psymbol_bcache_free)
4007 (psymbol_bcache_get_bcache): Don't declare.
4008 * psymtab.c (struct psymbol_bcache): Remove.
4009 (psymtab_storage::psymtab_storage): Update.
4010 (psymtab_storage::~psymtab_storage): Update.
4011 (psymbol_bcache_init, psymbol_bcache_free)
4012 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4013 (add_psymbol_to_bcache): Update.
4014 (allocate_psymtab): Update.
4015 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4016 macro_cache>: No longer pointers.
4017 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4018 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4019 * macrotab.c (macro_bcache): Update.
4020 * macroexp.c: Don't include bcache.h.
4021 * gdbtypes.c (check_types_worklist): Update.
4022 (types_deeply_equal): Remove TRY/CATCH. Update.
4023 * elfread.c (elf_symtab_read): Update.
4024 * dwarf2read.c: Don't include bcache.h.
4025 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4026 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4027 (print_bcache_statistics, bcache_memory_used): Don't declare.
4028 (struct bcache): Move from bcache.c. Add constructor, destructor,
4029 methods. Rename all data members.
4030 * bcache.c (struct bcache): Move to bcache.h.
4031 (bcache::expand_hash_table): Rename from expand_hash_table.
4032 (bcache): Remove.
4033 (bcache::insert): Rename from bcache_full.
4034 (bcache::compare): Rename from bcache_compare.
4035 (bcache_xmalloc): Remove.
4036 (bcache::~bcache): Rename from bcache_xfree.
4037 (bcache::print_statistics): Rename from print_bcache_statistics.
4038 (bcache::memory_used): Rename from bcache_memory_used.
4039
fe726667
PA
40402019-03-07 Pedro Alves <palves@redhat.com>
4041
4042 * infrun.c (normal_stop): Also check for
4043 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4044
7584bb30
AB
40452019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4046
4047 * f-lang.c (value_from_host_double): Moved to...
4048 * value.c (value_from_host_double): ...here.
4049 * value.h (value_from_host_double): Declare.
4050 * guile/scm-math.c (vlscm_convert_typed_number): Use
4051 value_from_host_double.
4052 (vlscm_convert_number): Likewise.
4053 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4054 * python/py-value.c (convert_value_from_python): Likewise.
4055
a7b1986e
TT
40562019-03-06 Tom Tromey <tom@tromey.com>
4057
4058 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4059
0ccf4211
TT
40602019-03-06 Tom Tromey <tom@tromey.com>
4061
4062 * utils.h (free_current_contents): Don't declare.
4063 * utils.c (free_current_contents): Remove.
4064
fe7b42e5
TT
40652019-03-06 Tom Tromey <tom@tromey.com>
4066
4067 * top.c (quit_force): Update.
4068 * main.c (captured_command_loop): Update.
4069 * common/new-op.c (operator new): Update.
4070 * common/common-exceptions.c (struct catcher)
4071 <save_cleanup_chain>: Remove member.
4072 (exceptions_state_mc_init): Update.
4073 (exception_try_scope_entry): Return nullptr.
4074 (exception_try_scope_exit, exception_rethrow)
4075 (throw_exception_sjlj, throw_exception_cxx): Update.
4076 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4077 (all_cleanups, do_cleanups, discard_cleanups)
4078 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4079 (restore_cleanups, restore_final_cleanups): Don't declare.
4080 (do_final_cleanups): Remove parameter.
4081 * common/cleanups.c (cleanup_chain, make_cleanup)
4082 (make_cleanup_dtor, all_cleanups, do_cleanups)
4083 (discard_my_cleanups, discard_cleanups)
4084 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4085 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4086 (null_cleanup): Remove.
4087 (do_final_cleanups): Remove parameter.
4088
c6321f19
TT
40892019-03-06 Tom Tromey <tom@tromey.com>
4090
4091 * remote.c (remote_target::remote_parse_stop_reply): Use
4092 unique_xmalloc_ptr.
4093
61b30099
TT
40942019-03-06 Tom Tromey <tom@tromey.com>
4095
4096 * stabsread.c (struct stabs_field_info): Rename from field_info.
4097 <list, fnlist>: Add initializers.
4098 <obstack>: New member.
4099 (read_member_functions, read_struct_fields, read_baseclasses):
4100 Allocate on obstack. Don't use cleanups.
4101 (read_one_struct_field, read_member_functions, read_struct_fields)
4102 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4103 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4104 (read_struct_type): Update.
4105
6cceac94
TT
41062019-03-06 Tom Tromey <tom@tromey.com>
4107
4108 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4109 * common/filestuff.h (make_cleanup_close): Don't declare.
4110 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4111 Remove.
4112
72412762
TT
41132019-03-06 Tom Tromey <tom@tromey.com>
4114
4115 * solib-aix.c: Use make_scope_exit.
4116
2b6ff1c0
TT
41172019-03-06 Tom Tromey <tom@tromey.com>
4118
4119 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4120 Use make_scope_exit.
4121
d01c5877
TT
41222019-03-06 Tom Tromey <tom@tromey.com>
4123
4124 * solib-svr4.c (disable_probes_interface): Remove parameter.
4125 (svr4_handle_solib_event): Use make_scope_exit.
4126
32603266
TT
41272019-03-06 Tom Tromey <tom@tromey.com>
4128
4129 * remote.c (struct stop_reply_deleter): Remove.
4130 (stop_reply_up): Update.
4131 (struct stop_reply): Derive from notif_event. Don't typedef.
4132 <regcache>: Now a std::vector.
4133 (stop_reply_xfree): Remove.
4134 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4135 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4136 (remote_target::discard_pending_stop_replies): Use delete.
4137 (remote_target::remote_parse_stop_reply): Update.
4138 (remote_target::process_stop_reply): Update.
4139 * remote-notif.h (struct notif_event): Add virtual destructor.
4140 Remove "dtr" member.
4141 (struct notif_client) <alloc_event>: Return a unique_ptr.
4142 (notif_event_xfree): Don't declare.
4143 (notif_event_up): New typedef.
4144 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4145 (notif_event_xfree, do_notif_event_xfree): Remove.
4146 (remote_notif_state_xfree): Update.
4147
9799571e
TT
41482019-03-06 Tom Tromey <tom@tromey.com>
4149
4150 * infrun.c (displaced_step_clear_cleanup): Now a
4151 forward_scope_exit type.
4152 (displaced_step_prepare_throw): Update.
4153 (displaced_step_fixup): Update.
4154
09e3c4ca
TT
41552019-03-06 Tom Tromey <tom@tromey.com>
4156
4157 * inferior.h (class inferior): Update comment.
4158 * gdbthread.h (class thread_info): Update comment.
4159
e2a03548
TT
41602019-03-06 Joel Brobecker <brobecker@adacore.com>
4161 Tom Tromey <tom@tromey.com>
4162
4163 * stabsread.h (struct stab_section_list): Remove.
4164 (coffstab_build_psymtabs): Update.
4165 * dbxread.c (symbuf_sections): Now a std::vector.
4166 (sect_idx): New global.
4167 (fill_symbuf): Update.
4168 (coffstab_build_psymtabs): Change type of stabsects parameter.
4169 Update.
4170 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4171 std::vector.
4172 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4173 (coff_locate_sections): Update.
4174 (coff_symfile_read): Remove cleanups. Update.
4175 (init_stringtab): Add storage parameter.
4176 (free_stringtab, free_stringtab_cleanup): Remove.
4177 (init_lineno): Add storage parameter.
4178 (free_linetab, free_linetab_cleanup): Remove.
4179
b7e60d85
PA
41802019-03-06 Pedro Alves <palves@redhat.com>
4181
4182 * linux-fork.c (fork_info::clobber_regs): Delete.
4183 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4184 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4185 comment. Adjust.
4186 (scoped_switch_fork_info::scoped_switch_fork_info)
4187 (checkpoint_command, linux_fork_context): Adjust
4188 fork_save_infrun_state calls.
4189
e52c971f
PA
41902019-03-06 Pedro Alves <palves@redhat.com>
4191
4192 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4193 (inf_has_multiple_threads): Return 'bool' and rewrite using
4194 inferior_info::threads().
4195
06974e6c
PA
41962019-03-06 Pedro Alves <palves@redhat.com>
4197
4198 * linux-fork.c: Include <list>.
4199 (fork_list): Now a std::list instance.
4200 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4201 (forks_exist_p, find_last_fork): Adjust.
4202 (new_fork): Delete.
4203 (one_fork_p): New.
4204 (add_fork): Adjust.
4205 (free_fork): Delete, folded into fork_info::~fork_info().
4206 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4207 Adjust.
4208 (init_fork_list): Delete.
4209 (linux_fork_killall, linux_fork_mourn_inferior)
4210 (linux_fork_detach, info_checkpoints_command): Adjust.
4211 (_initialize_linux_fork): No longer call init_fork_list.
4212
72f31aea
PA
42132019-03-06 Pedro Alves <palves@redhat.com>
4214
4215 * linux-fork.c (new_fork): New, split out of ...
4216 (add_fork): ... this. Return void. Move "first fork" special
4217 case from here, to ...
4218 (checkpoint_command): ... here.
4219 * linux-linux.h (add_fork): Return void.
4220
efbecbc1
AB
42212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4222
4223 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4224
0841c79a
AB
42252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4226 Chris January <chris.january@arm.com>
4227 David Lecomber <david.lecomber@arm.com>
4228
4229 * f-exp.y: New token, UNOP_INTRINSIC.
4230 (exp): New pattern using UNOP_INTRINSIC token.
4231 (f77_keywords): Add 'abs' keyword.
4232 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4233 (value_from_host_double): New function.
4234 (evaluate_subexp_f): Support UNOP_ABS.
4235
4a270568
AB
42362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4237
4238 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4239 types.
4240
067630bd
AB
42412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4242
4243 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4244 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4245 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4246
3be47f7a
AB
42472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4248
4249 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4250
4d00f5d8
AB
42512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4252 Chris January <chris.january@arm.com>
4253
4254 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4255 * f-exp.y: Define 'KIND' token.
4256 (exp): New pattern for KIND expressions.
4257 (ptype): Handle types with a kind extension.
4258 (direct_abs_decl): Extend to spot kind extensions.
4259 (f77_keywords): Add 'kind' to the list.
4260 (push_kind_type): New function.
4261 (convert_to_kind_type): New function.
4262 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4263 * parse.c (operator_length_standard): Likewise.
4264 * parser-defs.h (enum type_pieces): Add tp_kind.
4265 * std-operator.def: Add UNOP_KIND.
4266
e454224f
AB
42672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4268
4269 * f-exp.y (f_parse): Set yydebug.
4270
9dad4a58
AB
42712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4272
4273 * f-lang.c (evaluate_subexp_f): New function.
4274 (exp_descriptor_f): New global.
4275 (f_language_defn): Use exp_descriptor_f instead of
4276 exp_descriptor_standard.
4277
c8f91604
AB
42782019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4279
4280 * f-exp.y (struct token): Add comments.
4281 (dot_ops): Remove uppercase versions and the end marker.
4282 (f77_keywords): Likewise.
4283 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4284 entries in the dot_ops array are case insensitive, and use
4285 strncasecmp to compare strings. Also some whitespace cleanup in
4286 this area. Similar for the f77_keywords array, except entries in
4287 this list might be case sensitive.
4288
dd9f2c76
AB
42892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4290
4291 * f-exp.y (struct f77_boolean_val): Add comments.
4292 (boolean_values): Remove uppercase versions, and end marker.
4293 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4294 and use strncasecmp to achieve case insensitivity. Additionally,
4295 perform whitespace cleanup around this code.
4296
67a3048c
TT
42972019-03-06 Tom Tromey <tromey@adacore.com>
4298
4299 * remote-sim.c (gdbsim_target_open): Use result of
4300 gdb_argv::release.
4301
aa3cfbda
RB
43022019-03-06 Richard Bunt <richard.bunt@arm.com>
4303 Dirk Schubert <dirk.schubert@arm.com>
4304 Chris January <chris.january@arm.com>
4305
4306 * eval.c (evaluate_subexp_standard): Call Fortran argument
4307 wrapping logic.
4308 * f-lang.c (struct value): A value which can be passed into a
4309 Fortran function call.
4310 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4311 where appropriate.
4312 (struct type): Value ready for a Fortran function call.
4313 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4314 is needed.
4315 * f-lang.h (fortran_argument_convert): Declaration.
4316 (fortran_preserve_arg_pointer): Declaration.
4317 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4318
ea38e5df
TT
43192019-03-05 Tom Tromey <tromey@adacore.com>
4320
4321 * python/py-prettyprint.c (print_string_repr): Remove #if.
4322 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4323
06b5b831
TT
43242019-03-05 Tom Tromey <tromey@adacore.com>
4325
4326 * target.c (the_dummy_target): Move later. Change type to
4327 "dummy_target".
4328 (initialize_targets): Don't initialize the_dummy_target.
4329
edbd9e45
TT
43302019-03-05 Tom Tromey <tromey@adacore.com>
4331
4332 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4333 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4334
c119e040
TT
43352019-03-05 Tom Tromey <tromey@adacore.com>
4336
4337 * windows-nat.c (windows_nat_target::attach)
4338 (windows_nat_target::detach): Don't call gdb_flush.
4339 * valprint.c (generic_val_print, val_print, val_print_string):
4340 Don't call gdb_flush.
4341 * utils.c (defaulted_query): Don't call gdb_flush.
4342 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4343 * target.c (target_announce_detach): Don't call gdb_flush.
4344 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4345 * remote.c (extended_remote_target::attach): Don't call
4346 gdb_flush.
4347 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4348 * printcmd.c (do_examine): Don't call gdb_flush.
4349 (info_display_command): Don't call gdb_flush.
4350 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4351 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4352 * memattr.c (info_mem_command): Don't call gdb_flush.
4353 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4354 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4355 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4356 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4357 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4358 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4359 (gnu_nat_target::detach): Don't call gdb_flush.
4360 * f-valprint.c (f_val_print): Don't call gdb_flush.
4361 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4362 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4363 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4364 gdb_flush.
4365 * c-valprint.c (c_val_print): Don't call gdb_flush.
4366 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4367
895dafa6
TT
43682019-03-05 Tom Tromey <tromey@adacore.com>
4369
4370 * varobj.c (update_dynamic_varobj_children): Update.
4371 (install_default_visualizer): Use reset, not release.
4372 * value.c (set_internalvar): Update.
4373 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4374 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4375 ATTRIBUTE_UNUSED_RESULT.
4376
88a774b9
TT
43772019-03-05 Tom Tromey <tromey@adacore.com>
4378
4379 * remote.c (class scoped_remote_fd) <release>: Add
4380 ATTRIBUTE_UNUSED_RESULT.
4381
4e4a8b93
TT
43822019-03-05 Tom Tromey <tromey@adacore.com>
4383
4384 * macroexp.c (struct macro_buffer) <release>: Add
4385 ATTRIBUTE_UNUSED_RESULT.
4386
083eef1f
TT
43872019-03-05 Tom Tromey <tromey@adacore.com>
4388
4389 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4390 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4391 ATTRIBUTE_UNUSED_RESULT.
4392
3cabd438
TT
43932019-03-05 Tom Tromey <tromey@adacore.com>
4394
4395 * common/scoped_fd.h (class scoped_fd) <release>: Add
4396 ATTRIBUTE_UNUSED_RESULT.
4397
41e3300a
TT
43982019-03-05 Tom Tromey <tromey@adacore.com>
4399
4400 * parser-defs.h (struct parser_state) <release>: Add
4401 ATTRIBUTE_UNUSED_RESULT.
4402
18cb7c9f
TT
44032019-03-05 Tom Tromey <tromey@adacore.com>
4404
4405 * utils.h (class gdb_argv) <release>: Add
4406 ATTRIBUTE_UNUSED_RESULT.
4407 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4408
41fa577f
EZ
44092019-03-02 Eli Zaretskii <eliz@gnu.org>
4410
a6a4b2c6
EZ
4411 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4412 for-loop range, to avoid compiler warnings.
4413
4414 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4415 avoid compiler warnings about unused variables.
4416
742a7df5
EZ
4417 * NEWS: Mention end of support for native debugging on MS-Windows
4418 before XP.
4419
41fa577f
EZ
4420 PR gdb/24292
4421 * common/netstuff.c:
4422 * gdbserver/gdbreplay.c
4423 * gdbserver/remote-utils.c:
4424 * ser-tcp.c:
4425 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4426 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4427 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4428 'getaddrinfo' and 'freeaddrinfo' were not available before
4429 Windows XP, and mingw.org's MinGW headers by default define
4430 _WIN32_WINNT to 0x500.
4431
827f438f
GB
44322019-03-01 Gary Benson <gbenson@redhat.com>
4433
4434 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4435
92137da0
RO
44362019-02-28 Brian Vandenberg <phantall@gmail.com>
4437 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4438
4439 PR gdb/8527
4440 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4441 set_sigint_trap, clear_sigint_trap.
4442
799efbe8
PW
44432019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4444
4445 * target.c (target_detach): Clear the regcache and the
4446 frame cache.
4447
8ed25214
PA
44482019-02-27 Pedro Alves <palves@redhat.com>
4449
4450 * utils.c (set_screen_size): When we cap the height/width sizes,
4451 tweak the corresponding command variable to show "unlimited":
4452
23031e31
SJ
44532019-02-27 Saagar Jha <saagar@saagarjha.com>
4454 Pedro Alves <palves@redhat.com>
4455
4456 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4457 before calling rl_set_screen_size.
4458
6c28e44a
TT
44592019-02-27 Tom Tromey <tromey@adacore.com>
4460
4461 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4462 define.
4463 * python/py-value.c: Remove Python 2.4 workaround.
4464 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4465 workaround.
4466 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4467 Python 2.4 workaround.
4468 * python/python-internal.h: Remove Python 2.4 comment.
4469 (Py_ssize_t): Don't define.
4470 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4471 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4472 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4473 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4474 * python/python.c (do_start_initialization): Remove Python 2.4
4475 workaround.
4476 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4477 (print_children): Remove Python 2.4 workaround.
4478 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4479 workaround.
4480 (CHARBUFFERPROC_NAME): Remove.
4481 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4482 Python 2.4 workaround.
4483
2c3fc25d 44842019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 4485
2c3fc25d
KB
4486 * NEWS: Note minimum Python version.
4487
6ca62222
KB
44882019-02-27 Kevin Buettner <kevinb@redhat.com>
4489
4490 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4491 code from these functions. Remove corresponding ifdefs. Use
4492 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4493 Remove gotos and target of gotos.
4494 (infpy_search_memory): Likewise.
4495
f4bc7d2c
AB
44962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4499 (hppa_gdbarch_init): Don't register deleted functions with
4500 gdbarch.
4501
9734a586
AB
45022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4503
4504 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4505 (h8300_unwind_sp): Delete.
4506 (h8300_dummy_id): Delete.
4507 (h8300_gdbarch_init): Don't register deleted functions with
4508 gdbarch.
4509
68b867f3
AB
45102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4511
4512 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4513 (ft32_unwind_pc): Delete.
4514 (ft32_unwind_sp): Delete.
4515 (ft32_gdbarch_init): Don't register deleted functions with
4516 gdbarch.
4517
2fbe7ad0
AB
45182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4519
4520 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4521 (frv_unwind_pc): Delete.
4522 (frv_unwind_sp): Delete.
4523 (frv_gdbarch_init): Don't register deleted functions with
4524 gdbarch.
4525
76055cbe
AB
45262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4527
4528 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4529 (riscv_unwind_pc): Delete.
4530 (riscv_unwind_sp): Delete.
4531 (riscv_gdbarch_init): Don't register deleted functions with
4532 gdbarch.
4533
4133e5a1
AB
45342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4535
4536 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4537 (csky_unwind_pc): Delete.
4538 (csky_unwind_sp): Delete.
4539 (csky_gdbarch_init): Don't register deleted functions with
4540 gdbarch.
4541
8010f576
AB
45422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4545 (cris_unwind_pc): Delete.
4546 (cris_unwind_sp): Delete.
4547 (cris_gdbarch_init): Don't register deleted functions with
4548 gdbarch.
4549
b56bf084
AB
45502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4551
4552 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4553 (bfin_unwind_pc): Delete.
4554 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4555
a19a650f
AB
45562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4557
4558 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4559 (arm_unwind_pc): Delete.
4560 (arm_unwind_sp): Delete.
4561 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4562
f8278c3c
AB
45632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4566 (arc_unwind_pc): Delete.
4567 (arc_unwind_sp): Delete.
4568 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4569
480e46cf
AB
45702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4571
4572 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4573 (alpha_unwind_pc): Delete.
4574 (alpha_gdbarch_init): Don't register deleted functions with
4575 gdbarch.
4576
7a995095
AB
45772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4578
4579 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4580 (aarch64_unwind_pc): Delete.
4581 (aarch64_unwind_sp): Delete.
4582 (aarch64_gdbarch_init): Don't register deleted functions with
4583 gdbarch.
4584
bf9a735e
AB
45852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4586
4587 * gdbtypes.c (type_align): Don't consider static members when
4588 computing structure alignment.
4589
5561fc30
AB
45902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4591
4592 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4593 return 0 for other types.
4594 * arch-utils.c (default_type_align): Always return 0.
4595 * gdbarch.h: Regenerate.
4596 * gdbarch.sh (type_align): Extend comment.
4597 * gdbtypes.c (type_align): Add additional comments, always call
4598 gdbarch_type_align before applying the default rules.
4599 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4600 generic code will then apply a suitable default.
4601 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4602 types, return 0 for other types.
4603
9335e75a
JB
46042019-02-27 Joel Brobecker <brobecker@adacore.com>
4605
4606 * NEWS: Create a new section for the next release branch.
4607 Rename the section of the current branch, now that it has
4608 been cut.
4609
3d34d8de
JB
46102019-02-27 Joel Brobecker <brobecker@adacore.com>
4611
4612 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4613 * version.in: Bump version to 8.3.50.DATE-git.
4614
143420fb
SM
46152019-02-26 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * aix-thread.c (ptid_cmp): Remove unused variable.
4618 (get_signaled_thread): Likewise.
4619 (store_regs_user_thread): Likewise.
4620 (store_regs_kernel_thread): Likewise.
4621 (fetch_regs_kernel_thread): Remove shadowed variable.
4622
172fb711
AB
46232019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 * features/riscv/32bit-cpu.xml: Add register numbers.
4626 * features/riscv/32bit-fpu.c: Regenerate.
4627 * features/riscv/32bit-fpu.xml: Add register numbers.
4628 * features/riscv/64bit-cpu.xml: Add register numbers.
4629 * features/riscv/64bit-fpu.c: Regenerate.
4630 * features/riscv/64bit-fpu.xml: Add register numbers.
4631
26c89782
KB
46322019-02-26 Kevin Buettner <kevinb@redhat.com>
4633
af54ade9 4634 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
4635 * python/py-value.c (convert_buffer_and_type_to_value): New
4636 function.
4637 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4638 Add support for handling an optional second argument. Call
4639 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
4640 * python/python-internal.h (Py_buffer_deleter): New struct.
4641 (Py_buffer_up): New typedef.
4642
0f58c9e8
JB
46432019-02-25 John Baldwin <jhb@FreeBSD.org>
4644
4645 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4646 instead of releasing ownership.
4647
0a0f4c01
JR
46482019-02-25 Jordan Rupprecht <rupprecht@google.com>
4649
4650 * dwarf2read.c (open_and_init_dwp_file): Call
4651 elf_numsections instead of bfd_count_sections to initialize
4652 dwp_file->num_sections.
4653
cd5a152c
TT
46542019-02-25 Tom Tromey <tromey@adacore.com>
4655
4656 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4657
8a6a8513
SDJ
46582019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4659
4660 * gcore.in: Add '--readnever' option when invoking GDB.
4661
04dcda9c
SM
46622019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4663
4664 * MAINTAINERS: Update my email address.
4665
07bc701d
SM
46662019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * build-id.c (build_id_to_debug_bfd_1): New function.
4669 (build_id_to_debug_bfd): Look for separate debug file in
4670 sysroot.
4671
c6f4a5d0
AB
46722019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * gdbarch.sh: Update the copyright year range that is placed into
4675 generated files.
4676
9600246d
KS
46772019-02-22 Keith Seitz <keiths@redhat.com>
4678
4679 PR symtab/23853
4680 * linespec.c (create_sals_line_offset): Search for the default
4681 symtab's filename instead of its fullname.
4682
7557a514
AH
46832019-02-21 Alan Hayward <alan.hayward@arm.com>
4684
4685 * NEWS: Update style defaults.
4686
ee2bcb0c
AH
46872019-02-21 Alan Hayward <alan.hayward@arm.com>
4688
4689 * main.c (captured_main_1): Disable styling in batch mode.
4690
0c95f9ed
TT
46912019-02-20 Tom Tromey <tom@tromey.com>
4692
4693 * symtab.c (symtab_symbol_info): Fix typos.
4694
c763b894
TT
46952019-02-20 Tom Tromey <tromey@adacore.com>
4696
4697 * findcmd.c (_initialize_mem_search): Use upper case for
4698 metasyntactic variables.
4699
0ef8a082
AH
47002019-02-20 Alan Hayward <alan.hayward@arm.com>
4701
4702 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4703 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4704
6caa91b6
SM
47052019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4706
4707 * top.h (source_file_name): Change to std::string.
4708 * top.c (source_file_name): Likewise.
4709 (command_line_input): Adjust.
4710 * cli/cli-script.c (script_from_file): Adjust.
4711
98814c6c
TT
47122019-02-19 Tom Tromey <tromey@adacore.com>
4713
4714 * ravenscar-thread.c
4715 (ravenscar_thread_target::update_thread_list): Don't call
4716 ada_build_task_list.
4717 * ada-lang.h (ada_build_task_list): Don't declare.
4718 * ada-tasks.c (struct ada_tasks_inferior_data)
4719 <task_list_valid_p>: Now bool.
4720 (read_known_tasks, ada_task_list_changed)
4721 (ada_tasks_invalidate_inferior_data): Update.
4722 (read_known_tasks_array): Return bool.
4723 (read_known_tasks_list): Likewise.
4724 (read_known_tasks): Return void.
4725 (ada_build_task_list): Now static.
4726
70cd633e
AB
47272019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4728
4729 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4730 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4731
040b3e95
PW
47322019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4733
4734 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4735 variant for ada_tasks_pspace_data_handle and
4736 ada_tasks_inferior_data_handle.
4737 (ada_tasks_pspace_data_cleanup): New function.
4738 (ada_tasks_inferior_data_cleanup): New function.
4739
9409233b
TT
47402019-02-17 Tom Tromey <tom@tromey.com>
4741
4742 * macrotab.h (macro_source_fullname): Return a std::string.
4743 * macrotab.c (macro_include, check_for_redefinition)
4744 (macro_undef, macro_lookup_definition, foreach_macro)
4745 (foreach_macro_in_scope): Update.
4746 (macro_source_fullname): Return a std::string.
4747 * macrocmd.c (show_pp_source_pos): Update.
4748
6506371f
TT
47492019-02-17 Tom Tromey <tom@tromey.com>
4750
4751 * macrocmd.c (show_pp_source_pos): Style the file names.
4752
0c820d67
TT
47532019-02-17 Tom Tromey <tom@tromey.com>
4754
4755 PR tui/24197:
4756 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4757
a0087920
TT
47582019-02-17 Tom Tromey <tom@tromey.com>
4759
4760 * ada-lang.c (user_select_syms): Use filtered printing.
4761 * utils.c (wrap_style): New global.
4762 (desired_style): Remove.
4763 (emit_style_escape): Add stream parameter.
4764 (set_output_style, reset_terminal_style, prompt_for_continue):
4765 Update.
4766 (flush_wrap_buffer): Only flush gdb_stdout.
4767 (wrap_here): Set wrap_style.
4768 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4769 treat escape sequences as a character. Change when wrap buffer is
4770 flushed.
4771 (fputs_styled): Do not set the output style when the default is
4772 requested.
4773 * ui-style.h (struct ui_file_style) <is_default>: New method.
4774 * source.c (print_source_lines_base): Emit escape sequences in one
4775 piece.
4776
75ba10dc
JB
47772019-02-17 Joel Brobecker <brobecker@adacore.com>
4778
4779 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4780 integers and enumeration types.
4781
a2cd4f14
JB
47822019-02-17 Joel Brobecker <brobecker@adacore.com>
4783
4784 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4785 instead of lookup_symbol_in_language
4786 (do_exact_match): New function.
4787 (ada_get_symbol_name_matcher): Return do_exact_match when
4788 doing a verbatim match.
4789
485b851b
TT
47902019-02-15 Tom Tromey <tromey@adacore.com>
4791
4792 * ravenscar-thread.c (ravenscar_thread_target::resume)
4793 (ravenscar_thread_target::wait): Special case wildcard requests.
4794
0b790b1e
TT
47952019-02-15 Tom Tromey <tromey@adacore.com>
4796
4797 * ravenscar-thread.c (base_ptid): Remove.
4798 (struct ravenscar_thread_target) <close>: New method.
4799 <m_base_ptid>: New member.
4800 <update_inferior_ptid, active_task, task_is_currently_active,
4801 runtime_initialized>: Declare methods.
4802 <ravenscar_thread_target>: Add constructor.
4803 (ravenscar_thread_target::task_is_currently_active)
4804 (ravenscar_thread_target::update_inferior_ptid)
4805 (ravenscar_runtime_initialized): Rename. Now methods.
4806 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4807 (ravenscar_thread_target::update_thread_list): Update.
4808 (ravenscar_thread_target::active_task): Now method.
4809 (ravenscar_thread_target::store_registers)
4810 (ravenscar_thread_target::prepare_to_store)
4811 (ravenscar_thread_target::prepare_to_store)
4812 (ravenscar_thread_target::mourn_inferior): Update.
4813 (ravenscar_inferior_created): Use "new" to create target.
4814 (ravenscar_thread_target::get_ada_task_ptid): Update.
4815 (_initialize_ravenscar): Don't initialize base_ptid.
4816 (ravenscar_ops): Remove global.
4817
dea57a62
TT
48182019-02-15 Tom Tromey <tromey@adacore.com>
4819
4820 * target.h (push_target): Declare new overload.
4821 * target.c (push_target): New overload, taking an rvalue reference.
4822 * remote.c (remote_target::open_1): Use push_target overload.
4823 * corelow.c (core_target_open): Use push_target overload.
4824
989f3c58
TT
48252019-02-15 Tom Tromey <tromey@adacore.com>
4826
4827 * ravenscar-thread.c (is_ravenscar_task)
4828 (ravenscar_task_is_currently_active): Return bool.
4829 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4830 (_initialize_ravenscar): Remove "(void)".
4831 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4832 Return bool.
4833
6cbcc006
TT
48342019-02-15 Tom Tromey <tromey@adacore.com>
4835
4836 * ravenscar-thread.c (ravenscar_runtime_initializer)
4837 (has_ravenscar_runtime, get_running_thread_id)
4838 (ravenscar_thread_target::resume): Fix indentation.
4839
7657f14d
TT
48402019-02-15 Tom Tromey <tromey@adacore.com>
4841
4842 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4843 from ravenscar_arch_ops.
4844 (sparc_ravenscar_ops::fetch_registers)
4845 (sparc_ravenscar_ops::store_registers): Now methods.
4846 (sparc_ravenscar_prepare_to_store): Remove.
4847 (sparc_ravenscar_ops): Redefine.
4848 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4849 methods and destructor. Remove members.
4850 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4851 (ravenscar_thread_target::store_registers)
4852 (ravenscar_thread_target::prepare_to_store): Update.
4853 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4854 Remove.
4855 (struct ppc_ravenscar_powerpc_ops): Derive from
4856 ravenscar_arch_ops.
4857 (ppc_ravenscar_powerpc_ops::fetch_registers)
4858 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4859 (ppc_ravenscar_powerpc_ops): Redefine.
4860 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4861 (ppc_ravenscar_e500_ops::fetch_registers)
4862 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4863 (ppc_ravenscar_e500_ops): Redefine.
4864 * aarch64-ravenscar-thread.c
4865 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4866 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4867 (aarch64_ravenscar_fetch_registers)
4868 (aarch64_ravenscar_store_registers): Now methods.
4869 (aarch64_ravenscar_ops): Redefine.
4870
5b6ea500
TT
48712019-02-15 Tom Tromey <tromey@adacore.com>
4872
4873 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4874 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4875 (ravenscar_thread_target::stopped_by_watchpoint)
4876 (ravenscar_thread_target::stopped_data_address)
4877 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4878
e397fd39
TT
48792019-02-15 Tom Tromey <tromey@adacore.com>
4880
4881 * ravenscar-thread.c: Fix some typos.
4882
cc12f4a8
TT
48832019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4884 Tom Tromey <tromey@adacore.com>
4885
4886 * ada-lang.c (ada_exception_sal): Change addr_string to a
4887 std::string.
4888 (create_ada_exception_catchpoint): Update.
4889
5f486660
TT
48902019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4891 Tom Tromey <tromey@adacore.com>
4892
4893 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4894 (bp_location_ops): Remove.
4895 (base_breakpoint_allocate_location): Update.
4896 (free_bp_location): Update.
4897 * ada-lang.c (class ada_catchpoint_location)
4898 <ada_catchpoint_location>: Remove ops parameter.
4899 (ada_catchpoint_location_dtor): Remove.
4900 (ada_catchpoint_location_ops): Remove.
4901 (allocate_location_exception): Update.
4902 * breakpoint.h (struct bp_location_ops): Remove.
4903 (class bp_location) <bp_location>: Remove bp_location_ops
4904 parameter.
4905 <~bp_location>: Add destructor.
4906 <ops>: Remove.
4907
b671c7fb
TS
49082019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4909 Pedro Alves <palves@redhat.com>
4910
4911 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4912 'PATH_MAX'.
4913
8071c5ce
DM
49142019-02-14 David Michael <fedora.dm0@gmail.com>
4915 Samuel Thibault <samuel.thibault@gnu.org>
4916 Thomas Schwinge <thomas@codesourcery.com>
4917
4918 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4919 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4920
b1041ae0
TS
49212019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4922
924514e1
TS
4923 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4924 (check_empty): Use "const char *".
4925
c29ee8d4
TS
4926 * gnu-nat.c (gnu_nat_target::detach): Instead of
4927 'detach_inferior (pid)' call
4928 'detach_inferior (find_inferior_pid (pid))'.
4929
6c6ef69f
TS
4930 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4931 'nat/fork-inferior.o'.
4932 * gnu-nat.c: #include "nat/fork-inferior.h".
4933
2d0a338c
TS
4934 * gnu-nat.c (gnu_nat_target::detach): Instead of
4935 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4936 * gnu-nat.h: #include "inf-child.h".
4937 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4938 'i386_gnu_nat_target::fetch_registers'.
4939 (gnu_store_registers): Rename/move to
4940 'i386_gnu_nat_target::store_registers'.
4941
cabb5f06
TS
4942 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4943 * gnu-nat.h (mach_thread_info): New function.
4944 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4945
b1041ae0
TS
4946 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4947
2988d01e
KF
49482019-02-14 Frederic Konrad <konrad@adacore.com>
4949
4950 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4951
c559d709
JB
49522019-02-14 Joel Brobecker <brobecker@adacore.com>
4953
4954 * windows-nat.c (windows_add_thread): Add new parameter
4955 "main_thread_p" with default value set to false. Update
4956 function documentation as well as all callers.
4957 (windows_delete_thread): Likewise.
4958 (fake_create_process): Update call to windows_add_thread.
4959 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4960 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4961 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4962 call to windows_delete_thread.
4963
007024cc
SM
49642019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4965
4966 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4967
f62318e9
JB
49682019-02-12 John Baldwin <jhb@FreeBSD.org>
4969
4970 * symfile.c (find_separate_debug_file): Use canonical path of
4971 sysroot with child_path instead of gdb_sysroot if it is valid.
4972
cd4b7848
JB
49732019-02-12 John Baldwin <jhb@FreeBSD.org>
4974
4975 * symfile.c (find_separate_debug_file): Use child_path to
4976 determine if an object file is under a sysroot.
4977
efac4bfe
JB
49782019-02-12 John Baldwin <jhb@FreeBSD.org>
4979
4980 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4981 unittests/child-path-selftests.c.
4982 * common/pathstuff.c (child_path): New function.
4983 * common/pathstuff.h (child_path): New prototype.
4984 * unittests/child-path-selftests.c: New file.
4985
402d2bfe
JB
49862019-02-12 John Baldwin <jhb@FreeBSD.org>
4987
4988 * symfile.c (find_separate_debug_file): Look for separate debug
4989 files in debug directories under the sysroot.
4990
1ed9f74e
PW
49912019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4992
4993 * symtab.h (struct minimal_symbol data_p): New const method.
4994 (struct minimal_symbol text_p): Likewise.
4995 * symtab.c (output_source_filename): Use file name style
4996 to print file name.
4997 (print_symbol_info): Likewise.
4998 (print_msymbol_info): Use address style to print addresses.
4999 Use function name style to print executable text symbols.
5000 (expand_symtab_containing_pc): Use data_p.
5001 (find_pc_sect_compunit_symtab): Likewise.
5002
2636d81d
PW
50032019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5004
5005 * breakpoint.c (describe_other_breakpoints): Use address style
5006 to print addresses.
5007 (say_where): Likewise.
5008
ac8c53cc
PW
50092019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5010
5011 * ada-typeprint.c (print_func_type): Print function name
5012 style to print function name.
5013 * c-typeprint.c (c_print_type_1): Likewise.
5014
ea638c43
AH
50152019-02-11 Alan Hayward <alan.hayward@arm.com>
5016
5017 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5018 for execve.
5019
ab759ca8
PW
50202019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5021
5022 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5023 type_stack.
5024
aff29d1c
JB
50252019-02-10 Joel Brobecker <brobecker@adacore.com>
5026
5027 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5028 TYPE_CODE_REF types.
5029
617126bc
JW
50302019-02-08 Jim Wilson <jimw@sifive.com>
5031
5032 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5033 (riscv_linux_fregset): New.
5034 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5035
46e3ed7f
TT
50362019-02-07 Tom Tromey <tom@tromey.com>
5037
5038 * thread.c (thread_cancel_execution_command): Update.
5039 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5040 methods.
5041 (struct thread_fsm_ops): Remove.
5042 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5043 (thread_fsm_should_stop, thread_fsm_return_value)
5044 (thread_fsm_set_finished, thread_fsm_finished_p)
5045 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5046 Don't declare.
5047 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5048 * infrun.c (clear_proceed_status_thread)
5049 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5050 (print_stop_event): Update.
5051 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5052 Add constructor.
5053 (step_command_fsm_ops): Remove.
5054 (new_step_command_fsm): Remove.
5055 (step_1): Update.
5056 (step_command_fsm::should_stop): Rename from
5057 step_command_fsm_should_stop.
5058 (step_command_fsm::clean_up): Rename from
5059 step_command_fsm_clean_up.
5060 (step_command_fsm::do_async_reply_reason): Rename from
5061 step_command_fsm_async_reply_reason.
5062 (struct until_next_fsm): Inherit from thread_fsm. Add
5063 constructor.
5064 (until_next_fsm_ops): Remove.
5065 (new_until_next_fsm): Remove.
5066 (until_next_fsm::should_stop): Rename from
5067 until_next_fsm_should_stop.
5068 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5069 (until_next_fsm::do_async_reply_reason): Rename from
5070 until_next_fsm_async_reply_reason.
5071 (struct finish_command_fsm): Inherit from thread_fsm. Add
5072 constructor. Change type of breakpoint.
5073 (finish_command_fsm_ops): Remove.
5074 (new_finish_command_fsm): Remove.
5075 (finish_command_fsm::should_stop): Rename from
5076 finish_command_fsm_should_stop.
5077 (finish_command_fsm::clean_up): Rename from
5078 finish_command_fsm_clean_up.
5079 (finish_command_fsm::return_value): Rename from
5080 finish_command_fsm_return_value.
5081 (finish_command_fsm::do_async_reply_reason): Rename from
5082 finish_command_fsm_async_reply_reason.
5083 (finish_command): Update.
5084 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5085 Add constructor.
5086 (call_thread_fsm_ops): Remove.
5087 (call_thread_fsm::call_thread_fsm): Rename from
5088 new_call_thread_fsm.
5089 (call_thread_fsm::should_stop): Rename from
5090 call_thread_fsm_should_stop.
5091 (call_thread_fsm::should_notify_stop): Rename from
5092 call_thread_fsm_should_notify_stop.
5093 (run_inferior_call, call_function_by_hand_dummy): Update.
5094 * cli/cli-interp.c (should_print_stop_to_console): Update.
5095 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5096 Add constructor. Change type of location_breakpoint,
5097 caller_breakpoint.
5098 (until_break_fsm_ops): Remove.
5099 (new_until_break_fsm): Remove.
5100 (until_break_fsm::should_stop): Rename from
5101 until_break_fsm_should_stop.
5102 (until_break_fsm::clean_up): Rename from
5103 until_break_fsm_clean_up.
5104 (until_break_fsm::do_async_reply_reason): Rename from
5105 until_break_fsm_async_reply_reason.
5106 (until_break_command): Update.
5107 * thread-fsm.c: Remove.
5108 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5109
1a5c2598
TT
51102019-02-07 Tom Tromey <tom@tromey.com>
5111
5112 * yy-remap.h: Add include guard.
5113 * xtensa-tdep.h: Add include guard.
5114 * xcoffread.h: Rename include guard.
5115 * varobj-iter.h: Add include guard.
5116 * tui/tui.h: Rename include guard.
5117 * tui/tui-winsource.h: Rename include guard.
5118 * tui/tui-wingeneral.h: Rename include guard.
5119 * tui/tui-windata.h: Rename include guard.
5120 * tui/tui-win.h: Rename include guard.
5121 * tui/tui-stack.h: Rename include guard.
5122 * tui/tui-source.h: Rename include guard.
5123 * tui/tui-regs.h: Rename include guard.
5124 * tui/tui-out.h: Rename include guard.
5125 * tui/tui-layout.h: Rename include guard.
5126 * tui/tui-io.h: Rename include guard.
5127 * tui/tui-hooks.h: Rename include guard.
5128 * tui/tui-file.h: Rename include guard.
5129 * tui/tui-disasm.h: Rename include guard.
5130 * tui/tui-data.h: Rename include guard.
5131 * tui/tui-command.h: Rename include guard.
5132 * tic6x-tdep.h: Add include guard.
5133 * target/waitstatus.h: Rename include guard.
5134 * target/wait.h: Rename include guard.
5135 * target/target.h: Rename include guard.
5136 * target/resume.h: Rename include guard.
5137 * target-float.h: Rename include guard.
5138 * stabsread.h: Add include guard.
5139 * rs6000-tdep.h: Add include guard.
5140 * riscv-fbsd-tdep.h: Add include guard.
5141 * regformats/regdef.h: Rename include guard.
5142 * record.h: Rename include guard.
5143 * python/python.h: Rename include guard.
5144 * python/python-internal.h: Rename include guard.
5145 * python/py-stopevent.h: Rename include guard.
5146 * python/py-ref.h: Rename include guard.
5147 * python/py-record.h: Rename include guard.
5148 * python/py-record-full.h: Rename include guard.
5149 * python/py-record-btrace.h: Rename include guard.
5150 * python/py-instruction.h: Rename include guard.
5151 * python/py-events.h: Rename include guard.
5152 * python/py-event.h: Rename include guard.
5153 * procfs.h: Add include guard.
5154 * proc-utils.h: Add include guard.
5155 * p-lang.h: Add include guard.
5156 * or1k-tdep.h: Rename include guard.
5157 * observable.h: Rename include guard.
5158 * nto-tdep.h: Rename include guard.
5159 * nat/x86-linux.h: Rename include guard.
5160 * nat/x86-linux-dregs.h: Rename include guard.
5161 * nat/x86-gcc-cpuid.h: Add include guard.
5162 * nat/x86-dregs.h: Rename include guard.
5163 * nat/x86-cpuid.h: Rename include guard.
5164 * nat/ppc-linux.h: Rename include guard.
5165 * nat/mips-linux-watch.h: Rename include guard.
5166 * nat/linux-waitpid.h: Rename include guard.
5167 * nat/linux-ptrace.h: Rename include guard.
5168 * nat/linux-procfs.h: Rename include guard.
5169 * nat/linux-osdata.h: Rename include guard.
5170 * nat/linux-nat.h: Rename include guard.
5171 * nat/linux-namespaces.h: Rename include guard.
5172 * nat/linux-btrace.h: Rename include guard.
5173 * nat/glibc_thread_db.h: Rename include guard.
5174 * nat/gdb_thread_db.h: Rename include guard.
5175 * nat/gdb_ptrace.h: Rename include guard.
5176 * nat/fork-inferior.h: Rename include guard.
5177 * nat/amd64-linux-siginfo.h: Rename include guard.
5178 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5179 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5180 * nat/aarch64-linux.h: Rename include guard.
5181 * nat/aarch64-linux-hw-point.h: Rename include guard.
5182 * mn10300-tdep.h: Add include guard.
5183 * mips-linux-tdep.h: Add include guard.
5184 * mi/mi-parse.h: Rename include guard.
5185 * mi/mi-out.h: Rename include guard.
5186 * mi/mi-main.h: Rename include guard.
5187 * mi/mi-interp.h: Rename include guard.
5188 * mi/mi-getopt.h: Rename include guard.
5189 * mi/mi-console.h: Rename include guard.
5190 * mi/mi-common.h: Rename include guard.
5191 * mi/mi-cmds.h: Rename include guard.
5192 * mi/mi-cmd-break.h: Rename include guard.
5193 * m2-lang.h: Add include guard.
5194 * location.h: Rename include guard.
5195 * linux-record.h: Rename include guard.
5196 * linux-nat.h: Add include guard.
5197 * linux-fork.h: Add include guard.
5198 * i386-darwin-tdep.h: Rename include guard.
5199 * hppa-linux-offsets.h: Add include guard.
5200 * guile/guile.h: Rename include guard.
5201 * guile/guile-internal.h: Rename include guard.
5202 * gnu-nat.h: Rename include guard.
5203 * gdb-stabs.h: Rename include guard.
5204 * frv-tdep.h: Add include guard.
5205 * f-lang.h: Add include guard.
5206 * event-loop.h: Add include guard.
5207 * darwin-nat.h: Rename include guard.
5208 * cp-abi.h: Rename include guard.
5209 * config/sparc/nm-sol2.h: Rename include guard.
5210 * config/nm-nto.h: Rename include guard.
5211 * config/nm-linux.h: Add include guard.
5212 * config/i386/nm-i386gnu.h: Rename include guard.
5213 * config/djgpp/nl_types.h: Rename include guard.
5214 * config/djgpp/langinfo.h: Rename include guard.
5215 * compile/gcc-cp-plugin.h: Add include guard.
5216 * compile/gcc-c-plugin.h: Add include guard.
5217 * compile/compile.h: Rename include guard.
5218 * compile/compile-object-run.h: Rename include guard.
5219 * compile/compile-object-load.h: Rename include guard.
5220 * compile/compile-internal.h: Rename include guard.
5221 * compile/compile-cplus.h: Rename include guard.
5222 * compile/compile-c.h: Rename include guard.
5223 * common/xml-utils.h: Rename include guard.
5224 * common/x86-xstate.h: Rename include guard.
5225 * common/version.h: Rename include guard.
5226 * common/vec.h: Rename include guard.
5227 * common/tdesc.h: Rename include guard.
5228 * common/selftest.h: Rename include guard.
5229 * common/scoped_restore.h: Rename include guard.
5230 * common/scoped_mmap.h: Rename include guard.
5231 * common/scoped_fd.h: Rename include guard.
5232 * common/safe-iterator.h: Rename include guard.
5233 * common/run-time-clock.h: Rename include guard.
5234 * common/refcounted-object.h: Rename include guard.
5235 * common/queue.h: Rename include guard.
5236 * common/ptid.h: Rename include guard.
5237 * common/print-utils.h: Rename include guard.
5238 * common/preprocessor.h: Rename include guard.
5239 * common/pathstuff.h: Rename include guard.
5240 * common/observable.h: Rename include guard.
5241 * common/netstuff.h: Rename include guard.
5242 * common/job-control.h: Rename include guard.
5243 * common/host-defs.h: Rename include guard.
5244 * common/gdb_wait.h: Rename include guard.
5245 * common/gdb_vecs.h: Rename include guard.
5246 * common/gdb_unlinker.h: Rename include guard.
5247 * common/gdb_unique_ptr.h: Rename include guard.
5248 * common/gdb_tilde_expand.h: Rename include guard.
5249 * common/gdb_sys_time.h: Rename include guard.
5250 * common/gdb_string_view.h: Rename include guard.
5251 * common/gdb_splay_tree.h: Rename include guard.
5252 * common/gdb_setjmp.h: Rename include guard.
5253 * common/gdb_ref_ptr.h: Rename include guard.
5254 * common/gdb_optional.h: Rename include guard.
5255 * common/gdb_locale.h: Rename include guard.
5256 * common/gdb_assert.h: Rename include guard.
5257 * common/filtered-iterator.h: Rename include guard.
5258 * common/filestuff.h: Rename include guard.
5259 * common/fileio.h: Rename include guard.
5260 * common/environ.h: Rename include guard.
5261 * common/common-utils.h: Rename include guard.
5262 * common/common-types.h: Rename include guard.
5263 * common/common-regcache.h: Rename include guard.
5264 * common/common-inferior.h: Rename include guard.
5265 * common/common-gdbthread.h: Rename include guard.
5266 * common/common-exceptions.h: Rename include guard.
5267 * common/common-defs.h: Rename include guard.
5268 * common/common-debug.h: Rename include guard.
5269 * common/cleanups.h: Rename include guard.
5270 * common/buffer.h: Rename include guard.
5271 * common/btrace-common.h: Rename include guard.
5272 * common/break-common.h: Rename include guard.
5273 * cli/cli-utils.h: Rename include guard.
5274 * cli/cli-style.h: Rename include guard.
5275 * cli/cli-setshow.h: Rename include guard.
5276 * cli/cli-script.h: Rename include guard.
5277 * cli/cli-interp.h: Rename include guard.
5278 * cli/cli-decode.h: Rename include guard.
5279 * cli/cli-cmds.h: Rename include guard.
5280 * charset-list.h: Add include guard.
5281 * buildsym-legacy.h: Rename include guard.
5282 * bfin-tdep.h: Add include guard.
5283 * ax.h: Rename include guard.
5284 * arm-linux-tdep.h: Add include guard.
5285 * arm-fbsd-tdep.h: Add include guard.
5286 * arch/xtensa.h: Rename include guard.
5287 * arch/tic6x.h: Add include guard.
5288 * arch/i386.h: Add include guard.
5289 * arch/arm.h: Rename include guard.
5290 * arch/arm-linux.h: Rename include guard.
5291 * arch/arm-get-next-pcs.h: Rename include guard.
5292 * arch/amd64.h: Add include guard.
5293 * arch/aarch64-insn.h: Rename include guard.
5294 * arch-utils.h: Rename include guard.
5295 * annotate.h: Add include guard.
5296 * amd64-darwin-tdep.h: Rename include guard.
5297 * aarch64-linux-tdep.h: Add include guard.
5298 * aarch64-fbsd-tdep.h: Add include guard.
5299 * aarch32-linux-nat.h: Add include guard.
5300
ab9268d2
PW
53012019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5302
5303 * macrotab.c (macro_define_internal): New function that
5304 factorizes macro_define_object_internal and macro_define_function
5305 code.
5306 (macro_define_object_internal): Use macro_define_internal.
5307 (macro_define_function): Likewise.
5308
bb0da2b4
PW
53092019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5310
5311 * macrocmd.c (extract_identifier): Return
5312 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5313 callers.
5314
424eb552
JB
53152019-02-06 John Baldwin <jhb@FreeBSD.org>
5316
5317 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5318
1688cb29
TT
53192019-02-05 Tom Tromey <tom@tromey.com>
5320
5321 * target.c (target_stack::unpush): Move assertion earlier.
5322
b5eba2d8
TT
53232019-01-30 Tom Tromey <tom@tromey.com>
5324
5325 PR python/23615:
5326 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5327 (gdbpy_parse_and_eval): Likewise.
5328 * python/python-internal.h (gdbpy_allow_threads): New class.
5329
7054e2ff
JB
53302019-01-28 John Baldwin <jhb@FreeBSD.org>
5331
5332 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5333 (aarch64_fbsd_fpregmap): Move earlier.
5334 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5335 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5336 instead of individual calls to trad_frame_set_reg_addr.
5337 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5338 earlier.
5339 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5340 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5341 instead of individual calls to trad_frame_set_reg_addr.
5342
36c25ffa
AH
53432019-01-28 Alan Hayward <alan.hayward@arm.com>
5344
5345 * CONTRIBUTE: Replace contribution list with wiki link.
5346
a0707f3c
TT
53472019-01-25 Tom Tromey <tom@tromey.com>
5348
5349 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5350
0747795c
TT
53512019-01-25 Tom Tromey <tom@tromey.com>
5352
5353 * xtensa-linux-nat.c: Fix common/ includes.
5354 * xml-support.h: Fix common/ includes.
5355 * xml-support.c: Fix common/ includes.
5356 * x86-linux-nat.c: Fix common/ includes.
5357 * windows-nat.c: Fix common/ includes.
5358 * varobj.h: Fix common/ includes.
5359 * varobj.c: Fix common/ includes.
5360 * value.c: Fix common/ includes.
5361 * valops.c: Fix common/ includes.
5362 * utils.c: Fix common/ includes.
5363 * unittests/xml-utils-selftests.c: Fix common/ includes.
5364 * unittests/utils-selftests.c: Fix common/ includes.
5365 * unittests/unpack-selftests.c: Fix common/ includes.
5366 * unittests/tracepoint-selftests.c: Fix common/ includes.
5367 * unittests/style-selftests.c: Fix common/ includes.
5368 * unittests/string_view-selftests.c: Fix common/ includes.
5369 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5370 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5371 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5372 * unittests/rsp-low-selftests.c: Fix common/ includes.
5373 * unittests/parse-connection-spec-selftests.c: Fix common/
5374 includes.
5375 * unittests/optional-selftests.c: Fix common/ includes.
5376 * unittests/offset-type-selftests.c: Fix common/ includes.
5377 * unittests/observable-selftests.c: Fix common/ includes.
5378 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5379 * unittests/memrange-selftests.c: Fix common/ includes.
5380 * unittests/memory-map-selftests.c: Fix common/ includes.
5381 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5382 * unittests/function-view-selftests.c: Fix common/ includes.
5383 * unittests/environ-selftests.c: Fix common/ includes.
5384 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5385 * unittests/common-utils-selftests.c: Fix common/ includes.
5386 * unittests/cli-utils-selftests.c: Fix common/ includes.
5387 * unittests/array-view-selftests.c: Fix common/ includes.
5388 * ui-file.c: Fix common/ includes.
5389 * tui/tui-io.c: Fix common/ includes.
5390 * tracepoint.h: Fix common/ includes.
5391 * tracepoint.c: Fix common/ includes.
5392 * tracefile-tfile.c: Fix common/ includes.
5393 * top.h: Fix common/ includes.
5394 * top.c: Fix common/ includes.
5395 * thread.c: Fix common/ includes.
5396 * target/waitstatus.h: Fix common/ includes.
5397 * target/waitstatus.c: Fix common/ includes.
5398 * target.h: Fix common/ includes.
5399 * target.c: Fix common/ includes.
5400 * target-memory.c: Fix common/ includes.
5401 * target-descriptions.c: Fix common/ includes.
5402 * symtab.h: Fix common/ includes.
5403 * symfile.c: Fix common/ includes.
5404 * stap-probe.c: Fix common/ includes.
5405 * spu-linux-nat.c: Fix common/ includes.
5406 * sparc-nat.c: Fix common/ includes.
5407 * source.c: Fix common/ includes.
5408 * solib.c: Fix common/ includes.
5409 * solib-target.c: Fix common/ includes.
5410 * ser-unix.c: Fix common/ includes.
5411 * ser-tcp.c: Fix common/ includes.
5412 * ser-pipe.c: Fix common/ includes.
5413 * ser-base.c: Fix common/ includes.
5414 * selftest-arch.c: Fix common/ includes.
5415 * s12z-tdep.c: Fix common/ includes.
5416 * rust-exp.y: Fix common/ includes.
5417 * rs6000-aix-tdep.c: Fix common/ includes.
5418 * riscv-tdep.c: Fix common/ includes.
5419 * remote.c: Fix common/ includes.
5420 * remote-notif.h: Fix common/ includes.
5421 * remote-fileio.h: Fix common/ includes.
5422 * remote-fileio.c: Fix common/ includes.
5423 * regcache.h: Fix common/ includes.
5424 * regcache.c: Fix common/ includes.
5425 * record-btrace.c: Fix common/ includes.
5426 * python/python.c: Fix common/ includes.
5427 * python/py-type.c: Fix common/ includes.
5428 * python/py-inferior.c: Fix common/ includes.
5429 * progspace.h: Fix common/ includes.
5430 * producer.c: Fix common/ includes.
5431 * procfs.c: Fix common/ includes.
5432 * proc-api.c: Fix common/ includes.
5433 * printcmd.c: Fix common/ includes.
5434 * ppc-linux-nat.c: Fix common/ includes.
5435 * parser-defs.h: Fix common/ includes.
5436 * osdata.c: Fix common/ includes.
5437 * obsd-nat.c: Fix common/ includes.
5438 * nat/x86-linux.c: Fix common/ includes.
5439 * nat/x86-linux-dregs.c: Fix common/ includes.
5440 * nat/x86-dregs.h: Fix common/ includes.
5441 * nat/x86-dregs.c: Fix common/ includes.
5442 * nat/ppc-linux.c: Fix common/ includes.
5443 * nat/mips-linux-watch.h: Fix common/ includes.
5444 * nat/mips-linux-watch.c: Fix common/ includes.
5445 * nat/linux-waitpid.c: Fix common/ includes.
5446 * nat/linux-ptrace.h: Fix common/ includes.
5447 * nat/linux-ptrace.c: Fix common/ includes.
5448 * nat/linux-procfs.c: Fix common/ includes.
5449 * nat/linux-personality.c: Fix common/ includes.
5450 * nat/linux-osdata.c: Fix common/ includes.
5451 * nat/linux-namespaces.c: Fix common/ includes.
5452 * nat/linux-btrace.h: Fix common/ includes.
5453 * nat/linux-btrace.c: Fix common/ includes.
5454 * nat/fork-inferior.c: Fix common/ includes.
5455 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5456 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5457 * nat/aarch64-linux.c: Fix common/ includes.
5458 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5459 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5460 * namespace.h: Fix common/ includes.
5461 * mips-linux-tdep.c: Fix common/ includes.
5462 * minsyms.c: Fix common/ includes.
5463 * mi/mi-parse.h: Fix common/ includes.
5464 * mi/mi-main.c: Fix common/ includes.
5465 * mi/mi-cmd-env.c: Fix common/ includes.
5466 * memrange.h: Fix common/ includes.
5467 * memattr.c: Fix common/ includes.
5468 * maint.h: Fix common/ includes.
5469 * maint.c: Fix common/ includes.
5470 * main.c: Fix common/ includes.
5471 * machoread.c: Fix common/ includes.
5472 * location.c: Fix common/ includes.
5473 * linux-thread-db.c: Fix common/ includes.
5474 * linux-nat.c: Fix common/ includes.
5475 * linux-fork.c: Fix common/ includes.
5476 * inline-frame.c: Fix common/ includes.
5477 * infrun.c: Fix common/ includes.
5478 * inflow.c: Fix common/ includes.
5479 * inferior.h: Fix common/ includes.
5480 * inferior.c: Fix common/ includes.
5481 * infcmd.c: Fix common/ includes.
5482 * inf-ptrace.c: Fix common/ includes.
5483 * inf-child.c: Fix common/ includes.
5484 * ia64-linux-nat.c: Fix common/ includes.
5485 * i387-tdep.c: Fix common/ includes.
5486 * i386-tdep.c: Fix common/ includes.
5487 * i386-linux-tdep.c: Fix common/ includes.
5488 * i386-linux-nat.c: Fix common/ includes.
5489 * i386-go32-tdep.c: Fix common/ includes.
5490 * i386-fbsd-tdep.c: Fix common/ includes.
5491 * i386-fbsd-nat.c: Fix common/ includes.
5492 * guile/scm-type.c: Fix common/ includes.
5493 * guile/guile.c: Fix common/ includes.
5494 * go32-nat.c: Fix common/ includes.
5495 * gnu-nat.c: Fix common/ includes.
5496 * gdbthread.h: Fix common/ includes.
5497 * gdbarch-selftests.c: Fix common/ includes.
5498 * gdb_usleep.c: Fix common/ includes.
5499 * gdb_select.h: Fix common/ includes.
5500 * gdb_bfd.c: Fix common/ includes.
5501 * gcore.c: Fix common/ includes.
5502 * fork-child.c: Fix common/ includes.
5503 * findvar.c: Fix common/ includes.
5504 * fbsd-nat.c: Fix common/ includes.
5505 * event-top.c: Fix common/ includes.
5506 * event-loop.c: Fix common/ includes.
5507 * dwarf2read.c: Fix common/ includes.
5508 * dwarf2loc.c: Fix common/ includes.
5509 * dwarf2-frame.c: Fix common/ includes.
5510 * dwarf-index-cache.c: Fix common/ includes.
5511 * dtrace-probe.c: Fix common/ includes.
5512 * disasm-selftests.c: Fix common/ includes.
5513 * defs.h: Fix common/ includes.
5514 * csky-tdep.c: Fix common/ includes.
5515 * cp-valprint.c: Fix common/ includes.
5516 * cp-support.h: Fix common/ includes.
5517 * cp-support.c: Fix common/ includes.
5518 * corelow.c: Fix common/ includes.
5519 * completer.h: Fix common/ includes.
5520 * completer.c: Fix common/ includes.
5521 * compile/compile.c: Fix common/ includes.
5522 * compile/compile-loc2c.c: Fix common/ includes.
5523 * compile/compile-cplus-types.c: Fix common/ includes.
5524 * compile/compile-cplus-symbols.c: Fix common/ includes.
5525 * command.h: Fix common/ includes.
5526 * cli/cli-dump.c: Fix common/ includes.
5527 * cli/cli-cmds.c: Fix common/ includes.
5528 * charset.c: Fix common/ includes.
5529 * build-id.c: Fix common/ includes.
5530 * btrace.h: Fix common/ includes.
5531 * btrace.c: Fix common/ includes.
5532 * breakpoint.h: Fix common/ includes.
5533 * breakpoint.c: Fix common/ includes.
5534 * ax.h:
5535 (enum agent_op): Fix common/ includes.
5536 * ax-general.c (struct aop_map): Fix common/ includes.
5537 * ax-gdb.c: Fix common/ includes.
5538 * auxv.c: Fix common/ includes.
5539 * auto-load.c: Fix common/ includes.
5540 * arm-tdep.c: Fix common/ includes.
5541 * arch/riscv.c: Fix common/ includes.
5542 * arch/ppc-linux-common.c: Fix common/ includes.
5543 * arch/i386.c: Fix common/ includes.
5544 * arch/arm.c: Fix common/ includes.
5545 * arch/arm-linux.c: Fix common/ includes.
5546 * arch/arm-get-next-pcs.c: Fix common/ includes.
5547 * arch/amd64.c: Fix common/ includes.
5548 * arch/aarch64.c: Fix common/ includes.
5549 * arch/aarch64-insn.c: Fix common/ includes.
5550 * arch-utils.c: Fix common/ includes.
5551 * amd64-windows-tdep.c: Fix common/ includes.
5552 * amd64-tdep.c: Fix common/ includes.
5553 * amd64-sol2-tdep.c: Fix common/ includes.
5554 * amd64-obsd-tdep.c: Fix common/ includes.
5555 * amd64-nbsd-tdep.c: Fix common/ includes.
5556 * amd64-linux-tdep.c: Fix common/ includes.
5557 * amd64-linux-nat.c: Fix common/ includes.
5558 * amd64-fbsd-tdep.c: Fix common/ includes.
5559 * amd64-fbsd-nat.c: Fix common/ includes.
5560 * amd64-dicos-tdep.c: Fix common/ includes.
5561 * amd64-darwin-tdep.c: Fix common/ includes.
5562 * agent.c: Fix common/ includes.
5563 * ada-lang.h: Fix common/ includes.
5564 * ada-lang.c: Fix common/ includes.
5565 * aarch64-tdep.c: Fix common/ includes.
5566
2f5c153e
TT
55672019-01-25 Tom Tromey <tom@tromey.com>
5568
5569 * common/create-version.sh: Use common/version.h.
5570
adc6a863
PA
55712019-01-24 Pedro Alves <palves@redhat.com>
5572
5573 * infrun.c (signal_stop, signal_print, signal_program)
5574 (signal_catch, signal_pass): Now arrays instead of pointers.
5575 (update_signals_program_target, do_target_resume)
5576 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5577 * linux-nat.c (linux_nat_target::pass_signals)
5578 (linux_nat_target::create_inferior, linux_nat_target::attach):
5579 Adjust.
5580 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5581 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5582 * procfs.c (procfs_target::pass_signals): Adjust.
5583 * record-full.c (record_full_target::resume): Adjust.
5584 * remote.c (remote_target::pass_signals)
5585 (remote_target::program_signals): Adjust.
5586 * target-debug.h (target_debug_print_signals): Now takes a
5587 gdb::array_view as parameter. Adjust.
5588 * target.h (target_ops) <pass_signals, program_signals>: Replace
5589 pointer and length parameters with gdb::array_view.
5590 (target_pass_signals, target_program_signals): Likewise.
5591 * target-delegates.c: Regenerate.
5592
3046d67a
PA
55932019-01-24 Pedro Alves <palves@redhat.com>
5594
5595 * common/forward-scope-exit.h
5596 (forward_scope_exit::forward_scope_exit): Pass arguments to
5597 m_bind_function directly, instead of creating a std::bind and
5598 copying that.
5599
353229bf
AH
56002019-01-24 Alan Hayward <alan.hayward@arm.com>
5601
5602 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5603 for static members.
5604 (pass_in_v_vfp_candidate): Likewise.
5605
311dc83a
TT
56062019-01-23 Tom Tromey <tom@tromey.com>
5607 Pedro Alves <palves@redhat.com>
5608
5609 * regcache.c (class regcache_invalidator): Remove.
5610 (regcache::raw_write): Use make_scope_exit.
5611
296bd123
TT
56122019-01-23 Tom Tromey <tom@tromey.com>
5613
5614 * ui-out.h (class ui_out_emit_type): Update comment.
5615
979a0d13
TT
56162019-01-23 Tom Tromey <tom@tromey.com>
5617
5618 * infrun.c (fetch_inferior_event): Update comment.
5619
d238133d
TT
56202019-01-23 Tom Tromey <tom@tromey.com>
5621 Pedro Alves <palves@redhat.com>
5622
5623 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5624 parameter.
5625 (fetch_inferior_event): Use SCOPE_EXIT.
5626
5627
9885e6bb
TT
56282019-01-23 Tom Tromey <tom@tromey.com>
5629 Pedro Alves <palves@redhat.com>
5630
5631 * infrun.c (disable_thread_events): Delete.
5632 (stop_all_threads): Use SCOPE_EXIT.
5633
286526c1
TT
56342019-01-23 Tom Tromey <tom@tromey.com>
5635 Pedro Alves <palves@redhat.com>
5636
5637 * symfile.c: Include forward-scope-exit.h.
5638 (clear_symtab_users_cleanup): Replace forward declaration with
5639 a FORWARD_SCOPE_EXIT.
5640 (syms_from_objfile_1): Use the forward_scope_exit and
5641 gdb::optional instead of cleanup_function.
5642 (reread_symbols): Use the forward_scope_exit instead of
5643 cleanup_function.
5644 (clear_symtab_users_cleanup): Remove function.
5645
1db93f14
TT
56462019-01-23 Tom Tromey <tom@tromey.com>
5647 Pedro Alves <palves@redhat.com>
5648
5649 * linux-nat.c: Include scope-exit.h.
5650 (cleanup_target_stop): Remove.
5651 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5652 SCOPE_EXIT.
5653
2cc83d1e
TT
56542019-01-23 Tom Tromey <tom@tromey.com>
5655 Pedro Alves <palves@redhat.com>
5656
5657 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5658 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5659
694c6bf5
TT
56602019-01-23 Tom Tromey <tom@tromey.com>
5661 Andrew Burgess <andrew.burgess@embecosm.com>
5662 Pedro Alves <palves@redhat.com>
5663
5664 * infrun.c (fetch_inferior_event): Use scope_exit.
5665 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5666 * top.c (execute_command): Use scope_exit.
5667 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5668 * utils.c (do_bpstat_clear_actions_cleanup)
5669 (make_bpstat_clear_actions_cleanup): Remove.
5670
4c41382a
TT
56712019-01-23 Tom Tromey <tom@tromey.com>
5672 Pedro Alves <palves@redhat.com>
5673
5674 * infrun.c: Include "common/scope-exit.h"
5675 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5676 (wait_for_inferior): Use SCOPE_EXIT.
5677 (fetch_inferior_event): Use scope_exit.
5678
89f8fb50
TT
56792019-01-23 Tom Tromey <tom@tromey.com>
5680 Pedro Alves <palves@redhat.com>
5681
5682 * breakpoint.c (create_breakpoint): Remove cleanup.
5683
5419bdae
TT
56842019-01-23 Tom Tromey <tom@tromey.com>
5685 Andrew Burgess <andrew.burgess@embecosm.com>
5686 Pedro Alves <palves@redhat.com>
5687
e587ef42
PA
56882019-01-23 Pedro Alves <palves@redhat.com>
5689
5690 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5691
77f0e74c
PA
56922019-01-23 Pedro Alves <palves@redhat.com>
5693 Andrew Burgess <andrew.burgess@embecosm.com>
5694
5695 * gdbthread.h: Include "common/forward-scope-exit.h".
5696 (scoped_finish_thread_state): Redefine custom class in terms of
5697 forward_scope_exit.
5698
5b9b3e53
PA
56992019-01-23 Pedro Alves <palves@redhat.com>
5700 Andrew Burgess <andrew.burgess@embecosm.com>
5701
5702 * common/forward-scope-exit.h: New file.
5703
54b65c9b
PA
57042019-01-23 Pedro Alves <palves@redhat.com>
5705 Andrew Burgess <andrew.burgess@embecosm.com>
5706 Tom Tromey <tom@tromey.com>
5707
5708 * common/scope-exit.h: New file.
5709
cf08fb29
PA
57102019-01-23 Pedro Alves <palves@redhat.com>
5711
5712 * common/preprocessor.h (ESC): Rename to ...
5713 (ESC_PARENS): ... this.
5714 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5715 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5716
ae73e2e2
TT
57172019-01-23 Tom Tromey <tom@tromey.com>
5718
5719 * language.h (class scoped_switch_to_sym_language_if_auto):
5720 Initialize m_lang in both cases.
5721
6594e122
AH
57222019-01-23 Alan Hayward <alan.hayward@arm.com>
5723
5724 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5725 with XCNEW.
5726
a7c9855d
TT
57272019-01-22 Tom Tromey <tom@tromey.com>
5728
5729 * corelow.c: Do not include sys/file.h.
5730
93cc1d53
TT
57312019-01-22 Tom Tromey <tom@tromey.com>
5732
5733 * tui/tui-wingeneral.h: Include gdb_curses.h.
5734
38561778
TT
57352019-01-22 Tom Tromey <tom@tromey.com>
5736
5737 * source-cache.h (class source_cache) <get_source_lines,
5738 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5739
37b3ab5b
TT
57402019-01-22 Tom Tromey <tom@tromey.com>
5741
5742 * remote-fileio.h (struct remote_target): Declare.
5743
3fabc016
TT
57442019-01-22 Tom Tromey <tom@tromey.com>
5745
5746 * python/py-arch.c: Do not include py-ref.h.
5747 * python/py-bpevent.c: Do not include py-ref.h.
5748 * python/py-cmd.c: Do not include py-ref.h.
5749 * python/py-continueevent.c: Do not include py-ref.h.
5750 * python/py-event.h: Do not include py-ref.h.
5751 * python/py-evtregistry.c: Do not include py-ref.h.
5752 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5753 * python/py-frame.c: Do not include py-ref.h.
5754 * python/py-framefilter.c: Do not include py-ref.h.
5755 * python/py-function.c: Do not include py-ref.h.
5756 * python/py-infevents.c: Do not include py-ref.h.
5757 * python/py-linetable.c: Do not include py-ref.h.
5758 * python/py-objfile.c: Do not include py-ref.h.
5759 * python/py-param.c: Do not include py-ref.h.
5760 * python/py-prettyprint.c: Do not include py-ref.h.
5761 * python/py-progspace.c: Do not include py-ref.h.
5762 * python/py-symbol.c: Do not include py-ref.h.
5763 * python/py-symtab.c: Do not include py-ref.h.
5764 * python/py-type.c: Do not include py-ref.h.
5765 * python/py-unwind.c: Do not include py-ref.h.
5766 * python/py-utils.c: Do not include py-ref.h.
5767 * python/py-value.c: Do not include py-ref.h.
5768 * python/py-varobj.c: Do not include py-ref.h.
5769 * python/py-xmethods.c: Do not include py-ref.h.
5770 * python/python.c: Do not include py-ref.h.
5771 * varobj.c: Do not include py-ref.h.
5772
6b4d7774
TT
57732019-01-22 Tom Tromey <tom@tromey.com>
5774
5775 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5776 keyword for bcache.
5777
7af7e9b5
TT
57782019-01-22 Tom Tromey <tom@tromey.com>
5779
5780 * compile/compile-cplus-types.c: Remove a comment by #include.
5781
951d1049
TT
57822019-01-22 Tom Tromey <tom@tromey.com>
5783
5784 * compile/gcc-c-plugin.h: Include compile-internal.h.
5785
d65d5705
TT
57862019-01-22 Tom Tromey <tom@tromey.com>
5787
5788 * stabsread.c (EXTERN): Do not define.
5789 (symnum, next_symbol_text_func, processing_gcc_compilation)
5790 (within_function, global_sym_chain, global_stabs)
5791 (previous_stab_code, this_object_header_files)
5792 (n_this_object_header_files)
5793 (n_allocated_this_object_header_files): Define.
5794 * stabsread.h (EXTERN): Never define. Use "extern".
5795
b6fb1ee5
PW
57962019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5797
5798 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5799 history_value.
5800
be6d4f74
TT
58012019-01-21 Tom Tromey <tom@tromey.com>
5802
5803 * ui-out.c: Fix includes.
5804 * tui/tui-source.c: Fix includes.
5805 * target.c: Fix includes.
5806 * remote.c: Fix includes.
5807 * regcache.c: Fix includes.
5808 * python/py-block.c: Fix includes.
5809 * printcmd.c: Fix includes.
5810 * or1k-tdep.c: Fix includes.
5811 * mi/mi-main.c: Fix includes.
5812 * m32r-tdep.c: Fix includes.
5813 * csky-tdep.c: Fix includes.
5814 * compile/compile-cplus-types.c: Fix includes.
5815 * cli/cli-interp.c: Fix includes.
5816
73021deb
AH
58172019-01-21 Alan Hayward <alan.hayward@arm.com>
5818
5819 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5820 for padding.
5821
7932255d
TT
58222019-01-16 Tom Tromey <tom@tromey.com>
5823
5824 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5825 earlier.
5826 (struct objfile) <msymbols_range>: Move from top level.
5827 <msymbols>: New method.
5828 (class objfile_msymbols): Remove.
5829 * symtab.c (default_collect_symbol_completion_matches_break_on):
5830 Update.
5831 * symmisc.c (dump_msymbols): Update.
5832 * stabsread.c (scan_file_globals): Update.
5833 * objc-lang.c (info_selectors_command, info_classes_command)
5834 (find_methods): Update.
5835 * minsyms.c (find_solib_trampoline_target): Update.
5836 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5837 * coffread.c (coff_symfile_read): Update.
5838 * ada-lang.c (ada_lookup_simple_minsym)
5839 (ada_collect_symbol_completion_matches): Update.
5840
604b1bfb
TT
58412019-01-16 Tom Tromey <tom@tromey.com>
5842
5843 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5844 type. Remove no-argument constructor.
5845 <iterator::operator++>: Simplify.
5846 <begin>: Update.
5847 <end>: Use minimal_symbol_count.
5848
f252c6d5
TT
58492019-01-16 Tom Tromey <tom@tromey.com>
5850
5851 * objfiles.h (struct objfile) <psymtabs>: New method.
5852 (class objfile_psymtabs): Remove.
5853 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5854 typedef.
5855 <range>: New method.
5856 (require_partial_symbols): Change return type.
5857 * psymtab.c (require_partial_symbols)
5858 (psym_expand_symtabs_matching): Update.
5859 * mdebugread.c (parse_partial_symbols): Update.
5860 * dbxread.c (dbx_end_psymtab): Update.
5861
b669c953
TT
58622019-01-15 Tom Tromey <tom@tromey.com>
5863
5864 * symtab.c (lookup_objfile_from_block)
5865 (lookup_symbol_in_objfile_symtabs)
5866 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5867 (find_line_symtab, info_sources_command)
5868 (default_collect_symbol_completion_matches_break_on)
5869 (make_source_files_completion_list): Update.
5870 * symmisc.c (print_objfile_statistics, dump_objfile)
5871 (maintenance_print_symbols, maintenance_info_symtabs)
5872 (maintenance_check_symtabs, maintenance_info_line_tables):
5873 Update.
5874 * source.c (select_source_symtab)
5875 (forget_cached_source_info_for_objfile): Update.
5876 * objfiles.h (class objfile_compunits): Remove.
5877 (struct objfile) <compunits_range>: New typedef.
5878 (compunits): New method.
5879 * objfiles.c (objfile_relocate1): Update.
5880 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5881 * maint.c (count_symtabs_and_blocks): Update.
5882 * linespec.c (iterate_over_all_matching_symtabs): Update.
5883 * cp-support.c (add_symbol_overload_list_qualified): Update.
5884 * coffread.c (coff_symtab_read): Update.
5885 * ada-lang.c (add_nonlocal_symbols)
5886 (ada_collect_symbol_completion_matches)
5887 (ada_add_global_exceptions): Update.
5888
7e955d83
TT
58892019-01-15 Tom Tromey <tom@tromey.com>
5890
5891 * progspace.h (program_space) <objfiles_safe_range>: New
5892 typedef.
5893 <objfiles_safe>: New method.
5894 * objfiles.h (class all_objfiles_safe): Remove.
5895 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5896 * jit.c (jit_inferior_exit_hook): Update.
5897
2030c079
TT
58982019-01-17 Tom Tromey <tom@tromey.com>
5899
5900 * progspace.h (program_space) <objfiles_range>: New typedef.
5901 <objfiles>: New method.
5902 <objfiles_head>: Rename from objfiles.
5903 (object_files): Update.
5904 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5905 * guile/scm-pretty-print.c
5906 (ppscm_find_pretty_printer_from_objfiles): Update.
5907 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5908 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5909 Update.
5910 * python/py-progspace.c (pspy_get_objfiles): Update.
5911 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5912 Update.
5913 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5914 (objfpy_lookup_objfile_by_build_id): Update.
5915 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5916 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5917 Update.
5918 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5919 (expand_symtab_containing_pc, lookup_objfile_from_block)
5920 (lookup_static_symbol, basic_lookup_transparent_type)
5921 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5922 (find_line_symtab, info_sources_command)
5923 (default_collect_symbol_completion_matches_break_on)
5924 (make_source_files_completion_list, find_main_name): Update.
5925 * symmisc.c (print_symbol_bcache_statistics)
5926 (print_objfile_statistics, maintenance_print_symbols)
5927 (maintenance_print_msymbols, maintenance_print_objfiles)
5928 (maintenance_info_symtabs, maintenance_check_symtabs)
5929 (maintenance_expand_symtabs, maintenance_info_line_tables):
5930 Update.
5931 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5932 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5933 (map_overlay_command, unmap_overlay_command)
5934 (simple_overlay_update, expand_symtabs_matching)
5935 (map_symbol_filenames): Update.
5936 * symfile-debug.c (set_debug_symfile): Update.
5937 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5938 Update.
5939 * source.c (select_source_symtab, forget_cached_source_info):
5940 Update.
5941 * solib.c (solib_read_symbols): Update.
5942 * solib-spu.c (append_ocl_sos): Update.
5943 * psymtab.c (maintenance_print_psymbols)
5944 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5945 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5946 * printcmd.c (info_symbol_command): Update.
5947 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5948 Update.
5949 * objfiles.h (class all_objfiles): Remove.
5950 * objfiles.c (have_partial_symbols, have_full_symbols)
5951 (have_minimal_symbols, qsort_cmp, update_section_map)
5952 (shared_objfile_contains_address_p)
5953 (default_iterate_over_objfiles_in_search_order): Update.
5954 * objc-lang.c (info_selectors_command, info_classes_command)
5955 (find_methods): Update.
5956 * minsyms.c (find_solib_trampoline_target): Update.
5957 * maint.c (maintenance_info_sections)
5958 (maintenance_translate_address, count_symtabs_and_blocks):
5959 Update.
5960 * main.c (captured_main_1): Update.
5961 * linux-thread-db.c (try_thread_db_load_from_pdir)
5962 (has_libpthread): Update.
5963 * linespec.c (iterate_over_all_matching_symtabs)
5964 (search_minsyms_for_name): Update.
5965 * jit.c (jit_find_objf_with_entry_addr): Update.
5966 * hppa-tdep.c (find_unwind_entry)
5967 (hppa_lookup_stub_minimal_symbol): Update.
5968 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5969 Update.
5970 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5971 (elf_gnu_ifunc_resolve_by_got): Update.
5972 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5973 * dwarf-index-write.c (save_gdb_index_command): Update.
5974 * cp-support.c (add_symbol_overload_list_qualified): Update.
5975 * breakpoint.c (create_overlay_event_breakpoint)
5976 (create_longjmp_master_breakpoint)
5977 (create_std_terminate_master_breakpoint)
5978 (create_exception_master_breakpoint): Update.
5979 * blockframe.c (find_pc_partial_function): Update.
5980 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5981 (ada_collect_symbol_completion_matches)
5982 (ada_add_global_exceptions): Update.
5983
776489e0
TT
59842019-01-17 Tom Tromey <tom@tromey.com>
5985
5986 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5987 declare VEC.
5988 (solib_target_parse_libraries): Change return type.
5989 (library_list_start_segment, library_list_start_section)
5990 (library_list_end_library, library_list_start_library); Update.
5991 (solib_target_free_library_list): Remove.
5992 (solib_target_parse_libraries): Remove cleanup. Change return
5993 type.
5994 (solib_target_current_sos): Update.
5995
6471e7d2
TT
59962019-01-17 Tom Tromey <tromey@bapiya>
5997
5998 * valprint.c: Replace "the the" with "the".
5999 * symtab.c: Replace "the the" with "the".
6000 * solib.c: Replace "the the" with "the".
6001 * solib-dsbt.c: Replace "the the" with "the".
6002 * linespec.c: Replace "the the" with "the".
6003 * dwarf2loc.h: Replace "the the" with "the".
6004 * amd64-windows-tdep.c: Replace "the the" with "the".
6005 * aarch64-tdep.c: Replace "the the" with "the".
6006
c24bdb02
KS
60072019-01-16 Keith Seitz <keiths@redhat.com>
6008
6009 PR gdb/23773
6010 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6011 <builder>: Rename to ..
6012 <m_builder>: ... this and make private.
6013 (dwarf2_cu::get_builder): New method. Change all users of
6014 `builder' to use this method.
6015 (dwarf2_start_symtab): Move to ...
6016 (dwarf2_cu::start_symtab): ... here. Update all callers
6017 (setup_type_unit_groups): Move to ...
6018 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6019 callers.
6020 (dwarf2_cu::reset_builder): New method.
6021 (process_full_compunit, process_full_type_unit): Use
6022 dwarf2_cu::reset_builder.
6023 (follow_die_offset): Record the ancestor CU if it is different
6024 from the followed DIE's CU.
6025 (follow_die_sig_1): Likewise.
6026
8d64371b
TT
60272019-01-15 Tom Tromey <tom@tromey.com>
6028
6029 * remote.c (class remote_state) <buf>: Now a char_vector.
6030 <buf_size>: Remove.
6031 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6032 parameter.
6033 (remote_target::getpkt_or_notif_sane_1)
6034 (remote_target::getpkt_sane)
6035 (remote_target::getpkt_or_notif_sane): Likewise.
6036 (class remote_target) <putpkt>: New overload.
6037 (remote_target::read_frame): Change type of "buf_p". Remove
6038 sizeof_p parameter.
6039 (packet_ok): New overload.
6040 (packet_check_result): New overload.
6041 Update all uses.
6042
bb277751
TT
60432019-01-14 Tom Tromey <tom@tromey.com>
6044
6045 * remote-notif.c (handle_notification, remote_notif_ack)
6046 (remote_notif_parse): Make "buf" const.
6047 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6048 const.
6049 (remote_notif_parse, remote_notif_ack, handle_notification):
6050 Likewise.
6051 * remote.c (remote_notif_stop_parse): Make "buf" const.
6052 (remote_target::remote_parse_stop_reply): Make "buf" const.
6053 (remote_notif_stop_ack): Make "buf" const.
6054
05be00a8
TT
60552019-01-14 Tom Tromey <tom@tromey.com>
6056
6057 * remote.c (remote_console_output): Make parameter const.
6058
491adeca
TT
60592019-01-14 Tom Tromey <tom@tromey.com>
6060
6061 * target-debug.h (target_debug_print_signals): Constify.
6062 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6063 * procfs.c (procfs_target::pass_signals): Update.
6064 * linux-nat.c (linux_nat_target::pass_signals): Update.
6065 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6066 * target-delegates.c: Rebuild.
6067 * remote.c (remote_target::program_signals): Update.
6068 (remote_target::pass_signals): Update.
6069 * target.c (target_pass_signals): Constify argument.
6070 (target_program_signals): Likewise.
6071 * target.h (struct target_ops) <pass_signals, program_signals>:
6072 Constify argument.
6073 (target_pass_signals, target_program_signals): Constify argument.
6074
bbd94648
TT
60752019-01-14 Tom Tromey <tom@tromey.com>
6076
6077 PR tui/28819:
6078 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6079
6f072a10
PFC
60802019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6081
6082 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6083 field.
6084 * rs6000-tdep.c: Include reggroups.h.
6085 (IS_V_ALIAS_PSEUDOREG): Define.
6086 (rs6000_register_name): Return names for the "vX" aliases.
6087 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6088 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6089 aliases. Call default_register_reggroup_p for all other
6090 pseudo-registers.
6091 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6092 New functions.
6093 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6094 Handle "vX" aliases.
6095 (v_alias_pseudo_register_collect): New function.
6096 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6097 (rs6000_gdbarch_init): Initialize "vX" aliases as
6098 pseudo-registers. Restore registration of
6099 rs6000_pseudo_register_reggroup_p with
6100 set_tdesc_pseudo_register_reggroup_p.
6101
1a782351
MF
61022019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6103
6104 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6105 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6106 set_gdbarch_num_pseudo_regs.
6107
d73cff18
PW
61082019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6109
6110 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6111 Remove arg prefixname, add do_set and do_show.
6112 Add member functions set_list and show_list.
6113 * cli/cli-style.c (class cli_style_option): Update accordingly.
6114 (style_set_list): Move to file scope.
6115 (style_show_list): Likewise.
6116 (set_style): Call help_list.
6117 (show_style): Call cmd_show_list.
6118 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6119 Update to use the new macro.
6120
60a90376
JB
61212019-10-12 Joel Brobecker <brobecker@adacore.com>
6122
6123 * ada-lang.c (_initialize_ada_language): Expand the help text
6124 for the "catch exception" command.
6125
9d7c67bf
PW
61262019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6127
6128 * symtab.c (matching_obj_sections): Initialize obj,
6129 declare it closer to its usage.
6130
7cf47dc4
TT
61312019-01-10 Tom Tromey <tom@tromey.com>
6132
6133 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6134 (basic_inf_threads_range): Remove.
6135 (inf_threads_range, inf_non_exited_threads_range)
6136 (safe_inf_threads_range): Use next_adapter.
6137
d3cb6808
KS
61382019-01-10 Keith Seitz <keiths@redhat.com>
6139
6140 PR gdb/23712
6141 PR symtab/23010
6142 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6143 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6144
63a20375
KS
61452019-01-10 Keith Seitz <keiths@redhat.com>
6146
6147 PR gdb/23712
6148 PR symtab/23010
6149 * dictionary.c (pending_to_vector): Remove.
6150 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6151 Remove _1 suffix, replacing functions of the same name. Update
6152 all callers.
6153 (dict_create_hashed, dict_create_hashed_expandable)
6154 (dict_create_linear, dict_create_linear_expandable, dict_free)
6155 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6156 Make functions static.
6157
b026f593
KS
61582019-01-10 Keith Seitz <keiths@redhat.com>
6159
6160 PR gdb/23712
6161 PR symtab/23010
6162 * dictionary.h (struct dictionary): Replace declaration with
6163 multidictionary.
6164 (dict_create_hashed, dict_create_hashed_expandable)
6165 (dict_create_linear, dict_create_linear_expandable)
6166 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6167 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6168 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6169 taking multidictionary argument.
6170 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6171 * block.h (struct block) <dict>: Change to multidictionary
6172 and rename `multidict'.
6173 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6174 symmisc.c: Update all dictionary references to multidictionary.
6175
c7748ee9
KS
61762019-01-10 Keith Seitz <keiths@redhat.com>
6177
6178 PR gdb/23712
6179 PR symtab/23010
6180 * dictionary.c: Include unordered_map.
6181 (pending_to_vector): New function.
6182 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6183 Rewrite the non-"_1" functions to take vector instead
6184 of linked list.
6185 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6186 "new" _1 versions of the same name.
6187 (multidictionary): Define.
6188 (std::hash<enum language): New definition.
6189 (collate_pending_symbols_by_language, mdict_create_hashed)
6190 (mdict_create_hashed_expandable, mdict_create_linear)
6191 (mdict_create_linear_expandable, mdict_free)
6192 (find_language_dictionary, create_new_language_dictionary)
6193 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6194 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6195 (mdict_size, mdict_empty): New functions.
6196 * dictionary.h (mdict_iterator): Define.
6197
67aa1f3c
PA
61982019-01-10 Pedro Alves <palves@redhat.com>
6199
6200 * breakpoint.c (read_uploaded_action)
6201 (create_tracepoint_from_upload): Adjust to use
6202 gdb::unique_xmalloc_ptr.
6203 * ctf.c (ctf_write_uploaded_tp):
6204 (SET_ARRAY_FIELD): Use emplace_back.
6205 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6206 * tracefile-tfile.c (tfile_write_uploaded_tp):
6207 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6208 gdb::unique_xmalloc_ptr.
6209 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6210 at_string, cond_string, cmd_strings>: Replace char pointers
6211 with gdb::unique_xmalloc_ptr.
6212
2f667667
PA
62132019-01-10 Pedro Alves <palves@redhat.com>
6214
6215 * solib-target.c (library_list_start_library): Don't xstrdup name.
6216
36cb7237
PA
62172019-01-10 Pedro Alves <palves@redhat.com>
6218
6219 * mdebugread.c (parse_partial_symbols): Use
6220 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6221
da584958
AB
62222019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6223
6224 * linux-fork.c (scoped_switch_fork_info)
6225 <~scoped_switch_fork_info>: Fix incorrect variable name.
6226
1ef8573c
AB
62272019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6228
6229 * linux-fork.c (scoped_switch_fork_info)
6230 <scoped_switch_fork_info>: Make explicit.
6231 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6232
8d7bcccb
TT
62332019-01-10 Tom Tromey <tom@tromey.com>
6234
6235 * objfiles.h (objfile::reset_psymtabs): Update.
6236 * objfiles.c (objfile::objfile): Update.
6237 * psymtab.h (psymtab_storage::obstack): Update.
6238 (psymtab_storage::m_obstack): Use gdb::optional.
6239 (class psymtab_storage): Update comment. Remove objfile
6240 parameter.
6241 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6242
b596a3c7
TT
62432019-01-10 Tom Tromey <tom@tromey.com>
6244
6245 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6246 <free_psymtabs>: Now private.
6247 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6248 (allocate_psymtab): Use new method.
6249
a9342b62
TT
62502019-01-10 Tom Tromey <tom@tromey.com>
6251
6252 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6253 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6254 * mdebugread.c (parse_partial_symbols): Use
6255 allocate_dependencies.
6256 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6257 allocate_dependencies.
6258 (process_psymtab_comp_unit_reader)
6259 (build_type_psymtab_dependencies): Likewise.
6260 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6261
5af70966
TT
62622019-01-10 Tom Tromey <tom@tromey.com>
6263
6264 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6265 PSYMBOL_SET_LANGUAGE.
6266 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6267
5923a04c
TT
62682019-01-10 Tom Tromey <tom@tromey.com>
6269
6270 * psymtab.h (psymtab_storage::obstack): New method.
6271 <m_obstack>: Rename from obstack; now private.
6272 * psymtab.c (psymtab_storage): Update.
6273 * dwarf2read.c (create_addrmap_from_index)
6274 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6275 Update.
6276
6d6a12bf
TT
62772019-01-10 Tom Tromey <tom@tromey.com>
6278
6279 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6280 * objfiles.h (objfile::reset_psymtabs): New method.
6281
d320c2b5
TT
62822019-01-10 Tom Tromey <tom@tromey.com>
6283
6284 * symmisc.c (print_symbol_bcache_statistics): Update.
6285 (print_objfile_statistics): Update.
6286 * symfile.c (reread_symbols): Update.
6287 * psymtab.h (class psymtab_storage): New.
6288 * psymtab.c (psymtab_storage): New constructor.
6289 (~psymtab_storage): New destructor.
6290 (require_partial_symbols): Update.
6291 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6292 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6293 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6294 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6295 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6296 (start_psymtab_common, end_psymtab_common)
6297 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6298 (allocate_psymtab): Update.
6299 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6300 Update.
6301 (dump_psymtab_addrmap, maintenance_print_psymbols)
6302 (maintenance_check_psymtabs): Update.
6303 (class objfile_psymtabs): Move to objfiles.h.
6304 * psympriv.h (discard_psymtab): Now inline.
6305 (psymtab_discarder::psymtab_discarder): Update.
6306 (psymtab_discarder::~psymtab_discarder): Update.
6307 (ALL_OBJFILE_PSYMTABS): Rewrite.
6308 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6309 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6310 Remove fields.
6311 <partial_symtabs>: New field.
6312 (class objfile_psymtabs): Move from psymtab.h. Update.
6313 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6314 psymbol_cache.
6315 (objfile::~objfile): Don't destroy psymbol_cache.
6316 * mdebugread.c (parse_partial_symbols): Update.
6317 * dwarf2read.c (create_addrmap_from_index)
6318 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6319 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6320 (add_partial_subprogram, dwarf2_ranges_read): Update.
6321 * dwarf-index-write.c (write_address_map)
6322 (write_one_signatured_type, recursively_write_psymbols)
6323 (class debug_names, class debug_names, write_psymtabs_to_index):
6324 Update.
6325
1d94a5a3
TT
63262019-01-10 Tom Tromey <tom@tromey.com>
6327
6328 * symtab.h (SYMBOL_SET_NAMES): Update.
6329 (symbol_set_names): Update.
6330 (MSYMBOL_SET_NAMES): Update.
6331 * symtab.c (symbol_set_names): Change argument to be an
6332 objfile_per_bfd_storage.
6333 * psymtab.c (add_psymbol_to_bcache): Update.
6334 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6335
0f14768a
TT
63362019-01-10 Tom Tromey <tom@tromey.com>
6337
6338 * symtab.c (create_demangled_names_hash): Change argument to be an
6339 objfile_per_bfd_storage.
6340 (symbol_set_names): Update.
6341
6eee24ce
TT
63422019-01-10 Tom Tromey <tom@tromey.com>
6343
6344 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6345 init_psymbol_list.
6346 * psymtab.c (init_psymbol_list): Do nothing if already called.
6347 * psympriv.h (init_psymbol_list): Add comment.
6348 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6349 init_psymbol_list.
6350 * dbxread.c (dbx_symfile_read): Unconditionally call
6351 init_psymbol_list.
6352
75aedd27
TT
63532019-01-10 Tom Tromey <tom@tromey.com>
6354
6355 * xcoffread.c (scan_xcoff_symtab): Update.
6356 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6357 "where".
6358 * mdebugread.c (parse_partial_symbols)
6359 (handle_psymbol_enumerators): Update.
6360 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6361 * dbxread.c (read_dbx_symtab): Update.
6362 * psympriv.h (psymbol_placement): New enum.
6363 (add_psymbol_to_list): Update.
6364
939652a5
TT
63652019-01-10 Tom Tromey <tom@tromey.com>
6366
6367 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6368 static_psymbols parameters.
6369 (scan_xcoff_symtab): Update.
6370 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6371 static_psymbols parameters.
6372 * psympriv.h (start_psymtab_common): Update.
6373 * mdebugread.c (parse_partial_symbols): Update.
6374 * dwarf2read.c (create_partial_symtab): Update.
6375 * dbxread.c (read_dbx_symtab): Update.
6376 (start_psymtab): Remove global_psymbols and static_psymbols
6377 parameters.
6378
baa62830
TT
63792019-01-10 Tom Tromey <tom@tromey.com>
6380
6381 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6382 * psymtab.c (allocate_psymtab): Add comment.
6383 * psympriv.h (allocate_psymtab): Add comment.
6384 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6385 initializations.
6386 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6387
0e8f53ba
TT
63882019-01-10 Tom Tromey <tom@tromey.com>
6389
6390 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6391 Don't declare.
6392 * mipsread.c: Include mdebugread.h.
6393 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6394 Declare.
6395 * elfread.c: Include mdebugread.h.
6396
b22a7c6a
TT
63972019-01-09 Tom Tromey <tom@tromey.com>
6398
6399 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6400 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6401 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6402 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6403 (psym_lookup_symbol, psym_find_last_source_symtab)
6404 (psym_forget_cached_source_info, psym_print_stats)
6405 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6406 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6407 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6408 (psym_find_compunit_symtab_by_address)
6409 (maintenance_print_psymbols, maintenance_info_psymtabs)
6410 (maintenance_check_psymtabs): Use ranged for.
6411 * psymtab.h (class objfile_psymtabs): New.
6412 (require_partial_symbols): Return objfile_psymtabs.
6413 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6414
3b9d3ac2
TT
64152019-01-09 Tom Tromey <tom@tromey.com>
6416
6417 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6418 (find_pc_mapped_section, list_overlays_command)
6419 (map_overlay_command, unmap_overlay_command)
6420 (simple_overlay_update): Use all_objfiles.
6421 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6422 * printcmd.c (info_symbol_command): Use all_objfiles.
6423 * objfiles.h (ALL_OBJSECTIONS): Remove.
6424 * maint.c (maintenance_translate_address): Use all_objfiles.
6425 * gcore.c (gcore_create_callback): Use all_objfiles.
6426 (objfile_find_memory_regions): Likewise.
6427
8b31193a
TT
64282019-01-09 Tom Tromey <tom@tromey.com>
6429
6430 * symtab.c (find_line_symtab, info_sources_command)
6431 (make_source_files_completion_list): Use objfile_compunits.
6432 * source.c (select_source_symtab): Use objfile_compunits.
6433 * objfiles.h (struct objfile): Update comment.
6434 (ALL_OBJFILES): Remove.
6435 (ALL_FILETABS): Remove.
6436 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6437 objfile_compunits.
6438
d5da8b3c
TT
64392019-01-09 Tom Tromey <tom@tromey.com>
6440
6441 * symmisc.c (print_objfile_statistics, dump_objfile)
6442 (maintenance_print_symbols): Use compunit_filetabs.
6443 * source.c (forget_cached_source_info_for_objfile): Use
6444 compunit_filetabs.
6445 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6446 (ALL_FILETABS): Use compunit_filetabs.
6447 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6448 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6449
5accd1a0
TT
64502019-01-09 Tom Tromey <tom@tromey.com>
6451
6452 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6453 (compunit_filetabs): New.
6454 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6455 compunit_filetabs.
6456 (info_sources_command, make_source_files_completion_list): Remove
6457 declaration.
6458 * symmisc.c (print_objfile_statistics, dump_objfile)
6459 (maintenance_print_symbols): Remove declaration.
6460 (maintenance_info_symtabs): Use compunit_filetabs.
6461 (maintenance_info_line_tables): Likewise.
6462 * source.c (select_source_symtab): Change local variable name.
6463 (forget_cached_source_info_for_objfile): Remove declaration.
6464 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6465 * objfiles.c (objfile_relocate1): Remove declaration.
6466 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6467 declaration.
6468 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6469 * coffread.c (coff_symtab_read): Remove declaration.
6470 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6471 compunit_filetabs.
6472
d8aeb77f
TT
64732019-01-09 Tom Tromey <tom@tromey.com>
6474
6475 * symtab.c (lookup_objfile_from_block)
6476 (find_pc_sect_compunit_symtab, search_symbols)
6477 (default_collect_symbol_completion_matches_break_on): Use
6478 objfile_compunits.
6479 * objfiles.h (ALL_COMPUNITS): Remove.
6480 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6481 * cp-support.c (add_symbol_overload_list_qualified): Use
6482 objfile_compunits.
6483 * ada-lang.c (ada_collect_symbol_completion_matches)
6484 (ada_add_global_exceptions): Use objfile_compunits.
6485
592553c4
TT
64862019-01-09 Tom Tromey <tom@tromey.com>
6487
6488 * source.c (select_source_symtab)
6489 (forget_cached_source_info_for_objfile): Remove declaration.
6490 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6491 declaration.
6492 * maint.c (count_symtabs_and_blocks): Remove declaration.
6493 * cp-support.c (add_symbol_overload_list_qualified): Remove
6494 declaration.
6495 * coffread.c (coff_symtab_read): Remove declaration.
6496 * symtab.c (lookup_symbol_in_objfile_symtabs)
6497 (basic_lookup_transparent_type_1): Use objfile_compunits.
6498 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6499 (info_sources_command, search_symbols)
6500 (default_collect_symbol_completion_matches_break_on)
6501 (make_source_files_completion_list): Remove declaration.
6502 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6503 (ada_collect_symbol_completion_matches)
6504 (ada_add_global_exceptions): Remove declaration.
6505 * linespec.c (iterate_over_all_matching_symtabs): Use
6506 objfile_compunits.
6507 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6508 (class objfile_compunits): New.
6509 (ALL_COMPUNITS): Use objfile_compunits.
6510 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6511 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6512 objfile_compunits.
6513 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6514
5325b9bf
TT
65152019-01-09 Tom Tromey <tom@tromey.com>
6516
6517 * symtab.c (search_symbols)
6518 (default_collect_symbol_completion_matches_break_on): Use
6519 objfile_msymbols.
6520 * ada-lang.c (ada_lookup_simple_minsym)
6521 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6522 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6523 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6524 objfile_msymbols.
6525 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6526 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6527 * objc-lang.c (find_methods): Use objfile_msymbols.
6528 (info_selectors_command, info_classes_command): Likewise.
6529 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6530 * objfiles.h (class objfile_msymbols): New.
6531 (ALL_OBJFILE_MSYMBOLS): Remove.
6532 (ALL_MSYMBOLS): Remove.
6533
cac85af2
TT
65342019-01-09 Tom Tromey <tom@tromey.com>
6535
6536 * common/next-iterator.h (next_adapter): Add Iterator template
6537 parameter.
6538 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6539 (class all_objfiles_safe): New.
6540 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6541 * objfiles.c (put_objfile_before): Update comment.
6542 (add_separate_debug_objfile): Likewise.
6543 (free_all_objfiles): Use all_objfiles_safe.
6544 (objfile_purge_solibs): Likewise.
6545
aed57c53
TT
65462019-01-09 Tom Tromey <tom@tromey.com>
6547
6548 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6549 (expand_symtab_containing_pc, lookup_static_symbol)
6550 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6551 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6552 all_objfiles.
6553 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6554 * breakpoint.c (create_overlay_event_breakpoint)
6555 (create_longjmp_master_breakpoint)
6556 (create_std_terminate_master_breakpoint)
6557 (create_exception_master_breakpoint): Use all_objfiles.
6558 * linux-thread-db.c (try_thread_db_load_from_pdir)
6559 (has_libpthread): Use all_objfiles.
6560 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6561 * linespec.c (iterate_over_all_matching_symtabs)
6562 (search_minsyms_for_name): Use all_objfiles.
6563 * maint.c (maintenance_info_sections): Use all_objfiles.
6564 * main.c (captured_main_1): Use all_objfiles.
6565 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6566 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6567 * guile/scm-pretty-print.c
6568 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6569 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6570 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6571 (maintenance_print_msymbols): Use all_objfiles.
6572 * source.c (select_source_symtab): Use all_objfiles.
6573 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6574 * symfile.c (remove_symbol_file_command)
6575 (expand_symtabs_matching, map_symbol_filenames): Use
6576 all_objfiles.
6577 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6578 all_objfiles.
6579 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6580 * objc-lang.c (find_methods): Use all_objfiles.
6581 * objfiles.c (have_partial_symbols, have_full_symbols)
6582 (have_minimal_symbols, qsort_cmp)
6583 (default_iterate_over_objfiles_in_search_order): Use
6584 all_objfiles.
6585 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6586 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6587 (maintenance_check_psymtabs): Use all_objfiles.
6588 (ALL_PSYMTABS): Remove.
6589 * compile/compile-object-run.c (do_module_cleanup): Use
6590 all_objfiles.
6591 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6592 * cp-support.c (add_symbol_overload_list_qualified): Use
6593 all_objfiles.
6594 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6595 Use all_objfiles.
6596 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6597 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6598 all_objfiles.
6599 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6600 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6601 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6602 Uses all_objfiles.
6603 * solib.c (solib_read_symbols): Use all_objfiles
6604
99d89cde
TT
66052019-01-09 Tom Tromey <tom@tromey.com>
6606
6607 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6608 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6609 all_objfiles.
6610 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6611 * symmisc.c (print_symbol_bcache_statistics)
6612 (print_objfile_statistics, maintenance_print_objfiles)
6613 (maintenance_info_symtabs, maintenance_check_symtabs)
6614 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6615 all_objfiles.
6616 * source.c (forget_cached_source_info): Use all_objfiles.
6617 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6618 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6619 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6620 * objfiles.c (update_section_map): Use all_objfiles.
6621 (shared_objfile_contains_address_p): Likewise.
6622 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6623 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6624
21708325
TT
66252019-01-09 Tom Tromey <tom@tromey.com>
6626
6627 * common/next-iterator.h: New file.
6628 * objfiles.h (class all_objfiles): New.
6629 (struct objfile_iterator): New.
6630
669e09f6
PW
66312019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6632
6633 * NEWS: Move the description of the changed "frame", "select-frame",
6634 and "info frame" commands to the Changed commands section.
6635
041be526
SM
66362019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6637
6638 * gdbtypes.c (check_stub_method_group): Remove handling of old
6639 mangling schemes.
6640 * linespec.c (find_methods): Likewise.
6641 * stabsread.c (read_member_functions): Likewise.
6642 * valops.c (search_struct_method): Likewise.
6643 (value_struct_elt_for_reference): Likewise.
6644 * NEWS: Mention this change.
6645
0e2a2133
AB
66462019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6649 print_source_lines.
6650 * source.c (print_source_lines_base): Update line number check.
6651 (print_source_lines): New function.
6652 (source_lines_range::source_lines_range): New function.
6653 * source.h (class source_lines_range): New class.
6654 (print_source_lines): New declaration.
6655
1055a3b4
PW
66562019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6657
6658 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6659
cfeadda5
TT
66602019-01-08 Tom Tromey <tom@tromey.com>
6661 Simon Marchi <simon.marchi@ericsson.com>
6662
6663 PR gdb/24060
6664 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6665 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6666 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6667 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6668 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6669 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6670
583068ca
AB
66712019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * source.c (select_source_symtab): Move header comment to
6674 declaration in source.h.
6675 (forget_cached_source_info_for_objfile): Likewise.
6676 (forget_cached_source_info): Likewise.
6677 (identify_source_line): Likewise.
6678 * source.h (identify_source_line): Move declaration from symtab.h
6679 and add comment from source.c
6680 (print_source_lines): Likewise.
6681 (forget_cached_source_info_for_objfile): Likewise.
6682 (forget_cached_source_info): Likewise.
6683 (select_source_symtab): Likewise.
6684 (enum print_source_lines_flag): Move definition from symtab.h.
6685 * symtab.h (identify_source_line): Move declaration to source.h.
6686 (print_source_lines): Likewise.
6687 (forget_cached_source_info_for_objfile): Likewise.
6688 (forget_cached_source_info): Likewise.
6689 (select_source_symtab): Likewise.
6690 (enum print_source_lines_flag): Move definition to source.h.
6691 * tui/tui-hooks.c: Add 'source.h' include.
6692
ec98a4ad
AB
66932019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6694
6695 * source.c (print_source_lines_base): Handle requests to print
6696 reverse line number sequences, and guard against empty lines
6697 string.
6698
62ea19c1
AB
66992019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6700
6701 * source.c (print_source_lines_base): Fix skip of '\r' if next
6702 character is '\n'.
6703
9d30e1fd
TT
67042019-01-06 Tom Tromey <tom@tromey.com>
6705
6706 * c-exp.y (struct c_parse_state) <macro_original_text,
6707 expansion_obstack>: New member.
6708 (macro_original_text, expansion_obstack): Remove globals.
6709 (scan_macro_expansion, scanning_macro_expansion)
6710 (finished_macro_expansion): Update.
6711 (scan_macro_cleanup): Remove.
6712 (yylex, c_parse): Update.
6713
c65bac38
TT
67142019-01-06 Tom Tromey <tom@tromey.com>
6715
6716 * c-exp.y (struct c_parse_state) <strings>: New member.
6717 (operator_stoken): Update.
6718
02e12e38
TT
67192019-01-06 Tom Tromey <tom@tromey.com>
6720
6721 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6722 (union type_stack_elt) <typelist_val>: Now a pointer to
6723 std::vector.
6724 (type_stack_cleanup): Don't declare.
6725 (push_typelist): Update.
6726 * parse.c (pop_typelist): Return a std::vector.
6727 (push_typelist): Take a std::vector.
6728 (follow_types): Update. Do not free args.
6729 (type_stack_cleanup): Remove.
6730 * c-exp.y (struct c_parse_state): New.
6731 (cpstate): New global.
6732 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6733 (nonempty_typelist): Update.
6734 (func_mod): Create a new vector.
6735 (c_parse): Create a c_parse_state.
6736 (check_parameter_typelist): Do not delete params.
6737 (function_method): Update. Do not delete type_list.
6738
f097f5ad
TT
67392019-01-06 Tom Tromey <tom@tromey.com>
6740
6741 PR gdb/28155:
6742 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6743 check_typedef.
6744 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6745 (print_return_value): Likewise.
6746
d2adf9f1
TT
67472019-01-05 Tom Tromey <tom@tromey.com>
6748
6749 * contrib/cleanup_check.py: Remove.
6750 * contrib/gcc-with-excheck: Remove.
6751 * contrib/exsummary.py: Remove.
6752 * contrib/excheck.py: Remove.
6753
2eab46b1
JB
67542019-01-05 Joel Brobecker <brobecker@adacore.com>
6755
6756 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6757 NULL. Initialize tpprev to NULL instead of assigning it
6758 to NULL on the next statement.
6759 * windows-nat.c (windows_delete_thread): Remove check for
6760 main_thread_id before printing thread exit notifications.
6761 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6762 Remove thread ID check against main_thread_id.
6763 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6764 windows_delete_thread.
6765 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6766
48c5e7e2
TT
67672019-01-04 Tom Tromey <tom@tromey.com>
6768
6769 * compile/compile.c (_initialize_compile): Use upper case for
6770 metasyntactic variables.
6771 * symmisc.c (_initialize_symmisc): Use upper case for
6772 metasyntactic variables.
6773 * psymtab.c (_initialize_psymtab): Use upper case for
6774 metasyntactic variables.
6775 * demangle.c (demangle_command): Use upper case for metasyntactic
6776 variables.
6777 (_initialize_demangler): Likewise.
6778 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6779 variables.
6780
986041cd
TT
67812019-01-03 Tom Tromey <tom@tromey.com>
6782
6783 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6784
7c711119
TT
67852019-01-03 Tom Tromey <tom@tromey.com>
6786
6787 * python/py-symtab.c (salpy_str): Update.
6788 (struct salpy_sal_object) <symtab>: Now a PyObject.
6789 (salpy_dealloc): Update.
6790 (del_objfile_sal): Use gdbpy_ref.
6791
1b20edf0
TT
67922019-01-03 Tom Tromey <tom@tromey.com>
6793
6794 * python/py-type.c (convert_field): Use new_reference. Return
6795 gdbpy_ref.
6796 (make_fielditem): Return gdbpy_ref.
6797 (typy_fields): Update.
6798 (typy_getitem): Update.
6799 (field_name): Return gdbpy_ref. Use new_reference.
6800 (typy_iterator_iternext): Update.
6801
ea41325b
TT
68022019-01-03 Tom Tromey <tom@tromey.com>
6803
6804 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6805
2a3c71d6
TT
68062019-01-03 Tom Tromey <tom@tromey.com>
6807
6808 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6809 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6810 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6811 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6812 (pspy_set_type_printers): Likewise.
6813 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6814 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6815 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6816 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6817 (objfpy_set_type_printers): Likewise.
6818
5c329e6a
TT
68192019-01-03 Tom Tromey <tom@tromey.com>
6820
6821 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6822 (gdbpy_print_stack): Use gdbpy_err_fetch.
6823 * python/python-internal.h (class gdbpy_err_fetch): New class.
6824 (class gdbpy_enter) <m_error_type, m_error_value,
6825 m_error_traceback>: Remove.
6826 <m_error>: New member.
6827 (gdbpy_exception_to_string): Don't declare.
6828 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6829 * python/py-value.c (convert_value_from_python): Use
6830 gdbpy_err_fetch.
6831 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6832 gdbpy_exception_to_string.
6833 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6834 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6835 gdbpy_err_fetch.
6836
169bb27b
AB
68372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6838
6839 * linux-nat.c (delete_lwp_cleanup): Delete.
6840 (struct lwp_deleter): New struct.
6841 (lwp_info_up): New typedef.
6842 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6843 lwp_info_up.
6844
a07c8880
AB
68452019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6846
6847 * linux-fork.c (class scoped_switch_fork_info): New class.
6848 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6849
26089c49
AB
68502019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6851
6852 * valops.c (find_overload_match): Remove use of null_cleanup, and
6853 calls to do_cleanups.
6854
06d3e5b0
AB
68552019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6856
6857 * compile/compile-cplus-types.c
6858 (compile_cplus_instance::decl_name): Handle changes to
6859 cp_func_name.
6860 * cp-support.c (cp_func_name): Update header comment, update
6861 return type.
6862 * cp-support.h (cp_func_name): Update return type in declaration.
6863 * valops.c (find_overload_match): Move temp_func local to top
6864 level of function and change its type. Use temp_func to hold and
6865 delete temporary string obtained from cp_func_name.
6866
66644cd3
AB
68672019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6868
6869 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6870 gdb::char_vector, remove cleanup, and update uses of `msg`.
6871
592d8c0a
JW
68722019-01-03 Jim Wilson <jimw@sifive.com>
6873
6874 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6875
c55d06ec
TT
68762019-01-02 Tom Tromey <tom@tromey.com>
6877
6878 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6879 (tdesc_parse_xml): Remove cleanups.
6880 * target-descriptions.h (make_cleanup_free_target_description):
6881 Don't declare.
6882 (target_desc_deleter): New struct.
6883 (target_desc_up): New typedef.
6884 * target-descriptions.c (target_desc_deleter::operator()): Rename
6885 from free_target_description.
6886 (make_cleanup_free_target_description): Remove.
6887
3a6ae42d
TT
68882019-01-02 Tom Tromey <tom@tromey.com>
6889
6890 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
6891 constructor, destructor.
6892 (linespec_parser): Remove typedef.
6893 (~linespec_parser): Rename from linespec_parser_delete.
6894 (linespec_lex_to_end, linespec_complete_label)
6895 (linespec_complete): Update.
6896 (decode_line_full): Remove cleanups.
6897 (decode_line_1): Update.
6898
61fd3e73
TT
68992019-01-02 Tom Tromey <tom@tromey.com>
6900
6901 * python/python-internal.h (inferior_to_inferior_object): Change
6902 return type.
6903 * python/py-exitedevent.c (create_exited_event_object): Update.
6904 * python/py-inferior.c (inferior_to_inferior_object): Return
6905 gdbpy_ref.
6906 (python_new_inferior, python_inferior_deleted)
6907 (thread_to_thread_object, delete_thread_object)
6908 (build_inferior_list, gdbpy_selected_inferior): Update.
6909 * python/py-infthread.c (create_thread_object): Update. Also fail
6910 if inferior_to_inferior_object fails.
6911
d20172fc
SM
69122019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6913
6914 * inferior.h (class inferior) <displaced_step_state>: New field.
6915 * infrun.h (struct displaced_step_state): Move here from
6916 infrun.c. Initialize fields, add constructor.
6917 <inf>: Remove field.
6918 <reset>: New method.
6919 * infrun.c (struct displaced_step_inferior_state): Move to
6920 infrun.h.
6921 (displaced_step_inferior_states): Remove.
6922 (get_displaced_stepping_state): Adust.
6923 (displaced_step_in_progress_any_inferior): Adjust.
6924 (displaced_step_in_progress_thread): Adjust.
6925 (displaced_step_in_progress): Adjust.
6926 (add_displaced_stepping_state): Remove.
6927 (get_displaced_step_closure_by_addr): Adjust.
6928 (remove_displaced_stepping_state): Remove.
6929 (infrun_inferior_exit): Call displaced_step_state.reset.
6930 (use_displaced_stepping): Don't check for NULL.
6931 (displaced_step_prepare_throw): Call
6932 get_displaced_stepping_state.
6933 (displaced_step_fixup): Don't check for NULL.
6934 (prepare_for_detach): Don't check for NULL.
6935
e3319240
PW
69362019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6937
6938 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6939 in case of call that did not complete.
6940
5d36dfb9
AU
69412019-01-02 Andrey Utkin <autkin@undo.io>
6942
6943 * symfile.c (find_separate_debug_file): Fix search of debug files for
6944 remote debuggee.
6945
8833fbf0
TT
69462019-01-02 Tom Tromey <tom@tromey.com>
6947
6948 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6949 indentation.
6950 * python/py-frame.c (frapy_older): Remove cast.
6951 (frapy_newer): Likewise.
6952 * python/py-breakpoint.c (local_setattro): Remove cast.
6953 * python/py-arch.c (archpy_name): Remove local variable.
6954 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6955
4ada3dfd
JB
69562019-01-02 Joel Brobecker <brobecker@adacore.com>
6957
6958 * unittests/basic_string_view/element_access/char/empty.cc:
6959 Fix year range in copyright header.
6960
113b7b81
AB
69612019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6964 Delete.
6965 <operator==>: Update with for removed field.
6966 <hash>: Likewise.
6967 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6968 <isa_features>: ...this.
6969 <abi_features>: New field.
6970 (riscv_isa_flen): Update comment.
6971 (riscv_abi_xlen): New declaration.
6972 (riscv_abi_flen): New declaration.
6973 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6974 isa_features.
6975 (riscv_abi_xlen): New function.
6976 (riscv_isa_flen): Update to get answer from isa_features.
6977 (riscv_abi_flen): New function.
6978 (riscv_has_fp_abi): Update to get answer from abi_features.
6979 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6980 xlen and flen.
6981 (riscv_call_info) <xlen, flen>: Update comment.
6982 (riscv_call_arg_struct): Remove invalid assertions
6983 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6984 is removed.
6985 (riscv_gdbarch_init): Gather isa features and abi features
6986 separately, ensure both match on the gdbarch when reusing an old
6987 gdbarch. Relax an error check to allow 32-bit abi float to run on
6988 a target with 64-bit float hardware.
6989
b18ca514
PW
69902019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6991
6992 * source.c (search_command_helper): Stop reverse search
6993 when line 1 has been searched.
6994
ec70d8db
PW
69952019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6996
6997 * record-full.c (record_full_base_target::close): Rewrite
6998 record_full_core_buf_list free logic.
6999
5b38f9c1
PW
70002019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7001
7002 * break-catch-syscall.c (print_one_catch_syscall): xfree
7003 the last text.
7004
66d91b39
JB
70052019-01-01 Joel Brobecker <brobecker@adacore.com>
7006
7007 * top.c (print_gdb_version): Update Copyright year in version
7008 message.
7009
42a4f53d
JB
70102019-01-01 Joel Brobecker <brobecker@adacore.com>
7011
7012 Update copyright year range in all GDB files.
7013
7e955d83 70142019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 7015
5bbd631d 7016 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 7017
5bbd631d 7018For older changes see ChangeLog-2018.
c906108c
SS
7019\f
7020Local Variables:
7021mode: change-log
7022left-margin: 8
7023fill-column: 74
7024version-control: never
57da7796 7025coding: utf-8
c906108c 7026End:
5bbd631d 7027
This page took 2.86139 seconds and 4 git commands to generate.