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