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