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