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