gdb: improve the warning given for deprecated aliases with a prefix
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
4 result from lookup_cmd_composition_1, use the prefixes from both
5 the command and the alias instead.
6 (lookup_cmd_composition_1): Initial prefix command is the based on
7 the search list being passed in. Simplify the logic for tracking
8 the prefix command. Replace a use of alloca with a local
9 std::string.
10
11 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
12
13 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
14 of NULL. Don't print message piece by piece, but sentence at a
15 time to allow internationalisation. Some whitespace cleanup.
16
17 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 PR cli/15104
20 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
21 deprecated_cmd_warning.
22 (deprecated_cmd_warning): Take extra parameter, call
23 lookup_cmd_composition_1 and pass new parameter through.
24 (lookup_cmd_composition_1): New function, takes implementation of
25 lookup_cmd_composition but with extra parameter.
26 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
27 passing in cmdlist.
28 * command.h (deprecated_cmd_warning): Add extra parameter to
29 declaration.
30 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
31
32 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
35 command.h, add extra parameter, and use this to guard giving a
36 warning.
37 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
38 include argument names in declaration, add new argument.
39 * completer.c (complete_line_internal_1): Remove unneeded
40 brackets, pass extra argument to lookup_cmd_1.
41
42 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * infrun.h (debug_infrun): Make a bool.
45 * infrun.c (debug_infrun): Make a bool.
46 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
47 debug infrun".
48
49 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * displaced-stepping.h (displaced_debug_printf): Use
52 debug_prefixed_printf_cond.
53 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
54 (dwarf_read_debug_printf_v): Likewise.
55 * infrun.h (infrun_debug_printf): Likewise.
56 * linux-nat.c (linux_nat_debug_printf): Likewise.
57
58 2020-12-11 Tom Tromey <tom@tromey.com>
59
60 * p-exp.y (intvar): Remove global.
61 (DOLLAR_VARIABLE): Change type.
62 (start): Update.
63 (exp): Call write_dollar_variable here...
64 (yylex): ... not here.
65 * m2-exp.y (DOLLAR_VARIABLE): Change type.
66 (variable): Call write_dollar_variable here...
67 (yylex): ... not here.
68 * f-exp.y (DOLLAR_VARIABLE): Change type.
69 (exp): Call write_dollar_variable here...
70 (yylex): ... not here.
71
72 2020-12-11 Tom Tromey <tom@tromey.com>
73
74 * varobj.c (varobj_create): Update.
75 (install_variable): Return void.
76
77 2020-12-11 Tom Tromey <tom@tromey.com>
78
79 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
80
81 2020-12-11 Tom Tromey <tom@tromey.com>
82
83 * varobj.c (varobj_clear_saved_item): Remove.
84 (update_dynamic_varobj_children): Update.
85 (varobj::~varobj): Don't call varobj_clear_saved_item.
86
87 2020-12-11 Tom Tromey <tom@tromey.com>
88
89 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
90 (update_dynamic_varobj_children, create_child)
91 (create_child_with_value): Update.
92 * varobj-iter.h (struct varobj_item) <value>: Now a
93 value_ref_ptr.
94 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
95
96 2020-12-11 Tom Tromey <tom@tromey.com>
97
98 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
99 (varobj_get_iterator): Return unique_ptr.
100 (update_dynamic_varobj_children, install_visualizer)
101 (varobj::~varobj): Update.
102 * python/python-internal.h (py_varobj_get_iterator): Return
103 unique_ptr.
104 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
105
106 2020-12-11 Tom Tromey <tom@tromey.com>
107
108 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
109 (varobj_clear_saved_item, update_dynamic_varobj_children):
110 Update.
111
112 2020-12-11 Tom Tromey <tom@tromey.com>
113
114 * varobj.c (update_dynamic_varobj_children): Update.
115 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
116 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
117 type.
118 (py_varobj_iter::next): Likewise.
119
120 2020-12-11 Tom Tromey <tom@tromey.com>
121
122 * varobj.c (update_dynamic_varobj_children, install_visualizer)
123 (varobj::~varobj): Update.
124 * varobj-iter.h (struct varobj_iter): Change to interface class.
125 (struct varobj_iter_ops): Remove.
126 (varobj_iter_next, varobj_iter_delete): Remove.
127 * python/py-varobj.c (struct py_varobj_iter): Derive from
128 varobj_iter. Add constructor, destructor. Rename members.
129 (py_varobj_iter::~py_varobj_iter): Rename from
130 py_varobj_iter_dtor.
131 (py_varobj_iter::next): Rename from py_varobj_iter_next.
132 (py_varobj_iter_ops): Remove.
133 (py_varobj_iter): Rename from py_varobj_iter_ctor.
134 (py_varobj_iter_new): Remove.
135 (py_varobj_get_iterator): Update.
136
137 2020-12-11 Tom Tromey <tom@tromey.com>
138
139 * varobj.h (all_root_varobjs): Take a function_view.
140 * varobj.c (all_root_varobjs): Take a function_view.
141 (varobj_invalidate_iter): Remove unused parameter.
142 (varobj_invalidate): Update.
143 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
144 (mi_cmd_var_update_iter): Change parameters.
145
146 2020-12-11 Tom Tromey <tom@tromey.com>
147
148 * varobj.c (struct varobj_root) <next>: Remove.
149 (struct vlist): Remove.
150 (rootlist): Now a std::list.
151 (install_variable, uninstall_variable, all_root_varobjs): Update.
152
153 2020-12-11 Tom Tromey <tom@tromey.com>
154
155 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
156 (varobj_table): Now htab_t.
157 (varobj_get_handle, install_variable, uninstall_variable):
158 Update.
159 (hash_varobj, eq_varobj_and_string): New functions.
160 (hash_varobj): Update.
161
162 2020-12-11 Tom Tromey <tom@tromey.com>
163
164 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
165 * ada-lang.c (check_status_exception): Update.
166 * breakpoint.c (free_bp_location): Remove.
167 (decref_bp_location): Use bp_location_ref_policy.
168 (bpstats::bpstats): Don't call incref_bp_location.
169 (bpstats::~bpstats): Remove.
170 (bpstats::bpstats): Update.
171 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
172 (bp_location::bp_location): Update.
173 (incref_bp_location): Remove.
174 (bkpt_print_it): Update.
175 * breakpoint.h (class bp_location): Derive from
176 refcounted_object.
177 (struct bpstats): Remove destructor.
178 <bp_location_at>: Now a bp_location_ref_ptr.
179 <refc>: Remove.
180 (bp_location_ref_ptr): New typedef.
181 (struct bp_location_ref_policy): New.
182
183 2020-12-11 Tom Tromey <tom@tromey.com>
184
185 * thread.c (class scoped_inc_dec_ref): Remove.
186 (tp_array_compar_ascending, tp_array_compar_descending): Change
187 parameter types.
188 (thread_apply_all_command): Use thread_info_ref.
189
190 2020-12-11 Tom Tromey <tom@tromey.com>
191
192 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
193 (stop_context::stop_context): Update.
194 (stop_context::~stop_context): Remove.
195
196 2020-12-11 Tom Tromey <tom@tromey.com>
197
198 * inferior.c (current_inferior_): Change type.
199 (current_inferior, set_current_inferior, initialize_inferiors):
200 Update.
201
202 2020-12-11 Tom Tromey <tom@tromey.com>
203
204 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
205 Change type.
206
207 2020-12-11 Tom Tromey <tromey@adacore.com>
208
209 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
210 field.
211 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
212 (read_atcb): Use cpu_id_offset.
213
214 2020-12-10 Kevin Buettner <kevinb@redhat.com>
215
216 * ada-lang.c (ada_fold_name): Fix off-by-one error.
217
218 2020-12-10 Luis Machado <luis.machado@linaro.org>
219
220 * breakpoint.c (should_be_inserted): Don't output newline.
221
222 2020-12-10 Luis Machado <luis.machado@linaro.org>
223
224 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
225 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
226 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
227 * arch/aarch64.h: ... here.
228 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
229 (aarch64_maybe_swab128): New function.
230 (aarch64_sve_regs_copy_to_reg_buf)
231 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
232 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
233 the data field.
234 (TF_REG_VALUE_BYTES): New enum value.
235 (trad_frame_value_bytes_p): New function.
236 (trad_frame_set_value_bytes): New function.
237 (trad_frame_set_reg_value_bytes): New function.
238 (trad_frame_get_prev_register): Handle register values saved as bytes.
239 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
240 (struct trad_frame_saved_reg) <data>: New field.
241 (trad_frame_set_value_bytes): New prototype.
242 (trad_frame_value_bytes_p): New prototype.
243
244 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
245
246 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
247 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
248 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
249
250 2020-12-09 Tom Tromey <tromey@adacore.com>
251
252 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
253
254 2020-12-09 Tom Tromey <tromey@adacore.com>
255
256 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
257 and "denominator" to gdb_mpz. Handle block forms.
258 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
259 "denominator" to gdb_mpz.
260 (finish_fixed_point_type): Update.
261 (has_zero_over_zero_small_attribute): Update.
262
263 2020-12-09 Tom Tromey <tromey@adacore.com>
264
265 * expprint.c (op_name): Update.
266 * expression.h (enum exp_opcode): Update.
267 * std-operator.def: Add more opcodes.
268 * ada-operator.def, fortran-operator.def: Remove, moving contents
269 into std-operator.def.
270
271 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
272
273 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
274 Return {} instead of false.
275 (get_discrete_bounds): Compute high bound only if low bound is
276 valid.
277
278 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
279
280 PR 26875, PR 26901
281 * gdbtypes.c (get_discrete_low_bound): Make non-static.
282 (get_discrete_high_bound): Make non-static.
283 * gdbtypes.h (get_discrete_low_bound): New declaration.
284 (get_discrete_high_bound): New declaration.
285 * valarith.c (value_subscript): Only fetch high bound if
286 necessary.
287
288 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
289
290 * gdbtypes.c (get_discrete_bounds): Implement with
291 get_discrete_low_bound and get_discrete_high_bound.
292 (get_discrete_low_bound): New.
293 (get_discrete_high_bound): New.
294
295 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
296
297 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
298 callers.
299 * gdbtypes.c (get_discrete_bounds): Return bool.
300
301 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
302
303 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
304 (ada_value_slice): Adjust.
305 (pos_atr): Adjust.
306 * gdbtypes.c (get_discrete_bounds): Adjust.
307 (discrete_position): Return optional.
308 * gdbtypes.h (discrete_position): Return optional.
309
310 2020-12-07 Tom Tromey <tromey@adacore.com>
311
312 * maint.c (_initialize_maint_cmds): Use expression command
313 completer for "maint print type".
314
315 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
316
317 * completer.c (complete_explicit_location): Also add keywords
318 that start with '-' to the completion list.
319
320 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
321
322 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
323 keyword may be followed by any keyword.
324 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
325 'toklen' in the case for "-force-condition".
326
327 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
328
329 * main.c (catch_command_errors): Add a flag parameter; invoke
330 `bpstat_do_actions` if the flag is set.
331 (execute_cmdargs): Update a call to `catch_command_errors`.
332
333 2020-12-07 Tom de Vries <tdevries@suse.de>
334
335 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
336
337 2020-12-06 Tom Tromey <tom@tromey.com>
338
339 PR ada/26999
340 * ada-lang.c (replace_operator_with_call): Rewrite.
341
342 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
343
344 PR breakpoints/27009
345 * s390-tdep.h (op_bc): Correct BC opcode value.
346
347 2020-12-06 Joel Brobecker <brobecker@adacore.com>
348
349 * gmp-utils.h (gdb_mpz::safe_export): New private method.
350 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
351 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
352 (gdb_mpz::safe_export): New method.
353 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
354 Update function description.
355 (check_as_integer_raises_out_of_range_error): New function.
356 (gdb_mpz_as_integer_out_of_range): New function.
357 (_initialize_gmp_utils_selftests): Register
358 gdb_mpz_as_integer_out_of_range as a selftest.
359
360 2020-12-05 Joel Brobecker <brobecker@adacore.com>
361
362 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
363 TARGET_CHAR_BIT.
364 (gdb_mpz::write): Likewise.
365
366 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
367
368 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
369 number of displaced step buffers.
370
371 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
372
373 * displaced-stepping.h (struct displaced_step_buffer): Rename
374 to...
375 (struct displaced_step_buffers): ... this.
376 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
377 <struct displaced_step_buffer>: New inner class.
378 <m_buffers>: New.
379 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
380 to...
381 (displaced_step_buffers::prepare): ... this, adjust for multiple
382 buffers.
383 (displaced_step_buffer::finish): Rename to...
384 (displaced_step_buffers::finish): ... this, adjust for multiple
385 buffers.
386 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
387 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
388 adjust for multiple buffers.
389 (displaced_step_buffer::restore_in_ptid): Rename to...
390 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
391 multiple buffers.
392 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
393 for num_disp_step_buffers.
394 * linux-tdep.c (struct linux_gdbarch_data)
395 <num_disp_step_buffers>: New field.
396 (struct linux_info) <disp_step_buf>: Rename to...
397 <disp_step_bufs>: ... this, change type to
398 displaced_step_buffers.
399 (linux_displaced_step_prepare): Use
400 linux_gdbarch_data::num_disp_step_buffers to create that number
401 of buffers.
402 (linux_displaced_step_finish): Adjust.
403 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
404 (linux_displaced_step_restore_all_in_ptid): Adjust.
405 (linux_init_abi): Change supports_displaced_step parameter for
406 num_disp_step_buffers, save it in linux_gdbarch_data.
407 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
408 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
409 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
410 supports_displaced_step parameter for num_disp_step_buffers.
411 (amd64_linux_init_abi): Adjust.
412 (amd64_x32_linux_init_abi): Adjust.
413 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
414 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
415 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
416 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
417 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
418 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
419 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
420 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
421 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
422 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
423 * m68k-linux-tdep.c (m68k_linux_init_abi):
424 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
425 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
426 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
427 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
428 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
429 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
430 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
431 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
432 Change type to displaced_step_buffers.
433 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
434 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
435 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
436 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
437 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
438 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
439 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
440
441 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
442
443 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
444 obkstack.
445 (_initialize_linux_tdep): Register pre-init gdb data instead of
446 post-init.
447
448 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
449
450 * displaced-stepping.h (struct
451 displaced_step_copy_insn_closure): Adjust comments.
452 (struct displaced_step_inferior_state) <step_thread,
453 step_gdbarch, step_closure, step_original, step_copy,
454 step_saved_copy>: Remove fields.
455 (struct displaced_step_thread_state): New.
456 (struct displaced_step_buffer): New.
457 * displaced-stepping.c (displaced_step_buffer::prepare): New.
458 (write_memory_ptid): Move from infrun.c.
459 (displaced_step_instruction_executed_successfully): New,
460 factored out of displaced_step_finish.
461 (displaced_step_buffer::finish): New.
462 (displaced_step_buffer::copy_insn_closure_by_addr): New.
463 (displaced_step_buffer::restore_in_ptid): New.
464 * gdbarch.sh (displaced_step_location): Remove.
465 (displaced_step_prepare, displaced_step_finish,
466 displaced_step_copy_insn_closure_by_addr,
467 displaced_step_restore_all_in_ptid): New.
468 * gdbarch.c: Re-generate.
469 * gdbarch.h: Re-generate.
470 * gdbthread.h (class thread_info) <displaced_step_state>: New
471 field.
472 (thread_step_over_chain_remove): New declaration.
473 (thread_step_over_chain_next): New declaration.
474 (thread_step_over_chain_length): New declaration.
475 * thread.c (thread_step_over_chain_remove): Make non-static.
476 (thread_step_over_chain_next): New.
477 (global_thread_step_over_chain_next): Use
478 thread_step_over_chain_next.
479 (thread_step_over_chain_length): New.
480 (global_thread_step_over_chain_enqueue): Add debug print.
481 (global_thread_step_over_chain_remove): Add debug print.
482 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
483 Remove.
484 * infrun.c (get_displaced_stepping_state): New.
485 (displaced_step_in_progress_any_inferior): Remove.
486 (displaced_step_in_progress_thread): Adjust.
487 (displaced_step_in_progress): Adjust.
488 (displaced_step_in_progress_any_thread): New.
489 (get_displaced_step_copy_insn_closure_by_addr): Remove.
490 (gdbarch_supports_displaced_stepping): Use
491 gdbarch_displaced_step_prepare_p.
492 (displaced_step_reset): Change parameter from inferior to
493 thread.
494 (displaced_step_prepare_throw): Implement using
495 gdbarch_displaced_step_prepare.
496 (write_memory_ptid): Move to displaced-step.c.
497 (displaced_step_restore): Remove.
498 (displaced_step_finish): Implement using
499 gdbarch_displaced_step_finish.
500 (start_step_over): Allow starting more than one displaced step.
501 (prepare_for_detach): Handle possibly multiple threads doing
502 displaced steps.
503 (handle_inferior_event): Handle possibility that fork event
504 happens while another thread displaced steps.
505 * linux-tdep.h (linux_displaced_step_prepare): New.
506 (linux_displaced_step_finish): New.
507 (linux_displaced_step_copy_insn_closure_by_addr): New.
508 (linux_displaced_step_restore_all_in_ptid): New.
509 (linux_init_abi): Add supports_displaced_step parameter.
510 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
511 (linux_displaced_step_prepare): New.
512 (linux_displaced_step_finish): New.
513 (linux_displaced_step_copy_insn_closure_by_addr): New.
514 (linux_displaced_step_restore_all_in_ptid): New.
515 (linux_init_abi): Add supports_displaced_step parameter,
516 register displaced step methods if true.
517 (_initialize_linux_tdep): Register inferior_execd observer.
518 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
519 supports_displaced_step parameter, adjust call to
520 linux_init_abi. Remove call to
521 set_gdbarch_displaced_step_location.
522 (amd64_linux_init_abi): Adjust call to
523 amd64_linux_init_abi_common.
524 (amd64_x32_linux_init_abi): Likewise.
525 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
526 linux_init_abi. Remove call to
527 set_gdbarch_displaced_step_location.
528 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
529 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
530 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
531 linux_init_abi.
532 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
533 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
534 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
535 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
536 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
537 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
538 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
539 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
540 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
541 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
542 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
543 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
544 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
545 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
546 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
547 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
548 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
549 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
550 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
551 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
552 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
553 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
554 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
555 linux_init_abi. Remove call to
556 set_gdbarch_displaced_step_location.
557 * arm-tdep.c (arm_pc_is_thumb): Call
558 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
559 get_displaced_step_copy_insn_closure_by_addr.
560 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
561 clear gdbarch methods.
562 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
563 (get_ppc_per_inferior): New function.
564 (ppc_displaced_step_prepare): New function.
565 (ppc_displaced_step_finish): New function.
566 (ppc_displaced_step_restore_all_in_ptid): New function.
567 (rs6000_gdbarch_init): Register new gdbarch methods.
568 * s390-tdep.c (s390_gdbarch_init): Don't call
569 set_gdbarch_displaced_step_location, set new gdbarch methods.
570
571 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
572
573 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
574 * aarch64-tdep.h: Include displaced-stepping.h.
575 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
576 Move here.
577 (displaced_step_copy_insn_closure_up): Move here.
578 (struct buf_displaced_step_copy_insn_closure): Move here.
579 (struct displaced_step_inferior_state): Move here.
580 (debug_displaced): Move here.
581 (displaced_debug_printf_1): Move here.
582 (displaced_debug_printf): Move here.
583 * displaced-stepping.c: New file.
584 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
585 * gdbarch.h: Re-generate.
586 * inferior.h: Include displaced-stepping.h.
587 * infrun.h (debug_displaced): Move to displaced-stepping.h.
588 (displaced_debug_printf_1): Likewise.
589 (displaced_debug_printf): Likewise.
590 (struct displaced_step_copy_insn_closure): Likewise.
591 (displaced_step_copy_insn_closure_up): Likewise.
592 (struct buf_displaced_step_copy_insn_closure): Likewise.
593 (struct displaced_step_inferior_state): Likewise.
594 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
595 (displaced_debug_printf_1): Likewise.
596 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
597 Likewise.
598 (_initialize_infrun): Don't register "set/show debug displaced".
599
600 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
601
602 * linux-tdep.c (get_linux_inferior_data): Add inferior
603 parameter.
604 (linux_vsyscall_range): Pass current inferior.
605
606 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
607
608 * infrun.c (displaced_step_prepare_throw): Change return type to
609 displaced_step_prepare_status.
610 (displaced_step_prepare): Likewise.
611 (displaced_step_finish): Change return type to
612 displaced_step_finish_status.
613 (resume_1): Adjust.
614 (stop_all_threads): Adjust.
615 * displaced-stepping.h: New file.
616
617 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
618
619 * infrun.c (displaced_step_fixup): Rename to...
620 (displaced_step_finish): ... this, update all callers.
621
622 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
623
624 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
625 (get_displaced_step_copy_insn_closure_by_addr): ... this.
626 Update all users.
627 (displaced_step_closure): Rename to...
628 (displaced_step_copy_insn_closure): ... this. Update all users.
629 (displaced_step_closure_up): Rename to...
630 (displaced_step_copy_insn_closure_up). ... this. Update all
631 users.
632 (buf_displaced_step_closure): Rename to...
633 (buf_displaced_step_copy_insn_closure): ... this. Update all
634 users.
635 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
636 (get_displaced_step_copy_insn_closure_by_addr): ... this.
637 Update all users.
638 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
639 (aarch64_displaced_step_copy_insn_closure): ... this. Update
640 all users.
641 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
642 (amd64_displaced_step_copy_insn_closure): ... this. Update all
643 users.
644 * arm-tdep.h (arm_displaced_step_closure): Rename to...
645 (arm_displaced_step_copy_insn_closure): ... this. Update all
646 users.
647 * i386-tdep.h (i386_displaced_step_closure): Rename to...
648 (i386_displaced_step_copy_insn_closure): ... this. Update all
649 users.
650 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
651 (ppc_displaced_step_copy_insn_closure): ... this. Update all
652 users.
653 * s390-tdep.c (s390_displaced_step_closure): Rename to...
654 (s390_displaced_step_copy_insn_closure): ... this. Update all
655 users.
656 * gdbarch.h: Re-generate.
657 * gdbarch.c: Re-generate.
658
659 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
660
661 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
662 (global_thread_step_over_chain_enqueue): ... this. Update all
663 users.
664 (thread_step_over_chain_remove): Rename to...
665 (global_thread_step_over_chain_remove): ... this. Update all
666 users.
667 (thread_step_over_chain_next): Rename to...
668 (global_thread_step_over_chain_next): ... this. Update all
669 users.
670 * infrun.h (step_over_queue_head): Rename to...
671 (global_thread_step_over_chain_head): ... this. Update all
672 users.
673 * infrun.c (step_over_queue_head): Rename to...
674 (global_thread_step_over_chain_head): ... this. Update all
675 users.
676 * thread.c (step_over_chain_remove): Rename to...
677 (thread_step_over_chain_remove): ... this. Update all users.
678 (thread_step_over_chain_next): Rename to...
679 (global_thread_step_over_chain_next): ... this. Update all
680 users.
681 (thread_step_over_chain_enqueue): Rename to...
682 (global_thread_step_over_chain_enqueue): ... this. Update all
683 users.
684 (thread_step_over_chain_remove): Rename to...
685 (global_thread_step_over_chain_remove): ... this. Update all
686 users.
687
688 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
689
690 * infrun.c (get_displaced_stepping_state): Remove, change
691 callers to access the field directly.
692
693 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
694
695 * infrun.c (handle_inferior_event): Restore displaced step
696 buffer bytes in child process when handling fork, even if fork
697 happened in another thread than the displaced-stepping one.
698
699 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
700
701 * infrun.c (infrun_inferior_execd): New function.
702 (_initialize_infrun): Attach inferior_execd observer.
703
704 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
705
706 * observable.h (inferior_execd): Declare new observable.
707 * observable.c (inferior_execd): Declare new observable.
708 * infrun.c (follow_exec): Notify inferior_execd observer.
709 * jit.c (jit_inferior_created_hook): Make static.
710 (_initialize_jit): Register inferior_execd observer.
711 * jit.h (jit_inferior_created_hook): Remove declaration.
712 * solib.c (_initialize_solib): Register inferior_execd observer.
713
714 2020-12-04 Tom de Vries <tdevries@suse.de>
715
716 PR gdb/27003
717 * completer.c (completion_tracker::build_completion_result): Don't
718 access match_list[0][-1].
719
720 2020-12-04 Tom Tromey <tromey@adacore.com>
721
722 * linespec.c (struct linespec_token): Rename; remove typedef.
723 * guile/scm-block.c (struct block_smob): Remove typedef.
724 (struct block_syms_progress_smob): Likewise.
725 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
726 * guile/scm-symtab.c (symtab_smob): Remove typedef.
727 (struct sal_smob): Remove typedef.
728 * guile/scm-param.c (struct param_smob): Remove typedef.
729 * guile/scm-progspace.c (struct pspace_smob): Rename.
730 * guile/scm-objfile.c (struct objfile_smob): Rename.
731 * guile/scm-iterator.c (struct iterator_smob): Rename.
732 * guile/scm-frame.c (struct frame_smob): Rename.
733 * guile/scm-arch.c (struct arch_smob): Rename.
734 * guile/scm-type.c (struct field_smob): Remove typedef.
735 (struct type_smob): Rename.
736 * guile/scm-cmd.c (struct command_smob): Remove typedef.
737 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
738 * guile/scm-value.c (struct value_smob): Remove typedef.
739 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
740 * guile/guile-internal.h (struct scheme_variable)
741 (struct scheme_function, struct scheme_integer_constant)
742 (struct gdb_smob, struct chained_gdb_smob)
743 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
744 (objfile_smob, pspace_smob, type_smob): Remove typedef.
745 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
746 (struct pretty_printer_worker_smob): Remove typedef.
747 * guile/scm-exception.c (struct exception_smob): Remove typedef.
748 * python/py-block.c (struct block_object): Remove typedef.
749 (block_syms_iterator_object): Update.
750 (set_block): Update.
751 (block_syms_iterator_object): Remove typedef.
752 * python/py-inferior.c (struct membuf_object): Remove typedef.
753 * python/py-symtab.c (struct symtab_object): Remove typedef.
754 (set_symtab): Update.
755 (sal_object): Remove typedef.
756 (set_sal): Update.
757 * python/py-frame.c (frame_object): Remove typedef.
758 * python/py-record-btrace.c (struct btpy_list_object): Remove
759 typedef.
760 * python/py-arch.c (struct arch_object): Remove typedef.
761 * python/py-linetable.c (struct linetable_entry_object)
762 (linetable_object, struct ltpy_iterator_object): Remove typedef.
763 * python/py-events.h (eventregistry_object): Remove typedef.
764 (struct events_object): Remove typedef.
765 * python/python-internal.h (gdbpy_breakpoint_object): Remove
766 typedef.
767 (thread_object): Remove typedef.
768 * python/py-progspace.c (pspace_object): Remove typedef.
769 * python/py-value.c (struct value_object): Remove typedef.
770 * python/py-record.h (recpy_record_object): Remove typedef.
771 (struct recpy_element_object): Remove typedef.
772 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
773 * python/py-objfile.c (objfile_object): Remove typedef.
774 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
775 * python/py-type.c (type_object): Remove typedef.
776 (typy_iterator_object): Update.
777 (set_type): Update.
778 (field_object): Remove typedef.
779 (typy_iterator_object): Remove typedef.
780 * python/py-registers.c (register_descriptor_iterator_object):
781 Remove typedef.
782 (struct register_descriptor_object)
783 (struct reggroup_iterator_object, struct reggroup_object): Remove
784 typedef.
785 * python/py-record.c (recpy_gap_object): Remove typedef.
786 * python/py-symbol.c (symbol_object): Remove typedef.
787 (set_symbol): Update.
788 * python/py-event.h (event_object): Remove typedef.
789 * python/py-param.c (parmpy_object): Remove typedef.
790 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
791 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
792 (unwind_info_object, struct cached_frame_info): Likewise.
793
794 2020-12-04 Tom Tromey <tromey@adacore.com>
795
796 * value.c (value_internal_function_name): Make return type const.
797 * value.h (value_internal_function_name): Make return type const.
798
799 2020-12-04 Luis Machado <luis.machado@linaro.org>
800
801 * aarch64-tdep.c (submask, bit, bits): Remove.
802 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
803 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
804 (aarch64_decode_cb, aarch64_decode_tb)
805 (aarch64_decode_ldr_literal): Use sbits to extract a signed
806 immediate.
807 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
808
809 2020-12-04 Tom de Vries <tdevries@suse.de>
810
811 PR tdep/27007
812 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
813
814 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
815
816 PR gdb/26876
817 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
818 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
819
820 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
821
822 * arch/riscv.c: Include 'rv32e-xregs.c'.
823 (riscv_create_target_description): Update to handle rv32e.
824 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
825 member variable.
826 <operator==>: Update to account for new field.
827 <hash>: Likewise.
828 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
829 * features/riscv/rv32e-xregs.c: Generated.
830 * features/riscv/rv32e-xregs.xml: New file.
831 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
832 file.
833 (riscv_debug_infcall): Likewise.
834 (riscv_debug_unwinder): Likewise.
835 (riscv_debug_gdbarch): Likewise.
836 (enum riscv_register_required_status): Delete.
837 (struct riscv_register_feature): Add constructor, delete default
838 constructor, copy, and assign constructors.
839 (struct riscv_register_feature::register_info) <required>: Delete.
840 <check>: Update comment and arguments.
841 (struct riscv_register_feature) <name>: Change to member function.
842 <prefer_first_name>: Delete.
843 <tdesc_feature>: New member function.
844 <registers>: Rename to...
845 <m_registers>: ...this.
846 <m_feature_name>: New member variable.
847 (riscv_register_feature::register_info::check): Update arguments.
848 (riscv_xreg_feature): Rewrite as class, create a single static
849 instance of the class.
850 (riscv_freg_feature): Likewise.
851 (riscv_virtual_feature): Likewise.
852 (riscv_csr_feature): Likewise.
853 (riscv_create_csr_aliases): Has become a member function inside
854 riscv_csr_feature class.
855 (riscv_abi_embedded): New function definition.
856 (riscv_register_name): Adjust to use new feature objects.
857 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
858 and adjust available argument registers.
859 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
860 (riscv_check_tdesc_feature): Delete.
861 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
862 (riscv_gdbarch_init): Delete target description checking code, and
863 instead call to the new feature objects to perform the checks.
864 Reorder handling of no abi information case, allows small code
865 simplification.
866 (_initialize_riscv_tdep): Remove call, this is now done in the
867 riscv_csr_feature constructor.
868 * riscv-tdep.h (riscv_abi_embedded): Declare.
869
870 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
873 DECLARE_CSR_ALIAS.
874
875 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
876
877 * riscv-tdep.c (riscv_is_unknown_csr): New function,
878 implementation moved from riscv_register_reggroup_p.
879 (riscv_register_reggroup_p): Update group handling for unknown
880 CSRs.
881
882 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
883
884 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
885 (dwarf2_get_dwz_file): Convert 'filename' to a
886 std::string. Use dwz_search_other_debugdirs to search for DWZ
887 files in the debug-file-directories provided by the user as well.
888
889 2020-12-01 Tom Tromey <tom@tromey.com>
890
891 * parse.c (expr_builder::expr_builder): Initialize expout.
892 (expr_builder::release): Use expression::resize.
893 (expression::expression, expression::~expression)
894 (expression::resize): New methods.
895 (write_exp_elt): Use expression::resize.
896 (prefixify_expression): Update.
897 (increase_expout_size): Use expression::resize.
898 * expression.h (struct expression): Add constructor, destructor.
899 <resize>: New method.
900 (expression_up): Change type.
901
902 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
903 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
904 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
905 set region.
906
907 2020-11-30 Tom de Vries <tdevries@suse.de>
908
909 PR symtab/26905
910 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
911 is_reference parameter.
912 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
913
914 2020-11-30 Tom Tromey <tom@tromey.com>
915
916 * rust-lang.c (rust_op_name): Remove.
917 (exp_descriptor_rust): Update.
918 * parser-defs.h (op_name_standard): Don't declare.
919 (struct exp_descriptor) <op_name>: Remove.
920 * parse.c (exp_descriptor_standard): Update.
921 * opencl-lang.c (exp_descriptor_opencl): Update.
922 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
923 * f-lang.c (op_name_f): Remove.
924 (f_language::exp_descriptor_tab): Update.
925 * expression.h (op_name): Update.
926 * expprint.c (op_name): Rewrite.
927 (op_name_standard): Remove.
928 (dump_raw_expression, dump_subexp): Update.
929 * c-lang.c (exp_descriptor_c): Update.
930 * ax-gdb.c (gen_expr): Update.
931 * ada-lang.c (ada_op_name): Remove.
932 (ada_exp_descriptor): Update.
933
934 2020-11-30 Tom Tromey <tom@tromey.com>
935
936 * eval.c (init_array_element): Remove.
937 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
938
939 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
940
941 PR tui/26973
942 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
943 static locator win info.
944
945 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
946
947 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
948 program.
949
950 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
951
952 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
953 is always initialized.
954
955 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
956 * MAINTAINERS (Write After Approval): Add myself.
957
958 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
959
960 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
961 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
962
963 2020-11-25 Tom Tromey <tom@tromey.com>
964
965 * eval.c (evaluate_subexp_standard): Remove unnecessary
966 variables.
967
968 2020-11-25 Tom Tromey <tom@tromey.com>
969
970 * d-lang.c: Include parser-defs.h.
971 * rust-lang.c: Include parser-defs.h.
972 * c-lang.h: Do not include parser-defs.h.
973
974 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
975
976 * regcache.h (struct cached_reg): Remove typedef.
977
978 2020-11-24 Joel Brobecker <brobecker@adacore.com>
979
980 * README: Fix the URL of the MPFR library.
981
982 2020-11-24 Joel Brobecker <brobecker@adacore.com>
983
984 * README: Document the --with-libgmp-prefix configure option.
985
986 2020-11-24 Joel Brobecker <brobecker@adacore.com>
987
988 * NEWS: Add entry documenting support for DWARF-based fixed
989 point types.
990
991 2020-11-24 Joel Brobecker <brobecker@adacore.com>
992
993 * NEWS: Document that building GDB now requires GMP.
994
995 2020-11-24 Joel Brobecker <brobecker@adacore.com>
996
997 * typeprint.c (print_type_scalar): Add handling of
998 TYPE_CODE_FIXED_POINT.
999
1000 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1001
1002 * valarith.c (fixed_point_binop): Replace the
1003 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1004 users accordingly.
1005
1006 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1007
1008 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1009 replacing fixed_point_scaling_factor. All callers updated
1010 throughout this project.
1011 (fixed_point_scaling_factor): Delete declaration.
1012 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1013 fixed_point_scaling_factor. Adjust implementation accordingly.
1014
1015 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1016
1017 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1018 replacing the fixed_point_type_base_type function. All callers
1019 updated throughout this project.
1020 (fixed_point_type_base_type): Remove declaration.
1021 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1022 fixed_point_type_base_type. Adjust implementation accordingly.
1023
1024 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1025
1026 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1027 New methods.
1028 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1029 (TYPE_FIXED_POINT_INFO): Delete macro.
1030 (allocate_fixed_point_type_info): Change return type to void.
1031 * gdbtypes.c (copy_type_recursive): Replace the use of
1032 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1033 (fixed_point_scaling_factor): Likewise.
1034 (allocate_fixed_point_type_info): Change return type to void.
1035 Adjust implementation accordingly.
1036 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1037 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1038
1039 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1040
1041 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1042 into one single gdb::array_view parameter.
1043 (gdb_mpz::write): Likewise.
1044 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1045 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1046 into one single gdb::array_view parameter.
1047 Adjust implementation accordingly.
1048 (gdb_mpz::write): Likewise.
1049 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1050 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1051 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1052
1053 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1054
1055 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1056 Change return type to std::string. Update all callers.
1057 * gmp-utils.c (gmp_string_printf): Likewise.
1058
1059 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1060
1061 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1062 instead of mpq_set_ui to initialize our GMP rational.
1063
1064 2020-11-23 Tom de Vries <tdevries@suse.de>
1065
1066 * debuginfod-support.c (debuginfod_source_query)
1067 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1068
1069 2020-11-21 Tom Tromey <tom@tromey.com>
1070
1071 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1072
1073 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1076 Pass 2.0 to pow.
1077 (gdb_mpz_write_all_from_small): Likewise.
1078
1079 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1080
1081 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1082 of abs.
1083
1084 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1085
1086 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1087 ctf_arc_open_by_name.
1088
1089 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1090
1091 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1092 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1093
1094 2020-11-20 Pedro Alves <pedro@palves.net>
1095
1096 * language.c (language_arch_info::lookup_primitive_type): Use
1097 gdb::function_view instead of gdb::function.
1098 (template language_lookup_primitive_type): Rename to ...
1099 (language_lookup_primitive_type_1): ... this, and make static.
1100 (language_lookup_primitive_type(const struct language_defn *,
1101 struct gdbarch *, const char *): Make non-template.
1102 (language_lookup_primitive_type(const struct language_defn *,
1103 struct gdbarch *, std::function<bool (struct type *)>): Make
1104 non-template and use gdb::function_view.
1105 * language.h (language_arch_info::lookup_primitive_type): Use
1106 gdb::function_view instead of std::function.
1107 (language_lookup_primitive_type): No longer template.
1108 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1109 lambda instead of a std::function.
1110
1111 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1112
1113 PR tdep/26916
1114 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1115 and STOCFH.
1116
1117 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1118
1119 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1120
1121 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1124 in `loop_cb` parameter.
1125 * gdbarch.c: Re-generate.
1126 * gdbarch.h: Re-generate.
1127 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1128 parameter.
1129 * arch-utils.h (default_read_core_file_mappings): Likewise.
1130 * corelow.c (core_target::build_file_mappings): Likewise.
1131 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1132 (linux_core_info_proc_mappings): Likewise.
1133
1134 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1137 * NEWS: Mention new options.
1138 * f-array-walker.h: New file.
1139 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1140 (repack_array_slices): New static global.
1141 (show_repack_array_slices): New function.
1142 (fortran_array_slicing_debug): New static global.
1143 (show_fortran_array_slicing_debug): New function.
1144 (value_f90_subarray): Delete.
1145 (skip_undetermined_arglist): Delete.
1146 (class fortran_array_repacker_base_impl): New class.
1147 (class fortran_lazy_array_repacker_impl): New class.
1148 (class fortran_array_repacker_impl): New class.
1149 (fortran_value_subarray): Complete rewrite.
1150 (set_fortran_list): New static global.
1151 (show_fortran_list): Likewise.
1152 (_initialize_f_language): Register new commands.
1153 (fortran_adjust_dynamic_array_base_address_hack): New function.
1154 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1155 Declare.
1156 * f-valprint.c: Include 'f-array-walker.h'.
1157 (class fortran_array_printer_impl): New class.
1158 (f77_print_array_1): Delete.
1159 (f77_print_array): Delete.
1160 (fortran_print_array): New.
1161 (f_value_print_inner): Update to call fortran_print_array.
1162 * gdbtypes.c: Include 'f-lang.h'.
1163 (resolve_dynamic_type_internal): Call
1164 fortran_adjust_dynamic_array_base_address_hack.
1165
1166 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * breakpoint.c (struct watch_options): New struct.
1169 (watch_option_defs): New static global.
1170 (make_watch_options_def_group): New function.
1171 (watch_maybe_just_location): Convert option parsing.
1172 (watch_command_completer): New function.
1173 (_initialize_breakpoint): Build help text using options mechanism.
1174
1175 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1178 (watch_command_1): Update parameter types. Convert locals to
1179 bool.
1180 (watch_command_wrapper): Change parameter type.
1181 (watch_maybe_just_location): Change locals to bool.
1182 (rwatch_command_wrapper): Update parameter type.
1183 (awatch_command_wrapper): Update parameter type.
1184 * breakpoint.h (watch_command_wrapper): Change parameter type.
1185 (rwatch_command_wrapper): Update parameter type.
1186 (awatch_command_wrapper): Update parameter type.
1187 * eval.c (fetch_subexp_value): Change parameter type.
1188 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1189 'false' not '0'.
1190 * value.h (fetch_subexp_value): Change parameter type in
1191 declaration.
1192
1193 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1194
1195 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1196 skip_spaces.
1197
1198 2020-11-18 Keith Seitz <keiths@redhat.com>
1199
1200 * linux-tdep.c (dump_note_entry_p): Return true instead of
1201 checking `filename'.
1202
1203 2020-11-18 Tom de Vries <tdevries@suse.de>
1204
1205 * debuginfod-support.c (debuginfod_source_query)
1206 (debuginfod_debuginfo_query): Also do early exit if
1207 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1208
1209 2020-11-18 Tom de Vries <tdevries@suse.de>
1210
1211 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1212 warning.
1213
1214 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1215
1216 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1217 callers. Move doc here.
1218 * gdbtypes.c (get_array_bounds): Return bool
1219
1220 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1221
1222 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1223 assert.
1224 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1225 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1226 case to the default.
1227
1228 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1229
1230 * printcmd.c: Include 'safe-ctype.c'.
1231 (skip_over_slash_fmt): New function.
1232 (print_command_completer): Call skip_over_slash_fmt.
1233 (display_and_x_command_completer): New function.
1234 (_initialize_printcmd): Add command completion for 'x' and
1235 'display'.
1236
1237 2020-11-16 Pedro Alves <pedro@palves.net>
1238
1239 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1240 (get_prev_frame_always_1): ... to here.
1241 * inline-frame.c (inline_frame_this_id): Mention
1242 get_prev_frame_always_1 in comment.
1243
1244 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1245
1246 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1247 handling.
1248 (value_less): Add fixed-point handling.
1249
1250 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1251
1252 * eval.c (binop_promote): Add fixed-point type handling.
1253 * valarith.c (fixed_point_binop): New function.
1254 (scalar_binop): Add fixed-point type handling.
1255 (value_neg): Add fixed-point type handling.
1256 * valops.c (value_cast_to_fixed_point): New function.
1257 (value_cast): Add fixed-point type handling.
1258
1259 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1260
1261 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1262 range types.
1263 * c-typeprint.c (c_type_print_varspec_prefix)
1264 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1265 TYPE_CODE_FIXED_POINT handling.
1266 * p-typeprint.c (pascal_type_print_varspec_prefix)
1267 (pascal_type_print_varspec_suffix): Likewise.
1268 * typeprint.c (print_type_fixed_point): New function.
1269 * typeprint.h (print_type_fixed_point): Add declaration.
1270
1271 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1272
1273 * printcmd.c (print_scalar_formatted): Add fixed-point type
1274 handling when options->format is set.
1275
1276 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1277
1278 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1279 * dwarf2/read.c (get_dwarf2_rational_constant)
1280 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1281 (has_zero_over_zero_small_attribute): New functions.
1282 read_base_type, set_die_type): Add fixed-point type handling.
1283 * gdb-gdb.py.in: Add fixed-point type handling.
1284 * gdbtypes.c: #include "gmp-utils.h".
1285 (create_range_type, set_type_code): Add fixed-point type handling.
1286 (init_fixed_point_type): New function.
1287 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1288 (print_fixed_point_type_info): New function.
1289 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1290 handling.
1291 (fixed_point_type_storage): New typedef.
1292 (fixed_point_objfile_key): New static global.
1293 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1294 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1295 functions.
1296 * gdbtypes.h: #include "gmp-utils.h".
1297 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1298 (union type_specific) <fixed_point_info>: New field.
1299 (struct fixed_point_type_info): New struct.
1300 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1301 (init_fixed_point_type, is_fixed_point_type)
1302 (fixed_point_type_base_type, fixed_point_scaling_factor)
1303 (allocate_fixed_point_type_info): Add declarations.
1304 * valprint.c (generic_val_print_fixed_point): New function.
1305 (generic_value_print): Add fixed-point type handling.
1306 * value.c (value_as_address, unpack_long): Add fixed-point type
1307 handling.
1308
1309 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1310
1311 * utils.h (uinteger_pow): Add declaration.
1312 * utils.c (uinteger_pow): Moved here (without changes)...
1313 * valarith.c (uinteger_pow): ... from here.
1314
1315 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1316
1317 * gmp-utils.h, gmp-utils.c: New file.
1318 * unittests/gmp-utils-selftests.c: New file.
1319 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1320 unittests/gmp-utils-selftests.c.
1321 (COMMON_SFILES) Add gmp-utils.c.
1322 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1323
1324 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1325
1326 * configure.ac: Generate an error if a usable GMP library
1327 could not be found.
1328 * configure: Regenerate.
1329
1330 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1331
1332 * configure.ac: Add support for --with-libgmp-prefix.
1333 * Makefile.in (LIBGMP): New variable.
1334 (CLIBS): Include $(LIBGMP).
1335 * configure, config.in: Regenerate
1336
1337 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1338
1339 PR cli/26879
1340 * f-exp.y (COMPLETE): New token.
1341 (exp): Two new rules for tab-completion.
1342 (saw_name_at_eof): New static global.
1343 (last_was_structop): Likewise.
1344 (yylex): Set new variables, and return COMPLETE token at the end
1345 of the input stream in some cases.
1346
1347 2020-11-14 Tom Tromey <tom@tromey.com>
1348
1349 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1350
1351 2020-11-14 Tom Tromey <tom@tromey.com>
1352
1353 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1354
1355 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1356
1357 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1358
1359 2020-11-13 Tom Tromey <tom@tromey.com>
1360
1361 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1362 (convert_escape, parse_one_string): Constify.
1363
1364 2020-11-13 Keith Seitz <keiths@redhat.com>
1365
1366 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1367 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1368 outside of ELF segments" warning for debugin
1369
1370 2020-11-13 Keith Seitz <keiths@redhat.com>
1371
1372 PR gdb/23034
1373 * elfread.c (elf_symfile_segments): Output a BFD file name
1374 for the "Loadable section ... outside of ELF segments" warning.
1375
1376 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1377
1378 PR gdb/26835
1379 * arm-tdep.c (class arm_instruction_reader): New.
1380 (target_arm_instruction_reader): New.
1381 (arm_analyze_prologue): Add instruction reader parameter and use
1382 it. Use arm_expand_immediate.
1383 (class target_arm_instruction_reader): Adjust.
1384 (arm_skip_prologue): Adjust.
1385 (arm_expand_immediate): New.
1386 (arm_scan_prologue): Adjust.
1387 (arm_analyze_prologue_test): New.
1388 (class test_arm_instruction_reader): New.
1389
1390 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * f-lang.c (fortran_argument_convert): Add declaration. Add
1393 header comment, taken from f-lang.h. Make static.
1394 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1395 (fortran_argument_convert): Delete declaration.
1396
1397 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1398
1399 * ada-exp.y (find_primitive_type): Make parameter const.
1400 * ada-lang.c (enum ada_primitive_types): Delete.
1401 (ada_language::language_arch_info): Update.
1402 * c-lang.c (enum c_primitive_types): Delete.
1403 (c_language_arch_info): Update.
1404 (enum cplus_primitive_types): Delete.
1405 (cplus_language::language_arch_info): Update.
1406 * d-lang.c (enum d_primitive_types): Delete.
1407 (d_language::language_arch_info): Update.
1408 * f-lang.c (enum f_primitive_types): Delete.
1409 (f_language::language_arch_info): Update.
1410 * go-lang.c (enum go_primitive_types): Delete.
1411 (go_language::language_arch_info): Update.
1412 * language.c (auto_or_unknown_language::language_arch_info):
1413 Update.
1414 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1415 (language_string_char_type): Add header comment, call function in
1416 language_arch_info.
1417 (language_bool_type): Likewise
1418 (language_arch_info::bool_type): Define.
1419 (language_lookup_primitive_type_1): Delete.
1420 (language_lookup_primitive_type): Rewrite as a templated function
1421 to call function in language_arch_info, then instantiate twice.
1422 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1423 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1424 (language_arch_info::lookup_primitive_type): Define twice with
1425 different signatures.
1426 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1427 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1428 member function in language_arch_info.
1429 * language.h (language_arch_info): Complete rewrite.
1430 (language_lookup_primitive_type): Make templated.
1431 * m2-lang.c (enum m2_primitive_types): Delete.
1432 (m2_language::language_arch_info): Update.
1433 * opencl-lang.c (OCL_P_TYPE): Delete.
1434 (enum opencl_primitive_types): Delete.
1435 (opencl_type_data): Delete.
1436 (builtin_opencl_type): Delete.
1437 (lookup_opencl_vector_type): Update.
1438 (opencl_language::language_arch_info): Update, lots of content
1439 moved from...
1440 (build_opencl_types): ...here. This function is now deleted.
1441 (_initialize_opencl_language): Delete.
1442 * p-lang.c (enum pascal_primitive_types): Delete.
1443 (pascal_language::language_arch_info): Update.
1444 * rust-lang.c (enum rust_primitive_types): Delete.
1445 (rust_language::language_arch_info): Update.
1446
1447 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1448
1449 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1450 dwarf2_queue_guard.
1451
1452 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1455 comment.
1456
1457 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * dwarf2/read.c (dwarf_read_debug_printf,
1460 dwarf_read_debug_printf_v): New macros, use throughout the file.
1461
1462 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1463
1464 PR tdep/27015
1465 * arc-linux-tdep.c (collect_register): Populate "eret" by
1466 "pc" value from the regcache when asked for "pc" value.
1467
1468 2020-11-12 Tom Tromey <tom@tromey.com>
1469
1470 PR rust/26799:
1471 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1472 exist.
1473
1474 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * features/Makefile (XMLTOC): Add rx.xml.
1477 (FEATURE_XMLFILES): Remove rx.xml.
1478 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1479 * features/rx.c: Regenerate.
1480 * features/rx.xml: Wrap in `target` tags, and reindent.
1481 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1482 structure.
1483 (maint_print_c_tdesc_opt_def): New typedef.
1484 (maint_print_c_tdesc_opt_defs): New static global.
1485 (make_maint_print_c_tdesc_options_def_group): New function.
1486 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1487 print single feature C file for target descriptions containing a
1488 single feature.
1489 (maint_print_c_tdesc_cmd_completer): New function.
1490 (_initialize_target_descriptions): Update call to register command
1491 completer, and include command line flag in help text.
1492
1493 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1494
1495 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1496 numbers.
1497 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1498 enum values.
1499
1500 2020-11-10 Tom Tromey <tom@tromey.com>
1501
1502 * value.h (internalvar_name): Update.
1503 * value.c (internalvar_name): Make return type const.
1504
1505 2020-11-10 Tom Tromey <tom@tromey.com>
1506
1507 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1508 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1509 const.
1510
1511 2020-11-10 Tom Tromey <tom@tromey.com>
1512
1513 * objc-lang.h (value_nsstring): Update.
1514 * objc-lang.c (value_nsstring): Make "ptr" const.
1515
1516 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1517
1518 * expprint.c (print_subexp_funcall): Increment expression position
1519 after reading argument count.
1520 * f-lang.c (print_subexp_f): Skip over opcode before calling
1521 common function.
1522 (dump_subexp_body_f): Likewise.
1523
1524 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1525
1526 PR python/26832
1527 * configure: Regenerate.
1528 * configure.ac: Check for python modules ctypes instead of
1529 itertools.
1530
1531 2020-11-06 Pedro Alves <pedro@palves.net>
1532
1533 * macroexp.c (struct macro_buffer): Split in two classes. Add
1534 uses adjusted.
1535 (struct shared_macro_buffer): New, factored out from struct
1536 macro_buffer.
1537 (struct growable_macro_buffer): New, factored out from struct
1538 macro_buffer.
1539 (set_token, get_comment, get_identifier, get_pp_number)
1540 (get_character_constant, get_string_literal, get_punctuator)
1541 (get_next_token_for_substitution): Constify parameters.
1542 (substitute_args): Constify locals.
1543
1544 2020-11-05 Tom Tromey <tom@tromey.com>
1545
1546 * dwarf2/read.c (read_cutu_die_from_dwo)
1547 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1548 (build_type_psymtabs_1): Update.
1549 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1550 parameter.
1551 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1552 Don't read section. Add assert.
1553
1554 2020-11-04 Tom Tromey <tromey@adacore.com>
1555
1556 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1557
1558 2020-11-04 Tom Tromey <tromey@adacore.com>
1559
1560 * ada-typeprint.c (ada_print_type): Handle __T types.
1561
1562 2020-11-04 Tom Tromey <tromey@adacore.com>
1563
1564 * dwarf2/read.c (add_partial_symbol, process_die):
1565 Handle DW_TAG_array_type.
1566 (is_type_tag_for_partial): Add "lang" parameter.
1567 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1568
1569 2020-11-04 Tom Tromey <tromey@adacore.com>
1570
1571 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1572
1573 2020-11-04 Tom Tromey <tromey@adacore.com>
1574
1575 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1576 array.
1577
1578 2020-11-04 Tom Tromey <tromey@adacore.com>
1579
1580 * gdbtypes.c (update_static_array_size): Handle bit stride.
1581
1582 2020-11-04 Tom Tromey <tromey@adacore.com>
1583
1584 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1585
1586 2020-11-04 Tom Tromey <tromey@adacore.com>
1587
1588 * ada-lang.c (ada_is_any_packed_array_type): New function.
1589 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1590
1591 2020-11-04 Tom Tromey <tromey@adacore.com>
1592
1593 * dwarf2/read.c (recognize_bound_expression)
1594 (quirk_ada_thick_pointer): New functions.
1595 (read_array_type): Call quirk_ada_thick_pointer.
1596 (set_die_type): Add "skip_data_location" parameter.
1597 (quirk_ada_thick_pointer): New function.
1598 (process_structure_scope): Call quirk_ada_thick_pointer.
1599 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1600 (decode_packed_array_bitsize): Handle thick pointers without
1601 parallel types.
1602 (ada_is_gnat_encoded_packed_array_type): Rename from
1603 ada_is_packed_array_type.
1604 (ada_is_constrained_packed_array_type): Update.
1605 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1606 (ada_value_print_1): Use ada_get_decoded_value.
1607
1608 2020-11-04 Tom Tromey <tromey@adacore.com>
1609
1610 * ada-lang.c (recursively_update_array_bitsize): New function.
1611 (decode_constrained_packed_array_type): Call it.
1612
1613 2020-11-04 Tom Tromey <tromey@adacore.com>
1614
1615 * ada-lang.c (to_fixed_array_type): Error if
1616 decode_constrained_packed_array_type returns NULL.
1617
1618 2020-11-04 Tom Tromey <tromey@adacore.com>
1619
1620 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1621
1622 2020-11-02 Tom Tromey <tromey@adacore.com>
1623
1624 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1625 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1626 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1627 * amd64-ravenscar-thread.c: New file.
1628 * amd64-ravenscar-thread.h: New file.
1629 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1630 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1631
1632 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1633
1634 * main.c (execute_cmdargs): New function.
1635 (captured_main_1): Make use of execute_cmdargs.
1636
1637 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * NEWS: Mention changes to config file search path.
1640 * main.c
1641
1642 2020-11-02 Tom Tromey <tromey@adacore.com>
1643
1644 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1645 (python_GdbModuleDef): Move earlier. Now static.
1646 (do_start_initialization): Consolidate some IS_PY3K blocks.
1647
1648 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1649
1650 * aarch64-linux-tdep.c: Fix indentation.
1651 * aarch64-ravenscar-thread.c: Fix indentation.
1652 * aarch64-tdep.c: Fix indentation.
1653 * aarch64-tdep.h: Fix indentation.
1654 * ada-lang.c: Fix indentation.
1655 * ada-lang.h: Fix indentation.
1656 * ada-tasks.c: Fix indentation.
1657 * ada-typeprint.c: Fix indentation.
1658 * ada-valprint.c: Fix indentation.
1659 * ada-varobj.c: Fix indentation.
1660 * addrmap.c: Fix indentation.
1661 * addrmap.h: Fix indentation.
1662 * agent.c: Fix indentation.
1663 * aix-thread.c: Fix indentation.
1664 * alpha-bsd-nat.c: Fix indentation.
1665 * alpha-linux-tdep.c: Fix indentation.
1666 * alpha-mdebug-tdep.c: Fix indentation.
1667 * alpha-nbsd-tdep.c: Fix indentation.
1668 * alpha-obsd-tdep.c: Fix indentation.
1669 * alpha-tdep.c: Fix indentation.
1670 * amd64-bsd-nat.c: Fix indentation.
1671 * amd64-darwin-tdep.c: Fix indentation.
1672 * amd64-linux-nat.c: Fix indentation.
1673 * amd64-linux-tdep.c: Fix indentation.
1674 * amd64-nat.c: Fix indentation.
1675 * amd64-obsd-tdep.c: Fix indentation.
1676 * amd64-tdep.c: Fix indentation.
1677 * amd64-windows-tdep.c: Fix indentation.
1678 * annotate.c: Fix indentation.
1679 * arc-tdep.c: Fix indentation.
1680 * arch-utils.c: Fix indentation.
1681 * arch/arm-get-next-pcs.c: Fix indentation.
1682 * arch/arm.c: Fix indentation.
1683 * arm-linux-nat.c: Fix indentation.
1684 * arm-linux-tdep.c: Fix indentation.
1685 * arm-nbsd-tdep.c: Fix indentation.
1686 * arm-pikeos-tdep.c: Fix indentation.
1687 * arm-tdep.c: Fix indentation.
1688 * arm-tdep.h: Fix indentation.
1689 * arm-wince-tdep.c: Fix indentation.
1690 * auto-load.c: Fix indentation.
1691 * auxv.c: Fix indentation.
1692 * avr-tdep.c: Fix indentation.
1693 * ax-gdb.c: Fix indentation.
1694 * ax-general.c: Fix indentation.
1695 * bfin-linux-tdep.c: Fix indentation.
1696 * block.c: Fix indentation.
1697 * block.h: Fix indentation.
1698 * blockframe.c: Fix indentation.
1699 * bpf-tdep.c: Fix indentation.
1700 * break-catch-sig.c: Fix indentation.
1701 * break-catch-syscall.c: Fix indentation.
1702 * break-catch-throw.c: Fix indentation.
1703 * breakpoint.c: Fix indentation.
1704 * breakpoint.h: Fix indentation.
1705 * bsd-uthread.c: Fix indentation.
1706 * btrace.c: Fix indentation.
1707 * build-id.c: Fix indentation.
1708 * buildsym-legacy.h: Fix indentation.
1709 * buildsym.c: Fix indentation.
1710 * c-typeprint.c: Fix indentation.
1711 * c-valprint.c: Fix indentation.
1712 * c-varobj.c: Fix indentation.
1713 * charset.c: Fix indentation.
1714 * cli/cli-cmds.c: Fix indentation.
1715 * cli/cli-decode.c: Fix indentation.
1716 * cli/cli-decode.h: Fix indentation.
1717 * cli/cli-script.c: Fix indentation.
1718 * cli/cli-setshow.c: Fix indentation.
1719 * coff-pe-read.c: Fix indentation.
1720 * coffread.c: Fix indentation.
1721 * compile/compile-cplus-types.c: Fix indentation.
1722 * compile/compile-object-load.c: Fix indentation.
1723 * compile/compile-object-run.c: Fix indentation.
1724 * completer.c: Fix indentation.
1725 * corefile.c: Fix indentation.
1726 * corelow.c: Fix indentation.
1727 * cp-abi.h: Fix indentation.
1728 * cp-namespace.c: Fix indentation.
1729 * cp-support.c: Fix indentation.
1730 * cp-valprint.c: Fix indentation.
1731 * cris-linux-tdep.c: Fix indentation.
1732 * cris-tdep.c: Fix indentation.
1733 * darwin-nat-info.c: Fix indentation.
1734 * darwin-nat.c: Fix indentation.
1735 * darwin-nat.h: Fix indentation.
1736 * dbxread.c: Fix indentation.
1737 * dcache.c: Fix indentation.
1738 * disasm.c: Fix indentation.
1739 * dtrace-probe.c: Fix indentation.
1740 * dwarf2/abbrev.c: Fix indentation.
1741 * dwarf2/attribute.c: Fix indentation.
1742 * dwarf2/expr.c: Fix indentation.
1743 * dwarf2/frame.c: Fix indentation.
1744 * dwarf2/index-cache.c: Fix indentation.
1745 * dwarf2/index-write.c: Fix indentation.
1746 * dwarf2/line-header.c: Fix indentation.
1747 * dwarf2/loc.c: Fix indentation.
1748 * dwarf2/macro.c: Fix indentation.
1749 * dwarf2/read.c: Fix indentation.
1750 * dwarf2/read.h: Fix indentation.
1751 * elfread.c: Fix indentation.
1752 * eval.c: Fix indentation.
1753 * event-top.c: Fix indentation.
1754 * exec.c: Fix indentation.
1755 * exec.h: Fix indentation.
1756 * expprint.c: Fix indentation.
1757 * f-lang.c: Fix indentation.
1758 * f-typeprint.c: Fix indentation.
1759 * f-valprint.c: Fix indentation.
1760 * fbsd-nat.c: Fix indentation.
1761 * fbsd-tdep.c: Fix indentation.
1762 * findvar.c: Fix indentation.
1763 * fork-child.c: Fix indentation.
1764 * frame-unwind.c: Fix indentation.
1765 * frame-unwind.h: Fix indentation.
1766 * frame.c: Fix indentation.
1767 * frv-linux-tdep.c: Fix indentation.
1768 * frv-tdep.c: Fix indentation.
1769 * frv-tdep.h: Fix indentation.
1770 * ft32-tdep.c: Fix indentation.
1771 * gcore.c: Fix indentation.
1772 * gdb_bfd.c: Fix indentation.
1773 * gdbarch.sh: Fix indentation.
1774 * gdbarch.c: Re-generate
1775 * gdbarch.h: Re-generate.
1776 * gdbcore.h: Fix indentation.
1777 * gdbthread.h: Fix indentation.
1778 * gdbtypes.c: Fix indentation.
1779 * gdbtypes.h: Fix indentation.
1780 * glibc-tdep.c: Fix indentation.
1781 * gnu-nat.c: Fix indentation.
1782 * gnu-nat.h: Fix indentation.
1783 * gnu-v2-abi.c: Fix indentation.
1784 * gnu-v3-abi.c: Fix indentation.
1785 * go32-nat.c: Fix indentation.
1786 * guile/guile-internal.h: Fix indentation.
1787 * guile/scm-cmd.c: Fix indentation.
1788 * guile/scm-frame.c: Fix indentation.
1789 * guile/scm-iterator.c: Fix indentation.
1790 * guile/scm-math.c: Fix indentation.
1791 * guile/scm-ports.c: Fix indentation.
1792 * guile/scm-pretty-print.c: Fix indentation.
1793 * guile/scm-value.c: Fix indentation.
1794 * h8300-tdep.c: Fix indentation.
1795 * hppa-linux-nat.c: Fix indentation.
1796 * hppa-linux-tdep.c: Fix indentation.
1797 * hppa-nbsd-nat.c: Fix indentation.
1798 * hppa-nbsd-tdep.c: Fix indentation.
1799 * hppa-obsd-nat.c: Fix indentation.
1800 * hppa-tdep.c: Fix indentation.
1801 * hppa-tdep.h: Fix indentation.
1802 * i386-bsd-nat.c: Fix indentation.
1803 * i386-darwin-nat.c: Fix indentation.
1804 * i386-darwin-tdep.c: Fix indentation.
1805 * i386-dicos-tdep.c: Fix indentation.
1806 * i386-gnu-nat.c: Fix indentation.
1807 * i386-linux-nat.c: Fix indentation.
1808 * i386-linux-tdep.c: Fix indentation.
1809 * i386-nto-tdep.c: Fix indentation.
1810 * i386-obsd-tdep.c: Fix indentation.
1811 * i386-sol2-nat.c: Fix indentation.
1812 * i386-tdep.c: Fix indentation.
1813 * i386-tdep.h: Fix indentation.
1814 * i386-windows-tdep.c: Fix indentation.
1815 * i387-tdep.c: Fix indentation.
1816 * i387-tdep.h: Fix indentation.
1817 * ia64-libunwind-tdep.c: Fix indentation.
1818 * ia64-libunwind-tdep.h: Fix indentation.
1819 * ia64-linux-nat.c: Fix indentation.
1820 * ia64-linux-tdep.c: Fix indentation.
1821 * ia64-tdep.c: Fix indentation.
1822 * ia64-tdep.h: Fix indentation.
1823 * ia64-vms-tdep.c: Fix indentation.
1824 * infcall.c: Fix indentation.
1825 * infcmd.c: Fix indentation.
1826 * inferior.c: Fix indentation.
1827 * infrun.c: Fix indentation.
1828 * iq2000-tdep.c: Fix indentation.
1829 * language.c: Fix indentation.
1830 * linespec.c: Fix indentation.
1831 * linux-fork.c: Fix indentation.
1832 * linux-nat.c: Fix indentation.
1833 * linux-tdep.c: Fix indentation.
1834 * linux-thread-db.c: Fix indentation.
1835 * lm32-tdep.c: Fix indentation.
1836 * m2-lang.c: Fix indentation.
1837 * m2-typeprint.c: Fix indentation.
1838 * m2-valprint.c: Fix indentation.
1839 * m32c-tdep.c: Fix indentation.
1840 * m32r-linux-tdep.c: Fix indentation.
1841 * m32r-tdep.c: Fix indentation.
1842 * m68hc11-tdep.c: Fix indentation.
1843 * m68k-bsd-nat.c: Fix indentation.
1844 * m68k-linux-nat.c: Fix indentation.
1845 * m68k-linux-tdep.c: Fix indentation.
1846 * m68k-tdep.c: Fix indentation.
1847 * machoread.c: Fix indentation.
1848 * macrocmd.c: Fix indentation.
1849 * macroexp.c: Fix indentation.
1850 * macroscope.c: Fix indentation.
1851 * macrotab.c: Fix indentation.
1852 * macrotab.h: Fix indentation.
1853 * main.c: Fix indentation.
1854 * mdebugread.c: Fix indentation.
1855 * mep-tdep.c: Fix indentation.
1856 * mi/mi-cmd-catch.c: Fix indentation.
1857 * mi/mi-cmd-disas.c: Fix indentation.
1858 * mi/mi-cmd-env.c: Fix indentation.
1859 * mi/mi-cmd-stack.c: Fix indentation.
1860 * mi/mi-cmd-var.c: Fix indentation.
1861 * mi/mi-cmds.c: Fix indentation.
1862 * mi/mi-main.c: Fix indentation.
1863 * mi/mi-parse.c: Fix indentation.
1864 * microblaze-tdep.c: Fix indentation.
1865 * minidebug.c: Fix indentation.
1866 * minsyms.c: Fix indentation.
1867 * mips-linux-nat.c: Fix indentation.
1868 * mips-linux-tdep.c: Fix indentation.
1869 * mips-nbsd-tdep.c: Fix indentation.
1870 * mips-tdep.c: Fix indentation.
1871 * mn10300-linux-tdep.c: Fix indentation.
1872 * mn10300-tdep.c: Fix indentation.
1873 * moxie-tdep.c: Fix indentation.
1874 * msp430-tdep.c: Fix indentation.
1875 * namespace.h: Fix indentation.
1876 * nat/fork-inferior.c: Fix indentation.
1877 * nat/gdb_ptrace.h: Fix indentation.
1878 * nat/linux-namespaces.c: Fix indentation.
1879 * nat/linux-osdata.c: Fix indentation.
1880 * nat/netbsd-nat.c: Fix indentation.
1881 * nat/x86-dregs.c: Fix indentation.
1882 * nbsd-nat.c: Fix indentation.
1883 * nbsd-tdep.c: Fix indentation.
1884 * nios2-linux-tdep.c: Fix indentation.
1885 * nios2-tdep.c: Fix indentation.
1886 * nto-procfs.c: Fix indentation.
1887 * nto-tdep.c: Fix indentation.
1888 * objfiles.c: Fix indentation.
1889 * objfiles.h: Fix indentation.
1890 * opencl-lang.c: Fix indentation.
1891 * or1k-tdep.c: Fix indentation.
1892 * osabi.c: Fix indentation.
1893 * osabi.h: Fix indentation.
1894 * osdata.c: Fix indentation.
1895 * p-lang.c: Fix indentation.
1896 * p-typeprint.c: Fix indentation.
1897 * p-valprint.c: Fix indentation.
1898 * parse.c: Fix indentation.
1899 * ppc-linux-nat.c: Fix indentation.
1900 * ppc-linux-tdep.c: Fix indentation.
1901 * ppc-nbsd-nat.c: Fix indentation.
1902 * ppc-nbsd-tdep.c: Fix indentation.
1903 * ppc-obsd-nat.c: Fix indentation.
1904 * ppc-ravenscar-thread.c: Fix indentation.
1905 * ppc-sysv-tdep.c: Fix indentation.
1906 * ppc64-tdep.c: Fix indentation.
1907 * printcmd.c: Fix indentation.
1908 * proc-api.c: Fix indentation.
1909 * producer.c: Fix indentation.
1910 * producer.h: Fix indentation.
1911 * prologue-value.c: Fix indentation.
1912 * prologue-value.h: Fix indentation.
1913 * psymtab.c: Fix indentation.
1914 * python/py-arch.c: Fix indentation.
1915 * python/py-bpevent.c: Fix indentation.
1916 * python/py-event.c: Fix indentation.
1917 * python/py-event.h: Fix indentation.
1918 * python/py-finishbreakpoint.c: Fix indentation.
1919 * python/py-frame.c: Fix indentation.
1920 * python/py-framefilter.c: Fix indentation.
1921 * python/py-inferior.c: Fix indentation.
1922 * python/py-infthread.c: Fix indentation.
1923 * python/py-objfile.c: Fix indentation.
1924 * python/py-prettyprint.c: Fix indentation.
1925 * python/py-registers.c: Fix indentation.
1926 * python/py-signalevent.c: Fix indentation.
1927 * python/py-stopevent.c: Fix indentation.
1928 * python/py-stopevent.h: Fix indentation.
1929 * python/py-threadevent.c: Fix indentation.
1930 * python/py-tui.c: Fix indentation.
1931 * python/py-unwind.c: Fix indentation.
1932 * python/py-value.c: Fix indentation.
1933 * python/py-xmethods.c: Fix indentation.
1934 * python/python-internal.h: Fix indentation.
1935 * python/python.c: Fix indentation.
1936 * ravenscar-thread.c: Fix indentation.
1937 * record-btrace.c: Fix indentation.
1938 * record-full.c: Fix indentation.
1939 * record.c: Fix indentation.
1940 * reggroups.c: Fix indentation.
1941 * regset.h: Fix indentation.
1942 * remote-fileio.c: Fix indentation.
1943 * remote.c: Fix indentation.
1944 * reverse.c: Fix indentation.
1945 * riscv-linux-tdep.c: Fix indentation.
1946 * riscv-ravenscar-thread.c: Fix indentation.
1947 * riscv-tdep.c: Fix indentation.
1948 * rl78-tdep.c: Fix indentation.
1949 * rs6000-aix-tdep.c: Fix indentation.
1950 * rs6000-lynx178-tdep.c: Fix indentation.
1951 * rs6000-nat.c: Fix indentation.
1952 * rs6000-tdep.c: Fix indentation.
1953 * rust-lang.c: Fix indentation.
1954 * rx-tdep.c: Fix indentation.
1955 * s12z-tdep.c: Fix indentation.
1956 * s390-linux-tdep.c: Fix indentation.
1957 * score-tdep.c: Fix indentation.
1958 * ser-base.c: Fix indentation.
1959 * ser-mingw.c: Fix indentation.
1960 * ser-uds.c: Fix indentation.
1961 * ser-unix.c: Fix indentation.
1962 * serial.c: Fix indentation.
1963 * sh-linux-tdep.c: Fix indentation.
1964 * sh-nbsd-tdep.c: Fix indentation.
1965 * sh-tdep.c: Fix indentation.
1966 * skip.c: Fix indentation.
1967 * sol-thread.c: Fix indentation.
1968 * solib-aix.c: Fix indentation.
1969 * solib-darwin.c: Fix indentation.
1970 * solib-frv.c: Fix indentation.
1971 * solib-svr4.c: Fix indentation.
1972 * solib.c: Fix indentation.
1973 * source.c: Fix indentation.
1974 * sparc-linux-tdep.c: Fix indentation.
1975 * sparc-nbsd-tdep.c: Fix indentation.
1976 * sparc-obsd-tdep.c: Fix indentation.
1977 * sparc-ravenscar-thread.c: Fix indentation.
1978 * sparc-tdep.c: Fix indentation.
1979 * sparc64-linux-tdep.c: Fix indentation.
1980 * sparc64-nbsd-tdep.c: Fix indentation.
1981 * sparc64-obsd-tdep.c: Fix indentation.
1982 * sparc64-tdep.c: Fix indentation.
1983 * stabsread.c: Fix indentation.
1984 * stack.c: Fix indentation.
1985 * stap-probe.c: Fix indentation.
1986 * stubs/ia64vms-stub.c: Fix indentation.
1987 * stubs/m32r-stub.c: Fix indentation.
1988 * stubs/m68k-stub.c: Fix indentation.
1989 * stubs/sh-stub.c: Fix indentation.
1990 * stubs/sparc-stub.c: Fix indentation.
1991 * symfile-mem.c: Fix indentation.
1992 * symfile.c: Fix indentation.
1993 * symfile.h: Fix indentation.
1994 * symmisc.c: Fix indentation.
1995 * symtab.c: Fix indentation.
1996 * symtab.h: Fix indentation.
1997 * target-float.c: Fix indentation.
1998 * target.c: Fix indentation.
1999 * target.h: Fix indentation.
2000 * tic6x-tdep.c: Fix indentation.
2001 * tilegx-linux-tdep.c: Fix indentation.
2002 * tilegx-tdep.c: Fix indentation.
2003 * top.c: Fix indentation.
2004 * tracefile-tfile.c: Fix indentation.
2005 * tracepoint.c: Fix indentation.
2006 * tui/tui-disasm.c: Fix indentation.
2007 * tui/tui-io.c: Fix indentation.
2008 * tui/tui-regs.c: Fix indentation.
2009 * tui/tui-stack.c: Fix indentation.
2010 * tui/tui-win.c: Fix indentation.
2011 * tui/tui-winsource.c: Fix indentation.
2012 * tui/tui.c: Fix indentation.
2013 * typeprint.c: Fix indentation.
2014 * ui-out.h: Fix indentation.
2015 * unittests/copy_bitwise-selftests.c: Fix indentation.
2016 * unittests/memory-map-selftests.c: Fix indentation.
2017 * utils.c: Fix indentation.
2018 * v850-tdep.c: Fix indentation.
2019 * valarith.c: Fix indentation.
2020 * valops.c: Fix indentation.
2021 * valprint.c: Fix indentation.
2022 * valprint.h: Fix indentation.
2023 * value.c: Fix indentation.
2024 * value.h: Fix indentation.
2025 * varobj.c: Fix indentation.
2026 * vax-tdep.c: Fix indentation.
2027 * windows-nat.c: Fix indentation.
2028 * windows-tdep.c: Fix indentation.
2029 * xcoffread.c: Fix indentation.
2030 * xml-syscall.c: Fix indentation.
2031 * xml-tdesc.c: Fix indentation.
2032 * xstormy16-tdep.c: Fix indentation.
2033 * xtensa-config.c: Fix indentation.
2034 * xtensa-linux-nat.c: Fix indentation.
2035 * xtensa-linux-tdep.c: Fix indentation.
2036 * xtensa-tdep.c: Fix indentation.
2037
2038 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2039 Craig Blackmore <craig.blackmore@embecosm.com>
2040
2041 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2042 as an unsigned value.
2043
2044 2020-11-01 Tom Tromey <tom@tromey.com>
2045
2046 * dbxread.c (dbx_end_psymtab): Update.
2047 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2048 (build_type_psymtabs_reader): Update.
2049 * xcoffread.c (xcoff_end_psymtab): Update.
2050 * ctfread.c (scan_partial_symbols): Update.
2051 * psymtab.c (sort_pst_symbols): Remove.
2052 (partial_symtab::end): Rename from end_psymtab_common. Inline
2053 sort_pst_symbols.
2054 * psympriv.h (struct partial_symtab) <end>: New method.
2055 (end_psymtab_common): Don't declare.
2056
2057 2020-11-01 Tom Tromey <tom@tromey.com>
2058
2059 * symmisc.c (count_psyms): New function.
2060 (print_objfile_statistics): Use it.
2061 * psymtab.c (append_psymbol_to_list): Remove.
2062 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2063 * objfiles.h (struct objstats) <n_psyms>: Remove.
2064
2065 2020-11-01 Tom Tromey <tom@tromey.com>
2066
2067 * dbxread.c (dbx_end_psymtab): Update.
2068 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2069 (build_type_psymtabs_reader): Update.
2070 * xcoffread.c (xcoff_end_psymtab): Update.
2071 * ctfread.c (scan_partial_symbols): Update.
2072 * psympriv.h (end_psymtab_common): Update.
2073 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2074 (sort_pst_symbols): Likewise.
2075
2076 2020-11-01 Tom Tromey <tom@tromey.com>
2077
2078 * dbxread.c (dbx_symfile_read): Update.
2079 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2080 * xcoffread.c (xcoff_initial_scan): Update.
2081 * psympriv.h (init_psymbol_list): Don't declare.
2082 * psymtab.c (init_psymbol_list): Remove.
2083
2084 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2085
2086 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2087 gnat_encoded_fixed_type_info. Update all callers.
2088
2089 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2090
2091 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2092 line too long.
2093
2094 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2095
2096 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2097 cast_from_fixed. Update all callers.
2098 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2099 Update all callers.
2100 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2101 Update all callers.
2102 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2103 ada_scaling_factor.
2104 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2105 to print_gnat_encoded_fixed_point_type.
2106 * ada-valprint.c: Likewise.
2107
2108 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2109
2110 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2111 (debug_prefixed_printf): Add check of debug_displaced flag.
2112 * linux-nat.c (linux_nat_debug_printf): Add check of
2113 debug_linux_nat flag.
2114
2115 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2116
2117 * infrun.c (infrun_debug_printf_1): Remove.
2118 (displaced_debug_printf_1): Remove.
2119 (stop_all_threads): Use debug_prefixed_printf.
2120 * infrun.h (infrun_debug_printf_1): Remove.
2121 (infrun_debug_printf): Use debug_prefixed_printf.
2122 (displaced_debug_printf_1): Remove.
2123 (displaced_debug_printf): Use debug_prefixed_printf.
2124 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2125 (linux_nat_debug_printf): Use debug_prefixed_printf.
2126
2127 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2128
2129 * configure: Re-generate.
2130 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2131 AC_LANG_PROGRAM.
2132
2133 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2134
2135 * configure: Re-generate.
2136
2137 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2138
2139 * configure: Re-generate.
2140
2141 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2142
2143 * configure: Re-generate.
2144
2145 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2146
2147 * configure: Re-generate.
2148
2149 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2150
2151 * acinclude.m4: Modernize.
2152 * configure: Re-generate.
2153
2154 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2155
2156 * configure.ac: Modernize.
2157 * configure: Re-generate.
2158
2159 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2160
2161 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2162 * configure: Re-generate.
2163 * configure.ac: Remove AM_PROG_CC_STDC.
2164
2165 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2166
2167 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2168 AC_CANONICAL_SYSTEM.
2169 * configure: Re-generate.
2170
2171 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2172
2173 * infrun.h (displaced_debug_printf): New macro. Replace
2174 displaced debug prints throughout to use it.
2175 (displaced_debug_printf_1): New declaration.
2176 (displaced_step_dump_bytes): Return string, remove ui_file
2177 parameter, update all callers.
2178 * infrun.c (displaced_debug_printf_1): New function.
2179 (displaced_step_dump_bytes): Return string, remove ui_file
2180 parameter
2181
2182 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2183
2184 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2185
2186 2020-10-30 Tom Tromey <tromey@adacore.com>
2187
2188 * Makefile.in (stamp-init): Depend on config.status.
2189
2190 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2191
2192 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2193
2194 2020-10-30 Pedro Alves <pedro@palves.net>
2195
2196 * thread.c (lookup_selected_frame): Move ...
2197 * frame.c (lookup_selected_frame): ... here.
2198
2199 2020-10-30 Pedro Alves <pedro@palves.net>
2200
2201 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2202 * frame.c
2203 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2204 Use save_selected_frame. Save language as well.
2205 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2206 Use restore_selected_frame, and restore language as well.
2207 (selected_frame_id, selected_frame_level): New.
2208 (selected_frame): Update comments.
2209 (save_selected_frame, restore_selected_frame): New.
2210 (get_selected_frame): Use lookup_selected_frame.
2211 (get_selected_frame_if_set): Delete.
2212 (select_frame): Record selected_frame_level and selected_frame_id.
2213 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2214 fields.
2215 (get_selected_frame): Make 'message' parameter optional.
2216 (get_selected_frame_if_set): Delete declaration.
2217 (select_frame): Update comments.
2218 (save_selected_frame, restore_selected_frame)
2219 (lookup_selected_frame): Declare.
2220 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2221 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2222 New field.
2223 (save_infcall_control_state): Use save_selected_frame.
2224 (restore_selected_frame): Delete.
2225 (restore_infcall_control_state): Use restore_selected_frame.
2226 * stack.c (select_frame_command_core, frame_command_core): Use
2227 get_selected_frame.
2228 * thread.c (restore_selected_frame): Rename to ...
2229 (lookup_selected_frame): ... this and make extern. Select the
2230 current frame if the frame level is -1.
2231 (scoped_restore_current_thread::restore): Also restore the
2232 language.
2233 (scoped_restore_current_thread::~scoped_restore_current_thread):
2234 Don't try/catch.
2235 (scoped_restore_current_thread::scoped_restore_current_thread):
2236 Save the language as well. Use save_selected_frame.
2237
2238 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2239
2240 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2241 documentation.
2242 * gdbarch.h: Re-generate.
2243
2244 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2245
2246 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2247 parameter.
2248 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2249 Likewise.
2250 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2251 Likewise.
2252 * arch-utils.c (default_displaced_step_hw_singlestep):
2253 Likewise.
2254 * arch-utils.h (default_displaced_step_hw_singlestep):
2255 Likewise.
2256 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2257 Likewise.
2258 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2259 Likewise.
2260 * gdbarch.c: Re-generate.
2261 * gdbarch.h: Re-generate.
2262 * infrun.c (resume_1): Adjust.
2263
2264 2020-10-29 Tom Tromey <tom@tromey.com>
2265
2266 * progspace.c (program_space::~program_space): Don't call
2267 exec_close.
2268
2269 2020-10-29 Tom Tromey <tom@tromey.com>
2270
2271 * exec.c (exec_target::close): Don't change current program
2272 space.
2273
2274 2020-10-29 Tom Tromey <tom@tromey.com>
2275
2276 * symfile.c (add_symbol_file_command): Update.
2277 * exec.c (program_space::add_target_sections): Rename.
2278 * symfile-mem.c (symbol_file_add_from_memory): Update.
2279 * progspace.h (struct program_space) <add_target_sections>:
2280 Declare new overload.
2281 * exec.h (add_target_sections_of_objfile): Don't declare.
2282
2283 2020-10-29 Tom Tromey <tom@tromey.com>
2284
2285 * solib.c (solib_map_sections): Update.
2286 * exec.c (program_space::add_target_sections): Now a method.
2287 (exec_file_attach): Update.
2288 * exec.h (add_target_sections): Don't declare.
2289 * progspace.h (struct program_space) <add_target_sections>:
2290 Declare.
2291
2292 2020-10-29 Tom Tromey <tom@tromey.com>
2293
2294 * progspace.h (struct program_space) <remove_target_sections>:
2295 Declare.
2296 * exec.c (program_space::remove_target_sections): Now a method.
2297 * exec.h (remove_target_sections): Don't declare.
2298
2299 2020-10-29 Tom Tromey <tom@tromey.com>
2300
2301 * inferior.c (delete_inferior): Update.
2302 * progspace.c (program_space::empty): Rename from
2303 program_space_empty_p. Return bool.
2304 * progspace.h (struct program_space) <empty>: New method.
2305 (program_space_empty_p): Don't declare.
2306
2307 2020-10-29 Tom Tromey <tom@tromey.com>
2308
2309 * progspace.c (program_space::~program_space): Don't call
2310 clear_program_space_solib_cache.
2311 (program_space::clear_solib_cache): Rename from
2312 clear_solib_cache.
2313 * solib.c (handle_solib_event): Update.
2314 * progspace.h (struct program_space) <clear_solib_cache>: New
2315 method.
2316 (clear_program_space_solib_cache): Don't declare.
2317
2318 2020-10-29 Tom Tromey <tom@tromey.com>
2319
2320 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2321 * target.c (info_target_command): Update.
2322 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2323 (symbol_file_clear, reread_symbols): Update.
2324 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2325 * stabsread.c (scan_file_globals): Update.
2326 * solib.c (update_solib_list): Update.
2327 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2328 (svr4_fetch_objfile_link_map, enable_break)
2329 (svr4_relocate_main_executable)
2330 (svr4_iterate_over_objfiles_in_search_order): Update.
2331 * solib-frv.c (lm_base, enable_break)
2332 (frv_relocate_main_executable): Update.
2333 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2334 (frv_fetch_objfile_link_map): Update.
2335 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2336 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2337 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2338 * remote.c (remote_target::get_offsets): Update.
2339 (remote_target::start_remote)
2340 (extended_remote_target::post_attach): Update.
2341 * objfiles.c (entry_point_address_query): Update.
2342 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2343 * minsyms.c (get_symbol_leading_char): Update.
2344 * frame.c (inside_main_func): Update.
2345 * progspace.h (symfile_objfile): Remove macro.
2346
2347 2020-10-29 Tom Tromey <tom@tromey.com>
2348
2349 * exec.c (exec_file_attach): Update.
2350 * progspace.c (program_space::exec_close): Update.
2351 * progspace.h (struct program_space) <ebfd>: Now a
2352 gdb_bfd_ref_ptr.
2353 <set_exec_bfd>: Change argument type.
2354 <exec_bfd>: Update.
2355
2356 2020-10-29 Tom Tromey <tom@tromey.com>
2357
2358 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2359 * symfile.c (reread_symbols): Update.
2360 * symfile-mem.c (add_symbol_file_from_memory_command)
2361 (add_vsyscall_page): Update.
2362 * source-cache.c (source_cache::get_plain_source_lines): Update.
2363 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2364 (svr4_current_sos_direct, svr4_exec_displacement)
2365 (svr4_relocate_main_executable): Update.
2366 (svr4_iterate_over_objfiles_in_search_order): Update.
2367 * solib-frv.c (enable_break2, enable_break): Update.
2368 * solib-dsbt.c (lm_base, enable_break): Update.
2369 * solib-darwin.c (find_program_interpreter)
2370 (darwin_solib_create_inferior_hook): Update.
2371 * sol-thread.c (rw_common, ps_pdmodel): Update.
2372 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2373 * remote.c (compare_sections_command)
2374 (remote_target::trace_set_readonly_regions): Update.
2375 * remote-sim.c (get_sim_inferior_data)
2376 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2377 (gdbsim_target_open, gdbsim_target::files_info): Update.
2378 * exec.h (exec_bfd): Remove macro.
2379 * progspace.c (initialize_progspace): Update.
2380 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2381 Update.
2382 * nto-procfs.c (nto_procfs_target::post_attach)
2383 (nto_procfs_target::create_inferior): Update.
2384 * maint.c (maintenance_info_sections): Update.
2385 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2386 Update.
2387 * infcmd.c (post_create_inferior): Update.
2388 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2389 (objfile_find_memory_regions): Update.
2390 * exec.c (validate_exec_file, exec_file_attach)
2391 (exec_read_partial_read_only, print_section_info): Update.
2392 * corelow.c (core_target_open): Update.
2393 * corefile.c (reopen_exec_file, validate_files): Update.
2394 * arm-tdep.c (gdb_print_insn_arm): Update.
2395 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2396 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2397 methods.
2398
2399 2020-10-29 Tom Tromey <tom@tromey.com>
2400
2401 * progspace.h (current_target_sections): Remove macro.
2402 * solib-svr4.c (scan_dyntag): Update.
2403 * solib-dsbt.c (scan_dyntag): Update.
2404 * exec.c (exec_target::close): Update.
2405 (add_target_sections, add_target_sections_of_objfile)
2406 (remove_target_sections, exec_target::get_section_table)
2407 (exec_target::files_info, set_section_command)
2408 (exec_set_section_address, exec_target::has_memory)
2409 (exec_target::has_memory): Update.
2410
2411 2020-10-29 Tom Tromey <tom@tromey.com>
2412
2413 * source-cache.c (source_cache::get_plain_source_lines): Use
2414 current_program_space.
2415 * corefile.c (reopen_exec_file): Use current_program_space.
2416 * exec.c (exec_file_attach): Use current_program_space.
2417 * exec.h (exec_bfd_mtime): Remove.
2418
2419 2020-10-29 Tom Tromey <tom@tromey.com>
2420
2421 * gcore.c (default_gcore_mach): Remove.
2422 (create_gcore_bfd): Update.
2423
2424 2020-10-29 Tom Tromey <tom@tromey.com>
2425
2426 * progspace.c (program_space::exec_close): New method, from
2427 exec_close in exec.c.
2428 * exec.c (exec_close): Move to progspace.c.
2429 (exec_target::close, exec_file_attach): Update.
2430 * progspace.h (struct program_space) <exec_close>: Declare
2431 method.
2432
2433 2020-10-29 Tom Tromey <tom@tromey.com>
2434
2435 * progspace.h (struct program_space) <exec_filename>: Rename from
2436 pspace_exec_filename. Now a unique_xmalloc_ptr.
2437 * inferior.c (print_selected_inferior): Update.
2438 (print_inferior): Update.
2439 * mi/mi-main.c (print_one_inferior): Update.
2440 * exec.h (exec_filename): Remove macro.
2441 * corefile.c (get_exec_file): Update.
2442 * exec.c (exec_close): Update.
2443 (exec_file_attach): Update.
2444 * progspace.c (clone_program_space): Update.
2445 (print_program_space): Update.
2446
2447 2020-10-29 Tom Tromey <tom@tromey.com>
2448
2449 * target-section.h (struct target_section): Add constructor.
2450 * exec.c (build_section_table, add_target_sections_of_objfile):
2451 Update.
2452 * corelow.c (core_target::build_file_mappings): Update.
2453
2454 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2455
2456 PR gdb/19318
2457 * inferior.c (detach_inferior_command): Restore the current thread.
2458 (kill_inferior_command): Ditto.
2459
2460 2020-10-28 Tom de Vries <tdevries@suse.de>
2461
2462 PR symtab/26772
2463 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2464 map, check it in the "best match" loop.
2465
2466 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2467
2468 * m32c-tdep.c: Remove unused includes.
2469
2470 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2471
2472 * xtensa-tdep.c: Remove includes.
2473
2474 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2475
2476 * breakpoint.c (struct condition_command_opts): New struct.
2477 (condition_command_option_defs): New static global.
2478 (make_condition_command_options_def_group): New function.
2479 (condition_completer): Update to consider the '-force' flag.
2480 (condition_command): Use gdb::option for the '-force' flag.
2481
2482 2020-10-27 Tom de Vries <tdevries@suse.de>
2483
2484 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2485 symbols in section check.
2486
2487 2020-10-27 Tom de Vries <tdevries@suse.de>
2488
2489 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2490
2491 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2492
2493 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2494 * breakpoint.c: Update the help text of the 'condition' and 'break'
2495 commands.
2496 (set_breakpoint_condition): Take a new bool parameter
2497 to control whether condition definition should be forced even when
2498 the condition expression is invalid in all of the current locations.
2499 (condition_command): Update the call to 'set_breakpoint_condition'.
2500 (find_condition_and_thread): Take the "-force-condition" flag into
2501 account.
2502 * linespec.c (linespec_keywords): Add "-force-condition" as an
2503 element.
2504 (FORCE_KEYWORD_INDEX): New #define.
2505 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2506 as a keyword.
2507 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2508 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2509 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2510 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2511
2512 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2513
2514 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2515 * breakpoint.c (set_breakpoint_location_condition): New function.
2516 (set_breakpoint_condition): Disable a breakpoint location if parsing
2517 the condition string gives an error.
2518 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2519 (build_target_condition_list): Ditto.
2520 (build_target_command_list): Ditto.
2521 (build_bpstat_chain): Ditto.
2522 (print_one_breakpoint_location): Ditto.
2523 (print_one_breakpoint): Ditto.
2524 (breakpoint_1): Ditto.
2525 (bp_location::bp_location): Ditto.
2526 (locations_are_equal): Ditto.
2527 (update_breakpoint_locations): Ditto.
2528 (enable_disable_bp_num_loc): Ditto.
2529 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2530 (find_condition_and_thread_for_sals): New static function.
2531 (create_breakpoint): Call find_condition_and_thread_for_sals.
2532 (location_to_sals): Call find_condition_and_thread_for_sals instead
2533 of find_condition_and_thread.
2534
2535 2020-10-26 Tom de Vries <tdevries@suse.de>
2536
2537 * dwarf2/read.c (process_full_comp_unit): Call
2538 dwarf2_find_base_address.
2539
2540 2020-10-26 Tom Tromey <tromey@adacore.com>
2541
2542 * gdbtypes.c (create_range_type): Revert previous patch. Add
2543 comment.
2544
2545 2020-10-26 Pedro Alves <pedro@palves.net>
2546
2547 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2548 (my_waitpid): Use gdb::handle_eintr.
2549
2550 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * acinclude.m4: Update ptrace.m4 path.
2553 * ptrace.m4: Moved to gdbsupport.
2554
2555 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2556
2557 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2558 instead of target_gdbarch.
2559
2560 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2561
2562 * jit.c (jit_reader_load_command): Pass current inferior.
2563 (jit_inferior_init): Change parameter type to inferior, use it.
2564 (jit_inferior_created): Remove.
2565 (jit_inferior_created_hook): Pass inferior parameter down.
2566 (_initialize_jit): Use jit_inferior_created_hook instead of
2567 jit_inferior_created.
2568 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2569 * infrun.c (follow_exec): Pass inferior to
2570 jit_inferior_created_hook.
2571
2572 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2575 parameter and use it.
2576 (thread_db_inferior_created): Pass inferior argument.
2577
2578 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * aix-thread.c (aix_thread_inferior_created): Add inferior
2581 parameter.
2582 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2583 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2584 * jit.c (jit_inferior_created): Likewise.
2585 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2586 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2587 * observable.h (inferior_created): Likewise.
2588 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2589 * symfile-mem.c (add_vsyscall_page): Likewise.
2590 * infcmd.c (post_create_inferior): Pass inferior argument.
2591
2592 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2593
2594 GDB 10.1 released.
2595
2596 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2597
2598 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2599 to ada_check_typedef.
2600
2601 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2602
2603 * f-exp.y (f_parse): Rename to...
2604 (f_language::parser): ...this.
2605 * f-lang.c (f_get_encoding): Rename to...
2606 (f_language::get_encoding): ...this.
2607 (f_op_print_tab): Rename to...
2608 (f_language::op_print_tab): ...this.
2609 (exp_descriptor_f): Rename to...
2610 (f_language::exp_descriptor_tab): ...this.
2611 (class f_language): Moved to f-lang.h.
2612 (f_language::language_arch_info): New function, moved out of class
2613 declaration.
2614 (f_language::search_name_hash): Likewise.
2615 (f_language::lookup_symbol_nonlocal): Likewise.
2616 (f_language::get_symbol_name_matcher_inner): Likewise.
2617 * f-lang.h: Add 'valprint.h' include.
2618 (class f_language): Moved here from f-lang.c.
2619 * f-typeprint.c (f_type_print_args): Delete commented out
2620 declaration.
2621 (f_print_typedef): Rename to...
2622 (f_language::print_typedef): ...this.
2623 (f_print_type): Rename to...
2624 (f_language::print_type): ...this.
2625 (f_type_print_varspec_prefix): Delete declaration and rename to...
2626 (f_language::f_type_print_varspec_prefix): ...this.
2627 (f_type_print_varspec_suffix): Delete declaration and rename to...
2628 (f_language::f_type_print_varspec_suffix): ...this.
2629 (f_type_print_base): Delete declaration and rename to...
2630 (f_language::f_type_print_base): ...this.
2631 * f-valprint.c (f_value_print_inner): Rename to...
2632 (f_language::value_print_inner): ...this.
2633 * parse.c: Delete 'f-lang.h' include.
2634
2635 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * language.h (language_defn::print_type): Add variable names in
2638 declaration, and update header comment.
2639
2640 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * ada-lang.c (ada_language::demangle): Rename to...
2643 (ada_language::demangle_symbol): ...this.
2644 * c-lang.c (cplus_language::demangle): Rename to...
2645 (cplus_language::demangle_symbol): ...this.
2646 * d-lang.c (d_language::demangle): Rename to...
2647 (d_language::demangle_symbol): ...this.
2648 * f-lang.c (f_language::demangle): Rename to...
2649 (f_language::demangle_symbol): ...this.
2650 * go-lang.c (go_language::demangle): Rename to...
2651 (go_language::demangle_symbol): ...this.
2652 * language.c (language_demangle): Update call to demangle_symbol.
2653 (auto_or_unknown_language::demangle): Rename to...
2654 (auto_or_unknown_language::demangle_symbol): ...this.
2655 * language.h (language_defn::demangle): Rename to...
2656 (language_defn::demangle_symbol): ...this.
2657 * objc-lang.c (objc_language::demangle): Rename to...
2658 (objc_language::demangle_symbol): ...this.
2659 * rust-lang.c (rust_language::demangle): Rename to...
2660 (rust_language::demangle_symbol): ...this.
2661
2662 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2665 (iterate_over_file_blocks): Replace use of macro with the macros
2666 definition.
2667
2668 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2669
2670 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2671 * valprint.c (maybe_print_array_index): Replace use of macro with
2672 the macros definition.
2673
2674 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * ada-lang.c (ada_language::print_array_index): Call value_print
2677 directly.
2678 * language.c (language_defn::print_array_index): Likewise.
2679 * language.h (LA_VALUE_PRINT): Delete.
2680 * valprint.c (value_print): Call value_print on the
2681 current_language directly.
2682
2683 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * language.h (LA_PRINT_TYPEDEF): Delete.
2686 * typeprint.c (typedef_print): Call print_typedef directly on the
2687 current_language object.
2688
2689 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * m2-exp.y (m2_parse): Rename to...
2692 (m2_language::parser): ...this. Update function signature.
2693 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2694 (m2_op_print): Rename to...
2695 (m2_language::op_print_tab): ...this, and make const.
2696 (exp_descriptor_modula2): Rename to...
2697 (m2_language::exp_descriptor_modula2): ...this.
2698 (class m2_language): Move to m2-lang.h.
2699 (m2_language::language_arch_info): New function, moved out of
2700 class declaration.
2701 (m2_language::printchar): New function, body from m2_printchar.
2702 (m2_language::printstr): New function, moved out of class
2703 declaration.
2704 (m2_language::emitchar): Likewise.
2705 * m2-lang.h (m2_parse): Delete declaration.
2706 (m2_print_typedef): Delete declaration.
2707 (m2_value_print_inner): Delete declaration.
2708 (class m2_language): Class declaration moved from m2-lang.c,
2709 larger functions are left in m2-lang.c.
2710 * m2-typeprint.c (m2_print_typedef): Rename to...
2711 (m2_language::print_typedef): ...this, and update function
2712 signature.
2713 * m2-valprint.c (m2_value_print_inner): Rename to...
2714 (m2_language::value_print_inner): ...this, replace use of
2715 LA_PRINT_STRING with a direct call to printstr member function,
2716 and update recursive call.
2717
2718 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * language.c (default_is_string_type_p): Delete, implementation
2721 moved into auto_or_unknown_language::is_string_type_p.
2722 (unk_op_print_tab): Moved into
2723 auto_or_unknown_language::opcode_print_table.
2724 (unknown_language_arch_info): Delete, implementation moved into
2725 auto_or_unknown_language::language_arch_info.
2726 (class auto_or_unknown_language): New class, member functions
2727 copied from unknown_language class, with some updates.
2728 (class unknown_language): Most member functions moved into
2729 auto_or_unknown_language class. Inherit from
2730 auto_or_unknown_language class.
2731 (class auto_language): Inherit from auto_or_unknown_language.
2732 Delete most member functions.
2733
2734 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2735
2736 * stabsread.c (read_member_functions): Remove gdb_assert.
2737
2738 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2739
2740 * gdbtypes.c (init_complex_type): Check target type name.
2741
2742 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2743
2744 * target-debug.h (target_debug_print_struct_target_ops_p):
2745 Remove.
2746 (target_debug_print_async_callback_ftype_p): Remove.
2747 (target_debug_print_struct_trace_state_variable_p): Remove.
2748 (target_debug_print_struct_traceframe_info_p): Remove.
2749 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2750 (target_debug_print_enum_btrace_format): Remove.
2751 (target_debug_print_enum_info_proc_what): Remove.
2752 (target_debug_print_thread_info_pp): Remove.
2753
2754 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2755
2756 * target.h (struct target_ops) <make_corefile_notes>:
2757 Change return type to unique pointer.
2758 * target.c (dummy_make_corefile_notes): Likewise.
2759 * exec.c (struct exec_target) <make_corefile_notes>:
2760 Likewise.
2761 (exec_target::make_corefile_notes): Likewise.
2762 * procfs.c (class procfs_target) <make_corefile_notes>:
2763 Likewise.
2764 (procfs_do_thread_registers): Adjust to unique pointer.
2765 (struct procfs_corefile_thread_data): Add constructor.
2766 <note_data>: Change type to unique pointer.
2767 (procfs_corefile_thread_callback): Adjust to unique pointer.
2768 (procfs_target::make_corefile_notes): Change return type to
2769 unique pointer.
2770 * target-delegates.c: Re-generate.
2771 * gcore.c (write_gcore_file_1): Adjust.
2772 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2773 New.
2774
2775 2020-10-22 Tom de Vries <tdevries@suse.de>
2776
2777 * block.c (find_block_in_blockvector): Make sure the returned block
2778 contains pc.
2779
2780 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2781
2782 PR gdb/26693
2783 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2784 parameter.
2785 (load_cu): Pass existing CU.
2786 (process_imported_unit_die): Likewise.
2787 (follow_die_offset): Likewise.
2788
2789 2020-10-22 Luis Machado <luis.machado@linaro.org>
2790
2791 * corelow.c (core_target::xfer_partial): Also check for an empty
2792 m_core_unavailable_mappings vector.
2793
2794 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2795
2796 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2797 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2798 * f-exp.y (arglist): Allow for a series of subranges.
2799 (subrange): Add cases for subranges with strides.
2800 * f-lang.c (value_f90_subarray): Catch use of array strides and
2801 throw an error.
2802 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2803
2804 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2805
2806 * expprint.c (print_subexp_standard): Change enum range_type to
2807 range_flag and rename variables to match.
2808 (dump_subexp_body_standard): Likewise.
2809 * expression.h (enum range_type): Rename to...
2810 (enum range_flag): ...this.
2811 (range_types): Rename to...
2812 (range_flags): ...this.
2813 * f-lang.c (value_f90_subarray): Change enum range_type to
2814 range_flag and rename variables to match.
2815 * parse.c (operator_length_standard): Likewise.
2816 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2817 range_type to range_flag.
2818 * rust-lang.c (rust_evaluate_funcall): Likewise.
2819 (rust_range): Likewise.
2820 (rust_compute_range): Likewise.
2821 (rust_subscript): Likewise.
2822
2823 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * expprint.c (print_subexp_standard): Update to reflect changes to
2826 enum range_type.
2827 (dump_subexp_body_standard): Likewise.
2828 * expression.h (enum range_type): Convert to a bit field enum, and
2829 make the enum unsigned.
2830 * f-exp.y (subrange): Update to reflect changes to enum
2831 range_type.
2832 * f-lang.c (value_f90_subarray): Likewise.
2833 * parse.c (operator_length_standard): Likewise.
2834 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2835 * rust-lang.c (rust_range): Likewise.
2836 (rust_compute_range): Likewise.
2837 (rust_subscript): Likewise.
2838
2839 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2840
2841 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2842 (displaced_step_in_progress): Fix comment.
2843
2844 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2845
2846 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2847 * gdbarch.c: Re-generate.
2848 * gdbarch.h: Re-generate.
2849 * gcore.c (write_gcore_file_1): Adjust.
2850 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2851 constructor.
2852 <note_data>: Change type to unique pointer.
2853 <abort_iteration>: Change type to bool.
2854 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2855 (fbsd_collect_thread_registers): Return void, adjust.
2856 (struct fbsd_corefile_thread_data): Add construtor.
2857 <note_data>: Change type to unique pointer.
2858 (fbsd_corefile_thread): Adjust.
2859 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2860 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2861 to unique pointer, adjust.
2862 (struct linux_collect_regset_section_cb_data): Add constructor.
2863 <note_data>: Change type to unique pointer.
2864 <abort_iteration>: Change type to bool.
2865 (linux_collect_thread_registers): Return void, adjust.
2866 (struct linux_corefile_thread_data): Add constructor.
2867 <note_data>: Change type to unique pointer.
2868 (linux_corefile_thread): Adjust.
2869 (linux_make_corefile_notes): Return unique pointer, adjust.
2870
2871 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2872
2873 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2874 * gdbarch.c: Re-generate.
2875 * gdbarch.h: Re-generate.
2876 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2877 bool.
2878 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2879 Likewise.
2880 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2881 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2882 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2883 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2884
2885 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2886
2887 * gdbarch.sh: Make generated predicates return bool.
2888 * gdbarch.c: Re-generate.
2889 * gdbarch.h: Re-generate.
2890
2891 2020-10-20 Tom Tromey <tom@tromey.com>
2892
2893 * varobj-iter.h (struct varobj_item): Remove typedef.
2894
2895 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2896
2897 * infrun.c (currently_stepping): Change int to bool
2898 (maybe_software_singlestep): Likewise.
2899 (show_stop_on_solib_events): Likewise.
2900 (stepping_past_nonsteppable_watchpoint): Likewise.
2901 (displaced_step_in_progress_any_inferior): Likewise.
2902 (displaced_step_in_progress_thread): Likewise.
2903 (keep_going_stepped_thread): Likewise.
2904 (thread_still_needs_step_over): Likewise.
2905 (start_step_over): Likewise.
2906 (do_target_resume): Likewise.
2907 (resume_1): Likewise.
2908 (clear_proceed_status): Likewise.
2909 (thread_still_needs_step_over_bp): Likewise.
2910 (proceed): Likewise.
2911 (switch_back_to_stepped_thread): Likewise.
2912 (adjust_pc_after_break): Likewise.
2913 (stepped_in_from): Likewise.
2914 (handle_stop_requested): Likewise.
2915 (handle_syscall_event): Likewise.
2916 (handle_no_resumed): Likewise.
2917 (handle_inferior_event): Likewise.
2918 (finish_step_over): Likewise.
2919 (handle_signal_stop): Likewise.
2920 (process_event_stop_test): Likewise.
2921
2922 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2923
2924 * infrun.c (get_displaced_stepping_state): Fix comment.
2925
2926 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2927
2928 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2929
2930 2020-10-19 Tom Tromey <tromey@adacore.com>
2931
2932 PR tui/26719
2933 * tui/tui-winsource.h (struct tui_source_window_base)
2934 <refresh_window>: Rename from refresh_pad.
2935 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2936 Rename from refresh_pad.
2937 (tui_source_window_base::show_source_content)
2938 (tui_source_window_base::do_scroll_horizontal): Update.
2939
2940 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2941
2942 * thread.c (_initialize_thread): Fine-tune the help text of
2943 'info threads'.
2944
2945 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2946
2947 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2948
2949 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2950
2951 * breakpoint.c (handle_jit_event): Add an argument, change how
2952 `jit_event_handler` is called.
2953
2954 2020-10-17 Tom Tromey <tom@tromey.com>
2955
2956 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2957 (scan_xcoff_symtab): Update.
2958 * psymtab.h (class psymtab_storage) <global_psymbols,
2959 static_psymbols, current_global_psymbols,
2960 current_static_psymbols>: Remove.
2961 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2962 (match_partial_symbol, lookup_partial_symbol): Update.
2963 (print_partial_symbols): Change parameters.
2964 (dump_psymtab, recursively_search_psymtabs)
2965 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2966 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2967 (concat): Remove.
2968 (end_psymtab_common): Simplify.
2969 (append_psymbol_to_list): Change parameters.
2970 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2971 (init_psymbol_list): Simplify.
2972 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2973 * psympriv.h (struct partial_symtab) <empty>: New method.
2974 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2975 Remove.
2976 <global_psymbols, static_psymbols>: New members.
2977 <add_psymbol>: New methods.
2978 (add_psymbol_to_list): Don't declare.
2979 (psymbol_placement): Move earlier.
2980 * mdebugread.c (parse_partial_symbols): Update.
2981 (handle_psymbol_enumerators): Change parameters.
2982 (mdebug_expand_psymtab): Update.
2983 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2984 (add_partial_symbol): Update.
2985 * dwarf2/index-write.c (write_psymbols): Change parameters.
2986 (write_one_signatured_type): Update.
2987 (recursively_count_psymbols): Update.
2988 (recursively_write_psymbols): Update.
2989 (class debug_names) <recursively_write_psymbols>: Update.
2990 <write_psymbols>: Change parameters.
2991 <write_one_signatured_type>: Update.
2992 * dbxread.c (read_dbx_symtab): Update.
2993 (dbx_end_psymtab): Use partial_symtab::empty.
2994 * ctfread.c (struct ctf_context) <pst>: New member.
2995 (create_partial_symtab): Set it.
2996 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2997 (scan_partial_symbols): Use the psymtab's context. Update.
2998
2999 2020-10-17 Tom Tromey <tom@tromey.com>
3000
3001 * valprint.c (generic_value_print): Remove comment.
3002 * m2-valprint.c (m2_value_print_inner): Remove comment.
3003 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3004 type.
3005
3006 2020-10-17 Tom de Vries <tdevries@suse.de>
3007
3008 PR symtab/26317
3009 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3010 symbol main.
3011
3012 2020-10-14 Tom de Vries <tdevries@suse.de>
3013
3014 PR gdb/26733
3015 * solib.c (solib_contains_address_p): Handle
3016 'solib->sections == nullptr'.
3017
3018 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3019
3020 PR gdb/26642
3021 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3022 target can't do async.
3023 * target.c (target_wait): Assert that we don't pass
3024 TARGET_WNOHANG to a target that can't async.
3025
3026 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3027
3028 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3029 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3030 * alpha-bsd-nat.c: Adjust include.
3031 * alpha-bsd-tdep.h: Adjust comment.
3032 * alpha-nbsd-tdep.c: Rename to ...
3033 * alpha-netbsd-tdep.c: ... this, adjust include.
3034 * amd64-nbsd-nat.c: Rename to ...
3035 * amd64-netbsd-nat.c: ... this, adjust include.
3036 * amd64-nbsd-tdep.c: Rename to ...
3037 * amd64-netbsd-tdep.c: ... this, adjust include.
3038 * amd64-tdep.h: Adjust include.
3039 * arm-nbsd-nat.c: Rename to ...
3040 * arm-netbsd-nat.c: ... this, adjust include.
3041 * arm-nbsd-tdep.c: Rename to ...
3042 * arm-netbsd-tdep.c: ... this, adjust include.
3043 * arm-nbsd-tdep.h: Rename to ...
3044 * arm-netbsd-tdep.h: ... this, adjust include.
3045 * configure.nat: Adjust file lists.
3046 * configure.tgt: Likewise.
3047 * hppa-nbsd-nat.c: Rename to ...
3048 * hppa-netbsd-nat.c: ... this, adjust include.
3049 * hppa-nbsd-tdep.c: Rename to ...
3050 * hppa-netbsd-tdep.c: ... this, adjust include.
3051 * i386-nbsd-nat.c: Rename to ...
3052 * i386-netbsd-nat.c: ... this, adjust include.
3053 * i386-nbsd-tdep.c: Rename to ...
3054 * i386-netbsd-tdep.c: ... this, adjust include.
3055 * m68k-bsd-nat.c: Adjust include.
3056 * mips-nbsd-nat.c: Rename to ...
3057 * mips-netbsd-nat.c: ... this, adjust include.
3058 * mips-nbsd-tdep.c: Rename to ...
3059 * mips-netbsd-tdep.c: ... this, adjust include.
3060 * mips-nbsd-tdep.h: Rename to ...
3061 * mips-netbsd-tdep.h: ... this.
3062 * nbsd-nat.c: Rename to ...
3063 * netbsd-nat.c: ... this, adjust include.
3064 * nbsd-nat.h: Rename to ...
3065 * netbsd-nat.h: ... this, adjust include.
3066 * nbsd-tdep.c: Rename to ...
3067 * netbsd-tdep.c: ... this, adjust include.
3068 * nbsd-tdep.h: Rename to ...
3069 * netbsd-tdep.h: ... this.
3070 * ppc-nbsd-nat.c: Rename to ...
3071 * ppc-netbsd-nat.c: ... this, adjust include.
3072 * ppc-nbsd-tdep.c: Rename to ...
3073 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3074 * ppc-nbsd-tdep.h: Rename to ...
3075 * ppc-netbsd-tdep.h: ... this.
3076 * sh-nbsd-nat.c: Rename to ...
3077 * sh-netbsd-nat.c: ... this, adjust include.
3078 * sh-nbsd-tdep.c: Rename to ...
3079 * sh-netbsd-tdep.c: ... this, adjust include.
3080 * sparc-nbsd-nat.c: Rename to ...
3081 * sparc-netbsd-nat.c: ... this.
3082 * sparc-nbsd-tdep.c: Rename to ...
3083 * sparc-netbsd-tdep.c: ... this, adjust include.
3084 * sparc64-nbsd-nat.c: Rename to ...
3085 * sparc64-netbsd-nat.c: ... this.
3086 * sparc64-nbsd-tdep.c: Rename to ...
3087 * sparc64-netbsd-tdep.c: ... this, adjust include.
3088 * sparc64-tdep.h: Adjust comment.
3089 * vax-bsd-nat.c: Adjust include.
3090 * vax-nbsd-tdep.c: Rename to ...
3091 * vax-netbsd-tdep.c: ... this, adjust include.
3092
3093 2020-10-12 Tom Tromey <tom@tromey.com>
3094
3095 * target.h (struct target_ops) <get_section_table>: Update.
3096 (target_get_section_table): Update.
3097 * target.c (target_get_section_table, target_section_by_addr)
3098 (memory_xfer_partial_1): Update.
3099 * target-section.h (target_section_table): Now an alias.
3100 * target-delegates.c: Rebuild.
3101 * target-debug.h (target_debug_print_target_section_table_p):
3102 Rename from target_debug_print_struct_target_section_table_p.
3103 * symfile.c (build_section_addr_info_from_section_table): Update.
3104 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3105 * solib-svr4.c (scan_dyntag): Update.
3106 * solib-dsbt.c (scan_dyntag): Update.
3107 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3108 Update.
3109 * record-full.c (record_full_core_target::xfer_partial): Update.
3110 * progspace.h (struct program_space) <target_sections>: Update.
3111 * exec.h (print_section_info): Update.
3112 * exec.c (exec_target::close, build_section_table)
3113 (add_target_sections, add_target_sections_of_objfile)
3114 (remove_target_sections, exec_on_vfork)
3115 (section_table_available_memory)
3116 (section_table_xfer_memory_partial)
3117 (exec_target::get_section_table, exec_target::xfer_partial)
3118 (print_section_info, set_section_command)
3119 (exec_set_section_address, exec_target::has_memory): Update.
3120 * corelow.c (core_target::build_file_mappings)
3121 (core_target::xfer_partial, core_target::info_proc_mappings)
3122 (core_target::info_proc_mappings): Update.
3123 * bfd-target.c (class target_bfd): Update
3124
3125 2020-10-12 Tom Tromey <tom@tromey.com>
3126
3127 * progspace.c (program_space::~program_space): Don't call
3128 clear_section_table.
3129 * exec.h (clear_section_table): Don't declare.
3130 * exec.c (exec_target::close): Update.
3131 (clear_section_table): Remove.
3132
3133 2020-10-12 Tom Tromey <tom@tromey.com>
3134
3135 * exec.c (add_target_sections_of_objfile): Simplify.
3136
3137 2020-10-12 Tom Tromey <tom@tromey.com>
3138
3139 * solib.c (solib_map_sections): Update.
3140 * record-full.c (record_full_core_open_1): Update.
3141 * exec.h (build_section_table): Return a target_section_table.
3142 * exec.c (exec_file_attach): Update.
3143 (build_section_table): Return a target_section_table.
3144 * corelow.c (core_target::core_target): Update.
3145 * bfd-target.c (target_bfd::target_bfd): Update.
3146
3147 2020-10-12 Tom Tromey <tom@tromey.com>
3148
3149 * target.c (target_section_by_addr, memory_xfer_partial_1):
3150 Update.
3151 * target-section.h (struct target_section_table): Use
3152 std::vector.
3153 * symfile.h (build_section_addr_info_from_section_table): Take a
3154 target_section_table.
3155 * symfile.c (build_section_addr_info_from_section_table): Take a
3156 target_section_table.
3157 * solist.h (struct so_list) <sections>: Change type.
3158 <sections_end>: Remove.
3159 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3160 (solib_contains_address_p): Update.
3161 * solib-svr4.c (scan_dyntag): Update.
3162 * solib-dsbt.c (scan_dyntag): Update.
3163 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3164 Update.
3165 * record-full.c (record_full_core_start, record_full_core_end):
3166 Remove.
3167 (record_full_core_sections): New global.
3168 (record_full_core_open_1, record_full_core_target::xfer_partial):
3169 Update.
3170 * exec.h (build_section_table, section_table_xfer_memory_partial)
3171 (add_target_sections): Take a target_section_table.
3172 * exec.c (exec_file_attach, clear_section_table): Update.
3173 (resize_section_table): Remove.
3174 (build_section_table, add_target_sections): Take a
3175 target_section_table.
3176 (add_target_sections_of_objfile, remove_target_sections)
3177 (exec_on_vfork): Update.
3178 (section_table_available_memory): Take a target_section_table.
3179 (section_table_read_available_memory): Update.
3180 (section_table_xfer_memory_partial): Take a target_section_table.
3181 (print_section_info, set_section_command)
3182 (exec_set_section_address, exec_target::has_memory): Update.
3183 * corelow.c (class core_target) <m_core_section_table,
3184 m_core_file_mappings>: Remove braces.
3185 <~core_target>: Remove.
3186 (core_target::core_target): Update.
3187 (core_target::~core_target): Remove.
3188 (core_target::build_file_mappings)
3189 (core_target::xfer_memory_via_mappings)
3190 (core_target::xfer_partial, core_target::info_proc_mappings):
3191 Update.
3192 * bfd-target.c (target_bfd::xfer_partial): Update.
3193 (target_bfd::target_bfd): Update.
3194 (target_bfd::~target_bfd): Remove.
3195
3196 2020-10-12 Tom Tromey <tom@tromey.com>
3197
3198 * target.h (struct target_section, struct target_section_table):
3199 Move to target-section.h.
3200 * target-section.h: New file.
3201
3202 2020-10-12 Pedro Alves <pedro@palves.net>
3203
3204 PR exp/26602
3205 * valops.c (struct struct_field_searcher): New.
3206 (update_search_result): Rename to ...
3207 (struct_field_searcher::update_result): ... this. Simplify
3208 prototype. Record all found fields.
3209 (do_search_struct_field): Rename to ...
3210 (struct_field_searcher::search): ... this. Simplify prototype.
3211 Maintain stack of visited baseclass path. Call update_result for
3212 fields too. Keep searching fields in baseclasses instead of
3213 stopping at the first found field.
3214 (search_struct_field): Use struct_field_searcher. When looking
3215 for fields, report ambiguous access attempts.
3216
3217 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * frame.c (inside_main_func): Check full symbols as well as
3220 minimal symbols.
3221
3222 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3223
3224 * ada-lang.c (advance_wild_match): Rewrite the function's
3225 description. Change the type of target0, t0 and t1 to char.
3226
3227 2020-10-09 Tom Tromey <tromey@adacore.com>
3228
3229 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3230
3231 2020-10-09 Tom Tromey <tromey@adacore.com>
3232
3233 * ada-lang.h (ada_encode): Return std::string.
3234 * ada-lang.c (ada_encode_1): Return std::string.
3235 (ada_encode): Likewise.
3236 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3237 Update.
3238 * ada-exp.y (block_lookup, write_var_or_type): Update.
3239
3240 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3241
3242 PR exp/26714
3243 * printcmd.c (print_formatted): Handle void results as
3244 unformatted prints.
3245
3246 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * arch/aarch32.c (aarch32_create_target_description): Release the
3249 target_desc_up as late as possible.
3250 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3251 * arch/amd64.c (amd64_create_target_description): Likewise.
3252 * arch/arc.c (arc_create_target_description): Return a
3253 target_desc_up, don't release it.
3254 * arch/arc.h (arc_create_target_description): Update declaration.
3255 (arc_lookup_target_description): Move target_desc_up into the
3256 cache, and return a borrowed pointer.
3257 * arch/arm.c (arm_create_target_description): Release the
3258 target_desc_up as late as possible.
3259 * arch/i386.c (i386_create_target_description): Likewise.
3260 * arch/riscv.h (riscv_create_target_description): Update
3261 declaration to match definition.
3262 * arch/tic6x.c (tic6x_create_target_description): Release the
3263 target_desc_up as late as possible.
3264
3265 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3266
3267 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3268 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3269
3270 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3271
3272 * source.c (directory_command): Notify observers that "directories"
3273 parameter has changed.
3274
3275 2020-10-08 Tom Tromey <tom@tromey.com>
3276
3277 * cli/cli-cmds.c (print_disassembly): Style function name and
3278 addresses. Add _() wrappers.
3279
3280 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3281
3282 * NEWS: Mention ARC support in GDBserver.
3283
3284 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3285
3286 * arch/aarch32.c (aarch32_create_target_description): Release
3287 unique_ptr returned from allocate_target_description.
3288 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3289 * arch/amd64.c (amd64_create_target_description): Likewise.
3290 * arch/arc.c (arc_create_target_description): Likewise.
3291 * arch/arm.c (arm_create_target_description): Likewise.
3292 * arch/i386.c (i386_create_target_description): Likewise.
3293 * arch/riscv.c (riscv_create_target_description): Update return
3294 type. Handle allocate_target_description returning a unique_ptr.
3295 (riscv_lookup_target_description): Update to handle unique_ptr.
3296 * arch/tic6x.c (tic6x_create_target_description): Release
3297 unique_ptr returned from allocate_target_description.
3298 * features/microblaze-with-stack-protect.c: Regenerate.
3299 * features/microblaze.c: Regenerate.
3300 * features/mips-dsp-linux.c: Regenerate.
3301 * features/mips-linux.c: Regenerate.
3302 * features/mips64-dsp-linux.c: Regenerate.
3303 * features/mips64-linux.c: Regenerate.
3304 * features/nds32.c: Regenerate.
3305 * features/nios2.c: Regenerate.
3306 * features/or1k.c: Regenerate.
3307 * features/rs6000/powerpc-32.c: Regenerate.
3308 * features/rs6000/powerpc-32l.c: Regenerate.
3309 * features/rs6000/powerpc-403.c: Regenerate.
3310 * features/rs6000/powerpc-403gc.c: Regenerate.
3311 * features/rs6000/powerpc-405.c: Regenerate.
3312 * features/rs6000/powerpc-505.c: Regenerate.
3313 * features/rs6000/powerpc-601.c: Regenerate.
3314 * features/rs6000/powerpc-602.c: Regenerate.
3315 * features/rs6000/powerpc-603.c: Regenerate.
3316 * features/rs6000/powerpc-604.c: Regenerate.
3317 * features/rs6000/powerpc-64.c: Regenerate.
3318 * features/rs6000/powerpc-64l.c: Regenerate.
3319 * features/rs6000/powerpc-7400.c: Regenerate.
3320 * features/rs6000/powerpc-750.c: Regenerate.
3321 * features/rs6000/powerpc-860.c: Regenerate.
3322 * features/rs6000/powerpc-altivec32.c: Regenerate.
3323 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3324 * features/rs6000/powerpc-altivec64.c: Regenerate.
3325 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3326 * features/rs6000/powerpc-e500.c: Regenerate.
3327 * features/rs6000/powerpc-e500l.c: Regenerate.
3328 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3329 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3330 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3331 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3332 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3333 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3334 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3335 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3336 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3337 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3338 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3339 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3340 * features/rs6000/powerpc-vsx32.c: Regenerate.
3341 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3342 * features/rs6000/powerpc-vsx64.c: Regenerate.
3343 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3344 * features/rs6000/rs6000.c: Regenerate.
3345 * features/rx.c: Regenerate.
3346 * features/s390-gs-linux64.c: Regenerate.
3347 * features/s390-linux32.c: Regenerate.
3348 * features/s390-linux32v1.c: Regenerate.
3349 * features/s390-linux32v2.c: Regenerate.
3350 * features/s390-linux64.c: Regenerate.
3351 * features/s390-linux64v1.c: Regenerate.
3352 * features/s390-linux64v2.c: Regenerate.
3353 * features/s390-te-linux64.c: Regenerate.
3354 * features/s390-tevx-linux64.c: Regenerate.
3355 * features/s390-vx-linux64.c: Regenerate.
3356 * features/s390x-gs-linux64.c: Regenerate.
3357 * features/s390x-linux64.c: Regenerate.
3358 * features/s390x-linux64v1.c: Regenerate.
3359 * features/s390x-linux64v2.c: Regenerate.
3360 * features/s390x-te-linux64.c: Regenerate.
3361 * features/s390x-tevx-linux64.c: Regenerate.
3362 * features/s390x-vx-linux64.c: Regenerate.
3363 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3364 from allocate_target_description.
3365 * target-descriptions.c (allocate_target_description): Update
3366 return type.
3367 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3368 allocate_target_description.
3369
3370 2020-10-07 Tom Tromey <tromey@adacore.com>
3371
3372 * unittests/search-memory-selftests.c: New file.
3373 * Makefile.in (SELFTESTS_SRCS): Add
3374 unittests/search-memory-selftests.c.
3375
3376 2020-10-07 Tom Tromey <tromey@adacore.com>
3377
3378 PR gdb/16930:
3379 * findcmd.c (_initialize_mem_search): Mention that the range is
3380 inclusive.
3381
3382 2020-10-07 Tom Tromey <tromey@adacore.com>
3383
3384 * target.h (simple_search_memory): Don't declare.
3385 * target.c (simple_search_memory): Move to gdbsupport.
3386 (default_search_memory): Update.
3387 * remote.c (remote_target::search_memory): Update.
3388
3389 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3390
3391 * Makefile.in (COMPILE): Add CXXFLAGS.
3392 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3393 (check-headers): Add CXXFLAGS.
3394
3395 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3396
3397 * arc-linux-tdep.h: New file.
3398 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3399 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3400 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3401 arc_linux_gregset, arc_linux_v2_regset,
3402 arc_linux_iterate_over_regset_sections,
3403 arc_linux_core_read_description): Implement.
3404 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3405 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3406 (arc_gdbarch_features_create): Add.
3407 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3408
3409 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3410
3411 * arch/arc.h: Rename "arc_gdbarch_features" to
3412 "arc_arch_features".
3413 * arc-tdep.h: Likewise.
3414 * arc-tdep.c: Likewise.
3415
3416 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3417
3418 * infcmd.c (attach_command): Remove the redundant call to
3419 `clear_proceed_status`.
3420
3421 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3422
3423 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3424
3425 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3426
3427 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3428 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3429 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3430
3431 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3432
3433 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3434 (_initialize_break_catch_sig): Don't allocate array.
3435
3436 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * symtab.c (find_pc_line): Return unmapped addresses when the
3439 requested address is also unmapped.
3440
3441 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3442
3443 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3444 tui/tui-out.h.
3445
3446 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3449 type::is_vector instead of TYPE_VECTOR.
3450
3451 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3452
3453 * auto-load.c (auto_load_objfile_script_1): Don't use
3454 debugfile_holder as temporary variable when stripping drive
3455 letter.
3456
3457 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3458
3459 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3460 Add TYPE_CODE_COMPLEX.
3461 (amd64_windows_return_value): Fix types returned via XMM0.
3462
3463 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3464
3465 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3466 AArch64/ARM maintainers.
3467
3468 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3469
3470 * NEWS: Mention set/show debug event-loop.
3471
3472 2020-10-02 Tom Tromey <tromey@adacore.com>
3473
3474 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3475 REG_EXTENDED.
3476
3477 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3480 * procfs.c (procfs_inferior_created): Remove.
3481 (_initialize_procfs): Don't register procfs_inferior_created.
3482
3483 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3484
3485 * async-event.c (invoke_async_signal_handlers): Add debug
3486 print.
3487 (check_async_event_handlers): Likewise.
3488 * event-top.c (show_debug_event_loop): New function.
3489 (_initialize_event_top): Register "set debug event-loop"
3490 setting.
3491
3492 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3495 * debug.h: Remove.
3496 * infrun.c: Include gdbsupport/common-debug.h.
3497 * linux-nat.c: Likewise.
3498
3499 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * async-event.h (create_async_signal_handler): Add name
3502 parameter.
3503 (create_async_event_handler): Likewise.
3504 * async-event.c (struct async_signal_handler) <name>: New field.
3505 (struct async_event_handler) <name>: New field.
3506 (create_async_signal_handler): Assign name.
3507 (create_async_event_handler): Assign name.
3508 * event-top.c (async_init_signals): Pass name when creating
3509 handler.
3510 * infrun.c (_initialize_infrun): Likewise.
3511 * record-btrace.c (record_btrace_push_target): Likewise.
3512 * record-full.c (record_full_open): Likewise.
3513 * remote-notif.c (remote_notif_state_allocate): Likewise.
3514 * remote.c (remote_target::open_1): Likewise.
3515 * tui/tui-win.c (tui_initialize_win): Likewise.
3516
3517 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3518
3519 * async-event.c (initialize_async_signal_handlers): Pass name to
3520 add_file_handler
3521 * event-top.c (ui_register_input_event_handler): Likewise.
3522 * linux-nat.c (linux_nat_target::async): Likewise.
3523 * run-on-main-thread.c (_initialize_run_on_main_thread):
3524 Likewise
3525 * ser-base.c (reschedule): Likewise.
3526 (ser_base_async): Likewise.
3527 * tui/tui-io.c: Likewise.
3528 * top.h (struct ui) <num>: New field.
3529 * top.c (highest_ui_num): New variable.
3530 (ui::ui): Initialize num.
3531
3532 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3533
3534 * observable.h <inferior_created>: Remove parameters. Update all
3535 listeners.
3536 * inferior.h (post_create_inferior): Remove target parameter.
3537 Update all callers.
3538
3539 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3540
3541 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3542 and DW_MACRO_undef_strx.
3543 (dwarf_decode_macros): Likewise
3544 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3545 which is the value of DW_AT_str_offsets_base.
3546 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3547 str_offsets_base.
3548
3549 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3550
3551 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3552
3553 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3554
3555 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3556 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3557
3558 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3559
3560 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3561
3562 2020-09-30 Tom de Vries <tdevries@suse.de>
3563
3564 PR symtab/26683
3565 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3566
3567 2020-09-30 Tom Tromey <tromey@adacore.com>
3568
3569 * dwarf2/read.c (handle_variant): Use constant_value.
3570
3571 2020-09-29 Tom Tromey <tom@tromey.com>
3572
3573 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3574 (read_file_scope, dwarf2_get_pc_bounds)
3575 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3576 (read_structure_type, handle_struct_member_die)
3577 (read_enumeration_type, read_array_type, read_set_type)
3578 (read_tag_pointer_type, read_tag_reference_type)
3579 (read_subroutine_type, read_base_type, read_subrange_type)
3580 (read_full_die_1, partial_die_info::read)
3581 (partial_die_info::read, by, new_symbol)
3582 (dwarf2_const_value_data, dwarf2_const_value_attr)
3583 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3584 (prepare_one_comp_unit): Update.
3585 * dwarf2/attribute.h (DW_UNSND): Remove.
3586
3587 2020-09-29 Tom Tromey <tom@tromey.com>
3588
3589 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3590 (read_subroutine_type, partial_die_info::read)
3591 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3592 (dwarf2_add_member_fn): Update.
3593 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3594 * dwarf2/attribute.c (attribute::as_boolean): New method.
3595
3596 2020-09-29 Tom Tromey <tom@tromey.com>
3597
3598 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3599 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3600 method.
3601 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3602
3603 2020-09-29 Tom Tromey <tom@tromey.com>
3604
3605 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3606 the attribute's form.
3607
3608 2020-09-29 Tom Tromey <tom@tromey.com>
3609
3610 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3611 (dwarf2_add_member_fn): Update.
3612 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3613 * dwarf2/attribute.c (attribute::defaulted): New method, from
3614 is_valid_DW_AT_defaulted.
3615
3616 2020-09-29 Tom Tromey <tom@tromey.com>
3617
3618 * dwarf2/read.c (dw2_get_file_names_reader)
3619 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3620 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3621 (dwarf2_symbol_mark_computed): Use as_unsigned.
3622 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3623 method.
3624 <form_is_section_offset>: Update comment.
3625
3626 2020-09-29 Tom Tromey <tom@tromey.com>
3627
3628 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3629 dwarf2_default_access_attribute. Look up attribute.
3630 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3631 Update.
3632
3633 2020-09-29 Tom Tromey <tom@tromey.com>
3634
3635 * dwarf2/read.c (skip_one_die): Update.
3636 (read_full_die_1): Change how reprocessing is done.
3637 (partial_die_info::read): Update.
3638 (read_attribute_value): Remove need_reprocess parameter.
3639 (read_attribute): Likewise.
3640 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3641 New method.
3642
3643 2020-09-29 Tom Tromey <tom@tromey.com>
3644
3645 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3646 (dwarf2_const_value_attr, dump_die_shallow)
3647 (dwarf2_fetch_constant_bytes): Update.
3648 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3649 comment.
3650 <set_address>: New method.
3651 (DW_ADDR): Remove.
3652 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3653 (attribute::as_string, attribute::as_address): Add assert.
3654
3655 2020-09-29 Tom Tromey <tom@tromey.com>
3656
3657 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3658 (read_attribute_reprocess, read_attribute_value): Update.
3659 (read_attribute): Clear requires_reprocessing.
3660 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3661 form_requires_reprocessing>: New methods.
3662 <string_init>: Clear requires_reprocessing.
3663 <set_unsigned_reprocess>: New method.
3664 <name>: Shrink by one bit.
3665 <requires_reprocessing>: New member.
3666 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3667 method.
3668
3669 2020-09-29 Tom Tromey <tom@tromey.com>
3670
3671 * dwarf2/read.c (read_attribute_value): Update.
3672 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3673 set_unsigned>: New methods.
3674 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3675
3676 2020-09-29 Tom Tromey <tom@tromey.com>
3677
3678 * dwarf2/read.c (get_alignment, read_array_order)
3679 (read_attribute_value, dwarf2_const_value_attr)
3680 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3681 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3682 New methods.
3683 (DW_SND): Remove.
3684
3685 2020-09-29 Tom Tromey <tom@tromey.com>
3686
3687 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3688 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3689 Update.
3690 * dwarf2/attribute.h (struct attribute) <as_signature,
3691 set_signature>: New methods.
3692 (DW_SIGNATURE): Remove.
3693
3694 2020-09-29 Tom Tromey <tom@tromey.com>
3695
3696 * dwarf2/read.c (read_call_site_scope)
3697 (handle_data_member_location, dwarf2_add_member_fn)
3698 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3699 (partial_die_info::read, read_attribute_value)
3700 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3701 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3702 (dwarf2_symbol_mark_computed): Update.
3703 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3704 methods.
3705 (DW_BLOCK): Remove.
3706 * dwarf2/attribute.c (attribute::form_is_block): Add
3707 DW_FORM_data16.
3708
3709 2020-09-29 Tom Tromey <tom@tromey.com>
3710
3711 * dwarf2/read.c (read_cutu_die_from_dwo)
3712 (read_attribute_reprocess, read_attribute_value, read_attribute)
3713 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3714 (dwarf2_fetch_constant_bytes): Update.
3715 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3716 <set_string_noncanonical, set_string_canonical>: New methods.
3717 <string_is_canonical>: Update comment.
3718 <canonical_string_p>: Add assert.
3719 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3720 * dwarf2/attribute.c (attribute::form_is_string): New method.
3721 (attribute::string): Use it.
3722
3723 2020-09-29 Tom Tromey <tom@tromey.com>
3724
3725 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3726 (dump_die_shallow): Use canonical_string_p.
3727 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3728 method.
3729
3730 2020-09-29 Tom Tromey <tom@tromey.com>
3731
3732 * dwarf2/read.c (partial_die_info::read)
3733 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3734 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3735 attribute::as_string.
3736
3737 2020-09-29 Tom Tromey <tom@tromey.com>
3738
3739 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3740 DW_ADDR.
3741 (attribute::string): Don't use DW_STRING.
3742 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3743 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3744
3745 2020-09-29 Tom Tromey <tom@tromey.com>
3746
3747 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3748 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3749 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3750 * dwarf2/attribute.h (struct attribute): Rename methods.
3751 * dwarf2/attribute.c (attribute::as_address): Rename from
3752 value_as_address.
3753 (attribute::as_string): Rename from value_as_string.
3754
3755 2020-09-29 Tom Tromey <tom@tromey.com>
3756
3757 * dwarf2/read.c (partial_die_info::read) <case
3758 DW_AT_linkage_name>: Use value_as_string.
3759 (dwarf2_string_attr): Use value_as_string.
3760 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3761 method.
3762 * dwarf2/attribute.c (attribute::value_as_string): New method.
3763
3764 2020-09-29 Pedro Alves <pedro@palves.net>
3765
3766 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3767 defined before using '#pragma GCC diagnostic' instead of checking
3768 __clang__.
3769
3770 2020-09-28 Tom Tromey <tom@tromey.com>
3771
3772 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3773 (handle_signal_stop): Update.
3774 * procfs.c (procfs_target::insert_watchpoint): Update.
3775 * target.h (target_have_steppable_watchpoint): Now a function.
3776
3777 2020-09-28 Tom Tromey <tom@tromey.com>
3778
3779 * infrun.c (set_schedlock_func): Update.
3780 * target.h (target_can_lock_scheduler): Now a function.
3781
3782 2020-09-28 Tom Tromey <tom@tromey.com>
3783
3784 * inferior.h (class inferior) <has_execution>: Update.
3785 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3786 * valops.c (find_function_in_inferior)
3787 (value_allocate_space_in_inferior): Update.
3788 * top.c (kill_or_detach): Update.
3789 * target.c (target_preopen, set_target_permissions): Update.
3790 (target_has_execution_current): Remove.
3791 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3792 Update.
3793 * solib.c (update_solib_list, reload_shared_libraries): Update.
3794 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3795 * solib-dsbt.c (enable_break): Update.
3796 * score-tdep.c (score7_fetch_inst): Update.
3797 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3798 Update.
3799 * remote.c (remote_target::start_remote)
3800 (remote_target::remote_check_symbols, remote_target::open_1)
3801 (remote_target::remote_detach_1, remote_target::verify_memory)
3802 (remote_target::xfer_partial, remote_target::read_description)
3803 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3804 * record-full.c (record_full_open_1): Update.
3805 * record-btrace.c (record_btrace_target_open): Update.
3806 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3807 (value_nsstring): Update.
3808 * linux-thread-db.c (add_thread_db_info)
3809 (thread_db_find_new_threads_silently, check_thread_db_callback)
3810 (try_thread_db_load_1, record_thread): Update.
3811 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3812 Update.
3813 * linux-fork.c (checkpoint_command): Update.
3814 * infrun.c (set_non_stop, set_observer_mode)
3815 (check_multi_target_resumption, for_each_just_stopped_thread)
3816 (maybe_remove_breakpoints, normal_stop)
3817 (class infcall_suspend_state): Update.
3818 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3819 (info_program_command, attach_command): Update.
3820 * infcall.c (call_function_by_hand_dummy): Update.
3821 * inf-loop.c (inferior_event_handler): Update.
3822 * gcore.c (gcore_command, derive_heap_segment): Update.
3823 * exec.c (exec_file_command): Update.
3824 * eval.c (evaluate_subexp): Update.
3825 * compile/compile.c (compile_to_object): Update.
3826 * cli/cli-dump.c (restore_command): Update.
3827 * breakpoint.c (update_watchpoint)
3828 (update_inserted_breakpoint_locations)
3829 (insert_breakpoint_locations, get_bpstat_thread): Update.
3830 * target.h (target_has_execution): Remove macro.
3831 (target_has_execution_current): Don't declare.
3832 (target_has_execution): Rename from target_has_execution_1. Add
3833 argument default.
3834
3835 2020-09-28 Tom Tromey <tom@tromey.com>
3836
3837 * mi/mi-main.c (exec_reverse_continue)
3838 (mi_cmd_list_target_features): Update.
3839 * infrun.c (set_exec_direction_func): Update.
3840 * target.c (default_execution_direction): Update.
3841 * reverse.c (exec_reverse_once): Update.
3842 * target.h (target_can_execute_reverse): Now a function.
3843
3844 2020-09-28 Tom Tromey <tom@tromey.com>
3845
3846 * tui/tui-regs.c (tui_get_register)
3847 (tui_data_window::show_registers): Update.
3848 * thread.c (scoped_restore_current_thread::restore)
3849 (scoped_restore_current_thread::scoped_restore_current_thread):
3850 Update.
3851 * regcache-dump.c (regcache_print): Update.
3852 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3853 Update.
3854 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3855 * mep-tdep.c (current_me_module, current_options): Update.
3856 * linux-thread-db.c (thread_db_load): Update.
3857 * infcmd.c (registers_info, info_vector_command)
3858 (info_float_command): Update.
3859 * ia64-tdep.c (ia64_frame_prev_register)
3860 (ia64_sigtramp_frame_prev_register): Update.
3861 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3862 * gcore.c (derive_stack_segment): Update.
3863 * frame.c (get_current_frame, has_stack_frames): Update.
3864 * findvar.c (language_defn::read_var_value): Update.
3865 * arm-tdep.c (arm_pc_is_thumb): Update.
3866 * target.c (target_has_registers): Rename from
3867 target_has_registers_1.
3868 * target.h (target_has_registers): Remove macro.
3869 (target_has_registers): Rename from target_has_registers_1.
3870
3871 2020-09-28 Tom Tromey <tom@tromey.com>
3872
3873 * windows-tdep.c (tlb_make_value): Update.
3874 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3875 * thread.c (scoped_restore_current_thread::restore)
3876 (scoped_restore_current_thread::scoped_restore_current_thread)
3877 (thread_command): Update.
3878 * stack.c (backtrace_command_1, frame_apply_level_command)
3879 (frame_apply_all_command, frame_apply_command): Update.
3880 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3881 Update.
3882 * gcore.c (derive_stack_segment): Update.
3883 * frame.c (get_current_frame, has_stack_frames): Update.
3884 * auxv.c (info_auxv_command): Update.
3885 * ada-tasks.c (ada_build_task_list): Update.
3886 * target.c (target_has_stack): Rename from target_has_stack_1.
3887 * target.h (target_has_stack): Remove macro.
3888 (target_has_stack): Rename from target_has_stack_1.
3889
3890 2020-09-28 Tom Tromey <tom@tromey.com>
3891
3892 * target.c (target_has_memory): Rename from target_has_memory_1.
3893 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3894 * thread.c (scoped_restore_current_thread::restore)
3895 (scoped_restore_current_thread::scoped_restore_current_thread):
3896 Update.
3897 * frame.c (get_current_frame, has_stack_frames): Update.
3898 * target.h (target_has_memory): Remove macro.
3899 (target_has_memory): Rename from target_has_memory_1.
3900
3901 2020-09-28 Tom Tromey <tom@tromey.com>
3902
3903 * target.c (target_has_all_memory_1): Remove.
3904 * target.h (target_has_all_memory): Remove define.
3905 (target_has_all_memory_1): Don't declare.
3906
3907 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3908
3909 * ser-base.c: Adjust comments formatting.
3910
3911 2020-09-27 Tom Tromey <tom@tromey.com>
3912
3913 PR tui/25342:
3914 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3915
3916 2020-09-27 Tom Tromey <tom@tromey.com>
3917
3918 PR tui/25342:
3919 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3920
3921 2020-09-27 Tom Tromey <tom@tromey.com>
3922
3923 * unittests/tui-selftests.c: Update.
3924 * tui/tui-winsource.h (struct tui_source_window_base)
3925 <extra_margin, show_line_number, refresh_pad>: New methods.
3926 <m_max_length, m_pad>: New members.
3927 (tui_copy_source_line): Update.
3928 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3929 first_col, line_width, ndigits parameters. Add length.
3930 (tui_source_window_base::show_source_line): Write to pad. Line
3931 number now 0-based.
3932 (tui_source_window_base::refresh_pad): New method.
3933 (tui_source_window_base::show_source_content): Write to pad. Call
3934 refresh_pad.
3935 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3936 not refill.
3937 (tui_source_window_base::update_exec_info): Call
3938 show_line_number.
3939 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3940 method.
3941 <m_digits>: New member.
3942 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3943 and m_max_length.
3944 (tui_source_window::show_line_number): New method.
3945 * tui/tui-io.h (tui_puts): Fix comment.
3946 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3947 m_max_length.
3948
3949 2020-09-27 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-winsource.c
3952 (tui_source_window_base::set_is_exec_point_at): Don't call
3953 show_source_line.
3954
3955 2020-09-27 Tom Tromey <tom@tromey.com>
3956
3957 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3958 method.
3959 <erase>: Update.
3960 <cursor_x, cursor_y>: Remove.
3961 <m_inner_window>: New member.
3962 (tui_py_window::rerender): Create inner window.
3963 (tui_py_window::output): Write to inner window.
3964
3965 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3966
3967 PR python/26586
3968 * cli/cli-script.c (execute_control_commands): don't set
3969 instream to nullptr here as this breaks the from_tty argument
3970 to gdb.execute in Python.
3971 (execute_user_command): set instream to nullptr here instead.
3972
3973 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3974
3975 * infrun.h (infrun_debug_printf): Fix formatting.
3976 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3977
3978 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3979
3980 * compile/compile-object-load.h (struct munmap_list): Add
3981 explicitly-defined move constructor.
3982
3983 2020-09-24 Tom Tromey <tromey@adacore.com>
3984
3985 PR tui/26638:
3986 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3987 method.
3988 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3989 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3990 (tui_prev_win): Rewrite.
3991
3992 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3993
3994 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3995 in WOW64 processes as SIGINT.
3996 * nat/windows-nat.h: Make wow64_process a shared variable.
3997 * windows-nat.c: Remove static wow64_process variable.
3998
3999 2020-09-23 Tom Tromey <tom@tromey.com>
4000
4001 PR symtab/25470:
4002 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4003 offset and bit size.
4004 * printcmd.c (print_scalar_formatted): Handle zero-length
4005 integer.
4006 (print_scalar_formatted): Use bit_size_differs_p.
4007 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4008 constant.
4009 (union type_specific): <int_stuff>: New member.
4010 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4011 methods.
4012 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4013 TYPE_SPECIFIC_FIELD.
4014 (recursive_dump_type, copy_type_recursive): Update.
4015 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4016 DW_AT_data_bit_offset.
4017
4018 2020-09-23 Tom Tromey <tom@tromey.com>
4019
4020 * utils.h (class gdb_argv): Add move operators.
4021 <append>: New methods.
4022 * compile/compile.c (build_argc_argv): Remove.
4023 (compile_args_argc): Remove.
4024 (compile_args_argv): Change type.
4025 (set_compile_args): Simplify.
4026 (append_args): Remove.
4027 (filter_args): Remove argcp parameter.
4028 (get_args): Return gdb_argv. Simplify.
4029 (compile_to_object): Update.
4030
4031 2020-09-23 Tom Tromey <tom@tromey.com>
4032
4033 * compile/compile-object-run.c (do_module_cleanup)
4034 <~do_module_cleanup> :Remove.
4035 (do_module_cleanup): Update.
4036 * compile/compile-object-load.h (struct munmap_list): Add move
4037 assignment operator.
4038 <source_file>: Now a std::string.
4039 <munmap_list>: Rename. No longer a pointer.
4040 * compile/compile-object-load.c (struct setup_sections_data): Add
4041 constructor.
4042 <setup_one_section>: Declare.
4043 <munmap_list>: Move earlier.
4044 <m_bfd>: New member.
4045 <m_last_size, m_last_section_first, m_last_prot,
4046 m_last_max_alignment>: Rename, add initializers where needed.
4047 (setup_sections_data::setup_one_section): Rename from
4048 setup_sections. Update.
4049 (compile_object_load): Update. Don't use bfd_map_over_sections.
4050
4051 2020-09-23 Tom Tromey <tom@tromey.com>
4052
4053 * compile/compile-object-run.c (struct do_module_cleanup): Add
4054 parameters to constructor. Update destructor.
4055 <source_file, scope, scope_data, out_value_type, out_value_addr,
4056 munmap_list_head, objfile_name_string>: Remove.
4057 <module>: New member.
4058 (do_module_cleanup): Update.
4059 (compile_object_run): Update.
4060
4061 2020-09-23 Tom Tromey <tom@tromey.com>
4062
4063 * compile/compile.c (eval_compile_command): Update.
4064 * compile/compile-object-run.h (compile_object_run): Take a
4065 compile_module_up.
4066 * compile/compile-object-run.c (compile_object_run): Take a
4067 compile_module_up.
4068 * compile/compile-object-load.h (struct compile_module): Add
4069 constructor, destructor.
4070 (compile_module_up): New typedef.
4071 (compile_object_load): Return compile_object_up.
4072 * compile/compile-object-load.c (compile_object_load): Return
4073 compile_module_up.
4074
4075 2020-09-23 Tom Tromey <tom@tromey.com>
4076
4077 * compile/compile-object-run.c (struct do_module_cleanup): Add
4078 constructor, destructor.
4079 <objfile_name_string>: Don't use struct hack.
4080 (do_module_cleanup): Use delete.
4081 (compile_object_run): Use new.
4082
4083 2020-09-23 Tom Tromey <tom@tromey.com>
4084
4085 * compile/compile-cplus-types.c
4086 (compile_cplus_convert_struct_or_union): Use std::vector.
4087 (compile_cplus_convert_func): Likewise.
4088 * compile/compile-c-types.c (convert_func): Use std::vector.
4089
4090 2020-09-21 Tom Tromey <tromey@adacore.com>
4091
4092 * sparc-tdep.c (sparc32_skip_prologue): Use
4093 skip_prologue_using_sal.
4094
4095 2020-09-19 Tom Tromey <tom@tromey.com>
4096
4097 * symfile.c (add_section_size_callback): Remove.
4098 (load_one_section): Rename from load_section_callback. Change
4099 parameters.
4100 (generic_load): Use foreach.
4101
4102 2020-09-19 Tom Tromey <tom@tromey.com>
4103
4104 * exec.c (add_to_section_table): Remove.
4105 (build_section_table): Use foreach.
4106
4107 2020-09-19 Tom Tromey <tom@tromey.com>
4108
4109 * elfread.c (elf_locate_sections): Change parameters.
4110 (elf_symfile_read): Use foreach.
4111
4112 2020-09-19 Tom Tromey <tom@tromey.com>
4113
4114 * cli/cli-dump.c (struct callback_data): Remove.
4115 (restore_one_section): Rename from restore_section_callback.
4116 Change parameters.
4117 (restore_binary_file): Change parameters.
4118 (restore_command): Use foreach.
4119
4120 2020-09-19 Tom Tromey <tom@tromey.com>
4121
4122 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4123 (gcore_copy_callback): Likewise.
4124 (gcore_memory_sections): Use foreach.
4125
4126 2020-09-19 Tom Tromey <tom@tromey.com>
4127
4128 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4129 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4130 parameters.
4131 (generic_elf_osabi_sniffer): Use foreach.
4132 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4133 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4134
4135 2020-09-19 Tom Tromey <tom@tromey.com>
4136
4137 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4138 (dwarf2_get_dwz_file): Use foreach.
4139 (dwarf2_locate_dwo_sections): Change parameters.
4140 (open_and_init_dwo_file): Use foreach.
4141 (dwarf2_locate_common_dwp_sections): Change parameters.
4142 (open_and_init_dwp_file): Use foreach.
4143
4144 2020-09-19 Tom Tromey <tom@tromey.com>
4145
4146 * symfile.h: (find_lowest_section): Don't declare.
4147 * symfile.c (find_lowest_section): Now static. Change
4148 parameters.
4149 (struct place_section_arg): Remove.
4150 (place_section): Change parameters.
4151 (addr_info_make_relative): Use foreach.
4152 (symfile_dummy_outputs): Remove.
4153 (default_symfile_relocate): Use foreach.
4154
4155 2020-09-19 Tom Tromey <tom@tromey.com>
4156
4157 * objfiles.c (add_to_objfile_sections): Rename from
4158 add_to_objfile_sections_full.
4159 (add_to_objfile_sections): Remove.
4160 (build_objfile_section_table): Use foreach.
4161
4162 2020-09-19 Tom Tromey <tom@tromey.com>
4163
4164 * stap-probe.c (get_stap_base_address_1): Remove.
4165 (get_stap_base_address): Use foreach.
4166
4167 2020-09-19 Tom Tromey <tom@tromey.com>
4168
4169 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4170 parameters.
4171 (gdb_bfd_close_or_warn): Use foreach.
4172
4173 2020-09-19 Tom Tromey <tom@tromey.com>
4174
4175 * corelow.c (add_to_thread_list): Change parameters.
4176 (core_target_open): Use foreach.
4177
4178 2020-09-19 Tom Tromey <tom@tromey.com>
4179
4180 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4181 existing function.
4182
4183 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4184
4185 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4186 for arrays.
4187
4188 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4189
4190 * eval.c: Remove 'f-lang.h' include.
4191 (value_f90_subarray): Moved to f-lang.c.
4192 (eval_call): Renamed to...
4193 (evaluate_subexp_do_call): ...this, is no longer static, header
4194 comment moved into header file.
4195 (evaluate_funcall): Update call to eval_call.
4196 (skip_undetermined_arglist): Moved to f-lang.c.
4197 (fortran_value_subarray): Likewise.
4198 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4199 moved to evaluate_subexp_f.
4200 (calc_f77_array_dims): Moved to f-lang.c
4201 * expprint.c (print_subexp_funcall): New function.
4202 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4203 moved to print_subexp_f, OP_FUNCALL uses new function.
4204 (dump_subexp_body_funcall): New function.
4205 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4206 moved to dump_subexp_f, OP_FUNCALL uses new function.
4207 * expression.h (evaluate_subexp_do_call): Declare.
4208 * f-lang.c (value_f90_subarray): Moved from eval.c.
4209 (skip_undetermined_arglist): Likewise.
4210 (calc_f77_array_dims): Likewise.
4211 (fortran_value_subarray): Likewise.
4212 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4213 (operator_length_f): Likewise.
4214 (print_subexp_f): Likewise.
4215 (dump_subexp_body_f): Likewise.
4216 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4217 declaration of this operation to here.
4218 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4219 support moved to operator_length_f.
4220 * parser-defs.h (dump_subexp_body_funcall): Declare.
4221 (print_subexp_funcall): Declare.
4222 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4223 fortran-operator.def.
4224
4225 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4226
4227 * eval.c (fortran_value_subarray): New function, content is taken
4228 from...
4229 (evaluate_subexp_standard): ...here, in two places. Now arrays
4230 and strings both call the new function.
4231 (calc_f77_array_dims): Add header comment, handle strings.
4232
4233 2020-09-18 Victor Collod <vcollod@nvidia.com>
4234
4235 PR gdb/26635
4236 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4237 (i386_analyze_prologue): Call i386_skip_endbr.
4238
4239 2020-09-18 Tom Tromey <tromey@adacore.com>
4240
4241 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4242 (windows_nat_target::wait): Update.
4243 * target/wait.h (enum target_wait_flag): New. Use
4244 DEF_ENUM_FLAGS_TYPE.
4245 * target/target.h (target_wait): Change type of options.
4246 * target.h (target_options_to_string, default_target_wait):
4247 Update.
4248 (struct target_ops) <wait>: Change type of options.
4249 * target.c (target_wait, default_target_wait, do_option): Change
4250 type of "options".
4251 (target_options_to_string): Likewise.
4252 * target-delegates.c: Rebuild.
4253 * target-debug.h (target_debug_print_target_wait_flags): Rename
4254 from target_debug_print_options.
4255 * sol-thread.c (class sol_thread_target) <wait>: Update.
4256 (sol_thread_target::wait): Update.
4257 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4258 (rs6000_nat_target::wait): Update.
4259 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4260 Update.
4261 (remote_target::wait_ns, remote_target::wait_as): Change type of
4262 "options".
4263 (remote_target::wait): Update.
4264 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4265 (gdbsim_target::wait): Update.
4266 * record-full.c (class record_full_base_target) <wait>: Update.
4267 (record_full_wait_1): Change type of "options".
4268 (record_full_base_target::wait): Update.
4269 * record-btrace.c (class record_btrace_target) <wait>: Update.
4270 (record_btrace_target::wait): Update.
4271 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4272 Update.
4273 (ravenscar_thread_target::wait): Update.
4274 * procfs.c (class procfs_target) <wait>: Update.
4275 (procfs_target::wait): Update.
4276 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4277 * obsd-nat.c (obsd_nat_target::wait): Update.
4278 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4279 (nto_procfs_target::wait): Update.
4280 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4281 * nbsd-nat.c (nbsd_wait): Change type of "options".
4282 (nbsd_nat_target::wait): Update.
4283 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4284 (thread_db_target::wait): Update.
4285 * linux-nat.h (class linux_nat_target) <wait>: Update.
4286 * linux-nat.c (linux_nat_target::wait): Update.
4287 (linux_nat_wait_1): Update.
4288 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4289 "options".
4290 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4291 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4292 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4293 (go32_nat_target::wait): Update.
4294 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4295 * gnu-nat.c (gnu_nat_target::wait): Update.
4296 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4297 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4298 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4299 * darwin-nat.c (darwin_nat_target::wait): Update.
4300 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4301 (bsd_uthread_target::wait): Update.
4302 * aix-thread.c (class aix_thread_target) <wait>: Update.
4303 (aix_thread_target::wait): Update.
4304
4305 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4306
4307 * compile/compile-object-run.c (create_copied_type_recursive): New
4308 function.
4309 (compile_object_run): Use new function.
4310
4311 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4312
4313 * NEWS: Mention x86_64 Cygwin core file support.
4314
4315 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4316
4317 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4318 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4319
4320 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4321
4322 * windows-tdep.h: Add prototypes.
4323 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4324 (i386_windows_core_pid_to_str): Move and rename ...
4325 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4326 (windows_core_pid_to_str): ... and here.
4327 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4328
4329 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4330 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4331 (amd64_windows_init_abi_common): ... and register.
4332
4333 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4334
4335 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4336 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4337
4338 2020-09-18 Pedro Alves <pedro@palves.net>
4339
4340 PR gdb/26631
4341 * thread.c (thread_find_command): Switch inferior before calling
4342 target methods.
4343
4344 2020-09-17 Tom Tromey <tromey@adacore.com>
4345
4346 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4347 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4348 (tdesc_arch_data_up): New typedef.
4349 (tdesc_use_registers, tdesc_data_alloc): Update.
4350 (tdesc_data_cleanup): Don't declare.
4351 * target-descriptions.c (tdesc_data_alloc): Return a
4352 tdesc_arch_data_up.
4353 (tdesc_arch_data_deleter::operator()): Rename from
4354 tdesc_data_cleanup. Change argument type.
4355 (tdesc_use_registers): Change early_data to an rvalue reference.
4356 (tdesc_use_registers): Don't use delete.
4357 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4358 * s390-tdep.c (s390_gdbarch_init): Update.
4359 * rx-tdep.c (rx_gdbarch_init): Update.
4360 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4361 * riscv-tdep.c (riscv_gdbarch_init): Update.
4362 * or1k-tdep.c (or1k_gdbarch_init): Update.
4363 * nios2-tdep.c (nios2_gdbarch_init): Update.
4364 * nds32-tdep.c (nds32_gdbarch_init): Update.
4365 * mips-tdep.c (mips_gdbarch_init): Update.
4366 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4367 * m68k-tdep.c (m68k_gdbarch_init): Update.
4368 * i386-tdep.c (i386_gdbarch_init): Update.
4369 * arm-tdep.c (arm_gdbarch_init): Update.
4370 * arc-tdep.c (arc_tdesc_init): Update.
4371 (arc_gdbarch_init): Update.
4372 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4373
4374 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4375
4376 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4377 for WOW64 processes.
4378
4379 2020-09-17 Tom Tromey <tom@tromey.com>
4380
4381 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4382
4383 2020-09-17 Tom Tromey <tom@tromey.com>
4384
4385 * value.c (preserve_values): Update.
4386 * python/py-type.c (save_objfile_types): Update.
4387 * guile/scm-type.c (save_objfile_types): Update.
4388 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4389 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4390 * compile/compile-object-run.c (compile_object_run): Update.
4391
4392 2020-09-17 Tom Tromey <tom@tromey.com>
4393
4394 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4395 Remove.
4396 <m_table>: Now htab_up.
4397 * typeprint.c (typedef_hash_table::recursively_update)
4398 (typedef_hash_table::add_template_parameters)
4399 (typedef_hash_table::typedef_hash_table): Update.
4400 (typedef_hash_table::~typedef_hash_table): Remove.
4401 (typedef_hash_table::typedef_hash_table)
4402 (typedef_hash_table::find_global_typedef)
4403 (typedef_hash_table::find_typedef): Update.
4404
4405 2020-09-17 Tom Tromey <tom@tromey.com>
4406
4407 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4408
4409 2020-09-17 Tom Tromey <tom@tromey.com>
4410
4411 * linespec.c (class decode_compound_collector)
4412 <~decode_compound_collector>: Remove.
4413 <m_unique_syms>: Now htab_up.
4414 (decode_compound_collector::operator ()): Update.
4415 (class symtab_collector) <~symtab_collector>: Remove.
4416 <m_symtab_table>: Now htab_up.
4417 (symtab_collector::operator ()): Update.
4418
4419 2020-09-17 Tom Tromey <tom@tromey.com>
4420
4421 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4422 (filename_seen_cache::clear): Update.
4423 (~filename_seen_cache): Remove.
4424 (filename_seen_cache::seen): Update.
4425 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4426 htab_up.
4427 <~filename_seen_cache>: Remove.
4428 <traverse>: Update.
4429
4430 2020-09-17 Tom Tromey <tom@tromey.com>
4431
4432 * completer.c (completion_tracker::discard_completions)
4433 (completion_tracker::~completion_tracker)
4434 (completion_tracker::maybe_add_completion)
4435 (completion_tracker::remove_completion)
4436 (completion_tracker::recompute_lowest_common_denominator)
4437 (completion_tracker::build_completion_result): Update.
4438 * completer.h (class completion_tracker) <have_completions>:
4439 Update.
4440 <m_entries_hash>: Now htab_up.
4441
4442 2020-09-17 Tom Tromey <tom@tromey.com>
4443
4444 * breakpoint.c (ambiguous_names_p): Use htab_up.
4445
4446 2020-09-17 Tom Tromey <tom@tromey.com>
4447
4448 * auto-load.c (struct auto_load_pspace_info)
4449 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4450 <loaded_script_files, loaded_script_texts>: Change type to
4451 htab_up.
4452 (~auto_load_pspace_info) Remove.
4453 (init_loaded_scripts_info, maybe_add_script_file)
4454 (maybe_add_script_text, auto_load_info_scripts): Update.
4455
4456 2020-09-17 Tom Tromey <tromey@adacore.com>
4457
4458 * c-exp.y (name_obstack): Now static.
4459
4460 2020-09-17 Chungyi Chi <demonic@csie.io>
4461
4462 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4463
4464 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4465
4466 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4467 (add_solib_catchpoint): Likewise.
4468 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4469 to bool.
4470 (add_solib_catchpoint): Change int parameter/variable to bool.
4471 (catch_load_or_unload): Likewise.
4472 (init_catchpoint): Likewise.
4473 (create_fork_vfork_event_catchpoint): Likewise.
4474 (catch_fork_command_1): Likewise.
4475 (catch_exec_command_1): Likewise.
4476
4477 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4478
4479 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4480 Change instance_flags to m_instance_flags.
4481
4482 2020-09-16 Tom Tromey <tromey@adacore.com>
4483
4484 PR gdb/26598:
4485 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4486
4487 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4488
4489 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4490 PL_FLAG_EXEC.
4491 (fbsd_nat_target::insert_exec_catchpoint)
4492 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4493 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4494 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4495
4496 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4497
4498 * configure.ac: Remove check for kinfo_getvmmap().
4499 * configure, config.in: Regenerate.
4500 * fbsd-nat.c (fbsd_read_mapping): Remove
4501 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4502 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4503 kinfo_get_vmmap() are always present.
4504
4505 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4506
4507 * fbsd-nat.c: Always include support for
4508 TARGET_OBJECT_SIGNAL_INFO.
4509
4510 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4511
4512 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4513 sysctl and remove procfs fallback.
4514
4515 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4516
4517 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4518 * fbsd-nat.h: Likewise.
4519
4520 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4521
4522 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4523 argument.
4524
4525 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4526
4527 * ada-lang.c (ada_language_data): Delete.
4528 (ada_language): Remove references to ada_language_data.
4529 * c-lang.c (c_language_data): Delete.
4530 (c_language): Remove references to c_language_data.
4531 (cplus_language_data): Delete.
4532 (cplus_language): Remove references to cplus_language_data.
4533 (asm_language_data): Delete.
4534 (asm_language): Remove references to asm_language_data.
4535 (minimal_language_data): Delete.
4536 (minimal_language): Remove references to minimal_language_data.
4537 * d-lang.c (d_language_data): Delete.
4538 (d_language): Remove references to d_language_data.
4539 * f-lang.c (f_language_data): Delete.
4540 (f_language): Remove references to f_language_data.
4541 * go-lang.c (go_language_data): Delete.
4542 (go_language): Remove references to go_language_data.
4543 * language.c (unknown_language_data): Delete.
4544 (unknown_language): Remove references to unknown_language_data.
4545 (auto_language_data): Delete.
4546 (auto_language): Remove references to auto_language_data.
4547 * language.h (language_data): Delete struct.
4548 (language_defn): No longer inherit from language_data.
4549 * m2-lang.c (m2_language_data): Delete.
4550 (m2_language): Remove references to m2_language_data.
4551 * objc-lang.c (objc_language_data): Delete.
4552 (objc_language): Remove references to objc_language_data.
4553 * opencl-lang.c (opencl_language_data): Delete.
4554 (opencl_language): Remove references to opencl_language_data.
4555 * p-lang.c (pascal_language_data): Delete.
4556 (pascal_language): Remove references to pascal_language_data.
4557 * rust-lang.c (rust_language_data): Delete.
4558 (rust_language): Remove references to rust_language_data.
4559
4560 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4563 initializer.
4564 (ada_language::opcode_print_table): New member function.
4565 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4566 (c_language::opcode_print_table): New member function.
4567 (cplus_language_data): Remove la_op_print_tab initializer.
4568 (cplus_language::opcode_print_table): New member function.
4569 (asm_language_data): Remove la_op_print_tab initializer.
4570 (asm_language::opcode_print_table): New member function.
4571 (minimal_language_data): Remove la_op_print_tab initializer.
4572 (minimal_language::opcode_print_table): New member function.
4573 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4574 (d_language::opcode_print_table): New member function.
4575 * expprint.c (print_subexp_standard): Update call to
4576 opcode_print_table.
4577 (op_string): Likewise.
4578 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4579 (f_language::opcode_print_table): New member function.
4580 * go-lang.c (go_language_data): Remove la_op_print_tab
4581 initializer.
4582 (go_language::opcode_print_table): New member function.
4583 * language.c (unknown_language_data): Remove la_op_print_tab
4584 initializer.
4585 (unknown_language::opcode_print_table): New member function.
4586 (auto_language_data): Remove la_op_print_tab initializer.
4587 (auto_language::opcode_print_table): New member function.
4588 * language.h (language_data): Remove la_op_print_tab field.
4589 (language_defn::opcode_print_table): Declare new member function.
4590 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4591 initializer.
4592 (m2_language::opcode_print_table): New member function.
4593 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4594 initializer.
4595 (objc_language::opcode_print_table): New member function.
4596 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4597 initializer.
4598 (opencl_language::opcode_print_table): New member function.
4599 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4600 initializer.
4601 (pascal_language::opcode_print_table): New member function.
4602 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4603 initializer.
4604 (rust_language::opcode_print_table): New member function.
4605
4606 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4607
4608 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4609 (ada_language::expression_ops): New member function.
4610 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4611 (c_language::expression_ops): New member function.
4612 (cplus_language_data): Remove la_exp_desc initializer.
4613 (cplus_language::expression_ops): New member function.
4614 (asm_language_data): Remove la_exp_desc initializer.
4615 (asm_language::expression_ops): New member function.
4616 (minimal_language_data): Remove la_exp_desc initializer.
4617 (minimal_language::expression_ops): New member function.
4618 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4619 (d_language::expression_ops): New member function.
4620 * eval.c (evaluate_subexp): Update call to expression_ops.
4621 * expprint.c (print_subexp): Likewise.
4622 (op_name): Likewise.
4623 (dump_subexp_body): Likewise.
4624 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4625 (f_language::expression_ops): New member function.
4626 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4627 (go_language::expression_ops): New member function.
4628 * language.c (language_defn::expression_ops): New function.
4629 (unknown_language_data): Remove la_exp_desc initializer.
4630 (auto_language_data): Likewise.
4631 * language.h (language_data): Remove la_exp_desc field.
4632 (language_defn::expression_ops): Declare new member function.
4633 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4634 (m2_language::expression_ops): New member function.
4635 * objc-lang.c (objc_language_data): Remove la_exp_desc
4636 initializer.
4637 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4638 initializer.
4639 (opencl_language::expression_ops): New member function.
4640 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4641 * parse.c (operator_length): Update call to expression_ops.
4642 (exp_iterate): Likewise.
4643 * rust-lang.c (rust_language_data): Remove la_exp_desc
4644 initializer.
4645 (ruse_language::expression_ops): New member function.
4646
4647 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4648
4649 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4650 initializer.
4651 (ada_language::varobj_ops): New member function.
4652 * c-lang.c (c_language_data): Remove la_varobj_ops
4653 initializer.
4654 (cplus_language_data): Likewise.
4655 (cplus_language::varobj_ops): New member function.
4656 (asm_language_data): Remove la_varobj_ops initializer.
4657 (minimal_language_data): Likewise.
4658 * d-lang.c (d_language_data): Likewise.
4659 * f-lang.c (f_language_data): Likewise.
4660 * go-lang.c (go_language_data): Likewise.
4661 * language.c (language_defn::varobj_ops): New function.
4662 (unknown_language_data): Remove la_varobj_ops
4663 initializer.
4664 (auto_language_data): Likewise.
4665 * language.h (language_data): Remove la_varobj_ops field.
4666 (language_defn::varobj_ops): Declare new member function.
4667 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4668 * objc-lang.c (objc_language_data): Likewise.
4669 * opencl-lang.c (opencl_language_data): Likewise.
4670 * p-lang.c (pascal_language_data): Likewise.
4671 * rust-lang.c (rust_language_data): Likewise.
4672 * varobj.c (varobj_create): Update call to varobj_ops.
4673 * varobj.h (default_varobj_ops): Delete define.
4674
4675 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4676
4677 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4678 initializer.
4679 * c-lang.c (c_language_data): Likewise.
4680 (c_language::macro_expansion): New member function.
4681 (cplus_language_data): Likewise.
4682 (cplus_language::macro_expansion): New member function.
4683 (asm_language_data): Likewise.
4684 (asm_language::macro_expansion): New member function.
4685 (minimal_language_data): Likewise.
4686 (minimal_language::macro_expansion): New member function.
4687 * d-lang.c (d_language_data): Remove la_macro_expansion
4688 initializer.
4689 * f-lang.c (f_language_data): Likewise.
4690 * go-lang.c (go_language_data): Likewise.
4691 * language.c (unknown_language_data): Likewise.
4692 (auto_language_data): Likewise.
4693 * language.h (language_data): Remove la_macro_expansion field.
4694 (language_defn::macro_expansion): New member function.
4695 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4696 initializer.
4697 * objc-lang.c (objc_language_data): Likewise.
4698 (objc_language::macro_expansion): New member function.
4699 * opencl-lang.c (opencl_language_data): Likewise.
4700 (opencl_language::macro_expansion): New member function.
4701 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4702 initializer.
4703 * rust-lang.c (rust_language_data): Likewise.
4704 * symtab.c (default_collect_symbol_completion_matches_break_on):
4705 Update call to macro_expansion.
4706
4707 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4708
4709 * ada-lang.c (ada_language_data): Remove la_array_ordering
4710 initializer.
4711 * c-lang.c (c_language_data): Likewise.
4712 (cplus_language_data): Likewise.
4713 (asm_language_data): Likewise.
4714 (minimal_language_data): Likewise.
4715 * d-lang.c (d_language_data): Likewise.
4716 * dwarf2/read.c (read_array_order): Update for call to
4717 array_ordering.
4718 * f-lang.c (f_language_data): Remove la_array_ordering
4719 initializer.
4720 (f_language::array_ordering): New member function.
4721 * go-lang.c (go_language_data): Remove la_array_ordering
4722 initializer.
4723 * language.c (unknown_language_data): Likewise.
4724 (auto_language_data): Likewise.
4725 * language.h (language_data): Delete la_array_ordering field.
4726 (language_defn::array_ordering): New member function.
4727 * m2-lang.c (m2_language_data): Remove la_array_ordering
4728 initializer.
4729 * objc-lang.c (objc_language_data): Likewise.
4730 * opencl-lang.c (opencl_language_data): Likewise.
4731 * p-lang.c (pascal_language_data): Likewise.
4732 * rust-lang.c (rust_language_data): Likewise.
4733
4734 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4735
4736 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4737 initializer.
4738 * c-lang.c (c_language_data): Likewise.
4739 (cplus_language_data): Likewise.
4740 (asm_language_data): Likewise.
4741 (minimal_language_data): Likewise.
4742 * d-lang.c (d_language_data): Likewise.
4743 * f-lang.c (f_language_data): Likewise.
4744 (f_language::case_sensitivity): New member function.
4745 * go-lang.c (go_language_data): Remove la_case_sensitivity
4746 initializer.
4747 * language.c (enum case_mode): Moved here from language.h.
4748 (case_mode): Make static.
4749 (show_case_command): Update for case_sensitivity being a method.
4750 (set_case_command): Likewise.
4751 (set_range_case): Likewise.
4752 (unknown_language_data): Remove la_case_sensitivity initializer.
4753 (auto_language_data): Likewise.
4754 * language.h (case_mode): Delete, move enum declaration to
4755 language.c.
4756 (language_data): Delete la_case_sensitivity field.
4757 (language_defn::case_sensitivity): New member function.
4758 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4759 initializer.
4760 * objc-lang.c (objc_language_data): Likewise.
4761 * opencl-lang.c (opencl_language_data): Likewise.
4762 * p-lang.c (pascal_language_data): Likewise.
4763 * rust-lang.c (rust_language_data): Likewise.
4764
4765 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4766
4767 * ada-lang.c (ada_language_data): Remove la_range_check
4768 initializer.
4769 * c-lang.c (c_language_data): Likewise.
4770 (cplus_language_data): Likewise.
4771 (asm_language_data): Likewise.
4772 (minimal_language_data): Likewise.
4773 * d-lang.c (d_language_data): Likewise.
4774 * f-lang.c (f_language_data): Likewise.
4775 (f_language::range_checking_on_by_default): New member function.
4776 * go-lang.c (go_language_data): Remove la_range_check initializer.
4777 * language.c (enum range_mode): Moved here from language.h.
4778 (range_mode): Made static.
4779 (show_range_command): Update to use
4780 range_checking_on_by_default.
4781 (set_range_command): Likewise.
4782 (set_range_case): Likewise.
4783 (unknown_language_data): Remove la_range_check initializer.
4784 (auto_language_data): Likewise.
4785 * language.h (range_mode): Delete. Enum definition moved to
4786 language.c.
4787 (language_data): Remove la_range_check field.
4788 (language_defn::range_checking_on_by_default): New member
4789 function.
4790 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4791 (m2_language::range_checking_on_by_default): New member function.
4792 * objc-lang.c (objc_language_data): Remove la_range_check
4793 initializer.
4794 * opencl-lang.c (opencl_language_data): Likewise.
4795 * p-lang.c (pascal_language_data): Likewise.
4796 (pascal_language::range_checking_on_by_default): New member
4797 function.
4798 * rust-lang.c (rust_language_data): Remove la_range_check
4799 initializer.
4800 (rust_language::range_checking_on_by_default): New member
4801 function.
4802
4803 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4804
4805 * dwarf2/read.c (dwarf2_physname): Remove special case for
4806 language_go.
4807 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4808 member function.
4809
4810 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4811
4812 * ada-lang.c (ada_language_data): Remove
4813 la_store_sym_names_in_linkage_form_p initializer.
4814 (ada_language::store_sym_names_in_linkage_form_p): New member
4815 function.
4816 * c-lang.c (c_language_data): Remove
4817 la_store_sym_names_in_linkage_form_p initializer.
4818 (c_language::store_sym_names_in_linkage_form_p): New member
4819 function.
4820 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4821 initializer.
4822 (asm_language_data): Likewise.
4823 (asm_language::store_sym_names_in_linkage_form_p): New member
4824 function.
4825 (minimal_language_data): Remove
4826 la_store_sym_names_in_linkage_form_p initializer.
4827 (minimal_language::store_sym_names_in_linkage_form_p): New member
4828 function.
4829 * d-lang.c (d_language_data): Remove
4830 la_store_sym_names_in_linkage_form_p initializer.
4831 * dwarf2/read.c (dwarf2_physname): Update call to
4832 store_sym_names_in_linkage_form_p.
4833 * f-lang.c (f_language_data): Remove
4834 la_store_sym_names_in_linkage_form_p initializer.
4835 * go-lang.c (go_language_data): Remove
4836 la_store_sym_names_in_linkage_form_p initializer.
4837 * language.c (unknown_language_data): Remove
4838 la_store_sym_names_in_linkage_form_p initializer.
4839 (unknown_language::store_sym_names_in_linkage_form_p): New member
4840 function.
4841 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4842 initializer.
4843 (auto_language::store_sym_names_in_linkage_form_p): New member
4844 function.
4845 * language.h (language_data): Remove
4846 la_store_sym_names_in_linkage_form_p member variable.
4847 (language_defn::store_sym_names_in_linkage_form_p): New member
4848 function.
4849 * m2-lang.c (m2_language_data): Remove
4850 la_store_sym_names_in_linkage_form_p initializer.
4851 * objc-lang.c (objc_language_data): Likewise.
4852 * opencl-lang.c (opencl_language_data): Likewise.
4853 * p-lang.c (pascal_language_data): Likewise.
4854 * rust-lang.c (rust_language_data): Likewise.
4855
4856 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4857
4858 * ada-lang.c (ada_language_data): Remove string_lower_bound
4859 initializer.
4860 * c-lang.c (c_language_data): Likewise.
4861 (cplus_language_data): Likewise.
4862 (asm_language_data): Likewise.
4863 (minimal_language_data): Likewise.
4864 * d-lang.c (d_language_data): Likewise.
4865 * f-lang.c (f_language_data): Likewise.
4866 * go-lang.c (go_language_data): Likewise.
4867 * language.c (unknown_language_data): Likewise.
4868 (auto_language_data): Likewise.
4869 * language.h (language_data): Remove string_lower_bound field.
4870 (language_defn::string_lower_bound): New member function.
4871 * m2-lang.c (m2_language_data): Remove string_lower_bound
4872 initializer.
4873 (m2_language::string_lower_bound): New member function.
4874 * objc-lang.c (objc_language_data): Remove string_lower_bound
4875 initializer.
4876 * opencl-lang.c (opencl_language_data): Likewise.
4877 * p-lang.c (pascal_language_data): Likewise.
4878 * rust-lang.c (rust_language_data): Likewise.
4879 * valops.c (value_cstring): Update call to string_lower_bound.
4880 (value_string): Likewise.
4881 * value.c (allocate_repeated_value): Likewise.
4882
4883 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4884
4885 * valops.c (value_repeat): Fix incorrect argument name in comment.
4886
4887 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4888
4889 * ada-lang.c (ada_language_data): Remove c_style_arrays
4890 initializer.
4891 (ada_language::c_style_arrays_p): New member fuction.
4892 * c-lang.c (c_language_data): Remove c_style_arrays
4893 initializer.
4894 (cplus_language_data): Likewise.
4895 (asm_language_data): Likewise.
4896 (minimal_language_data): Likewise.
4897 * d-lang.c (d_language_data): Likewise.
4898 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4899 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4900 (f_language::c_style_arrays_p): New member function.
4901 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4902 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4903 * language.c (unknown_language_data): Remove c_style_arrays
4904 initializer.
4905 (auto_language_data): Likewise.
4906 * language.h (language_data): Remove c_style_arrays field.
4907 (language_defn::c_style_arrays_p): New member function.
4908 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4909 (m2_language::c_style_arrays_p): New member function.
4910 * objc-lang.c (objc_language_data): Remove c_style_arrays
4911 initializer.
4912 * opencl-lang.c (opencl_language_data): Likewise.
4913 * p-lang.c (pascal_language_data): Likewise.
4914 * rust-lang.c (rust_language_data): Likewise.
4915 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4916 and update local variable to a bool.
4917 * valops.c (value_cast): Update call to c_style_arrays_p.
4918 (value_array): Likewise.
4919 * value.c (coerce_array): Likewise.
4920
4921 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * ada-lang.c (ada_language_data): Remove la_language initializer.
4924 * c-lang.c (c_language_data): Likewise.
4925 (cplus_language_data): Likewise.
4926 (asm_language_data): Likewise.
4927 (minimal_language_data): Likewise.
4928 * d-lang.c (d_language_data): Likewise.
4929 * f-lang.c (f_language_data): Likewise.
4930 * go-lang.c (go_language_data): Likewise.
4931 * language.c (unknown_language_data): Likewise.
4932 (auto_language_data): Likewise.
4933 * language.h (language_data): Remove la_language field.
4934 (language_defn::language_defn): Initialise la_language field.
4935 (language_defn::la_language): New member variable.
4936 * m2-lang.c (m2_language_data): Remove la_language field.
4937 * objc-lang.c (objc_language_data): Likewise.
4938 * opencl-lang.c (opencl_language_data): Likewise.
4939 * p-lang.c (pascal_language_data): Likewise.
4940 * rust-lang.c (rust_language_data): Likewise.
4941
4942 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4943
4944 * ada-lang.c (ada_extensions): Delete, moved into
4945 ada_language::filename_extensions.
4946 (ada_language_data): Remove la_filename_extensions initializer.
4947 (ada_language::filename_extensions): New member function.
4948 * c-lang.c (c_extensions): Delete, moved into
4949 c_language::filename_extensions.
4950 (c_language_data): Remove la_filename_extensions initializer.
4951 (c_language::filename_extensions): New member function.
4952 (cplus_extensions): Delete, moved into
4953 cplus_language::filename_extensions.
4954 (cplus_language_data): Remove la_filename_extensions initializer.
4955 (cplus_language::filename_extensions): New member function.
4956 (asm_extensions): Delete, moved into
4957 asm_language::filename_extensions.
4958 (asm_language_data): Remove la_filename_extensions initializer.
4959 (asm_language::filename_extensions): New member function.
4960 (minimal_language_data): Remove la_filename_extensions
4961 initializer.
4962 * d-lang.c (d_extensions): Delete, moved into
4963 d_language::filename_extensions.
4964 (d_language_data): Remove la_filename_extensions initializer.
4965 (d_language::filename_extensions): New member function.
4966 * f-lang.c (f_extensions): Delete, moved into
4967 f_language::filename_extensions.
4968 (f_language_data): Remove la_filename_extensions initializer.
4969 (f_language::filename_extensions): New member function.
4970 * go-lang.c (go_language_data): Remove la_filename_extensions
4971 initializer.
4972 * language.c (add_set_language_command): Update now that
4973 filename_extensions returns a vector.
4974 (unknown_language_data): Remove la_filename_extensions
4975 initializer.
4976 (auto_language_data): Likewise.
4977 * language.h (language_data): Remove la_filename_extensions field.
4978 (language_defn::filename_extensions): New member function.
4979 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4980 initializer.
4981 * objc-lang.c (objc_extensions): Delete, moved into
4982 objc_language::filename_extensions.
4983 (objc_language_data): Remove la_filename_extensions initializer.
4984 (objc_language::filename_extensions): New member function.
4985 * opencl-lang.c (opencl_language_data): Remove
4986 la_filename_extensions initializer.
4987 * p-lang.c (pascal_extensions): Delete, moved into
4988 pascal_language::filename_extensions.
4989 (pascal_language_data): Remove la_filename_extensions initializer.
4990 (pascal_language::filename_extensions): New member function.
4991 * rust-lang.c (rust_extensions): Delete, moved into
4992 rust_language::filename_extensions.
4993 (rust_language_data): Remove la_filename_extensions initializer.
4994 (rust_language::filename_extensions): New member function.
4995 * symfile.c (add_filename_language): Add new assert.
4996
4997 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4998
4999 * ada-lang.c (ada_language_data): Remove la_name and
5000 la_natural_name initializers.
5001 (ada_language::name): New member function.
5002 (ada_language::natural_name): New member function.
5003 * c-lang.c (c_language_data): Remove la_name and
5004 la_natural_name initializers.
5005 (c_language::name): New member function.
5006 (c_language::natural_name): New member function.
5007 (cplus_language_data): Remove la_name and
5008 la_natural_name initializers.
5009 (cplus_language::name): New member function.
5010 (cplus_language::natural_name): New member function.
5011 (asm_language_data): Remove la_name and
5012 la_natural_name initializers.
5013 (asm_language::name): New member function.
5014 (asm_language::natural_name): New member function.
5015 (minimal_language_data): Remove la_name and
5016 la_natural_name initializers.
5017 (minimal_language::name): New member function.
5018 (minimal_language::natural_name): New member function.
5019 * compile/compile.c (compile_to_object): Update call to
5020 lanugage_defn::name.
5021 * d-lang.c (d_language_data): Remove la_name and
5022 la_natural_name initializers.
5023 (d_language::name): New member function.
5024 (d_language::natural_name): New member function.
5025 * expprint.c (print_subexp_standard): Update call to
5026 language_defn::name.
5027 (dump_raw_expression): Likewise
5028 (dump_prefix_expression): Likewise.
5029 * f-lang.c (f_language_data): Remove la_name and
5030 la_natural_name initializers.
5031 (f_language::name): New member function.
5032 (f_language::natural_name): New member function.
5033 * go-lang.c (go_language_data): Remove la_name and
5034 la_natural_name initializers.
5035 (go_language::name): New member function.
5036 (go_language::natural_name): New member function.
5037 * language.c (show_language_command): Update call to
5038 language_defn::name.
5039 (set_language_command): Likewise.
5040 (language_enum): Likewise.
5041 (language_str): Likewise.
5042 (add_set_language_command): Likewise, use
5043 language_defn::natural_name in the doc string.
5044 (unknown_language_data): Remove la_name and
5045 la_natural_name initializers.
5046 (unknown_language::name): New member function.
5047 (unknown_language::natural_name): New member function.
5048 (auto_language_data): Remove la_name and
5049 la_natural_name initializers.
5050 (auto_language::name): New member function.
5051 (auto_language::natural_name): New member function.
5052 (language_lookup_primitive_type_as_symbol): Update call to
5053 language_defn::name.
5054 * language.h (language_data): Remove la_name and la_natural_name
5055 member variables.
5056 (language_defn::name): New member function.
5057 (language_defn::natural_name): New member function.
5058 * m2-lang.c (m2_language_data): Remove la_name and
5059 la_natural_name initializers.
5060 (m2_language::name): New member function.
5061 (m2_language::natural_name): New member function.
5062 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5063 language_defn::natural_name.
5064 * objc-lang.c (objc_language_data): Remove la_name and
5065 la_natural_name initializers.
5066 (objc_language::name): New member function.
5067 (objc_language::natural_name): New member function.
5068 * opencl-lang.c (opencl_language_data): Remove la_name and
5069 la_natural_name initializers.
5070 (opencl_language::name): New member function.
5071 (opencl_language::natural_name): New member function.
5072 * p-lang.c (pascal_language_data): Remove la_name and
5073 la_natural_name initializers.
5074 (pascal_language::name): New member function.
5075 (pascal_language::natural_name): New member function.
5076 * rust-lang.c (rust_language_data): Remove la_name and
5077 la_natural_name initializers.
5078 (rust_language::name): New member function.
5079 (rust_language::natural_name): New member function.
5080 * symtab.c (lookup_language_this): Update call to
5081 language_defn::name.
5082
5083 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5084
5085 * ada-lang.c (ada_language_data): Remove la_name_of_this
5086 initializer.
5087 * ax-gdb.c (gen_expr): Update call to name_of_this.
5088 * c-exp.y (classify_name): Likewise.
5089 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5090 (cplus_language_data): Likewise.
5091 (cplus_language::name_of_this): New member function.
5092 (asm_language_data): Remove la_name_of_this initializer.
5093 (minimal_language_data): Likewise.
5094 * d-lang.c (d_language_data): Likewise.
5095 (d_language::name_of_this): New member function.
5096 * expprint.c (print_subexp_standard): Update call to name_of_this.
5097 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5098 * go-lang.c (go_language_data): Likewise.
5099 * language.c (unknown_language_data): Likewise.
5100 (unknown_language::name_of_this): New member function.
5101 (auto_language_data): Remove la_name_of_this initializer.
5102 (auto_language::name_of_this): New member function.
5103 * language.h (language_data): Delete la_name_of_this member
5104 variable.
5105 (language_defn::name_of_this): New member function.
5106 * m2-lang.c (m2_language_data): Remove la_name_of_this
5107 initializer.
5108 * objc-lang.c (objc_language_data): Likewise.
5109 (objc_language::name_of_this): New member function.
5110 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5111 initializer.
5112 * p-lang.c (pascal_language_data): Likewise.
5113 (pascal_language::name_of_this): New member function.
5114 * rust-lang.c (rust_language_data): Remove la_name_of_this
5115 initializer.
5116 * symtab.c (lookup_language_this): Update call to name_of_this.
5117 (lookup_symbol_aux): Likewise.
5118 * valops.c (value_of_this): Likewise.
5119
5120 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5121
5122 * ada-lang.c (ada_language_data): Remove
5123 la_struct_too_deep_ellipsis initializer.
5124 (ada_language::struct_too_deep_ellipsis): New member function.
5125 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5126 initializer.
5127 (cplus_language_data): Likewise.
5128 (asm_language_data): Likewise.
5129 (minimal_language_data): Likewise.
5130 * cp-valprint.c (cp_print_value): Update call to
5131 struct_too_deep_ellipsis.
5132 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5133 initializer.
5134 * f-lang.c (f_language_data): Likewise.
5135 (f_language::struct_too_deep_ellipsis): New member function.
5136 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5137 initializer.
5138 * language.c (unknown_language_data): Likewise.
5139 (auto_language_data): Likewise.
5140 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5141 member variable.
5142 (language_defn::struct_too_deep_ellipsis): New member function.
5143 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5144 initializer.Q
5145 * objc-lang.c (objc_language_data): Likewise.
5146 * opencl-lang.c (opencl_language_data): Likewise.
5147 * p-lang.c (pascal_language_data): Likewise.
5148 * rust-lang.c (rust_language_data): Likewise.
5149 * valprint.c (val_print_check_max_depth): Update call to
5150 struct_too_deep_ellipsis.
5151
5152 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5153
5154 * MAINTAINERS (Write After Approval): Add myself.
5155
5156 2020-09-15 Tom Tromey <tom@tromey.com>
5157
5158 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5159 Remove.
5160
5161 2020-09-15 Tom Tromey <tom@tromey.com>
5162
5163 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5164 and TYPE_CODE_METHODPTR cases.
5165 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5166 (c_value_print_inner): Update.
5167 * valprint.c (generic_value_print_memberptr): New function, from
5168 c_value_print_memberptr.
5169 (generic_value_print): Use it. Call cplus_print_method_ptr.
5170
5171 2020-09-15 Tom Tromey <tromey@adacore.com>
5172
5173 * python/python-internal.h (PyInt_FromLong): Remove define.
5174 * python/py-value.c (convert_value_from_python): Use
5175 gdb_py_object_from_longest.
5176 * python/py-type.c (typy_get_code): Use
5177 gdb_py_object_from_longest.
5178 * python/py-symtab.c (salpy_get_line): Use
5179 gdb_py_object_from_longest.
5180 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5181 gdb_py_object_from_longest.
5182 * python/py-record.c (recpy_gap_reason_code): Use
5183 gdb_py_object_from_longest.
5184 * python/py-record-btrace.c (recpy_bt_insn_size)
5185 (recpy_bt_func_level, btpy_list_count): Use
5186 gdb_py_object_from_longest.
5187 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5188 gdb_py_object_from_longest. Fix error handling.
5189 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5190 gdb_py_object_from_longest.
5191 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5192 gdb_py_object_from_longest.
5193 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5194 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5195 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5196
5197 2020-09-15 Tom Tromey <tromey@adacore.com>
5198
5199 * python/python.c (gdbpy_parameter_value): Use
5200 gdb_py_object_from_ulongest.
5201
5202 2020-09-15 Tom Tromey <tromey@adacore.com>
5203
5204 * python/py-infevents.c (create_register_changed_event_object):
5205 Use gdb_py_object_from_longest.
5206 * python/py-exitedevent.c (create_exited_event_object): Use
5207 gdb_py_object_from_longest.
5208
5209 2020-09-15 Tom Tromey <tromey@adacore.com>
5210
5211 * python/python.c (gdbpy_parameter_value): Use
5212 gdb_py_object_from_longest.
5213 * python/py-type.c (convert_field, typy_range): Use
5214 gdb_py_object_from_longest.
5215 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5216 gdb_py_object_from_longest.
5217 * python/py-lazy-string.c (stpy_get_length): Use
5218 gdb_py_object_from_longest.
5219 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5220 gdb_py_object_from_longest.
5221 * python/py-infevents.c (create_memory_changed_event_object): Use
5222 gdb_py_object_from_longest.
5223 * python/py-inferior.c (infpy_get_num): Use
5224 gdb_py_object_from_longest.
5225 (infpy_get_pid): Likewise.
5226
5227 2020-09-15 Tom Tromey <tromey@adacore.com>
5228
5229 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5230 defines.
5231 * python/py-value.c (valpy_long): Use
5232 gdb_py_object_from_ulongest.
5233 * python/py-symtab.c (salpy_get_pc): Use
5234 gdb_py_object_from_ulongest.
5235 (salpy_get_last): Likewise.
5236 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5237 gdb_py_object_from_ulongest.
5238 * python/py-lazy-string.c (stpy_get_address): Use
5239 gdb_py_object_from_ulongest.
5240 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5241 * python/py-arch.c (archpy_disassemble): Use
5242 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5243 error handling.
5244
5245 2020-09-15 Tom Tromey <tromey@adacore.com>
5246
5247 * python/python-internal.h (gdb_py_long_from_longest): Remove
5248 defines.
5249 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5250 * python/py-type.c (convert_field, typy_get_sizeof): Use
5251 gdb_py_object_from_longest.
5252 * python/py-record-btrace.c (btpy_list_index): Use
5253 gdb_py_object_from_longest.
5254
5255 2020-09-15 Tom Tromey <tromey@adacore.com>
5256
5257 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5258 * python/py-record.c (recpy_element_number): Use
5259 gdb_py_object_from_longest.
5260 (recpy_gap_number): Likewise.
5261
5262 2020-09-15 Tom Tromey <tromey@adacore.com>
5263
5264 * top.c (ui::ui): Update.
5265 (highest_ui_num): Remove.
5266 * top.h (struct ui) <num>: Remove.
5267
5268 2020-09-15 Tom Tromey <tromey@adacore.com>
5269
5270 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5271 * ui-style.c (ansi_regex_text): Now array.
5272 * rust-exp.y (number_regex_text): Now array.
5273 * linespec.c (linespec_quote_characters): Now array.
5274 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5275 Now arrays.
5276
5277 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5278
5279 * debuginfod-support.c (debuginfod_client_deleter): New.
5280 (debuginfod_client_up): New.
5281 (debuginfod_init): Return debuginfod_client_up.
5282 (debuginfod_source_query): Adjust.
5283 (debuginfod_debuginfo_query): Adjust.
5284
5285 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * debuginfod-support.c (debuginfod_source_query): Use
5288 make_unique_xstrdup.
5289
5290 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5293 with `type::instance_flags`.
5294
5295 2020-09-14 Michael Mullin <masmullin@gmail.com>
5296
5297 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5298 Remove baton parameter.
5299
5300 2020-09-14 Pedro Alves <pedro@palves.net>
5301
5302 * Makefile.in (SELFTESTS_SRCS): Add
5303 unittests/enum-flags-selftests.c.
5304 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5305 btrace_function_flags instead of enum btrace_function_flag.
5306 * compile/compile-c-types.c (convert_qualified): Use
5307 enum_flags::raw.
5308 * compile/compile-cplus-symbols.c (convert_one_symbol)
5309 (convert_symbol_bmsym):
5310 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5311 (compile_cplus_convert_struct_or_union_methods)
5312 (compile_cplus_instance::convert_qualified_base):
5313 * go-exp.y (parse_string_or_char): Add cast to int.
5314 * unittests/enum-flags-selftests.c: New file.
5315 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5316 type to btrace_thread_flags from btrace_thread_flag.
5317 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5318 local's type to btrace_thread_flags from btrace_thread_flag. Add
5319 cast in DEBUG call.
5320
5321 2020-09-14 Pedro Alves <pedro@palves.net>
5322
5323 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5324 * gdbtypes.c (address_space_name_to_int): Rename to ...
5325 (address_space_name_to_type_instance_flags): ... this.
5326 (address_space_int_to_name): Rename to ...
5327 (address_space_type_instance_flags_to_name): ... this.
5328 * gdbtypes.h (address_space_name_to_int): Rename to ...
5329 (address_space_name_to_type_instance_flags): ... this.
5330 (address_space_int_to_name): Rename to ...
5331 (address_space_type_instance_flags_to_name): ... this.
5332 * type-stack.c (type_stack::insert): Adjust to rename.
5333 * type-stack.h (type_stack::insert): Likewise.
5334
5335 2020-09-14 Pedro Alves <pedro@palves.net>
5336 Andrew Burgess <andrew.burgess@embecosm.com>
5337
5338 * avr-tdep.c (avr_address_class_type_flags): Return
5339 type_instance_flags.
5340 (avr_address_class_type_flags_to_name): Take a
5341 type_instance_flags.
5342 (avr_address_class_name_to_type_flags): Return bool and take a
5343 type_instance_flags.
5344 * d-lang.c (build_d_types): Use type::set_instance_flags.
5345 * ft32-tdep.c (ft32_address_class_type_flags): Return
5346 type_instance_flags.
5347 (ft32_address_class_type_flags_to_name): Take a
5348 type_instance_flags.
5349 (ft32_address_class_name_to_type_flags): Return bool and take a
5350 type_instance_flags.
5351 (ft32_gdbarch_init): Use type::set_instance_flags.
5352 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5353 * gdbarch.h, gdbarch.c: Regenerate.
5354 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5355 (address_class_name_to_type_flags): Use type_instance_flags and
5356 bool.
5357 * gdbtypes.c (address_space_name_to_int)
5358 (address_space_int_to_name, make_qualified_type): Use
5359 type_instance_flags.
5360 (make_qualified_type): Use type_instance_flags and
5361 type::set_instance_flags.
5362 (make_type_with_address_space, make_cv_type, make_vector_type)
5363 (check_typedef): Use type_instance_flags.
5364 (recursive_dump_type): Cast type_instance_flags to unsigned for
5365 printing.
5366 (copy_type_recursive): Use type::set_instance_flags.
5367 (gdbtypes_post_init): Use type::set_instance_flags.
5368 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5369 <m_instance_flags>: ... this.
5370 <instance_flags, set_instance_flags>: New methods.
5371 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5372 (SET_TYPE_INSTANCE_FLAGS): New.
5373 (address_space_name_to_int, address_space_int_to_name)
5374 (make_type_with_address_space): Pass flags using
5375 type_instance_flags instead of int.
5376 * stabsread.c (cleanup_undefined_types_noname): Use
5377 type::set_instance_flags.
5378 * s390-tdep.c (s390_address_class_type_flags): Return
5379 type_instance_flags.
5380 (s390_address_class_type_flags_to_name): Take a
5381 type_instance_flags.
5382 (s390_address_class_name_to_type_flags): Return bool and take a
5383 type_instance_flags.
5384 * type-stack.c (type_stack::follow_types): Use
5385 type_instance_flags.
5386 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5387
5388 2020-09-14 Tom Tromey <tromey@adacore.com>
5389
5390 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5391 * x86-tdep.c (x86_is_thunk_register_name)
5392 (x86_in_indirect_branch_thunk): Update.
5393 * sparc64-tdep.c (sparc64_fpu_register_names)
5394 (sparc64_cp0_register_names, sparc64_register_names)
5395 (sparc64_pseudo_register_names): Now const.
5396 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5397 cp0_registers_num>: Now const.
5398 * sparc-tdep.c (sparc_core_register_names)
5399 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5400 (sparc32_pseudo_register_names): Now const.
5401 (validate_tdesc_registers): Update.
5402 * rust-lang.c (rust_extensions): Now const.
5403 * p-lang.c (p_extensions): Now const.
5404 * objc-lang.c (objc_extensions): Now const.
5405 * nto-tdep.c (nto_thread_state_str): Now const.
5406 * moxie-tdep.c (moxie_register_names): Now const.
5407 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5408 Now const.
5409 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5410 (mips_linux_reg_names): Now const.
5411 (mips_gdbarch_init): Update.
5412 * microblaze-tdep.c (microblaze_register_names): Now const.
5413 * m68k-tdep.c (m68k_register_names): Now const.
5414 * m32r-tdep.c (m32r_register_names): Now const.
5415 * ia64-tdep.c (ia64_register_names): Now const.
5416 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5417 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5418 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5419 ymm_avx512_register_names, pkeys_register_names>: Now const.
5420 * i386-tdep.c (i386_register_names, i386_zmm_names)
5421 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5422 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5423 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5424 * f-lang.c (f_extensions): Now const.
5425 * d-lang.c (d_extensions): Now const.
5426 * csky-tdep.c (csky_register_names): Now const.
5427 * charset.c (default_charset_names, charset_enum): Now const.
5428 (_initialize_charset): Update.
5429 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5430 const.
5431 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5432 (bsd_uthread_solib_loaded): Update.
5433 (bsd_uthread_state): Now const.
5434 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5435 (amd64_ymm_avx512_names, amd64_ymmh_names)
5436 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5437 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5438 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5439 (amd64_dword_names): Now const.
5440 * agent.c (can_use_agent_enum): Now const.
5441 * ada-tasks.c (task_states, long_task_states): Now const.
5442 * ada-lang.c (known_runtime_file_name_patterns)
5443 (known_auxiliary_function_name_patterns, attribute_names)
5444 (standard_exc, ada_extensions): Now const.
5445
5446 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5447
5448 * bcache.h (struct bcache) <bcache>: Remove constructor.
5449 <m_hash_function, m_compare_function>: Remove.
5450 <~bcache>: Make virtual.
5451 <compare>: Remove static method, introduce virtual method.
5452 <default_hash>: Remove.
5453 <hash>: New virtual method.
5454 * bcache.c (bcache::expand_hash_table): Update.
5455 (bcache::insert): Update.
5456 (bcache::hash): New.
5457 (bcache::compare): Update comment and parameter names.
5458 * gdbtypes.c (types_deeply_equal): Update.
5459 * psymtab.h (struct psymbol_bcache): New struct.
5460 (class psymtab_storage) <psymtab_storage>: Make default.
5461 <psymbol_cache>: Change type to psymbol_bcache.
5462 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5463 (psymbol_hash): Change to...
5464 (psymbol_bcache::hash): ... this.
5465 (psymbol_compare): Change to...
5466 (psymbol_bcache::compare): ... this.
5467
5468 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5469
5470 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5471 checking for initial lwp.
5472
5473 2020-09-14 Tom Tromey <tromey@adacore.com>
5474
5475 * m68k-tdep.c (m68k_extract_return_value): Use
5476 pointer_result_regnum.
5477 (m68k_store_return_value): Likewise.
5478 (m68k_reg_struct_return_p): Handle vectors and arrays.
5479 (m68k_return_value): Handle arrays.
5480 (m68k_svr4_return_value): Fix single-element aggregate handling.
5481 Handle long double. Adjust for embedded ABI.
5482 (m68k_svr4_init_abi): Set pointer_result_regnum.
5483 (m68k_embedded_init_abi): New function.
5484 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5485 (m68k_osabi_sniffer): New function.
5486 (_initialize_m68k_tdep): Register osabi sniffer.
5487 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5488 member.
5489
5490 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5491
5492 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5493 with gdb::unique_xmalloc_ptr<char>.
5494
5495 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5496
5497 * xml-support.h (xml_fetch_another): Change type to be a
5498 function_view.
5499 (xml_process_xincludes): Remove baton parameter.
5500 (xml_fetch_content_from_file): Change baton parameter to
5501 dirname.
5502 * xml-support.c (struct xinclude_parsing_data)
5503 <xinclude_parsing_data>: Remove baton parameter.
5504 <fetcher_baton>: Remove.
5505 (xinclude_start_include): Adjust.
5506 (xml_process_xincludes): Adjust.
5507 (xml_fetch_content_from_file): Replace baton parameter with
5508 dirname.
5509 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5510 (xml_init_syscalls_info): Use a lambda.
5511 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5512 (file_read_description_xml): Use a lambda.
5513 (fetch_available_features_from_target): Change baton parameter
5514 to target_ops.
5515 (target_read_description_xml): Use a lambda.
5516 (target_fetch_description_xml): Use a lambda.
5517 (string_read_description_xml): Update.
5518
5519 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5520
5521 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5522 uses with type::endianity_is_not_default.
5523
5524 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * gdbtypes.h (struct type) <endianity_is_not_default,
5527 set_endianity_is_not_default>: New methods.
5528 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5529 type::endianity_is_not_default, change all write call sites to
5530 use type::set_endianity_is_not_default.
5531
5532 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5535 uses with type::is_fixed_instance.
5536
5537 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5538
5539 * gdbtypes.h (struct type) <is_fixed_instance,
5540 set_is_fixed_instance>: New methods.
5541 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5542 write call sites to use type::set_is_fixed_instance.
5543
5544 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5547 uses with type::is_gnu_ifunc.
5548
5549 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5550
5551 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5552 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5553 use type::set_is_gnu_ifunc.
5554
5555 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5558 uses with type::stub_is_supported.
5559
5560 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5561
5562 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5563 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5564 use type::set_stub_is_supported.
5565
5566 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5567
5568 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5569 uses with type::is_vector.
5570
5571 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5574 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5575 use type::set_is_vector.
5576
5577 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5578
5579 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5580 uses with type::has_varargs.
5581
5582 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5583
5584 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5585 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5586 use type::set_has_varargs.
5587
5588 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5589
5590 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5591 uses with type::is_prototyped.
5592
5593 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5594
5595 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5596 New methods.
5597 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5598 call sites to use type::set_is_prototyped.
5599
5600 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5603 uses with type::target_is_stub.
5604
5605 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5608 New methods.
5609 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5610 sites to use type::set_target_is_stub.
5611
5612 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * gdbtypes.h (TYPE_STUB): Remove, replace all
5615 uses with type::is_stub.
5616
5617 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5620 (TYPE_STUB): Use type::is_stub, change all write call sites to
5621 use type::set_is_stub.
5622
5623 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5624
5625 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5626 type::has_no_signedness.
5627
5628 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5629
5630 * gdbtypes.h (struct type) <has_no_signedness,
5631 set_has_no_signedness>: New methods.
5632 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5633 call sites to use type::set_has_no_signedness.
5634
5635 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5638 type::is_unsigned.
5639
5640 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5641
5642 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5643 methods.
5644 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5645 sites to use type::set_is_unsigned.
5646
5647 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5648 Adam Renquinha <arenquinha@cimeq.qc.ca>
5649
5650 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5651 pointer and stack frame offset when unwinding.
5652
5653 2020-09-13 Pedro Alves <pedro@palves.net>
5654
5655 * NEWS: Document "-break-insert --qualified".
5656 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5657
5658 2020-09-13 Pedro Alves <pedro@palves.net>
5659
5660 * linespec.c (classify_mtype, compare_msyms): Delete.
5661 (search_minsyms_for_name): Remove classification logic. Instead
5662 filter out trampoline symbols if we also found an external
5663 function of the same name.
5664
5665 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5666
5667 * NEWS: Create a new section for the next release branch.
5668 Rename the section of the current branch, now that it has
5669 been cut.
5670
5671 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5672
5673 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5674 * version.in: Bump version to 11.0.50.DATE-git.
5675
5676 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5677
5678 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5679
5680 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5681 Felix Willgerodt <Felix.Willgerodt@intel.com>
5682
5683 * gdbarch.sh: Added bfloat16 type.
5684 * gdbarch.c: Regenerated.
5685 * gdbarch.h: Regenerated.
5686 * gdbtypes.c (floatformats_bfloat16): New struct.
5687 (gdbtypes_post_init): Add builtin_bfloat16.
5688 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5689 (floatformats_bfloat16): New struct.
5690 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5691 (i386_ymm_type): Add field "v16_bfloat16"
5692 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5693 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5694 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5695 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5696 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5697 * features/i386/64bit-avx512.c: Regenerated.
5698 * features/i386/64bit-sse.xml: Add bfloat16 type.
5699 * features/i386/64bit-sse.c: Regenerated.
5700
5701 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5702
5703 * i386-tdep.c (i386_zmm_type): Fix field names.
5704 (i386_ymm_type): Fix field names.
5705
5706 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5707
5708 * breakpoint.c: Fix typo in the help message of the
5709 "set breakpoint condition-evaluation" command.
5710
5711 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5712
5713 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5714 * (nbsd_nat_target::pid_to_exec_file)
5715 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5716 (nbsd_nat_target::post_startup_inferior)
5717 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5718 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5719 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5720 * (nbsd_thread_lister): Remove.
5721
5722 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5723
5724 * fork-inferior.c (startup_inferior): Avoid double free.
5725
5726 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5727
5728 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5729 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5730
5731 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5732
5733 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5734 * netbsd-nat.c: Include <sys/ptrace.h>.
5735 * (netbsd_nat::enable_proc_events): Add.
5736
5737 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5738
5739 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5740 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5741 (netbsd_nat::for_each_thread): Add.
5742 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5743 "gdbsupport/common-debug.h".
5744 * (netbsd_nat::netbsd_thread_lister)
5745 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5746 (netbsd_nat::for_each_thread): Add.
5747
5748 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5749
5750 * netbsd-nat.h: Include <unistd.h>.
5751 * (netbsd_nat::pid_to_exec_file): Add.
5752 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5753 * (netbsd_nat::pid_to_exec_file) Add.
5754
5755 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5756
5757 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5758
5759 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5760
5761 * netbsd-nat.h: New file.
5762 * netbsd-nat.c: Likewise.
5763
5764 2020-09-09 Tom Tromey <tromey@adacore.com>
5765
5766 * ada-lang.c (remove_extra_symbols): Do not increment when
5767 removing an element
5768
5769 2020-09-08 Tom Tromey <tromey@adacore.com>
5770
5771 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5772
5773 2020-09-08 Tom Tromey <tromey@adacore.com>
5774
5775 PR win32/25302:
5776 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5777 (gdb_bfd_init_data): New function.
5778 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5779
5780 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5781
5782 * infrun.c (fetch_inferior_event): Use
5783 `switch_to_target_no_thread` to switch the target.
5784
5785 2020-09-06 Tom Tromey <tom@tromey.com>
5786
5787 * symfile.h (dwarf2_free_objfile): Don't declare.
5788
5789 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5790
5791 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5792 to match 16 byte real/complex type generated by Flang compiler.
5793
5794 2020-09-03 Tom de Vries <tdevries@suse.de>
5795
5796 PR breakpoint/26546
5797 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5798 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5799
5800 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5801
5802 * maint.c (index_digits): New function.
5803 (struct maint_print_section_data): Remove.
5804 (print_bfd_section_info): Remove print_data parameter, add arg
5805 and index_digits.
5806 (print_objfile_section_info): Likewise.
5807 (print_bfd_section_info_maybe_relocated): Likewise (plus
5808 objfile).
5809 (maintenance_info_sections): Adjust calls.
5810
5811 2020-09-02 Tom Tromey <tromey@adacore.com>
5812
5813 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5814 for null pointers.
5815 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5816
5817 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5818
5819 * bcache.h (struct bcache) <insert>: Change type of `added` to
5820 pointer to bool.
5821 * bcache.c (bcache::insert): Likewise.
5822 * gdbtypes.c (check_types_worklist): Adjust.
5823 * psymtab.c (add_psymbol_to_bcache): Adjust.
5824
5825 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5826
5827 * corelow.c (unordered_set): Include.
5828 (class core_target): Add field 'm_core_unavailable_mappings'.
5829 (core_target::build_file_mappings): Print only one warning
5830 per inaccessible file. Add unavailable/broken mappings
5831 to m_core_unavailable_mappings.
5832 (core_target::xfer_partial): Call...
5833 (core_target::xfer_memory_via_mappings): New method.
5834
5835 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5836
5837 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5838 type to bool.
5839
5840 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5841
5842 * dwarf2/read.c (struct field_info): Fix indentation.
5843
5844 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5847 ordering in comment.
5848 * frame.c (frame_id_eq): Fix indentation.
5849
5850 2020-08-31 Scott Linder <scott@scottlinder.com>
5851 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5854 inline frame ids in outer frame.
5855
5856 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5859 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5860 (outer_frame_id): Use FID_STACK_OUTER instead of
5861 FID_STACK_INVALID.
5862 (frame_id_p): Don't check for outer_frame_id.
5863
5864 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5865
5866 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5867 regnum/frame in value. Call allocate_value_lazy.
5868 * frame.c (frame_unwind_register_value): Use
5869 val_print_not_saved.
5870
5871 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5872
5873 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5874
5875 2020-08-29 Pedro Alves <pedro@palves.net>
5876
5877 * progspace.c (print_program_space): Use all_inferiors. Switch to
5878 the inferior before calling target_pid_to_str.
5879
5880 2020-08-28 Tom Tromey <tom@tromey.com>
5881
5882 * xcoffread.c (xcoff_end_psymtab): Update comment.
5883 * dbxread.c (dbx_end_psymtab): Update comment.
5884
5885 2020-08-28 Tom de Vries <tdevries@suse.de>
5886
5887 PR breakpoint/26544
5888 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5889 event_location.
5890 (create_breakpoint): Same.
5891 (base_breakpoint_decode_location): Same.
5892 (bkpt_create_sals_from_location): Same.
5893 (bkpt_decode_location): Same.
5894 (bkpt_probe_create_sals_from_location): Same.
5895 (bkpt_probe_decode_location): Same.
5896 (tracepoint_create_sals_from_location): Same.
5897 (tracepoint_decode_location): Same.
5898 (tracepoint_probe_decode_location): Same.
5899 (strace_marker_create_sals_from_location): Same.
5900 (strace_marker_decode_location): Same.
5901 (create_sals_from_location_default): Same.
5902 (decode_location_default): Same.
5903 * breakpoint.h (struct breakpoint_ops): Same.
5904 (create_breakpoint): Same.
5905 * linespec.h (decode_line_full): Same.
5906 * linespec.c (decode_line_full): Same. Throw error if
5907 result.size () == 0.
5908
5909 2020-08-27 Pedro Alves <pedro@palves.net>
5910
5911 PR gdb/26524
5912 * breakpoint.c (until_break_fsm) <location_breakpoint,
5913 caller_breakpoint>: Delete fields.
5914 <breakpoints>: New field.
5915 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5916 two individual breakpoints.
5917 (until_break_fsm::should_stop): Loop over breakpoints in the
5918 breakpoint vector.
5919 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5920 vector.
5921 (until_break_command): Handle location expanding into multiple
5922 sals.
5923
5924 2020-08-27 Pedro Alves <pedro@palves.net>
5925
5926 PR gdb/26523
5927 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5928 bp_until breakpoints user-specified locations. Update intro
5929 comment.
5930
5931 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5934 gdb_bfd_sections): New.
5935 * maint.c (print_bfd_section_info): Change param type to
5936 maint_print_section_data.
5937 (print_objfile_section_info): Likewise.
5938 (print_bfd_section_info_maybe_relocated): Likewise.
5939 (maintenance_info_sections): Use gdb_bfd_sections.
5940
5941 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5942
5943 * MAINTAINERS: Add ARC target and maintainer.
5944
5945 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5946
5947 * configure.tgt: ARC support for GNU/Linux.
5948 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5949 * arc-linux-tdep.c: New file.
5950 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5951 * arc-tdep.c (arc_write_pc): Use it.
5952
5953 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5954
5955 * arc-tdep.c (arc_check_for_hardware_loop): New.
5956 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5957
5958 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5959
5960 * arc-tdep.h: Include "gdbarch.h".
5961
5962 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5963
5964 * arch/arc.h
5965 (arc_gdbarch_features): New class to stir the selection of target XML.
5966 (arc_create_target_description): Use FEATURES to choose XML target.
5967 (arc_lookup_target_description): Use arc_create_target_description
5968 to create _new_ target descriptions or return the already created
5969 ones if the FEATURES is the same.
5970 * arch/arc.c: Implementation of prototypes described above.
5971 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5972 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5973 * arc-tdep.c (*_feature_name): Make feature names consistent.
5974 (arc_register_feature): A new struct to hold information about
5975 registers of a particular target/feature.
5976 (arc_check_tdesc_feature): Check if XML provides registers in
5977 compliance with ARC_REGISTER_FEATURE structs.
5978 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5979 (determine_*_reg_feature_set): Which feature name to look for.
5980 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5981 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5982 to expected ISA enums to be used in arc_gdbarch_features structs.
5983 * features/Makefile (FEATURE_XMLFILES): Add new files.
5984 * gdb/features/arc/v1-aux.c: New file.
5985 * gdb/features/arc/v1-aux.xml: Likewise.
5986 * gdb/features/arc/v1-core.c: Likewise.
5987 * gdb/features/arc/v1-core.xml: Likewise.
5988 * gdb/features/arc/v2-aux.c: Likewise.
5989 * gdb/features/arc/v2-aux.xml: Likewise.
5990 * gdb/features/arc/v2-core.c: Likewise.
5991 * gdb/features/arc/v2-core.xml: Likewise.
5992 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5993
5994 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5995 Andrew Burgess <andrew.burgess@embecosm.com>
5996
5997 PR m2/26372
5998 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5999 an assert. Remove single element array indexing pattern as the
6000 MULTI_SUBSCRIPT support will handle this case too.
6001
6002 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * value.h (valprint_check_validity): Move declaration from
6005 here...
6006 * valprint.h (valprint_check_validity): ... to here.
6007
6008 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6009
6010 * debug.h: New file.
6011 * debug.c (debug_prefixed_vprintf): New function.
6012 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6013 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6014
6015 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6016
6017 * infrun.h (infrun_debug_printf_1): New function declaration.
6018 (infrun_debug_printf): New macro.
6019 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6020 throughout.
6021 (infrun_debug_printf): New function.
6022 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6023 (handle_jit_event): Likewise.
6024
6025 2020-08-21 Mark Wielaard <mark@klomp.org>
6026
6027 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6028
6029 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6030
6031 * frame.c (enum class frame_id_status): New.
6032 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6033 (fprintf_frame): Update.
6034 (compute_frame_id): Set frame id status to "computing" on entry.
6035 Set it back to "not_computed" on failure and to "computed" on
6036 success.
6037 (get_frame_id): Assert the frame id is not being computed.
6038 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6039 (create_new_frame): Likewise.
6040 (frame_cleanup_after_sniffer): Update assert.
6041
6042 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6043
6044 * regcache.c (pid_ptid_regcache_map): New type.
6045 (target_ptid_regcache_map): Remove.
6046 (target_pid_ptid_regcache_map): New type.
6047 (regcaches): Change type to target_pid_ptid_regcache_map.
6048 (get_thread_arch_aspace_regcache): Update.
6049 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6050 case.
6051 (regcaches_size): Update.
6052 (regcache_count): Update.
6053 (registers_changed_ptid_target_pid_test): New.
6054 (_initialize_regcache): Register new test.
6055
6056 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * regcache.c (regcache_count): New.
6059 (struct regcache_test_data): New.
6060 (regcache_test_data_up): New.
6061 (populate_regcaches_for_test): New.
6062 (regcaches_test): Remove.
6063 (get_thread_arch_aspace_regcache_test): New.
6064 (registers_changed_ptid_all_test): New.
6065 (registers_changed_ptid_target_test): New.
6066 (registers_changed_ptid_target_ptid_test): New.
6067 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6068 (_initialize_regcache): Register new tests.
6069
6070 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6073 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6074 gdbarch and aspace parameter. Use current inferior's aspace.
6075 Validate regcache's arch value.
6076 (regcaches_test): Update.
6077
6078 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6079
6080 * regcache.c (regcaches_test): Call registers_changed.
6081
6082 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6083
6084 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6085
6086 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6087
6088 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6089 to find the end of prologue for flang compiled binaries.
6090 * arm-tdep.c (arm_skip_prologue): Likewise.
6091 * i386-tdep.c (i386_skip_prologue): Likewise.
6092 * producer.c (producer_is_llvm): New function.
6093 (producer_parsing_tests): Added new tests for clang/flang.
6094 * producer.h (producer_is_llvm): New declaration.
6095
6096 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * linux-nat.c (linux_nat_debug_printf): New function.
6099 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6100
6101 2020-08-18 Aaron Merey <amerey@redhat.com>
6102
6103 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6104 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6105 (CLIBS): Add DEBUGINFOD_LIBS.
6106
6107 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6108
6109 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6110 'gdbarch_num_regs'.
6111
6112 2020-08-17 Tom Tromey <tromey@adacore.com>
6113
6114 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6115 ada_get_decoded_value returns NULL.
6116
6117 2020-08-17 Tom Tromey <tromey@adacore.com>
6118
6119 * python/py-inferior.c (infpy_search_memory): Use
6120 gdb_py_object_from_ulongest.
6121 * python/py-infevents.c (create_inferior_call_event_object)
6122 (create_memory_changed_event_object): Use
6123 gdb_py_object_from_ulongest.
6124 * python/py-linetable.c (ltpy_entry_get_pc): Use
6125 gdb_py_object_from_ulongest.
6126
6127 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * loc.c (class symbol_needs_eval_context): Fix indentation.
6130
6131 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6132
6133 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6134 bool.
6135
6136 2020-08-17 Tom de Vries <tdevries@suse.de>
6137
6138 PR gdb/26393
6139 * gdbtypes.c (dump_dynamic_prop): New function.
6140 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6141
6142 2020-08-15 Tom de Vries <tdevries@suse.de>
6143
6144 PR backtrace/26390
6145 * stack.c (print_frame_args): Temporarily set the selected
6146 frame to FRAME while printing the frame's arguments.
6147
6148 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6149
6150 PR breakpoints/26385
6151 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6152 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6153
6154 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6155
6156 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6157 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6158 and >= to check return value instead of == -1 and != -1.
6159
6160 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6161
6162 * utils.h (class gdb_argv) <as_array_view>: New method.
6163 * utils.c (gdb_argv_as_array_view_test): New.
6164 (_initialize_utils): Register selftest.
6165 * maint.c (maintenance_selftest): Use the new method.
6166
6167 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6168
6169 * target.h (supports_dumpcore, dumpcore): New
6170 function declarations.
6171 * target.c (supports_dumpcore, dumpcore): New
6172 functions.
6173 * target-delegates.c: Rebuild.
6174 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6175 and target_dumpcore ().
6176
6177 2020-08-13 Aaron Merey <amerey@redhat.com>
6178
6179 * debuginfod-support.c: Replace global variables with user_data.
6180
6181 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * maint.c (maintenance_selftest): Split args and pass array_view
6184 to run_tests.
6185
6186 2020-08-12 Luis Machado <luis.machado@linaro.org>
6187
6188 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6189 type's length.
6190 Use %s and pulongest to print the length.
6191
6192 2020-08-12 Pedro Alves <palves@redhat.com>
6193
6194 * NEWS: Move "Multi-target debugging support" item to the
6195 "Changes since GDB 9" section.
6196
6197 2020-08-12 Pedro Alves <palves@redhat.com>
6198
6199 PR gdb/26336
6200 * progspace.c (program_space::remove_objfile): Invalidate the
6201 frame cache.
6202
6203 2020-08-11 Tom de Vries <tdevries@suse.de>
6204
6205 * MAINTAINERS: Mark ms1 as deleted.
6206
6207 2020-08-10 Luis Machado <luis.machado@linaro.org>
6208
6209 PR gdb/26310
6210
6211 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6212 act accordingly.
6213 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6214 movz/str/stur/stp skipping behavior.
6215
6216 2020-08-10 Luis Machado <luis.machado@linaro.org>
6217
6218 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6219 struct user_sve_header instead of struct sve_context.
6220
6221 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6222
6223 * read.h (dwarf2_fetch_die_loc_sect_off,
6224 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6225 `void *` parameter with function_view.
6226 * read.c (dwarf2_fetch_die_loc_sect_off,
6227 dwarf2_fetch_die_loc_cu_off): Likewise.
6228 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6229 (per_cu_dwarf_call): Adjust.
6230 (get_frame_address_in_block_wrapper): Remove.
6231 (indirect_synthetic_pointer): Adjust.
6232 (get_ax_pc): Remove.
6233 (dwarf2_compile_expr_to_ax): Adjust.
6234
6235 2020-08-08 Tom de Vries <tdevries@suse.de>
6236
6237 PR build/26344
6238 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6239 constructor.
6240 * regcache.c (get_thread_arch_aspace_regcache): Same.
6241
6242 2020-08-07 Tom Tromey <tromey@adacore.com>
6243
6244 * ravenscar-thread.c
6245 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6246 New method.
6247 (ravenscar_thread_target::wait): Check
6248 runtime_initialized.
6249 (ravenscar_thread_target::prepare_to_store)
6250 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6251 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6252 (ravenscar_thread_target::stopped_by_watchpoint)
6253 (ravenscar_thread_target::stopped_data_address)
6254 (ravenscar_thread_target::core_of_thread): Use
6255 scoped_restore_current_thread and
6256 set_base_thread_from_ravenscar_task.
6257
6258 2020-08-07 Tom Tromey <tromey@adacore.com>
6259
6260 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6261
6262 2020-08-07 Tom Tromey <tromey@adacore.com>
6263
6264 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6265 update_inferior_ptid before update_thread_list.
6266 (temporarily_change_regcache_ptid): New class.
6267 (ravenscar_thread_target::fetch_registers)
6268 (ravenscar_thread_target::store_registers)
6269 (ravenscar_thread_target::prepare_to_store): Use base thread when
6270 forwarding operation.
6271
6272 2020-08-07 Tom Tromey <tromey@adacore.com>
6273
6274 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6275 "is_pid" case.
6276
6277 2020-08-07 Tom Tromey <tromey@adacore.com>
6278
6279 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6280 New methods.
6281 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6282 first.
6283 (ravenscar_thread_target::add_thread): Rename from
6284 ravenscar_add_thread.
6285 (ravenscar_thread_target::update_thread_list): Use a lambda.
6286 (ravenscar_thread_target::xfer_partial): New method.
6287
6288 2020-08-07 Tom Tromey <tromey@adacore.com>
6289
6290 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6291 gdb::function_view.
6292 (iterate_over_live_ada_tasks): Change type of argument.
6293 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6294 of argument.
6295
6296 2020-08-07 Tom Tromey <tromey@adacore.com>
6297
6298 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6299 Remove.
6300 (ravenscar_thread_target::extra_thread_info): Remove.
6301 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6302 defer to target beneath for non-Ravenscar threads.
6303
6304 2020-08-07 Tom Tromey <tromey@adacore.com>
6305
6306 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6307 get_base_thread_from_ravenscar_task>: Now methods.
6308 <m_cpu_map>: New member.
6309 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6310 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6311 (ravenscar_thread_target::task_is_currently_active): Update.
6312 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6313 Now a method.
6314 (ravenscar_thread_target::add_active_thread): Put initial thread
6315 into the m_cpu_map.
6316
6317 2020-08-07 Tom Tromey <tromey@adacore.com>
6318
6319 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6320 event_ptid.
6321
6322 2020-08-07 Tom Tromey <tromey@adacore.com>
6323
6324 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6325 runtime_initialized.
6326
6327 2020-08-07 Tom Tromey <tromey@adacore.com>
6328
6329 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6330 add_active_thread.
6331 (ravenscar_thread_target::add_active_thread): Now public.
6332 (ravenscar_inferior_created): Call add_active_thread after pushing
6333 the target.
6334
6335 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6336
6337 * regcache.c (ptid_regcache_map): New type.
6338 (target_ptid_regcache_map): New type.
6339 (regcaches): Change type to target_ptid_regcache_map.
6340 (get_thread_arch_aspace_regcache): Update to regcaches' new
6341 type.
6342 (regcache_thread_ptid_changed): Likewise.
6343 (registers_changed_ptid): Likewise.
6344 (regcaches_size): Likewise.
6345 (regcaches_test): Update.
6346 (regcache_thread_ptid_changed): Update.
6347 * regcache.h (regcache_up): New type.
6348 * gdbsupport/ptid.h (hash_ptid): New struct.
6349
6350 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6351
6352 * observable.h (thread_ptid_changed): Add parameter
6353 `process_stratum_target *`.
6354 * infrun.c (infrun_thread_ptid_changed): Add parameter
6355 `process_stratum_target *` and use it.
6356 (selftests): New namespace.
6357 (infrun_thread_ptid_changed): New function.
6358 (_initialize_infrun): Register selftest.
6359 * regcache.c (regcache_thread_ptid_changed): Add parameter
6360 `process_stratum_target *` and use it.
6361 (regcache_thread_ptid_changed): New function.
6362 (_initialize_regcache): Register selftest.
6363 * thread.c (thread_change_ptid): Pass target to
6364 thread_ptid_changed observable.
6365
6366 2020-08-06 Caroline Tice <cmtice@google.com>
6367
6368 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6369 (struct dwp_sections): Update field comments. Add loclists and
6370 rnglists fields.
6371 (struct virtual_v2_dwo_sections): Rename struct to
6372 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6373 size & offset fields for loclists and rnglists.
6374 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6375 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6376 skipping dummy type units.
6377 (create_dwp_hash_table): Update the large comment above the function to
6378 discuss Version 5 DWP files as well, with references. Update all the
6379 version checks in the function to check for version 5 as well. Add new
6380 section at the end to create dwp hash table for version 5.
6381 (create_dwp_v2_section): Rename function to
6382 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6383 Add V5 to error message text.
6384 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6385 into calls to create_dwp_v2_or_v5_section.
6386 (create_dwo_unit_in_dwp_v5): New function.
6387 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6388 check for version2; add else clause to handle version 5.
6389 (open_and_init_dwo_file): Add code to check dwarf version & only call
6390 create_debug_types_hash_table (with sections.types) if version is not 5;
6391 else call create_debug_type_hash_table, with sections.info.
6392 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6393 version 5.
6394 (dwarf2_locate_v5_dwp_sections): New function.
6395 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6396 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6397
6398 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6399
6400 * regcache.h (class regcache): Remove friend
6401 registers_changed_ptid.
6402 <regcache_thread_ptid_changed>: Remove.
6403 <regcaches>: Remove.
6404 * regcache.c (regcache::regcaches): Rename to...
6405 (regcaches): ... this. Make static.
6406 (get_thread_arch_aspace_regcache): Update.
6407 (regcache::regcache_thread_ptid_changed): Rename to...
6408 (regcache_thread_ptid_changed): ... this. Update.
6409 (class regcache_access): Remove.
6410 (regcaches_test): Update.
6411 (_initialize_regcache): Update.
6412 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6413 <forward_list>.
6414
6415 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6416
6417 * regcache.h (class regcache) <current_regcache>: Rename to...
6418 <regcaches>: ... this. Move doc here.
6419 * regcache.c (regcache::current_regcache) Rename to...
6420 (regcache::regcaches): ... this. Move doc to header.
6421 (get_thread_arch_aspace_regcache): Update.
6422 (regcache::regcache_thread_ptid_changed): Update.
6423 (registers_changed_ptid): Update.
6424 (class regcache_access) <current_regcache_size>: Rename to...
6425 <regcaches_size>: ... this.
6426 (current_regcache_test): Rename to...
6427 (regcaches_test): ... this.
6428 (_initialize_regcache): Update.
6429
6430 2020-08-06 Victor Collod <vcollod@nvidia.com>
6431
6432 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6433
6434 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6435
6436 * corelow.c (core_target::build_file_mappings): Don't output
6437 null pathname in warning.
6438
6439 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6440
6441 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6442 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6443 gdb.dwarf2/dw2-single-line-discriminators.exp,
6444 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6445
6446 2020-08-05 Tom Tromey <tromey@adacore.com>
6447
6448 PR rust/26197:
6449 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6450 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6451 Fix off-by-one and type size errors in ordinary case.
6452
6453 2020-08-05 Tom de Vries <tdevries@suse.de>
6454
6455 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6456 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6457
6458 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6459
6460 * frame.h (frame_id_p): Return bool.
6461 (frame_id_artificial_p): Return bool.
6462 (frame_id_eq): Return bool.
6463 (has_stack_frames): Return bool.
6464 (get_selected_frame): Fix typo in comment.
6465 (get_frame_pc_if_available): Return bool.
6466 (get_frame_address_in_block_if_available): Return bool.
6467 (get_frame_func_if_available): Return bool.
6468 (read_frame_register_unsigned): Return bool.
6469 (get_frame_register_bytes): Return bool.
6470 (safe_frame_unwind_memory): Return bool.
6471 (deprecated_frame_register_read): Return bool.
6472 (frame_unwinder_is): Return bool.
6473 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6474 bool.
6475 <this_id::p>: Likewise.
6476 <prev_p>: Likewise.
6477 (frame_stash_add): Return bool.
6478 (get_frame_id): Use bool.
6479 (frame_id_build_special) Use bool.
6480 (frame_id_build_unavailable_stack): Use bool.
6481 (frame_id_build): Use bool.
6482 (frame_id_p): Return bool, use true/false instead of 1/0.
6483 (frame_id_artificial_p): Likewise.
6484 (frame_id_eq): Likewise.
6485 (frame_id_inner): Likewise.
6486 (get_frame_func_if_available): Likewise.
6487 (read_frame_register_unsigned): Likewise.
6488 (deprecated_frame_register_read): Likewise.
6489 (get_frame_register_bytes): Likewise.
6490 (has_stack_frames): Likewise.
6491 (inside_main_func): Likewise.
6492 (inside_entry_func): Likewise.
6493 (get_frame_pc_if_available): Likewise.
6494 (get_frame_address_in_block_if_available): Likewise.
6495 (frame_unwinder_is): Likewise.
6496 (safe_frame_unwind_memory): Likewise.
6497 (frame_unwind_arch): Likewise.
6498
6499 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6500
6501 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6502 type to cached_copy_status.
6503 (fprintf_frame): Adjust.
6504 (get_frame_func_if_available): Adjust.
6505 (frame_cleanup_after_sniffer): Adjust.
6506
6507 2020-08-04 Mark Wielaard <mark@klomp.org>
6508
6509 * MAINTAINERS (Write After Approval): Update email address.
6510
6511 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6512
6513 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6514 dynamic_prop::const_val.
6515
6516 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6517
6518 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6519 dynamic_prop::kind.
6520
6521 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6522
6523 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6524
6525 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6526
6527 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6528
6529 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6530 Jose E. Marchesi <jose.marchesi@oracle.com>
6531
6532 * configure.tgt: Add entry for bpf-*-*.
6533 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6534 (ALLDEPFILES): Add bpf-tdep.c.
6535 * bpf-tdep.c: New file.
6536 * MAINTAINERS: Add bpf target and maintainer.
6537 * NEWS: Mention the support for the new target.
6538
6539 2020-08-04 Tom de Vries <tdevries@suse.de>
6540
6541 PR symtab/23270
6542 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6543 Error.
6544
6545 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6546
6547 * syscalls/freebsd.xml: Regenerate.
6548
6549 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6550
6551 * syscalls/update-freebsd.sh: Fix usage and year range.
6552
6553 2020-08-03 Tom de Vries <tdevries@suse.de>
6554
6555 PR symtab/26333
6556 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6557 DW_LNE_lo_user/DW_LNE_hi_user range.
6558
6559 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 PR ada/26318
6562 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6563 kind.
6564
6565 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6566
6567 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6568
6569 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6570
6571 * breakpoint.c (set_breakpoint_condition): Update the condition
6572 expressions after checking that the input condition string parses
6573 successfully and does not contain junk at the end.
6574
6575 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6576
6577 * breakpoint.c (set_breakpoint_condition): Update the
6578 condition string after parsing the new condition successfully.
6579
6580 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6581
6582 * proc-api.c (_STRUCTURED_PROC): Don't define.
6583 * proc-events.c: Likewise.
6584 * proc-flags.c: Likewise.
6585 * proc-why.c: Likewise.
6586 * procfs.c: Likewise.
6587
6588 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6589 * configure, config.in: Regenerate.
6590
6591 2020-07-30 Tom de Vries <tdevries@suse.de>
6592
6593 PR build/26320
6594 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6595 m_red/m_green/m_blue in a union.
6596
6597 2020-07-29 Tom de Vries <tdevries@suse.de>
6598
6599 PR tdep/26280
6600 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6601
6602 2020-07-28 Tom Tromey <tromey@adacore.com>
6603
6604 PR symtab/26270:
6605 * symtab.h (find_pc_partial_function_sym): Declare.
6606 * cli/cli-cmds.c (disassemble_command): Use
6607 find_pc_partial_function_sym. Check asm_demangle.
6608 * blockframe.c (cache_pc_function_sym): New global.
6609 (cache_pc_function_name): Remove.
6610 (clear_pc_function_cache): Update.
6611 (find_pc_partial_function_sym): New function, from
6612 find_pc_partial_function.
6613 (find_pc_partial_function): Rewrite using
6614 find_pc_partial_function_sym.
6615
6616 2020-07-28 Tom Tromey <tromey@adacore.com>
6617
6618 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6619 help. Add usage.
6620
6621 2020-07-28 Tom Tromey <tromey@adacore.com>
6622
6623 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6624 <DW_OP_GNU_variable_value>: Cast to address type.
6625
6626 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6627
6628 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6629 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6630 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6631 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6632 (nbsd_get_siginfo_type): New.
6633 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6634 (_initialize_nbsd_tdep): New.
6635
6636 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6637
6638 PR binutils/26301
6639 * configure: Regenerated.
6640
6641 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6642
6643 PR binutils/26301
6644 * configure: Regenerated.
6645
6646 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 * python/py-frame.c: Remove 'user-regs.h' include.
6649 (frapy_read_register): Rewrite to make use of
6650 gdbpy_parse_register_id.
6651 * python/py-registers.c (gdbpy_parse_register_id): New function,
6652 moved here from python/py-unwind.c. Updated the return type, and
6653 also accepts register descriptor objects.
6654 * python/py-unwind.c: Remove 'user-regs.h' include.
6655 (pyuw_parse_register_id): Moved to python/py-registers.c.
6656 (unwind_infopy_add_saved_register): Update to use
6657 gdbpy_parse_register_id.
6658 (pending_framepy_read_register): Likewise.
6659 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6660
6661 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6662
6663 * python/py-registers.c: Add 'user-regs.h' include.
6664 (register_descriptor_iter_find): New function.
6665 (register_descriptor_iterator_object_methods): New static global
6666 methods array.
6667 (register_descriptor_iterator_object_type): Add pointer to methods
6668 array.
6669
6670 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6671
6672 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6673 for all architectures on FreeBSD 11.3 and later.
6674
6675 2020-07-27 Tom Tromey <tromey@adacore.com>
6676
6677 * gcore.h (load_corefile): Don't declare.
6678
6679 2020-07-27 Tom de Vries <tdevries@suse.de>
6680
6681 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6682 * config.in: Regenerate.
6683 * configure: Regenerate.
6684
6685 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6686
6687 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6688 ws2tcpip.h. When checking whether socklen_t type is defined, use
6689 ws2tcpip.h if it is available and sys/socket.h isn't.
6690 * configure: Regenerate.
6691 * config.in: Regenerate.
6692
6693 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6694
6695 PR fortran/23051
6696 PR fortran/26139
6697 * valops.c (value_ind): Pass address to
6698 readjust_indirect_value_type.
6699 * value.c (readjust_indirect_value_type): Make parameter
6700 non-const, and add extra address parameter. Resolve original type
6701 before using it.
6702 * value.h (readjust_indirect_value_type): Update function
6703 signature and comment.
6704
6705 2020-07-25 Tom de Vries <tdevries@suse.de>
6706
6707 PR symtab/26243
6708 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6709 entries.
6710
6711 2020-07-24 Aaron Merey <amerey@redhat.com>
6712
6713 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6714 * configure: Rebuild.
6715
6716 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6717
6718 PR corefiles/26294
6719 * corelow.c (_initialize_corelow): Add period to help text
6720 for "maintenance print core-file-backed-mappings".
6721
6722 2020-07-23 Pedro Alves <pedro@palves.net>
6723
6724 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6725 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6726 meanwhile.
6727 * frame.c (frame_cache_generation, get_frame_cache_generation):
6728 New.
6729 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6730 (get_prev_frame_if_no_cycle): On exception, don't touch
6731 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6732 * frame.h (get_frame_cache_generation): Declare.
6733
6734 2020-07-23 Tom de Vries <tdevries@suse.de>
6735
6736 PR tui/26282
6737 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6738 New default constructor.
6739
6740 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6741
6742 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6743 exclude non-statement entries.
6744
6745 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6746
6747 * NEWS (New commands): Mention new command
6748 "maintenance print core-file-backed-mappings".
6749
6750 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6751
6752 * corelow.c (gdbcmd.h): Include.
6753 (core_target::info_proc_mappings): New method.
6754 (get_current_core_target): New function.
6755 (maintenance_print_core_file_backed_mappings): New function.
6756 (_initialize_corelow): Add core-file-backed-mappings to
6757 "maint print" commands.
6758
6759 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6760
6761 * linux-tdep.c (dump_note_entry_p): New function.
6762 (linux_dump_mapping_p_ftype): New typedef.
6763 (linux_find_memory_regions_full): Add new parameter,
6764 should_dump_mapping_p.
6765 (linux_find_memory_regions): Adjust call to
6766 linux_find_memory_regions_full.
6767 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6768 call to linux_find_memory_regions_full.
6769
6770 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6771
6772 * corelow.c (solist.h, unordered_map): Include.
6773 (class core_target): Add field m_core_file_mappings and
6774 method build_file_mappings.
6775 (core_target::core_target): Call build_file_mappings.
6776 (core_target::~core_target): Free memory associated with
6777 m_core_file_mappings.
6778 (core_target::build_file_mappings): New method.
6779 (core_target::xfer_partial): Use m_core_file_mappings
6780 for memory transfers.
6781 * linux-tdep.c (linux_read_core_file_mappings): New
6782 function.
6783 (linux_core_info_proc_mappings): Rewrite to use
6784 linux_read_core_file_mappings.
6785 (linux_init_abi): Register linux_read_core_file_mappings.
6786
6787 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6788
6789 * arch-utils.c (default_read_core_file_mappings): New function.
6790 * arch-utils.c (default_read_core_file_mappings): Declare.
6791 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6792 * gdbarch.h, gdbarch.c: Regenerate.
6793
6794 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6795
6796 PR corefiles/25631
6797 * corelow.c (core_target:xfer_partial): Revise
6798 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6799 case after first checking the stratum beneath the core
6800 target.
6801 (has_all_memory): Return true.
6802 * target.c (raw_memory_xfer_partial): Revise comment
6803 regarding use of has_all_memory.
6804
6805 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6806
6807 * exec.h (section_table_xfer_memory): Revise declaration,
6808 replacing section name parameter with an optional callback
6809 predicate.
6810 * exec.c (section_table_xfer_memory): Likewise.
6811 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6812 of section_table_xfer_memory.
6813
6814 2020-07-22 Tom Tromey <tromey@adacore.com>
6815
6816 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6817 lookup_symbol_search_name.
6818
6819 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6820
6821 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6822 redundant local variable.
6823 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6824 reference, not pointer, update code accordingly.
6825
6826 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6827 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6828
6829 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6830 * jit.c (jit_breakpoint_re_set_internal): Use the
6831 `skip_jit_symbol_lookup` field.
6832
6833 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6834 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6835
6836 * jit.c (jit_read_descriptor): Define the descriptor address once,
6837 use twice.
6838 (jit_breakpoint_deleted): Move the declaration of the loop variable
6839 `iter` into the loop header.
6840 (jit_breakpoint_re_set_internal): Move the declaration of the local
6841 variable `objf_data` to the first point of definition.
6842 (jit_event_handler): Move the declaration of local variables
6843 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6844 Rename `objf` to `jited`.
6845
6846 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6847
6848 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6849 Remove.
6850 * jit.c (get_jiter_objfile_data): Update.
6851
6852 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6853 Simon Marchi <simon.marchi@polymtl.ca>
6854
6855 * jit.c (struct jit_program_space_data): Remove.
6856 (jit_program_space_key): Remove.
6857 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6858 stuff.
6859 (get_jit_program_space_data): Remove.
6860 (jit_breakpoint_deleted): Iterate on all of the program space's
6861 objfiles.
6862 (jit_inferior_init): Likewise.
6863 (jit_breakpoint_re_set_internal): Likewise. Also change return
6864 type to void.
6865 (jit_breakpoint_re_set): Pass current_program_space to
6866 jit_breakpoint_re_set_internal.
6867
6868 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6869
6870 * jit.h (struct jiter_objfile_data) <cached_code_address,
6871 jit_breakpoint>: Move to here from ...
6872 * jit.c (jit_program_space_data): ... here.
6873 (jiter_objfile_data::~jiter_objfile_data): Update.
6874 (jit_breakpoint_deleted): Update.
6875 (jit_breakpoint_re_set_internal): Update.
6876
6877 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6878
6879 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6880 checks.
6881 (jit_read_descriptor): Remove NULL check.
6882 (jit_event_handler): Add an assertion.
6883
6884 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6885
6886 * jit.h (struct jit_objfile_data): Split into...
6887 (struct jiter_objfile_data): ... this ...
6888 (struct jited_objfile_data): ... and this.
6889 * objfiles.h (struct objfile) <jit_data>: Remove.
6890 <jiter_data, jited_data>: New fields.
6891 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6892 (jiter_objfile_data::~jiter_objfile_data): ... this.
6893 (get_jit_objfile_data): Rename to ...
6894 (get_jiter_objfile_data): ... this.
6895 (add_objfile_entry): Update.
6896 (jit_read_descriptor): Use get_jiter_objfile_data.
6897 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6898 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6899 (jit_inferior_exit_hook): Use objfile's jited_data field.
6900
6901 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6902
6903 * jit.h: Forward-declare `struct minimal_symbol`.
6904 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6905 constructor, destructor, and an objfile* field.
6906 * jit.c (jit_objfile_data): Remove.
6907 (struct jit_objfile_data): Migrate from here to jit.h.
6908 (jit_objfile_data::~jit_objfile_data): New destructor
6909 implementation with code moved from free_objfile_data.
6910 (free_objfile_data): Delete.
6911 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6912 (jit_find_objf_with_entry_addr): Ditto.
6913 (jit_inferior_exit_hook): Ditto.
6914 (_initialize_jit): Remove the call to
6915 register_objfile_data_with_cleanup.
6916 * objfiles.h (struct objfile) <jit_data>: New field.
6917
6918 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6919
6920 * jit.h: Forward-declare `struct objfile`.
6921 (jit_event_handler): Add a second parameter, the JITer objfile.
6922 * jit.c (jit_read_descriptor): Change the signature to take the
6923 JITer objfile as an argument instead of the jit_program_space_data.
6924 (jit_inferior_init): Update the call to jit_read_descriptor.
6925 (jit_event_handler): Use the new JITer objfile argument when calling
6926 jit_read_descriptor.
6927 * breakpoint.c (handle_jit_event): Update the call to
6928 jit_event_handler to pass the JITer objfile.
6929
6930 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6931
6932 * gdbarch.c: Regenerate.
6933 * gdbarch.h: Regenerate.
6934 * gdbarch.sh (handle_segmentation_fault): Remove method.
6935 * infrun.c (handle_segmentation_fault): Remove.
6936 (print_signal_received_reason): Remove call to
6937 handle_segmentation_fault.
6938
6939 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6940
6941 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6942 Rename to sparc64_linux_report_signal_info and add siggnal
6943 argument.
6944 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6945 instead of sparc64_linux_handle_segmentation_fault.
6946
6947 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6948
6949 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6950 i386_linux_report_signal_info instead of
6951 i386_linux_handle_segmentation_fault.
6952 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6953 to i386_linux_report_signal_info and add siggnal argument.
6954 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6955 of i386_linux_handle_segmentation_fault.
6956 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6957 to i386_linux_report_signal_info and add siggnal argument.
6958
6959 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6960
6961 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6962 hook if present.
6963
6964 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6965
6966 * gdbarch.c: Regenerate.
6967 * gdbarch.h: Regenerate.
6968 * gdbarch.sh (report_signal_info): New method.
6969 * infrun.c (print_signal_received_reason): Invoke gdbarch
6970 report_signal_info hook if present.
6971
6972 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6973
6974 * python/py-registers.c : Add 'unordered_map' include.
6975 (gdbpy_new_reggroup): Renamed to...
6976 (gdbpy_get_reggroup): ...this. Update to only create register
6977 group descriptors when needed.
6978 (gdbpy_reggroup_iter_next): Update.
6979
6980 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6981
6982 * python/py-registers.c (gdbpy_register_object_data): New static
6983 global.
6984 (gdbpy_register_object_data_init): New function.
6985 (gdbpy_new_register_descriptor): Renamed to...
6986 (gdbpy_get_register_descriptor): ...this, and update to reuse
6987 existing register descriptors where possible.
6988 (gdbpy_register_descriptor_iter_next): Update.
6989 (gdbpy_initialize_registers): Register new gdbarch data.
6990
6991 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * linux-nat.c (stopped_pids): Make static.
6994
6995 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6996
6997 PR ada/26235
6998 * gdbtypes.c (ada_discrete_type_low_bound,
6999 ada_discrete_type_high_bound): Handle undefined bounds.
7000
7001 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7002
7003 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7004 declaration.
7005 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7006 function.
7007
7008 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7009
7010 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7011 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7012 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7013 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7014 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7015 method.
7016
7017 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7018
7019 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7020 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7021 which are deprecated in Guile 3.0.
7022 * configure.ac (try_guile_versions): Add "guile-3.0".
7023 * configure (try_guile_versions): Regenerate.
7024 * NEWS: Update entry.
7025
7026 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7027 Doug Evans <dje@google.com>
7028
7029 PR gdb/21104
7030 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7031 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7032 USING_GUILE_BEFORE_2_2.
7033 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7034 Change type to 'scm_t_port_type *'.
7035 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7036 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7037 parameter and honor it. Update callers.
7038 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7039 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7040 functions.
7041 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7042 USING_GUILE_BEFORE_2_2.
7043 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7044 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7045 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7046 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7047 and 'SCM_PORT_TYPE'.
7048 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7049 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7050 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7051 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7052 [!USING_GUILE_BEFORE_2_2]: New functions.
7053 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7054 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7055 'gdbscm_memory_port_read'.
7056 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7057 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7058 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7059 function.
7060 (ioscm_init_memory_port): Remove.
7061 (ioscm_init_memory_port_stream): New function
7062 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7063 function.
7064 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7065 Return scm_from_uint (0).
7066 (gdbscm_set_memory_port_read_buffer_size_x)
7067 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7068 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7069 Return scm_from_uint (0).
7070 (gdbscm_set_memory_port_write_buffer_size_x)
7071 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7072 * configure.ac (try_guile_versions): Add "guile-2.2".
7073 * configure: Regenerate.
7074 * NEWS: Add entry.
7075
7076 2020-07-18 Tom Tromey <tom@tromey.com>
7077
7078 * linux-nat.c (linux_multi_process): Remove.
7079 (linux_nat_target::supports_multi_process): Return true.
7080
7081 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7082
7083 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7084 (riscv_lookup_target_description): Return pointer out of
7085 unique_ptr.
7086 * target-descriptions.c (allocate_target_description): Add
7087 comment.
7088 (target_desc_deleter::operator()): Likewise.
7089 * target-descriptions.h (struct target_desc_deleter): Moved to
7090 gdbsupport/tdesc.h.
7091 (target_desc_up): Likewise.
7092
7093 2020-07-17 Tom Tromey <tromey@adacore.com>
7094
7095 * linux-nat.c (linux_nat_target::supports_non_stop)
7096 (linux_nat_target::always_non_stop_p): Use "true".
7097 (linux_nat_target::supports_disable_randomization): Use "true" and
7098 "false".
7099
7100 2020-07-16 Caroline Tice <cmtice@google.com>
7101
7102 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7103 (RNGLIST_HEADER_SIZE64): New constant definition.
7104 (struct dwop_section_names): Add rnglists_dwo.
7105 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7106 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7107 (struct dwo_sections): Add rnglists field.
7108 (read_attribut_reprocess): Add tag parameter.
7109 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7110 (cu_debug_rnglists_section): New function (decl & definition).
7111 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7112 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7113 die whose range is being checked; get rnglist section from
7114 cu_debug_rnglists_section, to get from either objfile or dwo file as
7115 appropriate. Add cases for DW_RLE_base_addressx,
7116 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7117 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7118 test inside if-condition and updating complaint message.
7119 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7120 dwarf2_rnglists_process.
7121 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7122 dwarf2_ranges_process.
7123 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7124 need_ranges_base and update comment appropriately. Also pass die tag
7125 to dwarf2_ranges_read.
7126 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7127 need_ranges_base and update comment appropriately. Also pass die tag
7128 to dwarf2_ranges_process.
7129 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7130 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7131 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7132 need_ranges_base and update comment appropriately. Also pass die tag
7133 to read_attribute_reprocess and dwarf2_ranges_read.
7134 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7135 and update function comment appropriately.
7136 (read_loclist_index): Call read_loclists_rnglists_header instead of
7137 read_loclist_header.
7138 (read_rnglist_index): New function.
7139 (read_attribute_reprocess): Add tag parameter. Add code for
7140 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7141 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7142
7143 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7146 being resolved.
7147
7148 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7149
7150 * arch-utils.c (show_architecture): Update formatting of messages.
7151
7152 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7153
7154 * gdbtypes.h (struct type) <bounds>: Handle array and string
7155 types.
7156 * ada-lang.c (assign_aggregate): Use type::bounds on
7157 array/string type.
7158 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7159 * c-varobj.c (c_number_of_children): Likewise.
7160 (c_describe_child): Likewise.
7161 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7162 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7163 (f_type_print_base): Likewise.
7164 * f-valprint.c (f77_array_offset_tbl): Likewise.
7165 (f77_get_upperbound): Likewise.
7166 (f77_print_array_1): Likewise.
7167 * guile/scm-type.c (gdbscm_type_range): Likewise.
7168 * m2-typeprint.c (m2_array): Likewise.
7169 (m2_is_long_set_of_type): Likewise.
7170 * m2-valprint.c (get_long_set_bounds): Likewise.
7171 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7172 * python/py-type.c (typy_range): Likewise.
7173 * rust-lang.c (rust_internal_print_type): Likewise.
7174 * type-stack.c (type_stack::follow_types): Likewise.
7175 * valarith.c (value_subscripted_rvalue): Likewise.
7176 * valops.c (value_cast): Likewise.
7177
7178 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7179
7180 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7181 callers to use the equivalent accessor methods.
7182
7183 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7184
7185 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7186 (struct type) <bit_stride>: New method.
7187 (TYPE_BIT_STRIDE): Remove.
7188 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7189
7190 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7191
7192 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7193 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7194 callers to use the equivalent accessor methods instead.
7195
7196 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7197
7198 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7199 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7200 callers to use the equivalent accessor methods instead.
7201
7202 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7203
7204 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7205 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7206 to use dynamic_prop::kind.
7207
7208 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7209
7210 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7211 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7212 to get the bound property's kind and check against
7213 PROP_UNDEFINED.
7214
7215 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7216
7217 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7218 all callers to use type::range_bounds followed by
7219 dynamic_prop::{low,high}.
7220
7221 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7222
7223 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7224 const_val, set_const_val, baton, set_locexpr, set_loclist,
7225 set_addr_offset, variant_parts, set_variant_parts,
7226 original_type, set_original_type>: New methods.
7227 <kind>: Rename to...
7228 <m_kind>: ... this. Update all users to use the new methods
7229 instead.
7230 <data>: Rename to...
7231 <m_data>: ... this. Update all users to use the new methods
7232 instead.
7233
7234 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7235
7236 * gdbtypes.c (get_discrete_bounds): Return failure if
7237 the range type's bounds are not both defined and constant
7238 values.
7239 (get_array_bounds): Update comment. Remove undefined bound check.
7240
7241 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7242
7243 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7244 the type::bounds method directly.
7245
7246 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7247
7248 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7249 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7250 are used to set the range type's bounds to use set_bounds.
7251
7252 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7253
7254 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7255
7256 2020-07-10 Pedro Alves <pedro@palves.net>
7257
7258 * gdbthread.h (inferior_ref): Define.
7259 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7260 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7261 * thread.c
7262 (scoped_restore_current_thread::restore):
7263 Adjust to gdb::ref_ptr.
7264 (scoped_restore_current_thread::~scoped_restore_current_thread):
7265 Remove manual decref handling.
7266 (scoped_restore_current_thread::scoped_restore_current_thread):
7267 Adjust to use
7268 inferior_ref::new_reference/thread_info_ref::new_reference.
7269 Incref the thread before calling get_frame_id instead of after.
7270 Let TARGET_CLOSE_ERROR propagate.
7271
7272 2020-07-10 Pedro Alves <pedro@palves.net>
7273
7274 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7275 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7276 NOT_AVAILABLE_ERROR.
7277 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7278 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7279
7280 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7281 Pedro Alves <pedro@palves.net>
7282
7283 PR gdb/26199
7284 * infrun.c (threads_are_resumed_pending_p): Delete.
7285 (do_target_wait): Remove threads_are_executing and
7286 threads_are_resumed_pending_p checks from the inferior_matches
7287 lambda. Update comments.
7288
7289 2020-07-10 Pedro Alves <pedro@palves.net>
7290
7291 PR gdb/26199
7292 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7293 executing threads.
7294
7295 2020-07-10 Pedro Alves <pedro@palves.net>
7296
7297 PR gdb/26199
7298 * infrun.c (handle_no_resumed): Handle multiple targets.
7299
7300 2020-07-10 Pedro Alves <pedro@palves.net>
7301
7302 PR gdb/26199
7303 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7304 target_is_async_p.
7305
7306 2020-07-10 Pedro Alves <pedro@palves.net>
7307
7308 PR gdb/26199
7309 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7310 threads, not all threads.
7311
7312 2020-07-10 Pedro Alves <pedro@palves.net>
7313
7314 PR gdb/26199
7315 * remote.c (remote_target::open_1): Pass remote target pointer as
7316 data to create_async_event_handler.
7317 (remote_async_inferior_event_handler): Mark async event handler
7318 before returning if the remote target still has either pending
7319 events or unacknowledged notifications.
7320
7321 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7322
7323 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7324 declaration.
7325 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7326 function.
7327
7328 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7329
7330 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7331 inferior_ptid.
7332
7333 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7334
7335 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7336 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7337 AT_FREEBSD_PS_STRINGS.
7338
7339 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7340
7341 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7342 of debugfile path on Windows.
7343
7344 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7345
7346 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7347 argument to 'data'.
7348
7349 2020-07-08 Tom Tromey <tromey@adacore.com>
7350
7351 * ada-lang.c (ada_exception_message_1): Use read_memory.
7352
7353 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7354
7355 PR python/22748
7356 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7357 special handling for inline frames.
7358 * findvar.c (value_of_register_lazy): Skip inline frames when
7359 creating lazy register values.
7360 * frame.c (frame_id_computed_p): Delete definition.
7361 * frame.h (frame_id_computed_p): Delete declaration.
7362
7363 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7364
7365 * NEWS: Mention additions to Python API.
7366 * python/py-arch.c (archpy_register_groups): New function.
7367 (arch_object_methods): Add 'register_groups' method.
7368 * python/py-registers.c (reggroup_iterator_object): New struct.
7369 (reggroup_object): New struct.
7370 (gdbpy_new_reggroup): New function.
7371 (gdbpy_reggroup_to_string): New function.
7372 (gdbpy_reggroup_name): New function.
7373 (gdbpy_reggroup_iter): New function.
7374 (gdbpy_reggroup_iter_next): New function.
7375 (gdbpy_new_reggroup_iterator): New function
7376 (gdbpy_initialize_registers): Register new types.
7377 (reggroup_iterator_object_type): Define new Python type.
7378 (gdbpy_reggroup_getset): New static global.
7379 (reggroup_object_type): Define new Python type.
7380 * python/python-internal.h
7381
7382 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7383
7384 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7385 * python/py-arch.c (archpy_registers): New function.
7386 (arch_object_methods): Add 'registers' method.
7387 * python/py-registers.c: New file.
7388 * python/python-internal.h
7389 (gdbpy_new_register_descriptor_iterator): Declare.
7390 (gdbpy_initialize_registers): Declare.
7391 * python/python.c (do_start_initialization): Call
7392 gdbpy_initialize_registers.
7393 * NEWS: Mention additions to the Python API.
7394
7395 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7396
7397 * NEWS: Mention new Python API method.
7398 * python/py-unwind.c (pending_framepy_architecture): New function.
7399 (pending_frame_object_methods): Add architecture method.
7400
7401 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7402
7403 * gdbarch.c: Regenerate.
7404 * gdbarch.h: Regenerate.
7405 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7406 (gdbarch_data): Use internal_error for the case where
7407 deprecated_set_gdbarch_data was originally needed.
7408 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7409 and use passed in obstack.
7410 (libunwind_frame_set_descr): Should no longer get back NULL from
7411 gdbarch_data.
7412 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7413 type.
7414 * user-regs.c (user_regs_init): Update parameters, and use passed
7415 in obstack.
7416 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7417 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7418
7419 2020-07-06 Tom de Vries <tdevries@suse.de>
7420
7421 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7422 End-Of-Sequence in lte_is_less_than.
7423 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7424 "gdb: Don't reorder line table entries too much when sorting".
7425
7426 2020-07-06 Tom de Vries <tdevries@suse.de>
7427
7428 PR tui/26205
7429 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7430
7431 2020-07-05 Tom de Vries <tdevries@suse.de>
7432
7433 PR build/26187
7434 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7435 std::uncaught_exceptions instead of deprecated
7436 std::uncaught_exception.
7437
7438 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7439
7440 * macroexp.h (macro_stringify): Return
7441 gdb::unique_xmalloc_ptr<char>.
7442 * macroexp.c (macro_stringify): Likewise.
7443 * macrotab.c (fixup_definition): Update.
7444
7445 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7446
7447 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7448 (lex_one_token): Update.
7449 * macroexp.c (struct macro_buffer) <release>: Return
7450 gdb::unique_xmalloc_ptr<char>.
7451 (macro_stringify): Update.
7452 (macro_expand): Update.
7453 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7454 * macroexp.h (macro_expand_next): Likewise.
7455
7456 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7457
7458 * macroexp.h (macro_lookup_ftype): Remove.
7459 (macro_expand, macro_expand_once, macro_expand_next): Remove
7460 lookup function parameters, add scope parameter.
7461 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7462 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7463 * macroscope.h (standard_macro_lookup): Change parameter type
7464 to macro_scope.
7465 * macroscope.c (standard_macro_lookup): Likewise.
7466 * c-exp.y (lex_one_token): Update.
7467 * macrocmd.c (macro_expand_command): Likewise.
7468 (macro_expand_once_command): Likewise.
7469
7470 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7471
7472 * inf-loop.c (inferior_event_handler): Remove client_data param.
7473 * inf-loop.h (inferior_event_handler): Likewise.
7474 * infcmd.c (step_1): Adjust.
7475 * infrun.c (proceed): Adjust.
7476 (fetch_inferior_event): Remove client_data param.
7477 (infrun_async_inferior_event_handler): Adjust.
7478 * infrun.h (fetch_inferior_event): Remove `void *` param.
7479 * linux-nat.c (handle_target_event): Adjust.
7480 * record-btrace.c (record_btrace_handle_async_inferior_event):
7481 Adjust.
7482 * record-full.c (record_full_async_inferior_event_handler):
7483 Adjust.
7484 * remote.c (remote_async_inferior_event_handler): Adjust.
7485
7486 2020-07-01 Tom Tromey <tom@tromey.com>
7487
7488 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7489 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7490
7491 2020-07-01 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7494 tui_gen_win_info.
7495 (tui_win_info::make_window): Merge with
7496 tui_gen_win_info::make_window.
7497 (tui_win_info::make_visible): Move from tui_gen_win_info.
7498 * tui/tui-win.c (tui_win_info::max_width): Move from
7499 tui_gen_win_info.
7500 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7501 type.
7502 <window_factory>: Likewise.
7503 * tui/tui-layout.c (tui_win_info::resize): Move from
7504 tui_gen_win_info.
7505 (make_standard_window): Change return type.
7506 (get_locator_window, tui_get_window_by_name): Likewise.
7507 (tui_layout_window::apply): Remove a cast.
7508 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7509 (struct tui_win_info): Merge with tui_gen_win_info.
7510 (struct tui_gen_win_info): Remove.
7511
7512 2020-07-01 Tom Tromey <tom@tromey.com>
7513
7514 * tui/tui-stack.h (struct tui_locator_window): Derive from
7515 tui_win_info.
7516 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7517 <can_box>: New method.
7518
7519 2020-07-01 Tom Tromey <tom@tromey.com>
7520
7521 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7522
7523 2020-07-01 Tom Tromey <tom@tromey.com>
7524
7525 * tui/tui-regs.c (tui_data_window::display_registers_from)
7526 (tui_data_window::display_registers_from)
7527 (tui_data_window::first_data_item_displayed)
7528 (tui_data_window::delete_data_content_windows): Update.
7529 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7530 Remove.
7531 (tui_data_window::check_register_values): Update.
7532 (tui_data_item_window::rerender): Add parameters. Update.
7533 (tui_data_item_window::refresh_window): Remove.
7534 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7535 virtual.
7536 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7537 tui_gen_win_info.
7538 <refresh_window, max_height, min_height>: Remove.
7539 <rerender>: Add parameters.
7540 <x, y, visible>: New members.
7541 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7542 <m_item_width>: New member.
7543
7544 2020-07-01 Tom Tromey <tom@tromey.com>
7545
7546 * tui/tui-regs.c (tui_data_window::show_register_group)
7547 (tui_data_window::check_register_values): Update.
7548 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7549 from item_no.
7550
7551 2020-07-01 Tom Tromey <tom@tromey.com>
7552
7553 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7554 useless "if".
7555
7556 2020-07-01 Tom Tromey <tom@tromey.com>
7557
7558 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7559 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7560
7561 2020-07-01 Tom Tromey <tom@tromey.com>
7562
7563 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7564 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7565 (struct tui_line_or_address): Move from tui-data.h.
7566 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7567 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7568 (tui_cmd_window, tui_source_window_base, tui_source_window)
7569 (tui_disasm_window): Don't declare.
7570 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7571 to tui-winsource.h.
7572 (SINGLE_KEY): Move to tui-stack.c.
7573
7574 2020-07-01 Tom Tromey <tom@tromey.com>
7575
7576 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7577 std::string.
7578 * tui/tui-regs.c (class tab_expansion_file): New.
7579 (tab_expansion_file::write): New method.
7580 (tui_register_format): Change return type. Use
7581 tab_expansion_file.
7582 (tui_get_register, tui_data_window::display_registers_from)
7583 (tui_data_item_window::rerender): Update.
7584 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7585 * tui/tui-io.c (tui_expand_tabs): Remove.
7586
7587 2020-07-01 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7590
7591 2020-07-01 Fangrui Song <maskray@google.com>
7592
7593 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7594
7595 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7596
7597 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7598 forms for DW_AT_associated and DW_AT_allocated attributes,
7599 which is already checked in function attr_to_dynamic_prop.
7600
7601 2020-06-30 Tom Tromey <tromey@adacore.com>
7602
7603 * dwarf2/read.c (quirk_rust_enum): Correctly call
7604 alloc_rust_variant for default-less enum.
7605
7606 2020-06-30 Tom Tromey <tromey@adacore.com>
7607
7608 PR build/26183:
7609 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7610 gdb::to_string.
7611
7612 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7613
7614 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7615 * gdbarch.h: Re-generate.
7616
7617 2020-06-28 Tom Tromey <tom@tromey.com>
7618
7619 * command.h (cmd_types): Remove.
7620 (cmd_type): Don't declare.
7621 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7622 typedef.
7623 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7624 * cli/cli-decode.c (cmd_type): Remove.
7625
7626 2020-06-27 Pedro Alves <palves@redhat.com>
7627
7628 * fork-child.c (prefork_hook): Adjust.
7629 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7630 Delete.
7631 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7632 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7633 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7634 Remove declarations.
7635 (struct inferior) <set_tty, tty>: New methods.
7636 (struct inferior) <terminal>: Rename to ...
7637 (struct inferior) <m_terminal>: ... this and make private.
7638 * main.c (captured_main_1): Adjust.
7639 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7640 (mi_cmd_inferior_tty_show): Adjust.
7641 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7642 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7643
7644 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7645
7646 * configure.ac: Add --enable-libctf: handle --disable-static
7647 properly.
7648 * acinclude.m4: sinclude ../config/enable.m4.
7649 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7650 (LIBCTF): Substitute in.
7651 (CTF_DEPS): New, likewise.
7652 (CLIBS): libctf needs symbols from libbfd: move earlier.
7653 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7654 flags.
7655 * ctfread.c: Surround in ENABLE_LIBCTF.
7656 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7657 * configure: Regenerate.
7658 * config.in: Likewise.
7659
7660 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7661
7662 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7663
7664 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7665
7666 * inferior.h (struct inferior) <terminal>: Change type to
7667 gdb::unique_xmalloc_ptr<char>.
7668 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7669 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7670 field, adjust to unique pointer.
7671 (get_inferior_io_terminal): Adjust to unique pointer.
7672
7673 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7674
7675 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7676 registers, not just the known core set of registers.
7677
7678 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7679
7680 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7681 fflags, frm, and fcsr registers.
7682 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7683 restore groups.
7684 (riscv_tdesc_unknown_reg): New function.
7685 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7686 tdesc_use_registers.
7687 * riscv-tdep.h (struct gdbarch_tdep): Add
7688 unknown_csrs_first_regnum, unknown_csrs_count,
7689 duplicate_fflags_regnum, duplicate_frm_regnum, and
7690 duplicate_fcsr_regnum fields.
7691
7692 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7693
7694 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7695 callback, use the callback (when not null) to help number unknown
7696 registers.
7697 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7698 (tdesc_use_registers): Add extra parameter to declaration.
7699
7700 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7701
7702 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7703 in the file.
7704 (class riscv_pending_register_alias): Likewise.
7705 (riscv_register_feature::register_info): Change 'required_p' field
7706 to 'required', and change its type. Add 'check' member function.
7707 (riscv_register_feature::register_info::check): Define new member
7708 function.
7709 (riscv_xreg_feature): Change initialisation of 'required' field.
7710 (riscv_freg_feature): Likewise.
7711 (riscv_virtual_feature): Likewise.
7712 (riscv_csr_feature): Likewise.
7713 (riscv_check_tdesc_feature): Take extra parameter, the csr
7714 tdesc_feature, rewrite the function to use the new
7715 riscv_register_feature::register_info::check function.
7716 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7717
7718 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7719
7720 * features/Makefile: Remove all references to the deleted files
7721 below.
7722 * features/riscv/32bit-csr.c: Deleted.
7723 * features/riscv/32bit-csr.xml: Deleted.
7724 * features/riscv/64bit-csr.c: Deleted.
7725 * features/riscv/64bit-csr.xml: Deleted.
7726 * features/riscv/rebuild-csr-xml.sh: Deleted.
7727
7728 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7729
7730 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7731 whitespace error for declaration of names member variable.
7732 (struct riscv_register_feature): Add new prefer_first_name member
7733 variable, and fix whitespace error in declaration of registers.
7734 (riscv_xreg_feature): Initialize prefer_first_name field.
7735 (riscv_freg_feature): Likewise.
7736 (riscv_virtual_feature): Likewise.
7737 (riscv_csr_feature): Likewise.
7738 (riscv_register_name): Expand on comments. Remove register name
7739 modifications for CSR and virtual registers.
7740
7741 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7742
7743 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7744 errors.
7745
7746 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7747
7748 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7749 riscv-opc.h.
7750 (class riscv_pending_register_alias): New class.
7751 (riscv_check_tdesc_feature): Take vector of pending aliases and
7752 populate it as appropriate.
7753 (riscv_setup_register_aliases): Delete.
7754 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7755 to riscv_check_tdesc_feature in all cases. Use the vector to
7756 create the register aliases.
7757
7758 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7759
7760 * sol2-tdep.c (sol2_static_transform_name): Remove.
7761 (sol2_init_abi): Don't register it.
7762 * gdbarch.sh (static_transform_name): Remove.
7763 * gdbarch.c, gdbarch.h: Regenerate.
7764
7765 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7766 gdbarch_static_transform_name.
7767 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7768 * stabsread.c (define_symbol) <'X'>: Remove.
7769 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7770 handling.
7771 <'V'>: Likewise.
7772 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7773 <'S'>: Remove call to gdbarch_static_transform_name.
7774
7775 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7776
7777 * procfs.c (procfs_pre_trace): New function.
7778 (procfs_target::create_inferior): Pass it to fork_inferior.
7779
7780 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7781
7782 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7783 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7784 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7785 sol2-tdep.o, sparc-sol2-tdep.o.
7786 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7787 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7788 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7789 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7790
7791 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7792
7793 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7794 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7795 Call sol2_init_abi.
7796 Remove calls to set_gdbarch_skip_solib_resolver,
7797 set_gdbarch_core_pid_to_str.
7798 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7799 (i386_sol2_static_transform_name): Remove.
7800 (i386_sol2_init_abi): Call sol2_init_abi.
7801 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7802 set_gdbarch_static_transform_name,
7803 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7804 Use sol2_sigtramp_p.
7805 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7806 (sol2_sigtramp_p): New function.
7807 (sol2_static_transform_name): New function.
7808 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7809 (sol2_init_abi): New function.
7810 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7811 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7812 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7813 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7814 (sparc_sol2_static_transform_name): Remove.
7815 (sparc32_sol2_init_abi): Call sol2_init_abi.
7816 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7817 set_gdbarch_static_transform_name,
7818 set_gdbarch_skip_solib_resolver,
7819 set_gdbarch_core_pid_to_str.
7820 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7821 (sparc_sol2_static_transform_name): Remove
7822 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7823 call sol2_sigtramp_p.
7824 (sparc64_sol2_init_abi): Call sol2_init_abi.
7825 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7826 set_gdbarch_static_transform_name,
7827 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7828
7829 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7830
7831 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7832 * exec.c (validate_exec_file): If from_tty, set both
7833 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7834 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7835 and from_tty, unconditionally ask a confirmation.
7836
7837 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * target-descriptions.c (tdesc_architecture_name): Protect against
7840 NULL pointer dereference.
7841 (maint_print_xml_tdesc_cmd): New function.
7842 (_initialize_target_descriptions): Register new 'maint print
7843 xml-tdesc' command and give it the filename completer.
7844 * NEWS: Mention new 'maint print xml-tdesc' command.
7845
7846 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7847
7848 * target-descriptions.c (class tdesc_compatible_info): New class.
7849 (struct target_desc): Change type of compatible vector.
7850 (tdesc_compatible_p): Update for change in type of
7851 target_desc::compatible.
7852 (tdesc_compatible_info_list): New function.
7853 (tdesc_compatible_info_arch_name): New function.
7854 (tdesc_add_compatible): Update for change in type of
7855 target_desc::compatible.
7856 (print_c_tdesc::visit_pre): Likewise.
7857
7858 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7859
7860 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7861 whitespace to underscore.
7862 (maint_print_c_tdesc_cmd): Use fake filename for target
7863 descriptions that came from the target.
7864 (_initialize_target_descriptions): Add filename command completion
7865 for 'maint print c-tdesc'.
7866
7867 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7868
7869 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7870 lines.
7871
7872 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7875 lines.
7876 (dwarf2_find_location_expression): Likewise.
7877 (call_site_parameter_matches): Likewise.
7878 (dwarf2_compile_expr_to_ax): Likewise.
7879 (disassemble_dwarf_expression): Likewise.
7880 (loclist_describe_location): Likewise.
7881
7882 2020-06-23 Pedro Alves <palves@redhat.com>
7883
7884 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7885 progspace-and-thread.h. Include scoped-mock-context.h instead.
7886 (register_to_value_test): Use scoped_mock_context.
7887 * regcache.c: Include "scoped-mock-context.h".
7888 (cooked_read_test): Don't error out if a target is already pushed.
7889 Use scoped_mock_context. Adjust.
7890 * scoped-mock-context.h: New file.
7891
7892 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7893
7894 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7895 initializer.
7896 (ada_language::is_string_type_p): New member function.
7897 * c-lang.c (c_language_data): Delete la_is_string_type_p
7898 initializer.
7899 (cplus_language_data): Likewise.
7900 (asm_language_data): Likewise.
7901 (minimal_language_data): Likewise.
7902 * d-lang.c (d_language_data): Likewise.
7903 * f-lang.c (f_is_string_type_p): Delete function, implementation
7904 moved to f_language::is_string_type_p.
7905 (f_language_data): Delete la_is_string_type_p initializer.
7906 (f_language::is_string_type_p): New member function,
7907 implementation from f_is_string_type_p.
7908 * go-lang.c (go_is_string_type_p): Delete function, implementation
7909 moved to go_language::is_string_type_p.
7910 (go_language_data): Delete la_is_string_type_p initializer.
7911 (go_language::is_string_type_p): New member function,
7912 implementation from go_is_string_type_p.
7913 * language.c (language_defn::is_string_type_p): Define new member
7914 function.
7915 (default_is_string_type_p): Make static, add comment copied from
7916 header file.
7917 (unknown_language_data): Delete la_is_string_type_p initializer.
7918 (unknown_language::is_string_type_p): New member function.
7919 (auto_language_data): Delete la_is_string_type_p initializer.
7920 (auto_language::is_string_type_p): New member function.
7921 * language.h (language_data): Delete la_is_string_type_p field.
7922 (language_defn::is_string_type_p): Declare new function.
7923 (default_is_string_type_p): Delete desclaration, move comment to
7924 definition.
7925 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7926 moved to m2_language::is_string_type_p.
7927 (m2_language_data): Delete la_is_string_type_p initializer.
7928 (m2_language::is_string_type_p): New member function,
7929 implementation from m2_is_string_type_p.
7930 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7931 initializer.
7932 * opencl-lang.c (opencl_language_data): Likewise.
7933 * p-lang.c (pascal_is_string_type_p): Delete function,
7934 implementation moved to pascal_language::is_string_type_p.
7935 (pascal_language_data): Delete la_is_string_type_p initializer.
7936 (pascal_language::is_string_type_p): New member function,
7937 implementation from pascal_is_string_type_p.
7938 * rust-lang.c (rust_is_string_type_p): Delete function,
7939 implementation moved to rust_language::is_string_type_p.
7940 (rust_language_data): Delete la_is_string_type_p initializer.
7941 (rust_language::is_string_type_p): New member function,
7942 implementation from rust_is_string_type_p.
7943 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7944 is_string_type_p.
7945
7946 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7947
7948 * ada-lang.c (ada_language_data): Delete la_print_typedef
7949 initializer.
7950 (ada_language::print_typedef): New member function.
7951 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7952 (cplus_language_data): Likewise.
7953 (asm_language_data): Likewise.
7954 (minimal_language_data): Likewise.
7955 * d-lang.c (d_language_data): Likewise.
7956 * f-lang.c (f_language_data): Likewise.
7957 (f_language::print_typedef): New member function.
7958 * go-lang.c (go_language_data): Delete la_print_typedef
7959 initializer.
7960 * language.c (language_defn::print_typedef): Define member
7961 function.
7962 (unknown_language_data): Delete la_print_typedef initializer.
7963 (unknown_language::print_typedef): New member function.
7964 (auto_language_data): Delete la_print_typedef initializer.
7965 (auto_language::print_typedef): New member function.
7966 * language.h (language_data): Delete la_print_typedef field.
7967 (language_defn::print_typedef): Declare new member function.
7968 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7969 (default_print_typedef): Delete declaration.
7970 * m2-lang.c (m2_language_data): Delete la_print_typedef
7971 initializer.
7972 (m2_language::print_typedef): New member function.
7973 * objc-lang.c (objc_language_data): Delete la_print_typedef
7974 initializer.
7975 * opencl-lang.c (opencl_language_data): Likewise.
7976 * p-lang.c (pascal_language_data): Likewise.
7977 (pascal_language::print_typedef): New member function.
7978 * rust-lang.c (rust_print_typedef): Delete function,
7979 implementation moved to rust_language::print_typedef.
7980 (rust_language): Delete la_print_typedef initializer.
7981 (rust_language::print_typedef): New member function,
7982 implementation from rust_print_typedef.
7983 * typeprint.c (default_print_typedef): Delete.
7984
7985 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7988 (ada_language::printstr): New member function.
7989 * c-lang.c (c_language_data): Delete la_printstr initializer.
7990 (cplus_language_data): Likewise.
7991 (asm_language_data): Likewise.
7992 (minimal_language_data): Likewise.
7993 * d-lang.c (d_language_data): Likewise.
7994 * f-lang.c (f_printstr): Rename to f_language::printstr.
7995 (f_language_data): Delete la_printstr initializer.
7996 (f_language::printstr): New member function, implementation from
7997 f_printstr.
7998 * go-lang.c (go_language_data): Delete la_printstr initializer.
7999 * language.c (language_defn::printstr): Define new member
8000 function.
8001 (unk_lang_printstr): Delete.
8002 (unknown_language_data): Delete la_printstr initializer.
8003 (unknown_language::printstr): New member function.
8004 (auto_language_data): Delete la_printstr initializer.
8005 (auto_language::printstr): New member function.
8006 * language.h (language_data): Delete la_printstr field.
8007 (language_defn::printstr): Declare new member function.
8008 (LA_PRINT_STRING): Update call to printstr.
8009 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8010 (m2_language_data): Delete la_printstr initializer.
8011 (m2_language::printstr): New member function, implementation from
8012 m2_printstr.
8013 * objc-lang.c (objc_language_data): Delete la_printstr
8014 initializer.
8015 * opencl-lang.c (opencl_language_data): Likewise.
8016 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8017 (pascal_language_data): Delete la_printstr initializer.
8018 (pascal_language::printstr): New member function, implementation
8019 from pascal_printstr.
8020 * p-lang.h (pascal_printstr): Delete declaration.
8021 * rust-lang.c (rust_printstr): Update header comment.
8022 (rust_language_data): Delete la_printstr initializer.
8023 (rust_language::printstr): New member function.
8024
8025 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8026
8027 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8028 (ada_language::printchar): New member function.
8029 * c-lang.c (c_language_data): Delete la_printchar initializer.
8030 (cplus_language_data): Likewise.
8031 (asm_language_data): Likewise.
8032 (minimal_language_data): Likewise.
8033 * d-lang.c (d_language_data): Likewise.
8034 * f-lang.c (f_printchar): Rename to f_language::printchar.
8035 (f_language_data): Delete la_printchar initializer.
8036 (f_language::printchar): New member function, implementation from
8037 f_printchar.
8038 * go-lang.c (go_language_data): Delete la_printchar initializer.
8039 * language.c (unk_lang_printchar): Delete.
8040 (language_defn::printchar): Define new member function.
8041 (unknown_language_data): Delete la_printchar initializer.
8042 (unknown_language::printchar): New member function.
8043 (auto_language_data): Delete la_printchar initializer.
8044 (auto_language::printchar): New member function.
8045 * language.h (language_data): Delete la_printchar field.
8046 (language_defn::printchar): Declare new member function.
8047 (LA_PRINT_CHAR): Update call to printchar.
8048 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8049 (m2_language::printchar): New member function.
8050 * objc-lang.c (objc_language_data): Delete la_printchar
8051 initializer.
8052 * opencl-lang.c (opencl_language_data): Likewise.
8053 * p-lang.c (pascal_language_data): Delete la_printchar
8054 initializer.
8055 (pascal_language::printchar): New member function.
8056 * rust-lang.c (rust_printchar): Rename to
8057 rust_language::printchar.
8058 (rust_language_data): Delete la_printchar initializer.
8059 (rust_language::printchar): New member function, implementation
8060 from rust_printchar.
8061
8062 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8063
8064 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8065 (ada_language_data): Delete la_emitchar initializer.
8066 (ada_language::emitchar): New member function, implementation from
8067 emit_char.
8068 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8069 (cplus_language_data): Likewise.
8070 (asm_language_data): Likewise.
8071 (minimal_language_data): Likewise.
8072 * d-lang.c (d_language_data): Likewise.
8073 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8074 (f_language_data): Delete la_emitchar initializer.
8075 (f_language::emitchar): New member function, implementation from
8076 f_emit_char.
8077 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8078 * language.c (unk_lang_emit_char): Delete.
8079 (language_defn::emitchar): New member function definition.
8080 (unknown_language_data): Delete la_emitchar initializer.
8081 (unknown_language::emitchar): New member function.
8082 (auto_language_data): Delete la_emitchar initializer.
8083 (auto_language::emitchar): New member function.
8084 * language.h (language_data): Delete la_emitchar field.
8085 (language_defn::emitchar): New member field declaration.
8086 (LA_EMIT_CHAR): Update call to emitchar.
8087 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8088 (m2_language_data): Delete la_emitchar initializer.
8089 (m2_language::emitchar): New member function, implementation from
8090 m2_emit_char.
8091 * objc-lang.c (objc_language_data): Delete la_emitchar
8092 initializer.
8093 * opencl-lang.c (opencl_language_data): Likewise.
8094 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8095 (pascal_language_data): Delete la_emitchar initializer.
8096 (pascal_language::emitchar): New member function, implementation
8097 from pascal_emit_char.
8098 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8099 (rust_language_data): Delete la_emitchar initializer.
8100 (rust_language::emitchar): New member function, implementation
8101 from rust_emitchar.
8102
8103 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8104
8105 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8106 (ada_language_data): Delete la_post_parser initializer.
8107 (ada_language::post_parser): New member function.
8108 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8109 (cplus_language_data): Likewise.
8110 (asm_language_data): Likewise.
8111 (minimal_language_data): Likewise.
8112 * d-lang.c (d_language_data): Likewise.
8113 * f-lang.c (f_language_data): Likewise.
8114 * go-lang.c (go_language_data): Likewise.
8115 * language.c (unknown_language_data): Likewise.
8116 (auto_language_data): Likewise.
8117 * language.h (language_data): Delete la_post_parser field.
8118 (language_defn::post_parser): New member function.
8119 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8120 * objc-lang.c (objc_language_data): Likewise.
8121 * opencl-lang.c (opencl_language_data): Likewise.
8122 * p-lang.c (pascal_language_data): Likewise.
8123 * parse.c (parse_exp_in_context): Update call to post_parser.
8124 (null_post_parser): Delete definition.
8125 * parser-defs.h (null_post_parser): Delete declaration.
8126 * rust-lang.c (rust_language_data): Delete la_post_parser
8127 initializer.
8128
8129 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8130
8131 * ada-lang.c (parse): Rename to ada_language::parser.
8132 (ada_language_data): Delete la_parser initializer.
8133 (ada_language::parser): New member function, implementation from
8134 parse.
8135 * c-lang.c (c_language_data): Delete la_parser initializer.
8136 (cplus_language_data): Likewise.
8137 (asm_language_data): Likewise.
8138 (minimal_language_data): Likewise.
8139 * d-lang.c (d_language_data): Likewise.
8140 (d_language::parser): New member function.
8141 * f-lang.c (f_language_data): Delete la_parser initializer.
8142 (f_language::parser): New member function.
8143 * go-lang.c (go_language_data): Delete la_parser initializer.
8144 (go_language::parser): New member function.
8145 * language.c (unk_lang_parser): Delete.
8146 (language_defn::parser): Define new member function.
8147 (unknown_language_data): Delete la_parser initializer.
8148 (unknown_language::parser): New member function.
8149 (auto_language_data): Delete la_parser initializer.
8150 (auto_language::parser): New member function.
8151 * language.h (language_data): Delete la_parser field.
8152 (language_defn::parser): Declare new member function.
8153 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8154 (m2_language::parser): New member function.
8155 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8156 * opencl-lang.c (opencl_language_data): Likewise.
8157 * p-lang.c (pascal_language_data): Likewise.
8158 (pascal_language::parser): New member function.
8159 * parse.c (parse_exp_in_context): Update call to parser.
8160 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8161 (rust_language::parser): New member function.
8162
8163 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8164
8165 * top.c (print_gdb_configuration): Print --with-python-libdir
8166 configuration value.
8167
8168 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8169
8170 * NEWS: Mention change to the alias command.
8171
8172 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8173
8174 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8175 (alias_command_completer)
8176 (make_alias_options_def_group): New functions.
8177 (alias_opts, alias_option_defs): New struct and array.
8178 (alias_usage_error): Update usage.
8179 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8180 Use option framework.
8181 (_initialize_cli_cmds): Update alias command help.
8182 Update aliases command help.
8183 (show_user):
8184 Add NULL for new default_args lookup_cmd argument.
8185 (valid_command_p): Rename to validate_aliased_command.
8186 Add NULL for new default_args lookup_cmd argument. Verify that the
8187 aliased_command has no default args.
8188 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8189 (lookup_cmd_1, lookup_cmd): New argument default_args.
8190 (add_alias_cmd):
8191 Add NULL for new default_args lookup_cmd argument.
8192 (print_help_for_command): Show default args under the layout
8193 alias some_alias = some_aliased_cmd some_alias_default_arg.
8194 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8195 xfree default_args in destructor.
8196 * cli/cli-script.c (process_next_line, do_define_command):
8197 Add NULL for new default_args lookup_cmd argument.
8198 * command.h: Declare new default_args argument in lookup_cmd
8199 and lookup_cmd_1.
8200 * completer.c (complete_line_internal_1):
8201 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8202 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8203 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8204 Likewise.
8205 * infcmd.c (_initialize_infcmd): Likewise.
8206 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8207 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8208 * python/py-param.c (add_setshow_generic): Likewise.
8209 * remote.c (_initialize_remote): Likewise.
8210 * top.c (execute_command): Prepend default_args if command has some.
8211 (set_verbose):
8212 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8213 * tracepoint.c (validate_actionline, encode_actions_1):
8214 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8215
8216 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8217
8218 * jit.c (jit_read_descriptor): Use bool as the return type.
8219 (jit_breakpoint_re_set_internal): Use bool as the return type.
8220 Invert the return value logic; return true if the jit breakpoint
8221 has been successfully initialized.
8222 (jit_inferior_init): Update the call to
8223 jit_breakpoint_re_set_internal.
8224
8225 2020-06-22 Pedro Alves <palves@redhat.com>
8226
8227 PR gdb/25939
8228 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8229 Use the current inferior instead. Don't return
8230 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8231 wait again.
8232 * sol-thread.c (sol_thread_target::wait): Don't reference
8233 inferior_ptid.
8234 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8235 (sol_update_thread_list_callback): Use the current inferior's pid
8236 instead of inferior_ptid.
8237
8238 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8239
8240 * procfs.c: Cleanup many comments.
8241
8242 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8243 (AFTER_WATCHFLAG): Replace by value.
8244
8245 (MAIN_PROC_NAME_FORMAT): Inline ...
8246 (create_procinfo): ... here.
8247
8248 (procfs_debug_inferior): Remove SYS_exec handling.
8249 (syscall_is_exec): Likewise.
8250 (procfs_set_exec_trap): Likewise.
8251
8252 (syscall_is_lwp_exit): Inline in callers.
8253 (syscall_is_exit): Likewise.
8254 (syscall_is_exec): Likewise.
8255 (syscall_is_lwp_create): Likewise.
8256
8257 (invalidate_cache): Remove #if 0 code.
8258
8259 (make_signal_thread_runnable): Remove.
8260 (procfs_target::resume): Remove #if 0 code.
8261
8262 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8263
8264 PR gdb/25939
8265 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8266 call ...
8267 (procfs_target::create_inferior): ... here.
8268
8269 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8270
8271 * exec.c (validate_exec_file): Ensure the build-id is up to
8272 date by calling reopen_exec_file (that checks file timestamp
8273 to decide to re-read the file).
8274
8275 2020-06-18 Pedro Alves <palves@redhat.com>
8276
8277 PR gdb/25412
8278 * gdbthread.h (delete_thread, delete_thread_silent)
8279 (find_thread_ptid): Update comments.
8280 * thread.c (current_thread_): New global.
8281 (is_current_thread): Move higher, and reimplement.
8282 (inferior_thread): Reimplement.
8283 (set_thread_exited): Use bool. Add assertions.
8284 (add_thread_silent): Simplify thread-reuse handling by always
8285 calling delete_thread.
8286 (delete_thread): Remove intro comment.
8287 (find_thread_ptid): Skip exited threads.
8288 (switch_to_thread_no_regs): Write to current_thread_.
8289 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8290 INFERIOR_PTID. Clear current_thread_.
8291
8292 2020-06-18 Pedro Alves <palves@redhat.com>
8293
8294 * aix-thread.c (pd_update): Use switch_to_thread.
8295
8296 2020-06-18 Pedro Alves <palves@redhat.com>
8297
8298 * ravenscar-thread.c (ravenscar_thread_target): Update.
8299 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8300 (ravenscar_thread_target::add_active_thread): ... this. Don't
8301 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8302 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8303
8304 2020-06-18 Pedro Alves <palves@redhat.com>
8305
8306 * nat/windows-nat.c (current_windows_thread): Remove.
8307 * nat/windows-nat.h (current_windows_thread): Remove.
8308 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8309 Adjust.
8310 (display_selectors): Adjust to fetch the current
8311 windows_thread_info based on inferior_ptid.
8312 (fake_create_process): No longer write to current_windows_thread.
8313 (windows_nat_target::get_windows_debug_event):
8314 Don't set inferior_ptid or current_windows_thread.
8315 (windows_nat_target::wait): Adjust to not rely on
8316 current_windows_thread.
8317 (do_initial_windows_stuff): Now a method of windows_nat_target.
8318 Switch to the last_ptid thread.
8319 (windows_nat_target::attach): Adjust.
8320 (windows_nat_target::detach): Use switch_to_no_thread instead of
8321 writing to inferior_ptid directly.
8322 (windows_nat_target::create_inferior): Adjust.
8323
8324 2020-06-18 Pedro Alves <palves@redhat.com>
8325
8326 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8327
8328 2020-06-18 Pedro Alves <palves@redhat.com>
8329
8330 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8331 after creating it, instead of writing to inferior_ptid. Don't
8332 write to inferior_ptid.
8333
8334 2020-06-18 Pedro Alves <palves@redhat.com>
8335
8336 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8337
8338 2020-06-18 Pedro Alves <palves@redhat.com>
8339
8340 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8341 it, instead of writing to inferior_ptid.
8342
8343 2020-06-18 Pedro Alves <palves@redhat.com>
8344
8345 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8346 to inferior_ptid.
8347
8348 2020-06-18 Pedro Alves <palves@redhat.com>
8349
8350 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8351 instead of writing to inferior_ptid directly.
8352
8353 2020-06-18 Pedro Alves <palves@redhat.com>
8354
8355 * corelow.c (core_target::close): Use switch_to_no_thread instead
8356 of writing to inferior_ptid directly.
8357 (add_to_thread_list, core_target_open): Use switch_to_thread
8358 instead of writing to inferior_ptid directly.
8359
8360 2020-06-18 Pedro Alves <palves@redhat.com>
8361
8362 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8363 inferior_ptid.
8364 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8365 inferior_ptid.
8366 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8367 inferior_ptid directly.
8368 (darwin_nat_target::init_thread_list): Switch to thread, instead
8369 of writing to inferior_ptid.
8370 (darwin_nat_target::attach): Don't write to inferior_ptid.
8371 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8372
8373 2020-06-18 Pedro Alves <palves@redhat.com>
8374
8375 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8376 thread.
8377 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8378 Instead use switch_to_thread.
8379 (gnu_nat_target::detach): Use switch_to_no_thread
8380 instead of writing to inferior_ptid directly. Used passed-in
8381 inferior instead of looking up the inferior by pid.
8382
8383 2020-06-18 Pedro Alves <palves@redhat.com>
8384
8385 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8386 inferior_ptid.
8387
8388 2020-06-18 Pedro Alves <palves@redhat.com>
8389
8390 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8391 inferior_ptid.
8392 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8393 thread.
8394 (nto_procfs_target::detach): Avoid referencing
8395 inferior_ptid. Use switch_to_no_thread instead of writing to
8396 inferior_ptid directly.
8397 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8398 instead of writing to inferior_ptid directly.
8399 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8400 to thread.
8401
8402 2020-06-18 Pedro Alves <palves@redhat.com>
8403
8404 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8405 after creating it, instead of writing to inferior_ptid.
8406 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8407 to inferior_ptid directly.
8408 (gdbsim_target::wait): Don't write to inferior_ptid.
8409
8410 2020-06-18 Pedro Alves <palves@redhat.com>
8411
8412 * remote.c (remote_target::remote_notice_new_inferior): Use
8413 switch_to_thread instead of writing to inferior_ptid directly.
8414 (remote_target::add_current_inferior_and_thread): Use
8415 switch_to_no_thread instead of writing to inferior_ptid directly.
8416 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8417 and switch_to_thread instead of using set_current_inferior or
8418 writing to inferior_ptid directly.
8419
8420 2020-06-18 Pedro Alves <palves@redhat.com>
8421
8422 * tracectf.c (ctf_target_open): Switch to added thread instead of
8423 writing to inferior_ptid directly.
8424 (ctf_target::close): Use switch_to_no_thread instead of writing to
8425 inferior_ptid directly.
8426
8427 2020-06-18 Pedro Alves <palves@redhat.com>
8428
8429 * tracefile-tfile.c (tfile_target_open): Don't write to
8430 inferior_ptid directly, instead switch to added thread.
8431 (tfile_target::close): Use switch_to_no_thread instead of writing
8432 to inferior_ptid directly.
8433
8434 2020-06-18 Pedro Alves <palves@redhat.com>
8435
8436 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8437 (procfs_target::detach): Use switch_to_no_thread
8438 instead of writing to inferior_ptid directly.
8439 (do_attach): Change return type to void. Switch to the added
8440 thread.
8441 (procfs_target::create_inferior): Switch to the added thread.
8442 (procfs_do_thread_registers): Don't write to inferior_ptid.
8443
8444 2020-06-18 Pedro Alves <palves@redhat.com>
8445
8446 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8447 of writing to inferior_ptid.
8448 (scoped_restore_exited_inferior): Delete.
8449 (handle_vfork_child_exec_or_exit): Simplify using
8450 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8451 instead of writing to inferior_ptid.
8452 (THREAD_STOPPED_BY): Delete.
8453 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8454 (thread_stopped_by_hw_breakpoint): Delete.
8455 (save_waitstatus): Use
8456 scoped_restore_current_thread+switch_to_thread, and call
8457 target_stopped_by_watchpoint instead of
8458 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8459 instead of thread_stopped_by_sw_breakpoint, and
8460 target_stopped_by_hw_breakpoint instead of
8461 thread_stopped_by_hw_breakpoint.
8462 (handle_inferior_event)
8463 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8464 inferior_ptid directly, nor
8465 set_current_inferior/set_current_program_space. Use
8466 switch_to_thread / switch_to_inferior_no_thread instead.
8467
8468 2020-06-18 Pedro Alves <palves@redhat.com>
8469
8470 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8471 instead of writing to inferior_ptid.
8472
8473 2020-06-18 Pedro Alves <palves@redhat.com>
8474
8475 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8476 added thread.
8477 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8478 to the added thread.
8479 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8480 instead of writing to inferior_ptid.
8481
8482 2020-06-18 Pedro Alves <palves@redhat.com>
8483
8484 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8485 (register_to_value_test): Mock a program_space too. Heap-allocate
8486 the address space. Don't write to inferior_ptid. Use
8487 switch_to_thread instead.
8488
8489 2020-06-18 Pedro Alves <palves@redhat.com>
8490
8491 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8492 Delete.
8493 (find_signalled_thread()): New, factored out from
8494 linux_make_corefile_notes and adjusted to handle exited threads.
8495 (linux_make_corefile_notes): Adjust to use the new
8496 find_signalled_thread.
8497
8498 2020-06-18 Pedro Alves <palves@redhat.com>
8499
8500 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8501 of saving/restoring inferior_ptid.
8502
8503 2020-06-17 Tom Tromey <tom@tromey.com>
8504
8505 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8506 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8507 declare.
8508 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8509
8510 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8511
8512 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8513 of partial symtabs.
8514
8515 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8516
8517 * regformats/reg-arm.dat: Remove.
8518 * regformats/reg-bfin.dat: Remove.
8519 * regformats/reg-cris.dat: Remove.
8520 * regformats/reg-crisv32.dat: Remove.
8521 * regformats/reg-m32r.dat: Remove.
8522 * regformats/reg-tilegx.dat: Remove.
8523 * regformats/reg-tilegx32.dat: Remove.
8524
8525 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8526
8527 * features/Makefile (WHICH): Remove arm files.
8528 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8529 * regformats/arm/arm-with-neon.dat: Remove.
8530 * regformats/arm/arm-with-vfpv2.dat: Remove.
8531 * regformats/arm/arm-with-vfpv3.dat: Remove.
8532
8533 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8534
8535 * features/Makefile (XMLTOC): Remove rx.xml.
8536
8537 2020-06-17 Pedro Alves <palves@redhat.com>
8538
8539 * gdbthread.h (thread_control_state) <trap_expected> Update
8540 comments.
8541
8542 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8543
8544 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8545 ada_language::lookup_symbol_nonlocal.
8546 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8547 (ada_language::lookup_symbol_nonlocal): New member function,
8548 implementation from ada_lookup_symbol_nonlocal.
8549 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8550 initializer.
8551 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8552 initializer.
8553 (cplus_language::lookup_symbol_nonlocal): New member function.
8554 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8555 (minimal_language_data) Likewise.
8556 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8557 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8558 initializer.
8559 (d_language::lookup_symbol_nonlocal): New member function.
8560 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8561 initializer.
8562 (f_language::lookup_symbol_nonlocal): New member function.
8563 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8564 initializer.
8565 * language.c (unknown_language_data): Likewise.
8566 (auto_language_data): Likewise.
8567 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8568 field.
8569 (language_defn::lookup_symbol_nonlocal): New member function.
8570 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8571 initializer.
8572 * objc-lang.c (objc_language_data): Likewise.
8573 * opencl-lang.c (opencl_language_data): Likewise.
8574 * p-lang.c (pascal_language_data): Likewise.
8575 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8576 rust_language::lookup_symbol_nonlocal.
8577 (rust_language_data): Delete la_lookup_symbol_nonlocal
8578 initializer.
8579 (rust_language::lookup_symbol_nonlocal): New member function,
8580 implementation from rust_lookup_symbol_nonlocal.
8581 * symtab.c (lookup_symbol_aux): Update call to
8582 lookup_symbol_nonlocal.
8583 (basic_lookup_symbol_nonlocal): Rename to...
8584 (language_defn::lookup_symbol_nonlocal): ...this, and update
8585 header comment. Remove language_defn parameter, and replace with
8586 uses of `this'.
8587 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8588
8589 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8590
8591 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8592 initializer.
8593 (ada_language::value_print_inner): New member function.
8594 * c-lang.c (c_language_data): Delete la_value_print_inner
8595 initializer.
8596 (cplus_language_data): Likewise.
8597 (asm_language_data): Likewise.
8598 (minimal_language_data): Likewise.
8599 * d-lang.c (d_language_data): Likewise.
8600 (d_language::value_print_inner): New member function.
8601 * f-lang.c (f_language_data): Delete la_value_print_inner
8602 initializer.
8603 (f_language::value_print_inner): New member function.
8604 * f-lang.h (f_value_print_innner): Rename to...
8605 (f_value_print_inner): ...this (note spelling of 'inner').
8606 * f-valprint.c (f_value_print_innner): Rename to...
8607 (f_value_print_inner): ...this (note spelling of 'inner').
8608 * go-lang.c (go_language_data): Delete la_value_print_inner
8609 initializer.
8610 (go_language::value_print_inner): New member function.
8611 * language.c (language_defn::value_print_inner): Define new member
8612 function.
8613 (unk_lang_value_print_inner): Delete.
8614 (unknown_language_data): Delete la_value_print_inner initializer.
8615 (unknown_language::value_print_inner): New member function.
8616 (auto_language_data): Delete la_value_print_inner initializer.
8617 (auto_language::value_print_inner): New member function.
8618 * language.h (language_data): Delete la_value_print_inner field.
8619 (language_defn::value_print_inner): Delcare new member function.
8620 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8621 initializer.
8622 (m2_language::value_print_inner): New member function.
8623 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8624 initializer.
8625 * opencl-lang.c (opencl_language_data): Likewise.
8626 * p-lang.c (pascal_language_data): Likewise.
8627 (pascal_language::value_print_inner): New member function.
8628 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8629 initializer.
8630 (rust_language::value_print_inner): New member function.
8631 * valprint.c (do_val_print): Update call to value_print_inner.
8632
8633 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8634
8635 * ada-lang.c (ada_language_data): Delete la_value_print
8636 initializer.
8637 (ada_language::value_print): New member function.
8638 * c-lang.c (c_language_data): Delete la_value_print initializer.
8639 (cplus_language_data): Likewise.
8640 (asm_language_data): Likewise.
8641 (minimal_language_data): Likewise.
8642 * d-lang.c (d_language_data): Likewise.
8643 * f-lang.c (f_language_data): Likewise.
8644 * go-lang.c (go_language_data): Likewise.
8645 * language.c (unk_lang_value_print): Delete.
8646 (language_defn::value_print): Define new member function.
8647 (unknown_language_data): Delete la_value_print initializer.
8648 (unknown_language::value_print): New member function.
8649 (auto_language_data): Delete la_value_print initializer.
8650 (auto_language::value_print): New member function.
8651 * language.h (language_data): Delete la_value_print field.
8652 (language_defn::value_print): Declare new member function.
8653 (LA_VALUE_PRINT): Update call to value_print.
8654 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8655 * objc-lang.c (objc_language_data): Likewise.
8656 * opencl-lang.c (opencl_language_data): Likewise.
8657 * p-lang.c (pascal_language_data): Likewise.
8658 (pascal_language::value_print): New member function.
8659 * rust-lang.c (rust_language_data): Delete la_value_print
8660 initializer.
8661
8662 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8663
8664 * ada-lang.c (ada_watch_location_expression): Rename to
8665 ada_language::watch_location_expression.
8666 (ada_language_data): Delete la_watch_location_expression
8667 initializer.
8668 (ada_language::watch_location_expression): New member function,
8669 implementation from ada_watch_location_expression.
8670 * breakpoint.c (watch_command_1): Update call to
8671 watch_location_expression.
8672 * c-lang.c (c_watch_location_expression): Rename to
8673 language_defn::watch_location_expression.
8674 (c_language_data): Delete la_watch_location_expression
8675 initializer.
8676 (cplus_language_data): Likewise.
8677 (asm_language_data): Likewise.
8678 (minimal_language_data): Likewise.
8679 * c-lang.h (c_watch_location_expression): Delete declaration.
8680 * d-lang.c (d_language_data): Delete la_watch_location_expression
8681 initializer.
8682 * f-lang.c (f_language_data): Likewise.
8683 * go-lang.c (go_language_data): Likewise.
8684 * language.c (language_defn::watch_location_expression): Member
8685 function implementation from c_watch_location_expression.
8686 (unknown_language_data): Delete la_watch_location_expression
8687 initializer.
8688 (auto_language_data): Likewise.
8689 * language.h (language_data): Delete la_watch_location_expression
8690 field.
8691 (language_defn::watch_location_expression): Declare new member
8692 function.
8693 * m2-lang.c (m2_language_data): Delete
8694 la_watch_location_expression initializer.
8695 * objc-lang.c (objc_language_data): Likewise.
8696 * opencl-lang.c (opencl_language_data): Likewise.
8697 * p-lang.c (pascal_language_data): Likewise.
8698 * rust-lang.c (rust_watch_location_expression): Rename to
8699 rust_language::watch_location_expression.
8700 (rust_language_data): Delete la_watch_location_expression
8701 initializer.
8702 (rust_language::watch_location_expression): New member function,
8703 implementation from rust_watch_location_expression.
8704
8705 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8706
8707 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8708 ada_language::collect_symbol_completion_matches.
8709 (ada_language_data): Delete la_collect_symbol_completion_matches
8710 initializer.
8711 (ada_language::collect_symbol_completion_matches): New member
8712 function, implementation from
8713 ada_collect_symbol_completion_matches.
8714 * c-lang.c (c_language_data): Delete
8715 la_collect_symbol_completion_matches initializer.
8716 (cplus_language_data): Likewise.
8717 (asm_language_data): Likewise.
8718 (minimal_language_data): Likewise.
8719 * d-lang.c (d_language_data): Likewise.
8720 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8721 f_language::collect_symbol_completion_matches.
8722 (f_language_data): Delete la_collect_symbol_completion_matches
8723 initializer.
8724 (f_language::collect_symbol_completion_matches) New member
8725 function, implementation from f_collect_symbol_completion_matches.
8726 * go-lang.c (go_language_data): Delete
8727 la_collect_symbol_completion_matches initializer.
8728 * language.c (unknown_language_data): Likewise.
8729 (auto_language_data): Likewise.
8730 * language.h (language_data): Delete
8731 la_collect_symbol_completion_matches field.
8732 (language_defn::collect_symbol_completion_matches): New member
8733 function.
8734 * m2-lang.c (m2_language_data): Delete
8735 la_collect_symbol_completion_matches initializer.
8736 * objc-lang.c (objc_language_data): Likewise.
8737 * opencl-lang.c (opencl_language_data): Likewise.
8738 * p-lang.c (pascal_language_data): Likewise.
8739 * rust-lang.c (rust_language_data): Likewise.
8740 * symtab.c (default_collect_symbol_completion_matches): Delete.
8741 (collect_symbol_completion_matches): Update call to
8742 collect_symbol_completion_matches.
8743 (collect_symbol_completion_matches_type): Likewise.
8744 * symtab.h (default_collect_symbol_completion_matches): Delete
8745 declaration.
8746
8747 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8748
8749 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8750 (ada_language_data): Delete la_word_break_characters initializer.
8751 (ada_language::word_break_characters): New member function.
8752 * c-lang.c (c_language_data): Delete la_word_break_characters
8753 initializer.
8754 (cplus_language_data): Likewise.
8755 (asm_language_data): Likewise.
8756 (minimal_language_data): Likewise.
8757 * completer.c: Update global comment.
8758 (advance_to_expression_complete_word_point): Update call to
8759 word_break_characters.
8760 (complete_files_symbols): Likewise.
8761 (complete_line_internal_1): Likewise.
8762 (default_completer_handle_brkchars): Likewise.
8763 (skip_quoted_chars): Likewise.
8764 * d-lang.c (d_language_data): Delete la_word_break_characters
8765 initializer.
8766 * f-lang.c (f_word_break_characters): Delete.
8767 (f_language_data): Delete la_word_break_characters initializer.
8768 (f_language::word_break_characters): New member function.
8769 * go-lang.c (go_language_data): Delete la_word_break_characters
8770 initializer.
8771 * language.c (unknown_language_data): Likewise.
8772 (auto_language_data): Likewise.
8773 * language.h (default_word_break_characters): Move declaration to
8774 earlier in the file.
8775 (language_data): Delete la_word_break_characters field.
8776 (language_defn::word_break_characters): New member function.
8777 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8778 initializer.
8779 * objc-lang.c (objc_language_data): Likewise.
8780 * opencl-lang.c (opencl_language_data): Likewise.
8781 * p-lang.c (pascal_language_data): Likewise.
8782 * rust-lang.c (rust_language_data): Likewise.
8783
8784 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8785
8786 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8787 (ada_language_data): Delete la_get_symbol_name_matcher
8788 initializer.
8789 (language_defn::get_symbol_name_matcher_inner): New member
8790 function.
8791 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8792 initializer.
8793 (cplus_language_data): Likewise.
8794 (cplus_language::get_symbol_name_matcher_inner): New member
8795 function.
8796 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8797 (minimal_language_data): Likewise.
8798 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8799 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8800 initializer.
8801 * dictionary.c (iter_match_first_hashed): Update call to
8802 get_symbol_name_matcher.
8803 (iter_match_next_hashed): Likewise.
8804 (iter_match_next_linear): Likewise.
8805 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8806 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8807 initializer.
8808 (f_language::get_symbol_name_matcher_inner): New member function.
8809 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8810 initializer.
8811 * language.c (default_symbol_name_matcher): Update header comment,
8812 make static.
8813 (language_defn::get_symbol_name_matcher): New definition.
8814 (language_defn::get_symbol_name_matcher_inner): Likewise.
8815 (get_symbol_name_matcher): Delete.
8816 (unknown_language_data): Delete la_get_symbol_name_matcher
8817 initializer.
8818 (auto_language_data): Likewise.
8819 * language.h (language_data): Delete la_get_symbol_name_matcher
8820 field.
8821 (language_defn::get_symbol_name_matcher): New member function.
8822 (language_defn::get_symbol_name_matcher_inner): Likewise.
8823 (default_symbol_name_matcher): Delete declaration.
8824 * linespec.c (find_methods): Update call to
8825 get_symbol_name_matcher.
8826 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8827 initializer.
8828 * minsyms.c (lookup_minimal_symbol): Update call to
8829 get_symbol_name_matcher.
8830 (iterate_over_minimal_symbols): Likewise.
8831 * objc-lang.c (objc_language_data): Delete
8832 la_get_symbol_name_matcher initializer.
8833 * opencl-lang.c (opencl_language_data): Likewise.
8834 * p-lang.c (pascal_language_data): Likewise.
8835 * psymtab.c (psymbol_name_matches): Update call to
8836 get_symbol_name_matcher.
8837 * rust-lang.c (rust_language_data): Delete
8838 la_get_symbol_name_matcher initializer.
8839 * symtab.c (symbol_matches_search_name): Update call to
8840 get_symbol_name_matcher.
8841 (compare_symbol_name): Likewise.
8842
8843 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8844
8845 * ada-lang.c (ada_language_data): Delete la_compute_program
8846 initializer.
8847 * c-lang.c (c_language_data): Likewise.
8848 (c_language::compute_program): New member function.
8849 (cplus_language_data): Delete la_compute_program initializer.
8850 (cplus_language::compute_program): New member function.
8851 (asm_language_data): Delete la_compute_program initializer.
8852 (minimal_language_data): Likewise.
8853 * c-lang.h (c_compute_program): Update comment.
8854 (cplus_compute_program): Likewise.
8855 * compile/compile-c-support.c (c_compute_program): Likewise.
8856 (cplus_compute_program): Likewise.
8857 * compile/compile.c (compile_to_object): Update call to
8858 la_compute_program.
8859 * d-lang.c (d_language_data): Delete la_compute_program
8860 initializer.
8861 * f-lang.c (f_language_data): Likewise.
8862 * go-lang.c (go_language_data): Likewise.
8863 * language.c (unknown_language_data): Likewise.
8864 (auto_language_data): Likewise.
8865 * language.h (language_data): Delete la_compute_program field.
8866 (language_defn::compute_program): New member function.
8867 * m2-lang.c (m2_language_data): Delete la_compute_program
8868 initializer.
8869 * objc-lang.c (objc_language_data): Likewise.
8870 * opencl-lang.c (opencl_language_data): Likewise.
8871 * p-lang.c (pascal_language_data): Likewise.
8872 * rust-lang.c (rust_language_data): Likewise.
8873
8874 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8875
8876 * ada-lang.c (ada_language_data) Delete
8877 la_class_name_from_physname initializer.
8878 * c-lang.c (c_language_data): Likewise.
8879 (cplus_language_data): Likewise.
8880 (cplus_language::class_name_from_physname): New member function.
8881 (asm_language_data): Delete la_class_name_from_physname
8882 initializer.
8883 (minimal_language_data): Likewise.
8884 * d-lang.c (d_language_data): Likewise.
8885 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8886 method on language_defn class.
8887 (guess_full_die_structure_name): Likewise.
8888 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8889 initializer.
8890 * go-lang.c (go_language_data): Likewise.
8891 * language.c (language_class_name_from_physname): Delete.
8892 (unk_lang_class_name): Delete.
8893 (unknown_language_data): Delete la_class_name_from_physname
8894 initializer.
8895 (auto_language_data): Likewise.
8896 * language.h (language_data): Delete la_class_name_from_physname
8897 field.
8898 (language_defn::class_name_from_physname): New function.
8899 (language_class_name_from_physname): Delete declaration.
8900 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8901 initializer.
8902 * objc-lang.c (objc_language_data): Likewise.
8903 * opencl-lang.c (opencl_language_data): Likewise.
8904 * p-lang.c (pascal_language_data): Likewise.
8905 * rust-lang.c (rust_language_data): Likewise.
8906
8907 2020-06-16 Tom Tromey <tom@tromey.com>
8908
8909 * tui/tui-data.h (STATUS_NAME): New macro.
8910 * tui/tui-layout.c (tui_remove_some_windows)
8911 (initialize_known_windows, tui_register_window)
8912 (tui_layout_split::remove_windows, initialize_layouts)
8913 (tui_new_layout_command): Don't use hard-coded window names.
8914
8915 2020-06-16 Tom Tromey <tom@tromey.com>
8916
8917 PR tui/25348:
8918 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8919 tui_initialize_readline. Only run once. Call rl_initialize.
8920 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8921 tui_initialize_readline.
8922 * tui/tui-io.c (tui_setup_io): Call
8923 tui_ensure_readline_initialized.
8924 * tui/tui-interp.c (tui_interp::init): Update.
8925
8926 2020-06-16 Tom Tromey <tom@tromey.com>
8927
8928 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8929 Also preserve the status window.
8930
8931 2020-06-16 Tom Tromey <tom@tromey.com>
8932
8933 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8934 where m_window==nullptr.
8935
8936 2020-06-15 Tom Tromey <tromey@adacore.com>
8937
8938 * windows-nat.c (windows_nat::handle_output_debug_string):
8939 Update.
8940 (windows_nat::handle_ms_vc_exception): Update.
8941 * target.h (target_read_string): Change API.
8942 * target.c (target_read_string): Change API.
8943 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8944 Update.
8945 * solib-frv.c (frv_current_sos): Update.
8946 * solib-dsbt.c (dsbt_current_sos): Update.
8947 * solib-darwin.c (darwin_current_sos): Update.
8948 * linux-thread-db.c (inferior_has_bug): Update.
8949 * expprint.c (print_subexp_standard): Update.
8950 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8951 (ada_exception_message_1): Update.
8952
8953 2020-06-15 Tom Tromey <tromey@adacore.com>
8954
8955 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8956
8957 2020-06-15 Tom Tromey <tromey@adacore.com>
8958
8959 * valprint.c (read_string): Update comment.
8960 * target.c (MIN): Remove.
8961 (target_read_string): Rewrite.
8962
8963 2020-06-15 Tom Tromey <tromey@adacore.com>
8964
8965 * corefile.c (read_memory_string): Remove.
8966 * ada-valprint.c (ada_value_print_ptr): Update.
8967 * ada-lang.h (ada_tag_name): Change return type.
8968 * ada-lang.c (type_from_tag): Update.
8969 (ada_tag_name_from_tsd): Change return type. Use
8970 target_read_string.
8971 (ada_tag_name): Likewise.
8972 * gdbcore.h (read_memory_string): Don't declare.
8973
8974 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8975
8976 * symtab.c (rbreak_command): Ignore Windows drive colon.
8977
8978 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * NEWS: Mention removed GDBserver host support.
8981
8982 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8983
8984 * features/riscv/rebuild-csr-xml.sh: Updated.
8985
8986 2020-06-11 Tom Tromey <tom@tromey.com>
8987
8988 PR gdb/18318:
8989 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8990
8991 2020-06-09 Jonny Grant <jg@jguk.org>
8992 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8993
8994 * main.c (captured_main_1): Don't print new line after help.
8995 (print_gdb_help): add mailing list and IRC channel information
8996 to --help. Add new lines between items in the footer. Remove
8997 quotes around bug url.
8998
8999 2020-06-11 Keith Seitz <keiths@redhat.com>
9000
9001 PR gdb/21356
9002 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9003 Resolve typedefs for type length calculations.
9004
9005 2020-06-10 Tom de Vries <tdevries@suse.de>
9006
9007 PR ada/24713
9008 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9009 (write_psymbols): Enable .gdb_index for ada.
9010 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9011 ada.
9012
9013 2020-06-10 Tom de Vries <tdevries@suse.de>
9014
9015 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9016 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9017 namei" instead of "const char *name" argument.
9018 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9019 dw2_symtab_iter_init.
9020
9021 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9022
9023 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9024 to use type::field and field::type instead.
9025
9026 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9027
9028 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9029 to use field::type instead.
9030
9031 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9032
9033 * gdbtypes.h (struct field) <type, set_type>: New methods.
9034 Rename `type` field to...
9035 <m_type>: ... this. Change references throughout to use type or
9036 set_type methods.
9037 (FIELD_TYPE): Use field::type. Change call sites that modify
9038 the field's type to use field::set_type instead.
9039
9040 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9041
9042 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9043 to use type::index_type instead.
9044
9045 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9048 methods.
9049 (TYPE_INDEX_TYPE): Use type::index_type.
9050 * gdbtypes.c (create_array_type_with_stride): Likewise.
9051
9052 2020-06-07 Tom Tromey <tom@tromey.com>
9053
9054 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9055 parameter.
9056 (generic_value_print): Update.
9057
9058 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9059
9060 Revert commit 982a38f60b0.
9061 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9062
9063 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9064
9065 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9066 avoid use after free.
9067
9068 2020-06-05 Tom de Vries <tdevries@suse.de>
9069
9070 * NEWS: Fix typos.
9071
9072 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9073
9074 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9075 the per_bfd object.
9076 (dwarf2_read_debug_names): Likewise.
9077 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9078 object when re-using a per_bfd object with an index.
9079
9080 2020-06-03 Tom de Vries <tdevries@suse.de>
9081
9082 PR symtab/26046
9083 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9084 children for C++.
9085 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9086 DW_TAG_subprogram.
9087
9088 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9089
9090 * ada-lang.c (ada_language_data): Delete skip_trampoline
9091 initializer.
9092 * c-lang.c (c_language_data): Likewise.
9093 (cplus_language_data): Likewise.
9094 (cplus_language::skip_trampoline): New member function.
9095 (asm_language_data): Delete skip_trampoline initializer.
9096 (minimal_language_data): Likewise.
9097 * d-lang.c (d_language_data): Likewise.
9098 * f-lang.c (f_language_data): Likewise.
9099 * go-lang.c (go_language_data): Likewise.
9100 * language.c (unk_lang_trampoline): Delete function.
9101 (skip_language_trampoline): Update.
9102 (unknown_language_data): Delete skip_trampoline initializer.
9103 (auto_language_data): Likewise.
9104 * language.h (language_data): Delete skip_trampoline field.
9105 (language_defn::skip_trampoline): New function.
9106 * m2-lang.c (m2_language_data): Delete skip_trampoline
9107 initializer.
9108 * objc-lang.c (objc_skip_trampoline): Delete function, move
9109 implementation to objc_language::skip_trampoline.
9110 (objc_language_data): Delete skip_trampoline initializer.
9111 (objc_language::skip_trampoline): New member function with
9112 implementation from objc_skip_trampoline.
9113 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9114 initializer.
9115 * p-lang.c (pascal_language_data): Likewise.
9116 * rust-lang.c (rust_language_data): Likewise.
9117
9118 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9119
9120 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9121 (ada_language::demangle): New member function.
9122 * c-lang.c (c_language_data): Delete la_demangle initializer.
9123 (cplus_language_data): Delete la_demangle initializer.
9124 (cplus_language::demangle): New member function.
9125 (asm_language_data): Delete la_demangle initializer.
9126 (minimal_language_data): Delete la_demangle initializer.
9127 * d-lang.c (d_language_data): Delete la_demangle initializer.
9128 (d_language::demangle): New member function.
9129 * f-lang.c (f_language_data): Delete la_demangle initializer.
9130 (f_language::demangle): New member function.
9131 * go-lang.c (go_language_data): Delete la_demangle initializer.
9132 (go_language::demangle): New member function.
9133 * language.c (language_demangle): Update.
9134 (unk_lang_demangle): Delete.
9135 (unknown_language_data): Delete la_demangle initializer.
9136 (unknown_language::demangle): New member function.
9137 (auto_language_data): Delete la_demangle initializer.
9138 (auto_language::demangle): New member function.
9139 * language.h (language_data): Delete la_demangle field.
9140 (language_defn::demangle): New function.
9141 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9142 * objc-lang.c (objc_language_data): Delete la_demangle
9143 initializer.
9144 (objc_language::demangle): New member function.
9145 * opencl-lang.c (opencl_language_data): Delete la_demangle
9146 initializer.
9147 * p-lang.c (pascal_language_data): Likewise.
9148 * rust-lang.c (rust_language_data): Likewise.
9149 (rust_language::demangle): New member function.
9150
9151 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9152
9153 * ada-lang.c (ada_language_data): Delete la_print_type
9154 initializer.
9155 (ada_language::print_type): New member function.
9156 * c-lang.c (c_language_data): Delete la_print_type initializer.
9157 (c_language::print_type): New member function.
9158 (cplus_language_data): Delete la_print_type initializer.
9159 (cplus_language::print_type): New member function.
9160 (asm_language_data): Delete la_print_type initializer.
9161 (asm_language::print_type): New member function.
9162 (minimal_language_data): Delete la_print_type initializer.
9163 (minimal_language::print_type): New member function.
9164 * d-lang.c (d_language_data): Delete la_print_type initializer.
9165 (d_language::print_type): New member function.
9166 * f-lang.c (f_language_data): Delete la_print_type initializer.
9167 (f_language::print_type): New member function.
9168 * go-lang.c (go_language_data): Delete la_print_type initializer.
9169 (go_language::print_type): New member function.
9170 * language.c (unk_lang_print_type): Delete.
9171 (unknown_language_data): Delete la_print_type initializer.
9172 (unknown_language::print_type): New member function.
9173 (auto_language_data): Delete la_print_type initializer.
9174 (auto_language::print_type): New member function.
9175 * language.h (language_data): Delete la_print_type field.
9176 (language_defn::print_type): New function.
9177 (LA_PRINT_TYPE): Update.
9178 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9179 (m2_language::print_type): New member function.
9180 * objc-lang.c (objc_language_data): Delete la_print_type
9181 initializer.
9182 (objc_language::print_type): New member function.
9183 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9184 to opencl_language::print_type.
9185 (opencl_language_data): Delete la_print_type initializer.
9186 (opencl_language::print_type): New member function, implementation
9187 from opencl_print_type.
9188 * p-lang.c (pascal_language_data): Delete la_print_type
9189 initializer.
9190 (pascal_language::print_type): New member function.
9191 * rust-lang.c (rust_print_type): Delete, implementation moved to
9192 rust_language::print_type.
9193 (rust_language_data): Delete la_print_type initializer.
9194 (rust_language::print_type): New member function, implementation
9195 from rust_print_type.
9196
9197 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9198
9199 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9200 implementation moves to...
9201 (ada_language::sniff_from_mangled_name): ...here. Update return
9202 type.
9203 (ada_language_data): Delete la_sniff_from_mangled_name
9204 initializer.
9205 * c-lang.c (c_language_data): Likewise.
9206 (cplus_language_data): Likewise.
9207 (cplus_language::sniff_from_mangled_name): New member function,
9208 implementation taken from gdb_sniff_from_mangled_name.
9209 (asm_language_data): Delete la_sniff_from_mangled_name
9210 initializer.
9211 (minimal_language_data): Likewise.
9212 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9213 implementation moves to cplus_language::sniff_from_mangled_name.
9214 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9215 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9216 moves to...
9217 (d_language::sniff_from_mangled_name): ...here.
9218 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9219 * f-lang.c (f_language_data): Likewise.
9220 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9221 moves to...
9222 (go_language::sniff_from_mangled_name): ...here.
9223 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9224 * language.c (language_sniff_from_mangled_name): Delete.
9225 (unknown_language_data): Delete la_sniff_from_mangled_name
9226 initializer.
9227 (auto_language_data): Likewise.
9228 * language.h (language_data): Delete la_sniff_from_mangled_name
9229 field.
9230 (language_defn::sniff_from_mangled_name): New function.
9231 (language_sniff_from_mangled_name): Delete declaration.
9232 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9233 field.
9234 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9235 implementation moves to...
9236 (objc_language::sniff_from_mangled_name): ...here.
9237 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9238 * opencl-lang.c (opencl_language_data): Likewise.
9239 * p-lang.c (pascal_language_data): Likewise.
9240 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9241 implementation moves to...
9242 (rust_language::sniff_from_mangled_name): ...here.
9243 (rust_language_data): Delete la_sniff_from_mangled_name
9244 initializer.
9245 * symtab.c (symbol_find_demangled_name): Call
9246 sniff_from_mangled_name member function.
9247
9248 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9249
9250 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9251 initializer.
9252 * c-lang.c (c_language_data): Likewise.
9253 (cplus_language_data): Likewise.
9254 (cplus_language::search_name_hash): New member function.
9255 (asm_language_data): Delete la_search_name_hash initializer.
9256 (minimal_language_data): Likewise.
9257 * d-lang.c (d_language_data): Likewise.
9258 * dictionary.c (default_search_name_hash): Rename to...
9259 (language_defn::search_name_hash): ...this.
9260 * f-lang.c (f_language_data): Likewise.
9261 (f_language::search_name_hash): New member function.
9262 * go-lang.c (go_language_data): Delete la_search_name_hash
9263 initializer.
9264 * language.c (unknown_language_data): Likewise.
9265 (auto_language_data): Likewise.
9266 * language.h (struct language_data): Delete la_search_name_hash
9267 field.
9268 (language_defn::search_name_hash): Declare new member function.
9269 (default_search_name_hash): Delete declaration.
9270 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9271 initializer.
9272 * objc-lang.c (objc_language_data): Likewise.
9273 * opencl-lang.c (opencl_language_data): Likewise.
9274 * p-lang.c (pascal_language_data): Likewise.
9275 * rust-lang.c (rust_language_data): Likewise.
9276 * symtab.c (search_name_hash): Update call.
9277
9278 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9279
9280 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9281 initializer.
9282 * c-lang.c (class compile_instance): Declare.
9283 (c_language_data): Delete la_get_compile_instance initializer.
9284 (c_language::get_compile_instance): New member function.
9285 (cplus_language_data): Delete la_get_compile_instance initializer.
9286 (cplus_language::get_compile_instance): New member function.
9287 (asm_language_data): Delete la_get_compile_instance initializer.
9288 (minimal_language_data): Likewise.
9289 * c-lang.h (c_get_compile_context): Update comment.
9290 (cplus_get_compile_context): Update comment.
9291 * compile/compile.c (compile_to_object): Update calls, don't rely
9292 on function pointer being NULL.
9293 * d-lang.c (d_language_data): Delete la_get_compile_instance
9294 initializer.
9295 * f-lang.c (f_language_data): Likewise.
9296 * go-lang.c (go_language_data): Likewise.
9297 * language.c (unknown_language_data): Likewise.
9298 (auto_language_data): Likewise.
9299 * language.h (language_data): Delete la_get_compile_instance field.
9300 (language_defn::get_compile_instance): New member function.
9301 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9302 initializer.
9303 * objc-lang.c (objc_language_data): Likewise.
9304 * opencl-lang.c (opencl_language_data): Likewise.
9305 * p-lang.c (pascal_language_data): Likewise.
9306 * rust-lang.c (rust_language_data): Likewise.
9307
9308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9309
9310 * ada-lang.c (ada_add_all_symbols): Update comment.
9311 (ada_iterate_over_symbols): Delete, move implementation to...
9312 (ada_language::iterate_over_symbols): ...here, a new member
9313 function, rewrite to use range based for loop.
9314 (ada_language_data): Delete la_iterate_over_symbols initializer.
9315 * c-lang.c (c_language_data): Likewise.
9316 (cplus_language_data): Likewise.
9317 (asm_language_data): Likewise.
9318 (minimal_language_data): Likewise.
9319 * d-lang.c (d_language_data): Likewise.
9320 * f-lang.c (f_language_data): Likewise.
9321 * go-lang.c (go_language_data): Likewise.
9322 * language.c (unknown_language_data): Likewise.
9323 (auto_language_data): Likewise.
9324 * language.h (language_data): Delete la_iterate_over_symbols field.
9325 (language_defn::iterate_over_symbols): New member function.
9326 (LA_ITERATE_OVER_SYMBOLS): Update.
9327 * linespec.c (iterate_over_all_matching_symtabs): Update.
9328 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9329 initializer.
9330 * objc-lang.c (objc_language_data): Likewise.
9331 * opencl-lang.c (opencl_language_data): Likewise.
9332 * p-lang.c (pascal_language_data): Likewise.
9333 * rust-lang.c (rust_language_data): Likewise.
9334
9335 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9336
9337 * ada-lang.c (ada_language_data): Delete
9338 la_lookup_transparent_type initializer.
9339 * c-lang.c (c_language_data): Likewise.
9340 (cplus_language_data): Likewise.
9341 (cplus_language::lookup_transparent_type): New member function.
9342 (asm_language_data): Delete la_lookup_transparent_type
9343 initializer.
9344 (minimal_language_data): Likewise.
9345 * d-lang.c (d_language_data): Likewise.
9346 * f-lang.c (f_language_data): Likewise.
9347 * go-lang.c (go_language_data): Likewise.
9348 * language.c (unknown_language_data): Likewise.
9349 (auto_language_data): Likewise.
9350 * language.h (struct language_data): Delete
9351 la_lookup_transparent_type field.
9352 (language_defn::lookup_transparent_type): New member function.
9353 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9354 initializer.
9355 * objc-lang.c (objc_language_data): Likewise.
9356 * opencl-lang.c (opencl_language_data): Likewise.
9357 * p-lang.c (pascal_language_data): Likewise.
9358 * rust-lang.c (rust_language_data): Likewise.
9359 * symtab.c (symbol_matches_domain): Update call.
9360
9361 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9362
9363 * ada-lang.c (ada_language_arch_info): Delete function, move
9364 implementation to...
9365 (ada_language::language_arch_info): ...here, a new member
9366 function.
9367 (ada_language_data): Delete la_language_arch_info.
9368 * c-lang.c (c_language_data): Likewise.
9369 (c_language::language_arch_info): New member function.
9370 (cplus_language_arch_info): Delete function, move
9371 implementation to...
9372 (cplus_language::language_arch_info): ...here, a new member
9373 function.
9374 (cplus_language_data): Delete la_language_arch_info.
9375 (asm_language_data): Likewise.
9376 (asm_language::language_arch_info): New member function.
9377 (minimal_language_data): Delete la_language_arch_info.
9378 (minimal_language::language_arch_info): New member function.
9379 * d-lang.c (d_language_arch_info): Delete function, move
9380 implementation to...
9381 (d_language::language_arch_info): ...here, a new member
9382 function.
9383 (d_language_data): Delete la_language_arch_info.
9384 * f-lang.c (f_language_arch_info): Delete function, move
9385 implementation to...
9386 (f_language::language_arch_info): ...here, a new member
9387 function.
9388 (f_language_data): Delete la_language_arch_info.
9389 * go-lang.c (go_language_arch_info): Delete function, move
9390 implementation to...
9391 (go_language::language_arch_info): ...here, a new member
9392 function.
9393 (go_language_data): Delete la_language_arch_info.
9394 * language.c (unknown_language_data): Likewise.
9395 (unknown_language::language_arch_info): New member function.
9396 (auto_language_data): Delete la_language_arch_info.
9397 (auto_language::language_arch_info): New member function.
9398 (language_gdbarch_post_init): Update call to
9399 la_language_arch_info.
9400 * language.h (language_data): Delete la_language_arch_info
9401 function pointer.
9402 (language_defn::language_arch_info): New function.
9403 * m2-lang.c (m2_language_arch_info): Delete function, move
9404 implementation to...
9405 (m2_language::language_arch_info): ...here, a new member
9406 function.
9407 (m2_language_data): Delete la_language_arch_info.
9408 * objc-lang.c (objc_language_arch_info): Delete function, move
9409 implementation to...
9410 (objc_language::language_arch_info): ...here, a new member
9411 function.
9412 (objc_language_data): Delete la_language_arch_info.
9413 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9414 implementation to...
9415 (opencl_language::language_arch_info): ...here, a new member
9416 function.
9417 (opencl_language_data): Delete la_language_arch_info.
9418 * p-lang.c (pascal_language_arch_info): Delete function, move
9419 implementation to...
9420 (pascal_language::language_arch_info): ...here, a new member
9421 function.
9422 (pascal_language_data): Delete la_language_arch_info.
9423 * rust-lang.c (rust_language_arch_info): Delete function, move
9424 implementation to...
9425 (rust_language::language_arch_info): ...here, a new member
9426 function.
9427 (rust_language_data): Delete la_language_arch_info.
9428
9429 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9430
9431 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9432 initializer.
9433 * c-lang.c (c_language_data): Likewise.
9434 (cplus_language_data): Likewise.
9435 (cplus_language::pass_by_reference_info): New method.
9436 (asm_language_data): Delete la_pass_by_reference initializer.
9437 (minimal_language_data): Likewise.
9438 * cp-abi.c (cp_pass_by_reference): Remove use of
9439 default_pass_by_reference.
9440 * d-lang.c (d_language_data): Likewise.
9441 * f-lang.c (f_language_data): Likewise.
9442 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9443 default_pass_by_reference.
9444 * go-lang.c (go_language_data): Likewise.
9445 * language.c (language_pass_by_reference): Update.
9446 (default_pass_by_reference): Delete.
9447 (unknown_language_data): Delete la_pass_by_reference
9448 initializer.
9449 (auto_language_data): Likewise.
9450 * language.h (struct language_data): Delete la_pass_by_reference
9451 field.
9452 (language_defn::pass_by_reference_info): New member function.
9453 (default_pass_by_reference): Delete declaration.
9454 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9455 initializer.
9456 * objc-lang.c (objc_language_data): Likewise.
9457 * opencl-lang.c (opencl_language_data): Likewise.
9458 * p-lang.c (pascal_language_data): Likewise.
9459 * rust-lang.c (rust_language_data): Likewise.
9460
9461 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9462
9463 * ada-lang.c (ada_read_var_value): Delete function, move
9464 implementation to...
9465 (ada_language::read_var_value): ...here.
9466 (ada_language_data): Delete la_read_var_value initializer.
9467 * c-lang.c (c_language_data): Likewise.
9468 (cplus_language_data): Likewise.
9469 (minimal_language_data): Likewise.
9470 * d-lang.c (d_language_data): Likewise.
9471 * f-lang.c (f_language_data): Likewise.
9472 * findvar.c (default_read_var_value): Rename to...
9473 (language_defn::read_var_value): ...this.
9474 * findvar.c (read_var_value): Update header comment, and change to
9475 call member function instead of function pointer.
9476 * go-lang.c (go_language_data): Likewise.
9477 * language.c (unknown_language_data): Delete la_read_var_value
9478 initializer.
9479 (auto_language_data): Likewise.
9480 * language.h (struct language_data): Delete la_read_var_value
9481 field.
9482 (language_defn::read_var_value): New member function.
9483 (default_read_var_value): Delete declaration.
9484 * m2-lang.c (m2_language_data): Delete la_read_var_value
9485 initializer.
9486 * objc-lang.c (objc_language_data): Likewise.
9487 * opencl-lang.c (opencl_language_data): Likewise.
9488 * p-lang.c (pascal_language_data): Likewise.
9489 * rust-lang.c (rust_language_data): Likewise.
9490 * value.h (default_read_var_value): Delete declaration.
9491
9492 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9493
9494 * ada-lang.c (ada_print_array_index): Delete function, move
9495 implementation to...
9496 (ada_language::print_array_index): ...here.
9497 (ada_language_data): Delete la_print_array_index initializer.
9498 * c-lang.c (c_language_data): Likewise.
9499 (cplus_language_data): Likewise.
9500 (minimal_language_data): Likewise.
9501 * d-lang.c (d_language_data): Likewise.
9502 * f-lang.c (f_language_data): Likewise.
9503 * go-lang.c (go_language_data): Likewise.
9504 * language.c (default_print_array_index): Delete function, move
9505 implementation to...
9506 (language_defn::print_array_index): ...here.
9507 (unknown_language_data): Delete la_print_array_index initializer.
9508 (auto_language_data): Likewise.
9509 * language.h (struct language_data): Delete la_print_array_index
9510 field.
9511 (language_defn::print_array_index): New member function.
9512 (LA_PRINT_ARRAY_INDEX): Update.
9513 (default_print_array_index): Delete declaration.
9514 * m2-lang.c (m2_language_data): Delete la_print_array_index
9515 initializer.
9516 * objc-lang.c (objc_language_data): Likewise.
9517 * opencl-lang.c (opencl_language_data): Likewise.
9518 * p-lang.c (pascal_language_data): Likewise.
9519 * rust-lang.c (rust_language_data): Likewise.
9520
9521 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9522
9523 * gdb/ada-lang.c (ada_language_defn): Convert to...
9524 (ada_language_data): ...this.
9525 (class ada_language): New class.
9526 (ada_language_defn): New static global.
9527 * gdb/c-lang.c (c_language_defn): Convert to...
9528 (c_language_data): ...this.
9529 (class c_language): New class.
9530 (c_language_defn): New static global.
9531 (cplus_language_defn): Convert to...
9532 (cplus_language_data): ...this.
9533 (class cplus_language): New class.
9534 (cplus_language_defn): New static global.
9535 (asm_language_defn): Convert to...
9536 (asm_language_data): ...this.
9537 (class asm_language): New class.
9538 (asm_language_defn): New static global.
9539 (minimal_language_defn): Convert to...
9540 (minimal_language_data): ...this.
9541 (class minimal_language): New class.
9542 (minimal_language_defn): New static global.
9543 * gdb/d-lang.c (d_language_defn): Convert to...
9544 (d_language_data): ...this.
9545 (class d_language): New class.
9546 (d_language_defn): New static global.
9547 * gdb/f-lang.c (f_language_defn): Convert to...
9548 (f_language_data): ...this.
9549 (class f_language): New class.
9550 (f_language_defn): New static global.
9551 * gdb/go-lang.c (go_language_defn): Convert to...
9552 (go_language_data): ...this.
9553 (class go_language): New class.
9554 (go_language_defn): New static global.
9555 * gdb/language.c (unknown_language_defn): Remove declaration.
9556 (current_language): Initialize to nullptr, real initialization is
9557 moved to _initialize_language.
9558 (languages): Delete global.
9559 (language_defn::languages): Define.
9560 (set_language_command): Use language_defn::languages.
9561 (set_language): Likewise.
9562 (range_error): Likewise.
9563 (language_enum): Likewise.
9564 (language_def): Likewise.
9565 (add_set_language_command): Use language_def::languages for the
9566 language list, and language_def to lookup language pointers.
9567 (skip_language_trampoline): Use language_defn::languages.
9568 (unknown_language_defn): Convert to...
9569 (unknown_language_data): ...this.
9570 (class unknown_language): New class.
9571 (unknown_language_defn): New static global.
9572 (auto_language_defn): Convert to...
9573 (auto_language_data): ...this.
9574 (class auto_language): New class.
9575 (auto_language_defn): New static global.
9576 (language_gdbarch_post_init): Use language_defn::languages.
9577 (_initialize_language): Initialize current_language.
9578 * gdb/language.h (struct language_defn): Rename to...
9579 (struct language_data): ...this.
9580 (struct language_defn): New.
9581 (auto_language_defn): Delete.
9582 (unknown_language_defn): Delete.
9583 (minimal_language_defn): Delete.
9584 (ada_language_defn): Delete.
9585 (asm_language_defn): Delete.
9586 (c_language_defn): Delete.
9587 (cplus_language_defn): Delete.
9588 (d_language_defn): Delete.
9589 (f_language_defn): Delete.
9590 (go_language_defn): Delete.
9591 (m2_language_defn): Delete.
9592 (objc_language_defn): Delete.
9593 (opencl_language_defn): Delete.
9594 (pascal_language_defn): Delete.
9595 (rust_language_defn): Delete.
9596 * gdb/m2-lang.c (m2_language_defn): Convert to...
9597 (m2_language_data): ...this.
9598 (class m2_language): New class.
9599 (m2_language_defn): New static global.
9600 * gdb/objc-lang.c (objc_language_defn): Convert to...
9601 (objc_language_data): ...this.
9602 (class objc_language): New class.
9603 (objc_language_defn): New static global.
9604 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9605 (opencl_language_data): ...this.
9606 (class opencl_language): New class.
9607 (opencl_language_defn): New static global.
9608 * gdb/p-lang.c (pascal_language_defn): Convert to...
9609 (pascal_language_data): ...this.
9610 (class pascal_language): New class.
9611 (pascal_language_defn): New static global.
9612 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9613 language pointer, update comment format.
9614 * gdb/rust-lang.c (rust_language_defn): Convert to...
9615 (rust_language_data): ...this.
9616 (class rust_language): New class.
9617 (rust_language_defn): New static global.
9618
9619 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9620
9621 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9622 member variable.
9623 <m_stmt_at_address>: New member variable.
9624 (lnp_state_machine::record_line): Don't record some lines, update
9625 tracking of is_stmt at the same address.
9626 (lnp_state_machine::lnp_state_machine): Initialise new member
9627 variables.
9628
9629 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9630
9631 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9632 "-include gnu-nat-mig.h".
9633 * gnu-nat-mig.h: New file.
9634 * gnu-nat.c: Include "gnu-nat-mig.h".
9635 (exc_server, msg_reply_server, notify_server,
9636 process_reply_server): Remove declarations.
9637
9638 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9639
9640 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9641 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9642 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9643 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9644 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9645 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9646 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9647 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9648 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9649 to gnu_nat_target class.
9650 * gnu-nat.c: Likewise.
9651 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9652 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9653 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9654 object.
9655 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9656 instead of `gnu_target'.
9657
9658 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9659
9660 * i386-gnu-tdep.c: Include "gdbcore.h"
9661 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9662 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9663 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9664 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9665 i386_gnu_sigcontext_addr): New functions
9666 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9667 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9668 tdep.
9669
9670 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9671
9672 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9673 before fork_inferior call. Avoid calling it if target_is_pushed returns
9674 true.
9675
9676 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9677
9678 * gnu-nat.h (gnu_target): New variable declaration.
9679 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9680 gnu_target.
9681 * gnu-nat.c (gnu_target): New variable.
9682 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9683 add_thread_silent, and add_thread calls.
9684 (gnu_nat_target::create_inferior): Pass gnu_target to
9685 add_thread_silent, thread_change_ptid call.
9686 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9687 call.
9688
9689 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9690
9691 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9692 (gnu_nat_target::find_memory_regions): Remove unused
9693 `old_address' variable.
9694
9695 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9696
9697 * gnu-nat.c: Include "gdbarch.h".
9698
9699 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9700
9701 * reply_mig_hack.awk (Error return): Cast function through
9702 void *, to bypass compiler function call check.
9703
9704 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9705
9706 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9707 $(srcdir)/reply_mig_hack.awk.
9708
9709 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9710
9711 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9712
9713 2020-05-30 Jonny Grant <jg@jguk.org>
9714
9715 * configure.ac (ACX_BUGURL): change bug URL to https.
9716
9717 2020-05-30 Pedro Alves <palves@redhat.com>
9718
9719 * cp-support.c (replace_typedefs_template): New.
9720 (replace_typedefs_qualified_name): Handle
9721 DEMANGLE_COMPONENT_TEMPLATE.
9722
9723 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9724
9725 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9726 dwarf2/index-cache.h, dwarf2/index-write.c,
9727 dwarf2/index-write.h, dwarf2/line-header.c,
9728 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9729 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9730 variables and fields from `dwarf2_per_objfile` to just
9731 `per_objfile` throughout.
9732
9733 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9734
9735 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9736 <push_dwarf_reg_entry_value>: Add comment.
9737
9738 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9739 Keith Seitz <keiths@redhat.com>
9740
9741 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9742 instead of PyEval_ReleaseLock.
9743 (class gdbpy_gil): Move to earlier in file.
9744 (finalize_python): Set gdb_python_initialized.
9745 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9746 when not initialized.
9747
9748 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9749
9750 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9751 <push_dwarf_reg_entry_value>: Remove assert. Override
9752 per_objfile with caller_per_objfile.
9753
9754 2020-05-28 Tom de Vries <tdevries@suse.de>
9755
9756 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9757 PR gold/15646 workaround to symbol kind "type".
9758
9759 2020-05-27 Tom Tromey <tromey@adacore.com>
9760
9761 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9762
9763 2020-05-27 Tom Tromey <tromey@adacore.com>
9764
9765 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9766 Use htab_find_with_hash.
9767 <add_abbrev>: Remove "abbrev_number" parameter.
9768 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9769 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9770 (hash_abbrev): Add comment.
9771 (abbrev_table::lookup_abbrev): Move to header file.
9772 (abbrev_table::read): Update.
9773
9774 2020-05-27 Tom Tromey <tromey@adacore.com>
9775
9776 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9777 method.
9778 <canonical_name>: New member.
9779 <raw_name>: Rename from "name".
9780 (partial_die_info): Initialize canonical_name.
9781 (scan_partial_symbols): Check raw_name.
9782 (partial_die_parent_scope, partial_die_full_name)
9783 (add_partial_symbol, add_partial_subprogram)
9784 (add_partial_enumeration, load_partial_dies): Use "name" method.
9785 (partial_die_info::name): New method.
9786 (partial_die_info::read, guess_partial_die_structure_name)
9787 (partial_die_info::fixup): Update.
9788
9789 2020-05-27 Tom Tromey <tromey@adacore.com>
9790
9791 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9792 <get_ref_die_offset>: Inline.
9793 <get_ref_die_offset_complaint>: New method.
9794 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9795 (attribute::get_ref_die_offset_complaint): Rename from
9796 get_ref_die_offset. Just issue complaint.
9797
9798 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9799
9800 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9801
9802 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9803
9804 * exec.c (exec_file_attach): Use errno value of first openp failure.
9805
9806 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9807
9808 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9809 Don't close thread handle.
9810
9811 2020-05-27 Tom Tromey <tom@tromey.com>
9812 Simon Marchi <simon.marchi@efficios.com>
9813
9814 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9815 shared_ptr.
9816 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9817 member.
9818 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9819 dwarf2_per_bfd_objfile_data_key>: New globals.
9820 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9821 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9822 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9823 shared.
9824 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9825 short-circuit when sharing.
9826 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9827 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9828
9829 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9830
9831 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9832 to...
9833 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9834 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9835
9836 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9837
9838 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9839 build_name_components, find_name_components_bounds>:
9840 Add per_objfile parameter.
9841 (struct mapped_index) <symbol_name_at>: Likewise.
9842 (struct mapped_debug_names): Remove constructor.
9843 <dwarf2_per_objfile>: Remove field.
9844 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9845 (mapped_index_base::find_name_components_bounds,
9846 mapped_index_base::build_name_components,
9847 dw2_expand_symtabs_matching_symbol): Likewise.
9848 (class mock_mapped_index) <symbol_name_at>: Likewise.
9849 (check_match): Likewise.
9850 (check_find_bounds_finds): Likewise.
9851 (test_mapped_index_find_name_component_bounds): Update.
9852 (CHECK_MATCH): Update.
9853 (dw2_expand_symtabs_matching): Update.
9854 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9855 per_objfile parameter.
9856 <find_vec_in_debug_names>: Likewise.
9857 <m_per_objfile>: New field.
9858 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9859 parameter.
9860 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9861 (dw2_debug_names_iterator::next): Update.
9862 (dw2_debug_names_lookup_symbol): Update.
9863 (dw2_debug_names_expand_symtabs_for_function): Update.
9864 (dw2_debug_names_map_matching_symbols): Update.
9865 (dw2_debug_names_expand_symtabs_matching): Update.
9866 (dwarf2_read_debug_names): Update.
9867
9868 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9869
9870 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9871 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9872 move to dwarf2_per_objfile.
9873 <read_in_chain>: Remove.
9874 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9875 remove_all_cus, age_comp_units>: New methods.
9876 <m_dwarf2_cus>: New member.
9877 (struct dwarf2_per_cu_data) <cu>: Remove.
9878 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9879 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9880 moved to methods of dwarf2_per_objfile.
9881 (dwarf2_clear_marks): Remove.
9882 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9883 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9884 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9885 (dwarf2_per_objfile::remove_all_cus): New.
9886 (class free_cached_comp_units) <~free_cached_comp_units>:
9887 Update.
9888 (load_cu): Update.
9889 (dw2_do_instantiate_symtab): Adjust.
9890 (fill_in_sig_entry_from_dwo_entry): Adjust.
9891 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9892 (cutu_reader::cutu_reader): Likewise.
9893 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9894 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9895 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9896 and dwarf2_per_objfile::age_comp_units.
9897 (load_partial_comp_unit): Update.
9898 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9899 (process_queue): Likewise.
9900 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9901 backlink.
9902 (dwarf2_read_addr_index): Likewise.
9903 (follow_die_offset): Likewise.
9904 (dwarf2_fetch_die_loc_sect_off): Likewise.
9905 (dwarf2_fetch_constant_bytes): Likewise.
9906 (dwarf2_fetch_die_type_sect_off): Likewise.
9907 (follow_die_sig_1): Likewise.
9908 (load_full_type_unit): Likewise.
9909 (read_signatured_type): Likewise.
9910 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9911 (dwarf2_cu::~dwarf2_cu): Remove.
9912 (dwarf2_per_objfile::get_cu): New.
9913 (dwarf2_per_objfile::set_cu): New.
9914 (age_cached_comp_units): Rename to...
9915 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9916 to std::unordered_map.
9917 (free_one_cached_comp_unit): Rename to...
9918 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9919 to std::unordered_map.
9920 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9921 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9922 a dwarf2_per_objfile in data.
9923 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9924 (dwarf2_clear_marks): Remove.
9925
9926 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9927
9928 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9929 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9930 (init_tu_and_read_dwo_dies): Likewise.
9931 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9932 (cutu_reader::cutu_reader): Likewise.
9933 (load_partial_comp_unit): Likewise.
9934 (process_psymtab_comp_unit): Update.
9935 (build_type_psymtabs_1): Update.
9936 (process_skeletonless_type_unit): Update.
9937 (load_full_comp_unit): Update.
9938 (find_partial_die): Update.
9939 (dwarf2_read_addr_index): Update.
9940 (read_signatured_type): Update.
9941
9942 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9943
9944 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9945 m_header_read_in>: New fields.
9946 <get_header>: New method.
9947 * dwarf2/read.c (per_cu_header_read_in): Remove.
9948 (dwarf2_per_cu_data::get_header): New.
9949 (dwarf2_per_cu_data::addr_size): Update.
9950 (dwarf2_per_cu_data::offset_size): Update.
9951 (dwarf2_per_cu_data::ref_addr_size): Update.
9952
9953 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9954
9955 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9956 (dw2_do_instantiate_symtab): Update.
9957 (queue_and_load_all_dwo_tus): Change parameter from
9958 dwarf2_per_cu_data to dwarf2_cu.
9959 (dwarf2_fetch_die_loc_sect_off): Update.
9960 (dwarf2_fetch_constant_bytes): Update.
9961 (dwarf2_fetch_die_type_sect_off): Update.
9962
9963 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9964
9965 * dwarf2/read.c (process_full_comp_unit,
9966 process_full_type_unit): Remove per_cu, per_objfile paramters.
9967 Add dwarf2_cu parameter.
9968 (process_queue): Update.
9969
9970 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9971
9972 * dwarf2/read.c (create_cu_from_index_list): Replace
9973 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9974 (create_cus_from_index_list): Likewise.
9975 (create_cus_from_index): Likewise.
9976 (create_signatured_type_table_from_index): Likewise.
9977 (create_cus_from_debug_names_list): Likewise.
9978 (create_cus_from_debug_names): Likewise.
9979 (dwarf2_read_gdb_index): Update.
9980 (dwarf2_read_debug_names): Update.
9981
9982 2020-05-27 Tom Tromey <tom@tromey.com>
9983 Simon Marchi <simon.marchi@efficios.com>
9984
9985 * dwarf2/read.h (struct dwarf2_per_objfile)
9986 <get_type_for_signatured_type, set_type_for_signatured_type>:
9987 New methods.
9988 <m_type_map>: New member.
9989 (struct signatured_type) <type>: Remove.
9990 * dwarf2/read.c
9991 (dwarf2_per_objfile::get_type_for_signatured_type,
9992 dwarf2_per_objfile::set_type_for_signatured_type): New.
9993 (get_signatured_type): Use new methods.
9994
9995 2020-05-27 Tom Tromey <tom@tromey.com>
9996 Simon Marchi <simon.marchi@efficios.com>
9997
9998 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9999 (struct dwarf2_per_objfile) <type_units>: New member.
10000 <get_type_unit_group_unshareable>: New method.
10001 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10002 num_symtabs, symtabs>: Remove; move to
10003 type_unit_group_unshareable.
10004 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10005 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10006 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10007
10008 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10009
10010 * dwarf2/read.h (struct dwarf2_per_cu_data):
10011 <dwarf2_per_objfile>: Remove.
10012 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10013 dwarf2_per_objfile.
10014 (create_signatured_type_table_from_index): Likewise.
10015 (create_signatured_type_table_from_debug_names): Likewise.
10016 (create_debug_type_hash_table): Likewise.
10017 (fill_in_sig_entry_from_dwo_entry): Likewise.
10018 (create_type_unit_group): Likewise.
10019 (read_comp_units_from_section): Likewise.
10020 (create_cus_hash_table): Likewise.
10021
10022 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10025 dwarf2_per_cu_data::dwarf2_per_objfile.
10026 (compute_compunit_symtab_includes): Likewise.
10027 (dwarf2_cu::start_symtab): Likewise.
10028
10029 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10030
10031 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10032 parameter.
10033 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10034 (read_namespace_alias): Update.
10035 (lookup_die_type): Update.
10036 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10037 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10038 Update.
10039 (disassemble_dwarf_expression): Update.
10040
10041 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10042
10043 * dwarf2/read.h (struct dwarf2_queue_item): Add
10044 dwarf2_per_objfile parameter, assign new parameter.
10045 <per_objfile>: New field.
10046 * dwarf2/read.c (free_one_cached_comp_unit): Add
10047 dwarf2_per_objfile parameter.
10048 (queue_comp_unit): Likewise.
10049 (dw2_do_instantiate_symtab): Update.
10050 (process_psymtab_comp_unit): Update.
10051 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10052 (process_imported_unit_die): Update.
10053 (queue_and_load_dwo_tu): Update.
10054 (follow_die_offset): Update.
10055 (follow_die_sig_1): Update.
10056
10057 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10058
10059 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10060 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10061 (read_call_site_scope): Assign per_objfile.
10062 (dwarf2_per_cu_data::objfile): Remove.
10063 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10064 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10065 dwarf2_per_objfile parameter.
10066 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10067 dwarf2_per_objfile parameter.
10068 (dwarf_expr_reg_to_entry_parameter): Add output
10069 dwarf2_per_objfile parameter.
10070 (locexpr_get_frame_base): Update.
10071 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10072 <push_dwarf_reg_entry_value>: Update.
10073 <call_site_to_target_addr>: Update.
10074 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10075 parameter.
10076 (value_of_dwarf_reg_entry): Update.
10077 (rw_pieced_value): Update.
10078 (indirect_synthetic_pointer): Update.
10079 (dwarf2_evaluate_property): Update.
10080 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10081 parameter.
10082 (locexpr_read_variable): Update.
10083 (locexpr_get_symbol_read_needs): Update.
10084 (loclist_read_variable): Update.
10085
10086 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10087
10088 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10089 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10090 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10091 parameter.
10092 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10093 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10094 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10095 parameter.
10096 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10097 sect_variable_value): Add dwarf2_per_objfile parameter.
10098 (class dwarf_evaluate_loc_desc) <dwarf_call,
10099 dwarf_variable_value>: Update.
10100 (fetch_const_value_from_synthetic_pointer): Add
10101 dwarf2_per_objfile parameter.
10102 (fetch_const_value_from_synthetic_pointer): Update.
10103 (coerced_pieced_ref): Update.
10104 (class symbol_needs_eval_context) <dwarf_call,
10105 dwarf_variable_value>: Update.
10106 (dwarf2_compile_expr_to_ax): Update.
10107
10108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10109
10110 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10111 parameter.
10112 (dwarf2_evaluate_loc_desc_full): Update.
10113
10114 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10115
10116 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10117 parameter.
10118 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10119 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10120 dwarf2_per_objfile parameter.
10121 (decode_debug_loc_dwo_addresses): Likewise.
10122 (dwarf2_find_location_expression): Update.
10123 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10124 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10125 parameter.
10126 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10127 parameter.
10128 (locexpr_describe_location_1): Likewise.
10129 (locexpr_describe_location): Update.
10130
10131 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10134 Remove.
10135 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10136 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10137 (dwarf2_compile_property_to_c): Update.
10138 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10139 use text offset from objfile.
10140 (locexpr_tracepoint_var_ref): Update.
10141 (locexpr_generate_c_location): Update.
10142 (loclist_describe_location): Update.
10143 (loclist_tracepoint_var_ref): Update.
10144 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10145 dwarf2_per_objfile parameter.
10146 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10147 use text offset from objfile.
10148 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10149
10150 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10151
10152 * dwarf2/expr.h (struct dwarf_expr_context)
10153 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10154 <offset>: Remove.
10155 <per_objfile>: New member.
10156 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10157 dwarf2_per_objfile parameter. Don't set offset, set
10158 per_objfile.
10159 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10160 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10161 a dwarf2_per_objfile object instead of an offset.
10162 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10163 constructor.
10164 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10165 to dwarf2_expr_executor constructor. Don't set offset.
10166 (dwarf2_fetch_cfa_info): Update.
10167 (struct dwarf2_frame_cache) <text_offset>: Remove.
10168 <per_objfile>: New field.
10169 (dwarf2_frame_cache): Update.
10170 (dwarf2_frame_prev_register): Update.
10171 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10172 <dwarf_evaluate_loc_desc>: Add constructor.
10173 (dwarf2_evaluate_loc_desc_full): Update.
10174 (dwarf2_locexpr_baton_eval): Update.
10175 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10176 Add constructor.
10177 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10178
10179 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10180
10181 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10182 addr_sized_int_type>: Move to dwarf2_cu.
10183 <int_type>: Move to dwarf2_per_objfile.
10184 (struct dwarf2_per_objfile) <int_type>: Move here.
10185 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10186 addr_sized_int_type>: Move here.
10187 (read_func_scope): Update.
10188 (read_array_type): Update.
10189 (read_tag_string_type): Update.
10190 (attr_to_dynamic_prop): Update.
10191 (dwarf2_per_cu_data::int_type): Rename to...
10192 (dwarf2_per_objfile::int_type): ... this.
10193 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10194 (dwarf2_cu::addr_sized_int_type): ... this.
10195 (read_subrange_type): Update.
10196 (dwarf2_per_cu_data::addr_type): Rename to...
10197 (dwarf2_cu::addr_type): ... this.
10198 (set_die_type): Update.
10199
10200 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10203 data through per_cu->cu.
10204
10205 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10206
10207 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10208 dwarf2_per_cu_data parameter fo dwarf2_cu.
10209 (lookup_dwo_type_unit): Likewise.
10210 (read_cutu_die_from_dwo): Likewise.
10211 (lookup_dwo_unit): Likewise.
10212 (open_and_init_dwo_file): Likewise.
10213 (lookup_dwo_cutu): Likewise.
10214 (lookup_dwo_comp_unit): Likewise.
10215 (lookup_dwo_type_unit): Likewise.
10216 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10217 (cutu_reader::cutu_reader): Update.
10218
10219 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10220
10221 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10222 parameter.
10223 (process_full_type_unit): Likewise.
10224 (process_queue): Update.
10225
10226 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10227
10228 * dwarf2/read.c (recursively_compute_inclusions): Add
10229 dwarf2_per_objfile parameter.
10230 (compute_compunit_symtab_includes): Likewise.
10231 (process_cu_includes): Update.
10232
10233 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10234
10235 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10236 parameter.
10237 (create_type_unit_group): Update.
10238 (process_psymtab_comp_unit_reader): Update.
10239 (build_type_psymtabs_reader): Update.
10240
10241 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10242
10243 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10244 object through m_this_cu->cu.
10245
10246 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10247
10248 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10249 the info parameter.
10250 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10251
10252 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10253
10254 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10255 per_objfile parameter.
10256 (load_full_type_unit): Add per_objfile parameter.
10257 (read_signatured_type): Likewise.
10258 (load_full_comp_unit): Likewise.
10259 (load_cu): Likewise.
10260 (dw2_do_instantiate_symtab): Likewise.
10261 (dw2_get_file_names): Likewise.
10262 (dw2_map_symtabs_matching_filename): Update.
10263 (dw_expand_symtabs_matching_file_matcher): Update.
10264 (dw2_map_symbol_filenames): Update.
10265 (process_psymtab_comp_unit): Add per_objfile parameter.
10266 (build_type_psymtabs_1): Update.
10267 (process_skeletonless_type_unit): Update.
10268 (dwarf2_build_psymtabs_hard): Update.
10269 (load_partial_comp_unit): Add per_objfile parameter.
10270 (scan_partial_symbols): Update.
10271 (load_full_comp_unit): Add per_objfile parameter.
10272 (process_imported_unit_die): Update.
10273 (create_cus_hash_table): Update.
10274 (find_partial_die): Update.
10275 (dwarf2_read_addr_index): Update.
10276 (follow_die_offset): Update.
10277 (dwarf2_fetch_die_loc_sect_off): Update.
10278 (dwarf2_fetch_constant_bytes): Update.
10279 (dwarf2_fetch_die_type_sect_off): Update.
10280 (follow_die_sig_1): Update.
10281 (load_full_type_unit): Add per_objfile parameter.
10282 (read_signatured_type): Likewise.
10283
10284 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10285
10286 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10287 of objfile_name.
10288
10289 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10290
10291 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10292 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10293 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10294 field.
10295 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10296 (create_cus_from_index): Update.
10297 (dwarf2_read_gdb_index): Update.
10298 (create_cus_from_debug_names): Update.
10299 (dwarf2_read_debug_names): Update.
10300 (get_abbrev_section_for_cu): Update.
10301 (create_all_comp_units): Update.
10302 (read_attribute_value): Update.
10303 (get_debug_line_section): Update.
10304 * dwarf2/index-cache.c (index_cache::store): Update.
10305 * dwarf2/index-write.c (save_gdb_index_command): Update.
10306 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10307
10308 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10309
10310 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10311 member.
10312 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10313 dwarf2_per_cu_data::per_bfd.
10314 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10315 (create_type_unit_group): Likewise.
10316 (queue_comp_unit): Remove reference to
10317 per_cu->dwarf2_per_objfile.
10318 (maybe_queue_comp_unit): Likewise.
10319 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10320 (create_cus_hash_table): Assign new field.
10321
10322 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10323
10324 * dwarf2/read.c: Replace
10325 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10326 dwarf2_cu->per_objfile throughout.
10327
10328 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10329
10330 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10331 parameter, don't use per_cu->dwarf2_per_objfile.
10332 (dw2_instantiate_symtab): Likewise.
10333 (dw2_find_last_source_symtab): Update.
10334 (dw2_map_expand_apply): Update.
10335 (dw2_lookup_symbol): Update.
10336 (dw2_expand_symtabs_for_function): Update.
10337 (dw2_expand_all_symtabs): Update.
10338 (dw2_expand_symtabs_with_fullname): Update.
10339 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10340 don't use per_cu->dwarf2_per_objfile.
10341 (dw2_expand_marked_cus): Update.
10342 (dw2_find_pc_sect_compunit_symtab): Update.
10343 (dw2_debug_names_lookup_symbol): Update.
10344 (dw2_debug_names_expand_symtabs_for_function): Update.
10345 (dw2_debug_names_map_matching_symbols): Update.
10346 (dwarf2_psymtab::expand_psymtab): Update.
10347
10348 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10349
10350 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10351 <per_objfile>: New member.
10352 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10353 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10354 call to dwarf2_cu.
10355 (cutu_reader::cutu_reader): Update.
10356 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10357
10358 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10361 struct dwarf2_per_objfile.
10362 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10363 dwarf2_per_bfd.
10364 * dwarf2/read.c (set_die_type): Update.
10365 (get_die_type_at_offset): Update.
10366
10367 2020-05-27 Tom Tromey <tom@tromey.com>
10368 Simon Marchi <simon.marchi@efficios.com>
10369
10370 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10371 method.
10372 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10373 get_symtab, set_symtab>: New methods.
10374 <m_symtabs>: New field.
10375 (struct dwarf2_psymtab): Derive from partial_symtab.
10376 <readin_p, get_compunit_symtab>: Declare methods.
10377 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10378 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10379 New methods.
10380 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10381 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10382 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10383 (dw2_symtab_iter_next, dw2_print_stats)
10384 (dw2_expand_symtabs_with_fullname)
10385 (dw2_expand_symtabs_matching_one)
10386 (dw_expand_symtabs_matching_file_matcher)
10387 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10388 (dw2_debug_names_iterator::next)
10389 (dw2_debug_names_map_matching_symbols)
10390 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10391 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10392 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10393 New methods.
10394 (get_compunit_symtab, process_full_comp_unit)
10395 (process_full_type_unit): Update.
10396 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10397
10398 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10399
10400 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10401 then introduce a new dwarf2_per_objfile type.
10402 <read_line_string>: Move to the new dwarf2_per_objfile type.
10403 <objfile>: Likewise.
10404 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10405 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10406 dwarf2_per_objfile->per_bfd.
10407 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10408 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10409 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10410 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10411 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10412 (dwarf2_per_objfile::locate_sections): Rename to...
10413 (dwarf2_per_bfd::locate_sections): ... this.
10414 (dwarf2_per_objfile::get_cutu): Rename to...
10415 (dwarf2_per_bfd::get_cutu): ... this.
10416 (dwarf2_per_objfile::get_cu): Rename to...
10417 (dwarf2_per_bfd::get_cu): ... this.
10418 (dwarf2_per_objfile::get_tu): Rename to...
10419 (dwarf2_per_bfd::get_tu): ... this.
10420 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10421 (dwarf2_per_bfd::allocate_per_cu): ... this.
10422 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10423 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10424 (get_gdb_index_contents_ftype): Change parameter from
10425 dwarf2_per_objfile to dwarf2_per_bfd.
10426 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10427 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10428
10429 2020-05-27 Tom Tromey <tom@tromey.com>
10430 Simon Marchi <simon.marchi@efficios.com>
10431
10432 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10433 (allocate_piece_closure): Set "per_objfile" member.
10434 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10435 (locexpr_describe_location, loclist_describe_location): Use new
10436 member.
10437 * dwarf2/read.c (read_call_site_scope)
10438 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10439 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10440 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10441 handle_data_member_location): Set per_objfile member.
10442 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10443 member.
10444 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10445
10446 2020-05-27 Tom Tromey <tom@tromey.com>
10447
10448 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10449 allocate_signatured_type>: Declare new methods.
10450 <m_num_psymtabs>: New member.
10451 (struct dwarf2_per_cu_data) <index>: New member.
10452 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10453 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10454 (create_cu_from_index_list): Use allocate_per_cu.
10455 (create_signatured_type_table_from_index)
10456 (create_signatured_type_table_from_debug_names)
10457 (create_debug_type_hash_table, add_type_unit)
10458 (read_comp_units_from_section): Use allocate_signatured_type.
10459
10460 2020-05-27 Tom Tromey <tom@tromey.com>
10461
10462 * psymtab.c (partial_map_expand_apply)
10463 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10464 (psym_lookup_global_symbol_language)
10465 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10466 (psym_print_stats, psym_expand_symtabs_for_function)
10467 (psym_map_symbol_filenames, psym_map_matching_symbols)
10468 (psym_expand_symtabs_matching)
10469 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10470 (maintenance_check_psymtabs): Update.
10471 * psympriv.h (struct partial_symtab) <readin_p,
10472 get_compunit_symtab>: Add objfile parameter.
10473 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10474 Likewise.
10475 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10476 get_compunit_symtab>: Likewise.
10477 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10478
10479 2020-05-27 Tom Tromey <tom@tromey.com>
10480
10481 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10482 member.
10483 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10484 (create_cu_from_index_list)
10485 (create_signatured_type_table_from_index)
10486 (create_signatured_type_table_from_debug_names)
10487 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10488 (dwarf2_create_include_psymtab)
10489 (create_debug_type_hash_table, add_type_unit)
10490 (create_type_unit_group, read_comp_units_from_section)
10491 (dwarf2_compute_name, create_cus_hash_table)
10492 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10493 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10494 obstack.
10495 (dw2_get_real_path): Likewise. Change argument to
10496 dwarf2_per_objfile.
10497
10498 2020-05-27 Luis Machado <luis.machado@linaro.org>
10499
10500 PR tdep/26000
10501 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10502 for ldrd (immediate).
10503
10504 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10505
10506 * command.h: Add comment giving the name of class_tui.
10507 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10508 create the fake command for the help for class_tui.
10509
10510 2020-05-26 Tom Tromey <tromey@adacore.com>
10511
10512 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10513 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10514 (val_atr): New function.
10515 (value_val_atr): Use it.
10516 * ada-valprint.c (print_optional_low_bound): Change low bound
10517 handling for enums.
10518 (val_print_packed_array_elements): Don't call discrete_position.
10519 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10520 discrete_position for enum types.
10521 * language.c (default_print_array_index): Change type.
10522 * language.h (struct language_defn) <la_print_array_index>: Add
10523 index_type parameter, change type of index_value.
10524 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10525 (default_print_array_index): Update.
10526 * valprint.c (maybe_print_array_index): Don't call
10527 value_from_longest. Update.
10528 (value_print_array_elements): Don't call discrete_position.
10529
10530 2020-05-26 Tom Tromey <tromey@adacore.com>
10531
10532 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10533 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10534
10535 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10536
10537 PR gdb/13519
10538 * avr-tdep.c (avr_integer_to_address): Return data or code
10539 address accordingly to the second 'type' argument of the
10540 function.
10541
10542 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10543
10544 * infcmd.c, inferior.h: (construct_inferior_arguments):
10545 Moved function from here to gdbsupport/common-inferior.{h,cc}
10546
10547 2020-05-23 Tom Tromey <tom@tromey.com>
10548
10549 Revert commit eca1f90c:
10550 * NEWS: Remove entry for completion styling.
10551 * completer.c (_rl_completion_prefix_display_length): Move
10552 declaration later.
10553 (gdb_fnprint): Revert.
10554 (gdb_display_match_list_1): Likewise.
10555 * cli/cli-style.c (completion_prefix_style)
10556 (completion_difference_style, completion_suffix_style): Remove.
10557 (_initialize_cli_style): Revert.
10558 * cli/cli-style.h (completion_prefix_style)
10559 (completion_difference_style, completion_suffix_style): Don't
10560 declare.
10561
10562 2020-05-24 Pedro Alves <palves@redhat.com>
10563
10564 * symtab.c (completion_list_add_name): Return boolean indication
10565 of whether the symbol matched.
10566 (completion_list_add_symbol): Don't try to remove C++ aliases if
10567 the symbol didn't match in the first place.
10568 * symtab.h (completion_list_add_name): Return bool.
10569
10570 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10571
10572 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10573 type::field.
10574
10575 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10576
10577 GDB 9.2 released.
10578
10579 2020-05-23 Tom Tromey <tom@tromey.com>
10580
10581 * NEWS: Add entry for completion styling.
10582 * completer.c (_rl_completion_prefix_display_length): Move
10583 declaration earlier.
10584 (gdb_fnprint): Use completion_style.
10585 (gdb_display_match_list_1): Likewise.
10586 * cli/cli-style.c (completion_prefix_style)
10587 (completion_difference_style, completion_suffix_style): New
10588 globals.
10589 (_initialize_cli_style): Register new globals.
10590 * cli/cli-style.h (completion_prefix_style)
10591 (completion_difference_style, completion_suffix_style): Declare.
10592
10593 2020-05-23 Pedro Alves <palves@redhat.com>
10594
10595 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10596 (parse_escape): Use ISDIGIT instead of isdigit.
10597 (puts_debug): Use gdb_isprint instead of isprint.
10598 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10599 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10600 ISSPACE instead of isspace.
10601 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10602 instead of isspace.
10603 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10604 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10605 instead of isxdigit and ISDIGIT instead of isdigit.
10606
10607 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10608
10609 * gdbtypes.h (struct type) <field>: New method.
10610 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10611 or type::field.
10612
10613 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10614
10615 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10616 (TYPE_FIELDS): Use type::fields. Change all call sites that
10617 modify the propery to use type::set_fields instead.
10618
10619 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10622 type::num_fields instead.
10623
10624 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10625
10626 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10627 methods.
10628 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10629 that modify the number of fields to use type::set_num_fields
10630 instead.
10631
10632 2020-05-22 Tom Tromey <tromey@adacore.com>
10633
10634 * compile/compile-object-load.h (munmap_list_free): Don't
10635 declare.
10636
10637 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10638
10639 * annotate.c (annotate_source_line): Update return type, add call
10640 to update current symtab and line.
10641 * annotate.h (annotate_source_line): Update return type, and
10642 extend header comment.
10643 * source.c (info_line_command): Check annotation_level before
10644 calling annotate_source_line.
10645 * stack.c (print_frame_info): If calling annotate_source_line
10646 returns true, then don't print any other source line information.
10647
10648 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10651
10652 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10653
10654 * coffread.c (patch_type): Remove NULL check before xfree.
10655 * corefile.c (set_gnutarget): Likewise.
10656 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10657 * exec.c (build_section_table): Likewise.
10658 * remote.c (remote_target::pass_signals): Likewise.
10659 * utils.c (n_spaces): Likewise.
10660 * cli/cli-script.c (document_command): Likewise.
10661 * i386-windows-tdep.c (core_process_module_section): Likewise.
10662 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10663
10664 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10665
10666 * symfile.c (reread_symbols): Clear objfile's section_offsets
10667 vector and section indices, re-compute them by calling
10668 sym_offsets.
10669
10670 2020-05-20 Tom Tromey <tromey@adacore.com>
10671
10672 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10673 (desc_one_bound, desc_index_type): Compute field name.
10674
10675 2020-05-20 Tom de Vries <tdevries@suse.de>
10676
10677 PR symtab/25833
10678 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10679
10680 2020-05-20 Alan Modra <amodra@gmail.com>
10681
10682 PR 25993
10683 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10684 bfd_set_filename.
10685 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10686 passed to bfd_set_filename.
10687 * symfile-mem.c (add_vsyscall_page): Likewise for string
10688 passed to symbol_file_add_from_memory.
10689 (symbol_file_add_from_memory): Make name param a const char* and
10690 don't strdup.
10691
10692 2020-05-20 Alan Modra <amodra@gmail.com>
10693
10694 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10695 rather than accessing bfd->filename directly.
10696 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10697 and use bfd_section_name.
10698 * dwarf2/frame.c (decode_frame_entry): Likewise.
10699 * exec.c (exec_set_section_address): Likewise.
10700 * solib-aix.c (solib_aix_bfd_open): Likewise.
10701 * stap-probe.c (get_stap_base_address): Likewise.
10702 * symfile.c (reread_symbols): Likewise.
10703
10704 2020-05-19 Tom Tromey <tromey@adacore.com>
10705
10706 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10707
10708 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10709
10710 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10711
10712 2020-05-19 Pedro Alves <palves@redhat.com>
10713
10714 * NEWS (set exec-file-mismatch): Adjust entry.
10715 * exec.c: Include "build-id.h".
10716 (validate_exec_file): Try to match build IDs instead of filenames.
10717 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10718 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10719 and pass down 'warn_if_slow'.
10720 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10721 gdb_bfd_open_closure to pass it down.
10722 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10723
10724 2020-05-19 Pedro Alves <palves@redhat.com>
10725
10726 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10727 * target.c (target_fileio_open_1): Rename to target_fileio_open
10728 and make extern. Use bool.
10729 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10730 (target_fileio_read_alloc_1): Adjust.
10731 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10732 (target_fileio_open_warn_if_slow): Delete declaration.
10733
10734 2020-05-19 Pedro Alves <palves@redhat.com>
10735
10736 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10737 Adjust all callers.
10738
10739 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10740
10741 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10742 whether disp is negative.
10743
10744 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10745
10746 * symfile.h (struct symfile_segment_data)
10747 <~symfile_segment_data>: Remove.
10748 <segment_info>: Change to std::vector.
10749 * symfile.c (default_symfile_segments): Update.
10750 * elfread.c (elf_symfile_segments): Update.
10751
10752 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10753
10754 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10755 <segments>: New.
10756 <segment_bases, segment_sizes>: Remove.
10757 * symfile.c (default_symfile_segments): Update.
10758 * elfread.c (elf_symfile_segments): Update.
10759 * remote.c (remote_target::get_offsets): Update.
10760 * solib-target.c (solib_target_relocate_section_addresses):
10761 Update.
10762
10763 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10764
10765 * symfile.h (struct symfile_segment_data): Initialize fields.
10766 <~symfile_segment_data>: Add.
10767 (symfile_segment_data_up): New.
10768 (struct sym_fns) <sym_segments>: Return a
10769 symfile_segment_data_up.
10770 (default_symfile_segments): Return a symfile_segment_data_up.
10771 (free_symfile_segment_data): Remove.
10772 (get_symfile_segment_data): Return a symfile_segment_data_up.
10773 * symfile.c (default_symfile_segments): Likewise.
10774 (get_symfile_segment_data): Likewise.
10775 (free_symfile_segment_data): Remove.
10776 (symfile_find_segment_sections): Update.
10777 * elfread.c (elf_symfile_segments): Return a
10778 symfile_segment_data_up.
10779 * remote.c (remote_target::get_offsets): Update.
10780 * solib-target.c (solib_target_relocate_section_addresses):
10781 Update.
10782 * symfile-debug.c (debug_sym_segments): Return a
10783 symfile_segment_data_up.
10784
10785 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10786
10787 PR build/25981
10788 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10789 Hardcode register numbers.
10790
10791 PR build/25981
10792 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10793 procfs_find_LDT_entry): Remove.
10794 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10795 procfs_find_LDT_entry): Remove.
10796 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10797 Remove.
10798
10799 2020-05-17 Pedro Alves <palves@redhat.com>
10800 Andrew Burgess <andrew.burgess@embecosm.com>
10801 Keno Fischer <keno@juliacomputing.com>
10802
10803 PR gdb/25741
10804 * breakpoint.c (build_target_condition_list): Update comments.
10805 (build_target_command_list): Update comments and skip matching
10806 locations.
10807 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10808 a separate function. Simplify "set breakpoint auto-hw off"
10809 handling.
10810 (insert_breakpoints): Update comment.
10811 (tracepoint_locations_match): New parameter. For breakpoints,
10812 compare location types too, if the caller wants to.
10813 (handle_automatic_hardware_breakpoints): New functions.
10814 (bp_location_is_less_than): Also sort by location type and
10815 hardware breakpoint length.
10816 (update_global_location_list): Handle "set breakpoint auto-hw on"
10817 here.
10818 (update_breakpoint_locations): Ask breakpoint_locations_match to
10819 ignore location types.
10820
10821 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10822
10823 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10824 type::name instead.
10825
10826 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10827
10828 * gdbtypes.h (struct type) <name, set_name>: New methods.
10829 (TYPE_CODE): Use type::name. Change all call sites used to set
10830 the name to use type::set_name instead.
10831
10832 2020-05-16 Tom Tromey <tom@tromey.com>
10833
10834 * top.c (quit_force): Update.
10835 * infrun.c (handle_no_resumed): Update.
10836 * top.h (all_uis): New function.
10837 (ALL_UIS): Remove.
10838
10839 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10840
10841 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10842
10843 2020-05-16 Pedro Alves <palves@redhat.com>
10844
10845 * ia64-linux-nat.c
10846 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10847 Declare method.
10848 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10849
10850 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10851
10852 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10853 (sparc64_adi_info): Likewise.
10854
10855 2020-05-15 Tom Tromey <tom@tromey.com>
10856
10857 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10858 block_objfile.
10859 (lookup_objfile_from_block): Remove.
10860 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10861 (lookup_global_symbol): Use block_objfile.
10862 * symtab.h (lookup_objfile_from_block): Don't declare.
10863 * printcmd.c (clear_dangling_display_expressions): Use
10864 block_objfile.
10865 * parse.c (operator_check_standard): Use block_objfile.
10866
10867 2020-05-15 Tom Tromey <tom@tromey.com>
10868
10869 * language.c (language_alloc_type_symbol): Set
10870 SYMBOL_SECTION.
10871 * symtab.c (initialize_objfile_symbol): Remove.
10872 (allocate_symbol): Remove.
10873 (allocate_template_symbol): Remove.
10874 * dwarf2/read.c (fixup_go_packaging): Use "new".
10875 (new_symbol): Use "new".
10876 (read_variable): Don't call initialize_objfile_symbol. Use
10877 "new".
10878 (read_func_scope): Use "new".
10879 * xcoffread.c (process_xcoff_symbol): Don't call
10880 initialize_objfile_symbol.
10881 (SYMBOL_DUP): Remove.
10882 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10883 "new".
10884 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10885 (allocate_template_symbol): Don't declare.
10886 (struct symbol): Add copy constructor. Change defaults.
10887 * jit.c (finalize_symtab): Use "new".
10888 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10889 Use "new".
10890 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10891 (common_block_end): Use "new".
10892 * mdebugread.c (parse_symbol): Use "new".
10893 (new_symbol): Likewise.
10894
10895 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10896
10897 * NEWS: Mention changes to help and apropos.
10898
10899 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10900
10901 * command.h (enum command_class): Improve comments, document
10902 that class_alias is for user-defined aliases, give the class
10903 name for each class, remove unused class_xdb.
10904 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10905 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10906 by a precise class.
10907 * infcmd.c (_initialize_infcmd): Likewise.
10908 * reverse.c (_initialize_reverse): Likewise.
10909 * stack.c (_initialize_stack): Likewise.
10910 * symfile.c (_initialize_symfile): Likewise.
10911 * tracepoint.c (_initialize_tracepoint): Likewise.
10912
10913 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10914
10915 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10916 when their aliased command is traversed.
10917 (help_cmd): Add fput_command_names_styled call to
10918 output command name and aliases when command has an alias.
10919
10920 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10921
10922 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10923 * cli/cli-decode.c (help_cmd_list): Declare as static,
10924 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10925 a command together with the command.
10926 (fput_command_name_styled, fput_command_names_styled): New functions.
10927 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10928 fput_command_name_styled.
10929 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10930 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10931
10932 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10933
10934 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10935 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10936 * command.h (cmd_show_list): Likewise.
10937 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10938 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10939
10940 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10941
10942 * unittests/command-def-selftests.c (traverse_command_structure):
10943 Verify all commands of a list have the same prefix command and
10944 that only the top cmdlist commands have a null prefix.
10945
10946 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10947
10948 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10949 as prefix, not one of its aliases.
10950 (set_cmd_prefix): Remove.
10951 (do_add_cmd): Centralize the setting of the prefix of a command, when
10952 command is defined after its full chain of prefix commands.
10953 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10954 (add_setshow_cmd_full): Likewise.
10955 (update_prefix_field_of_prefixed_commands): New function.
10956 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10957 update_prefix_field_of_prefixed_commands.
10958 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10959 addresses of remote_set_cmdlist and remote_show_cmdlist given
10960 as argument, not the address of an argument.
10961 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10962 * gdb/remote.c (_initialize_remote): Likewise.
10963
10964 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10965
10966 * cli/cli-cmds.c (alias_command): Check for an existing alias
10967 using lookup_cmd_composition, as valid_command_p is too strict
10968 and forbids aliases that are the prefix of an existing alias
10969 or command.
10970 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10971 command is properly recognised as a valid command.
10972
10973 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10974
10975 * unittests/help-doc-selftests.c: Rename to
10976 unittests/command-def-selftests.c
10977 * unittests/command-def-selftests.c (help_doc_tests): Update some
10978 comments.
10979 (command_structure_tests, traverse_command_structure): New namespace
10980 and function.
10981 (command_structure_invariants_tests): New function.
10982 (_initialize_command_def_selftests) Renamed from
10983 _initialize_help_doc_selftests, register command_structure_invariants
10984 selftest.
10985
10986 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10987
10988 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10989 an alias of 'show'.
10990
10991 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10992
10993 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10994 ada_is_fixed_point_type. Update all callers.
10995 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10996 all callers.
10997 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10998 Update all callers.
10999 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11000 print_fixed_point_type. Update all callers.
11001 * ada-valprint.c (ada_value_print_num): Replace call to
11002 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11003
11004 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11005
11006 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11007 processors.
11008 (cpu_supports_bts): Add CV_AMD case.
11009
11010 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11011 Simon Marchi <simon.marchi@efficios.com>
11012
11013 * infrun.c (stop_all_threads): Collect multiple wait events at
11014 each pass.
11015
11016 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11017
11018 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11019 type::code instead.
11020
11021 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11022
11023 * gdbtypes.h (struct type) <code, set_code>: New methods.
11024 (TYPE_CODE): Use type::code. Change all call sites used to set
11025 the code to use type::set_code instead.
11026
11027 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11028 Tom de Vries <tdevries@suse.de>
11029 Pedro Alves <palves@redhat.com>
11030
11031 PR threads/25478
11032 * infrun.c (stop_all_threads): Do NOT ignore
11033 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11034 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11035 received.
11036 (handle_no_resumed): Remove code handling a live inferior with no
11037 threads.
11038 * remote.c (has_single_non_exited_thread): New.
11039 (remote_target::update_thread_list): Do not delete a thread if is
11040 the last thread of the process.
11041 * thread.c (thread_select): Call delete_exited_threads instead of
11042 prune_threads.
11043
11044 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11045
11046 * infrun.c (stop_all_threads): Enable/disable thread events of all
11047 targets. Move a debug message denoting the end of the function
11048 into the SCOPED_EXIT block.
11049
11050 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11051
11052 * process-stratum-target.h: Include <set>.
11053 (all_non_exited_process_targets, switch_to_target_no_thread): New
11054 function declarations.
11055 * process-stratum-target.c (all_non_exited_process_targets)
11056 (switch_to_target_no_thread): New function implementations.
11057
11058 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11059
11060 * infrun.c (handle_inferior_event): Extract out a piece of code
11061 into...
11062 (mark_non_executing_threads): ...this new function.
11063
11064 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11065
11066 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11067 use.
11068
11069 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11070
11071 * regcache.c (regcache_read_pc_protected): New function
11072 implementation that returns 0 if the PC cannot read via
11073 'regcache_read_pc'.
11074 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11075 instead of 'regcache_read_pc'.
11076 (keep_going_pass_signal): Ditto.
11077
11078 2020-05-13 Tom Tromey <tromey@adacore.com>
11079
11080 * ada-lang.c (align_value): Remove.
11081 (ada_template_to_fixed_record_type_1): Use align_up.
11082
11083 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11084
11085 * async-event.c: Update the copyright year.
11086 * async-event.h: Update the copyright year.
11087
11088 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11089
11090 * objfiles.h (is_addr_in_objfile,
11091 shared_objfile_contains_address_p): Return bool.
11092 * objfile.c (is_addr_in_objfile,
11093 shared_objfile_contains_address_p): Return bool.
11094
11095 2020-05-11 Tom Tromey <tromey@adacore.com>
11096
11097 * cli/cli-cmds.c (info_command): Restore.
11098 (_initialize_cli_cmds): Use add_prefix_command for "info".
11099 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11100
11101 2020-05-11 Tom Tromey <tromey@adacore.com>
11102
11103 * ada-lang.c (ada_value_primitive_field): Now public.
11104 * ada-lang.h (ada_value_primitive_field): Declare.
11105 * ada-valprint.c (print_field_values): Use
11106 ada_value_primitive_field for wrapper fields.
11107
11108 2020-05-11 Tom de Vries <tdevries@suse.de>
11109
11110 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11111 MODULE_DOMAIN.
11112
11113 2020-05-11 Tom de Vries <tdevries@suse.de>
11114
11115 PR symtab/25941
11116 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11117 with length 0, if not gdb-produced.
11118 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11119
11120 2020-05-09 Tom de Vries <tdevries@suse.de>
11121
11122 PR gdb/25955
11123 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11124 calculation.
11125
11126 2020-05-09 Tom Tromey <tom@tromey.com>
11127
11128 * top.c (server_command): Now bool.
11129 * top.h (server_command): Now bool.
11130
11131 2020-05-08 Tom Tromey <tromey@adacore.com>
11132
11133 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11134 already being processed.
11135
11136 2020-05-08 Tom Tromey <tom@tromey.com>
11137
11138 * printcmd.c (struct display) <next>: Remove.
11139 <display>: New constructor.
11140 <exp_string>: Now a std::string.
11141 <enabled_p>: Now a bool.
11142 (display_number): Move definition earlier.
11143 (displays): Rename from display_chain. Now a std::vector.
11144 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11145 (display_command): Update.
11146 (do_one_display, disable_display)
11147 (enable_disable_display_command, do_enable_disable_display):
11148 Update.
11149 (free_display): Remove.
11150 (clear_displays): Rewrite.
11151 (delete_display): Update.
11152 (map_display_numbers): Use function_view. Remove "data"
11153 parameter. Update.
11154 (do_delete_display): Remove.
11155 (undisplay_command): Update.
11156 (do_one_display, do_displays, disable_display)
11157 (info_display_command): Update.
11158 (do_enable_disable_display): Remove.
11159 (enable_disable_display_command)
11160 (clear_dangling_display_expressions): Update.
11161
11162 2020-05-08 Tom Tromey <tom@tromey.com>
11163
11164 * symtab.c (set_symbol_cache_size)
11165 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11166 (maintenance_print_symbol_cache_statistics): Update.
11167 * symmisc.c (print_symbol_bcache_statistics)
11168 (print_objfile_statistics, maintenance_print_objfiles)
11169 (maintenance_info_symtabs, maintenance_check_symtabs)
11170 (maintenance_expand_symtabs, maintenance_info_line_tables):
11171 Update.
11172 * symfile-debug.c (set_debug_symfile): Update.
11173 * source.c (forget_cached_source_info): Update.
11174 * python/python.c (gdbpy_progspaces): Update.
11175 * psymtab.c (maintenance_info_psymtabs): Update.
11176 * probe.c (parse_probes): Update.
11177 * linespec.c (iterate_over_all_matching_symtabs)
11178 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11179 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11180 * exec.c (exec_target::close): Update.
11181 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11182 * breakpoint.c (print_one_breakpoint_location)
11183 (create_longjmp_master_breakpoint)
11184 (create_std_terminate_master_breakpoint): Update.
11185 * progspace.c (program_spaces): Now a std::vector.
11186 (maybe_new_address_space): Update.
11187 (add_program_space): Remove.
11188 (program_space::program_space): Update.
11189 (remove_program_space): Update.
11190 (number_of_program_spaces): Remove.
11191 (print_program_space, update_address_spaces): Update.
11192 * progspace.h (program_spaces): Change type.
11193 (ALL_PSPACES): Remove.
11194 (number_of_program_spaces): Don't declare.
11195 (struct program_space) <next>: Remove.
11196
11197 2020-05-08 Tom Tromey <tom@tromey.com>
11198
11199 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11200 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11201 (enable_break): Update.
11202 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11203 (frv_fdpic_find_canonical_descriptor): Update.
11204 (frv_fetch_objfile_link_map): Update.
11205 * progspace.c (program_space::free_all_objfiles): Update.
11206 (program_space::solibs): New method.
11207 * progspace.h (struct program_space) <solibs>: New method.
11208 * solist.h (master_so_list): Don't declare.
11209 (ALL_SO_LIBS): Remove.
11210 * solib.h (so_list_head): Remove.
11211 (update_solib_list): Update comment.
11212 * solib.c (master_so_list): Remove.
11213 (solib_used, update_solib_list, solib_add)
11214 (info_sharedlibrary_command, clear_solib)
11215 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11216
11217 2020-05-08 Tom Tromey <tom@tromey.com>
11218
11219 * extension.c (extension_languages): Now a std::array.
11220 (ALL_EXTENSION_LANGUAGES): Remove.
11221 (get_ext_lang_defn, get_ext_lang_of_file)
11222 (eval_ext_lang_from_control_command): Update.
11223 (finish_ext_lang_initialization)
11224 (auto_load_ext_lang_scripts_for_objfile)
11225 (ext_lang_type_printers::ext_lang_type_printers)
11226 (apply_ext_lang_type_printers)
11227 (ext_lang_type_printers::~ext_lang_type_printers)
11228 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11229 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11230 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11231 (get_matching_xmethod_workers, ext_lang_colorize)
11232 (ext_lang_before_prompt): Update.
11233 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11234
11235 2020-05-08 Tom Tromey <tom@tromey.com>
11236
11237 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11238 overload.
11239 <swap_string, m_string>: Remove.
11240 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11241 Update.
11242 * stabsread.c (define_symbol, read_type): Update.
11243 * linespec.c (find_linespec_symbols): Update.
11244 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11245 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11246 * dbxread.c (read_dbx_symtab): Update.
11247 * cp-support.h (cp_canonicalize_string_full)
11248 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11249 Return unique_xmalloc_ptr.
11250 * cp-support.c (inspect_type): Update.
11251 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11252 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11253 Likewise.
11254 * c-typeprint.c (print_name_maybe_canonical): Update.
11255 * break-catch-throw.c (check_status_exception_catchpoint):
11256 Update.
11257
11258 2020-05-08 Tom de Vries <tdevries@suse.de>
11259
11260 * infrun.c (follow_fork): Copy current_line and current_symtab to
11261 child thread.
11262
11263 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11264
11265 * async-event.c (struct async_signal_handler, struct
11266 async_event_handler): Reformat, remove typedef.
11267
11268 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11269
11270 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11271 access thistype->main_type->dyn_prop_list directly.
11272
11273 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11274
11275 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11276 (remove_dyn_prop): Remove. Update all users to use
11277 type::remove_dyn_prop.
11278 * gdbtypes.c (remove_dyn_prop): Rename to...
11279 (type::remove_dyn_prop): ... this.
11280
11281 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11282
11283 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11284 (add_dyn_prop): Remove. Update all users to use
11285 type::add_dyn_prop.
11286 * gdbtypes.c (add_dyn_prop): Rename to...
11287 (type::add_dyn_prop): ... this.
11288
11289 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11290
11291 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11292 (get_dyn_prop): Remove. Update all users to use
11293 type::dyn_prop.
11294 * gdbtypes.c (get_dyn_prop): Rename to...
11295 (type::dyn_prop): ... this.
11296
11297 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11298
11299 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11300
11301 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11302
11303 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11304 instruction, skip it if it's there.
11305
11306 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11307
11308 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11309
11310 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11311
11312 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11313 * gdbtypes.c (recursive_dump_type): Remove use of
11314 TYPE_INCOMPLETE.
11315
11316 2020-05-03 Tom Tromey <tom@tromey.com>
11317
11318 * breakpoint.c (catch_command, tcatch_command): Remove.
11319 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11320 add_show_prefix_cmd.
11321 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11322 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11323 Remove.
11324 (add_internal_problem_command): Use add_basic_prefix_cmd,
11325 add_show_prefix_cmd.
11326 * mips-tdep.c (set_mipsfpu_command): Remove.
11327 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11328 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11329 (_initialize_index_cache): Use add_basic_prefix_cmd.
11330 * memattr.c (dummy_cmd): Remove.
11331 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11332 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11333 (_initialize_tui_win): Use add_basic_prefix_cmd,
11334 add_show_prefix_cmd.
11335 * cli/cli-logging.c (set_logging_command): Remove.
11336 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11337 add_show_prefix_cmd.
11338 (show_logging_command): Remove.
11339 * target.c (target_command): Remove.
11340 (add_target): Use add_basic_prefix_cmd.
11341
11342 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11343
11344 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11345
11346 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11347
11348 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11349 info_command.
11350
11351 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11352
11353 * nbsd-nat.c (nbsd_enable_proc_events)
11354 (nbsd_nat_target::post_startup_inferior): Add.
11355 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11356 (nbsd_nat_target::update_thread_list): Rewrite.
11357 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11358 "PTRACE_LWP_CREATE".
11359 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11360
11361 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11362
11363 * stack.c (_initialize_stack): Remove duplicated creation
11364 of "frame" command and "f" alias.
11365
11366 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11367
11368 PR gdb/18706
11369 * gdbtypes.c (check_typedef): Calculate size of array of
11370 stubbed type.
11371
11372 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11373
11374 PR gdb/15559
11375 * i386-tdep.c (i386_push_dummy_call): Call
11376 i386_thiscall_push_dummy_call.
11377 (i386_thiscall_push_dummy_call): New function.
11378 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11379 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11380 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11381
11382 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11383
11384 * gdbarch.sh (do_read): Add shellcheck disable directive for
11385 warning SC2162.
11386
11387 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11388
11389 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11390 "referenced but not assigned" warning.
11391
11392 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11393
11394 * gdbarch.sh: Remove code that sets fallbackdefault.
11395
11396 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11397
11398 * gdbarch.sh: Use shell operators && and || instead of
11399 -a and -o.
11400
11401 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11402
11403 * gdbarch.sh: Use $(...) instead of `...`.
11404
11405 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11406
11407 * gdbarch.sh: Use double quotes around variables.
11408
11409 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11410
11411 * gdbarch.sh: Use %s with printf, instead of variables in the
11412 format string.
11413
11414 2020-04-29 Tom Tromey <tromey@adacore.com>
11415
11416 PR ada/25875:
11417 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11418 type fields here.
11419 (read_enumeration_type): Call
11420 update_enumeration_type_from_children later. Update comments.
11421 (process_enumeration_scope): Don't create type fields.
11422
11423 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11424
11425 * nbsd-tdep.c: Include "xml-syscall.h".
11426 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11427
11428 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11429
11430 * nbsd-nat.c: Include "sys/wait.h".
11431 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11432 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11433 (nbsd_nat_target::remove_exec_catchpoint)
11434 (nbsd_nat_target::set_syscall_catchpoint): Add.
11435 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11436 (nbsd_nat_target::insert_exec_catchpoint)
11437 (nbsd_nat_target::remove_exec_catchpoint)
11438 (nbsd_nat_target::set_syscall_catchpoint): Add.
11439 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11440 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11441 `nbsd_get_syscall_number'.
11442
11443 2020-04-29 Tom Tromey <tom@tromey.com>
11444
11445 * stack.c (print_block_frame_labels): Remove.
11446
11447 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11448
11449 PR gdb/17320
11450 * ada-valprint.c (val_print_packed_array_elements): Move array
11451 end bracket to new line.
11452 (ada_val_print_string): Remove extra spaces before first array
11453 element.
11454 * c-valprint.c (c_value_print_array): Likewise.
11455 * m2-valprint.c (m2_print_array_contents): Likewise.
11456 (m2_value_print_inner): Likewise.
11457 * p-valprint.c (pascal_value_print_inner): Likewise.
11458 * valprint.c (generic_val_print_array): Likewise.
11459 (value_print_array_elements): Move first array element and array
11460 end bracket to new line.
11461
11462 2020-04-29 Tom de Vries <tdevries@suse.de>
11463
11464 PR symtab/25889
11465 * linespec.c (find_method): Fix ix calculation.
11466
11467 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11468
11469 * syscalls/update-netbsd.sh: New file.
11470 * syscalls/netbsd.xml: Regenerate.
11471 * data-directory/Makefile.in: Register `netbsd.xml' in
11472 `SYSCALLS_FILES'.
11473
11474 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11475
11476 * syscalls/update-freebsd.sh: Add double quotes.
11477
11478 2020-04-28 Tom Tromey <tom@tromey.com>
11479
11480 * NEWS: Update.
11481 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11482 (cmdpy_init): Allow class_tui.
11483
11484 2020-04-28 Mark Williams <mark@myosotissp.com>
11485
11486 PR gdb/24480
11487 * dwarf2read.c: Add missing assingments to list_in_scope when
11488 start_symtab was already called.
11489
11490 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11491
11492 PR gdb/25881
11493 * dwarf2/read.c (offset_map_type): Use
11494 gdb:hash_enum<sect_offset> as hash function.
11495
11496 2020-04-28 Tom de Vries <tdevries@suse.de>
11497
11498 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11499 with DW_AT_signature.
11500
11501 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11502
11503 * configure.ac: Remove check for fs_base/gs_base in
11504 user_regs_struct.
11505 * configure: Re-generate.
11506 * config.in: Re-generate.
11507 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11508 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11509 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11510
11511 2020-04-27 Luis Machado <luis.machado@linaro.org>
11512
11513 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11514 problematic inline frame unwinding situation.
11515 * frame.c (frame_id_computed_p): New function.
11516 * frame.h (frame_id_computed_p): New prototype.
11517
11518 2020-04-26 Tom Tromey <tom@tromey.com>
11519
11520 * command.h (enum command_class) <class_pseudo>: Remove.
11521
11522 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11523
11524 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11525 and whitespace.
11526
11527 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11528
11529 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11530 `PT_GET_PROCESS_STATE' block.
11531
11532 2020-04-24 Tom Tromey <tom@tromey.com>
11533
11534 * symtab.h (symbol_get_demangled_name): Don't declare.
11535 * symtab.c (symbol_get_demangled_name): Remove.
11536 (general_symbol_info::natural_name)
11537 (general_symbol_info::demangled_name): Update.
11538
11539 2020-04-24 Tom Tromey <tom@tromey.com>
11540
11541 PR rust/25025:
11542 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11543
11544 2020-04-24 Tom Tromey <tom@tromey.com>
11545
11546 PR symtab/12707:
11547 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11548 exists.
11549 (new_symbol): Likewise.
11550 * compile/compile-object-load.c (get_out_value_type): Use
11551 symbol_matches_search_name.
11552
11553 2020-04-24 Tom Tromey <tom@tromey.com>
11554
11555 * dwarf2/read.c (add_partial_symbol): Do not call
11556 compute_and_set_names.
11557
11558 2020-04-24 Tom Tromey <tom@tromey.com>
11559
11560 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11561 overload.
11562
11563 2020-04-24 Tom Tromey <tom@tromey.com>
11564
11565 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11566 (add_psymbol_to_list): New overload. Make old overload call new
11567 one.
11568 * psympriv.h (add_psymbol_to_list): New overload.
11569
11570 2020-04-24 Tom Tromey <tom@tromey.com>
11571
11572 * dwarf2/read.c (partial_die_info::read) <case
11573 DW_AT_linkage_name>: Use value_as_string.
11574 (dwarf2_string_attr): Use value_as_string.
11575 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11576 method.
11577 * dwarf2/attribute.c (attribute::value_as_string): New method.
11578
11579 2020-04-24 Tom Tromey <tom@tromey.com>
11580
11581 * symtab.c (general_symbol_info::natural_name)
11582 (general_symbol_info::demangled_name): Check for language_rust.
11583
11584 2020-04-24 Tom Tromey <tom@tromey.com>
11585
11586 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11587 (dwarf2_physname): ... from here.
11588 (partial_die_info::read): Add Rust "{" hack.
11589
11590 2020-04-24 Tom Tromey <tom@tromey.com>
11591
11592 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11593 method.
11594 (symbol_set_demangled_name): Don't declare.
11595 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11596 symbol_set_demangled_name.
11597 (general_symbol_info::set_language)
11598 (general_symbol_info::compute_and_set_names): Update.
11599 * minsyms.c (minimal_symbol_reader::install): Update.
11600 * dwarf2/read.c (new_symbol): Update.
11601
11602 2020-04-24 Tom Tromey <tromey@adacore.com>
11603
11604 PR python/23662:
11605 * python/py-type.c (convert_field): Handle
11606 FIELD_LOC_KIND_DWARF_BLOCK.
11607 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11608 (typy_get_dynamic): Nw function.
11609 (type_object_getset): Add "dynamic".
11610 * NEWS: Add entry.
11611
11612 2020-04-24 Tom Tromey <tromey@adacore.com>
11613
11614 * ada-typeprint.c (print_choices, print_variant_part)
11615 (print_record_field_types_dynamic): New functions.
11616 (print_record_field_types): Use print_record_field_types_dynamic.
11617
11618 2020-04-24 Tom Tromey <tromey@adacore.com>
11619
11620 * dwarf2/read.c (handle_data_member_location): New overload.
11621 (dwarf2_add_field): Use it.
11622 (decode_locdesc): Add "computed" parameter. Update comment.
11623 * gdbtypes.c (is_dynamic_type_internal): Also look for
11624 FIELD_LOC_KIND_DWARF_BLOCK.
11625 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11626 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11627 virtual base classes.
11628 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11629 FIELD_LOC_KIND_DWARF_BLOCK.
11630
11631 2020-04-24 Tom Tromey <tromey@adacore.com>
11632
11633 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11634 * gdbtypes.c (is_dynamic_type_internal): Check
11635 TYPE_HAS_DYNAMIC_LENGTH.
11636 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11637 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11638 New macros.
11639 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11640 constant.
11641
11642 2020-04-24 Tom Tromey <tromey@adacore.com>
11643
11644 * dwarf2/read.c (struct variant_field): Rewrite.
11645 (struct variant_part_builder): New.
11646 (struct nextfield): Remove "variant" field. Add "offset".
11647 (struct field_info): Add "current_variant_part" and
11648 "variant_parts".
11649 (alloc_discriminant_info): Remove.
11650 (alloc_rust_variant): New function.
11651 (quirk_rust_enum): Update.
11652 (dwarf2_add_field): Set "offset" member. Don't handle
11653 DW_TAG_variant_part.
11654 (offset_map_type): New typedef.
11655 (convert_variant_range, create_one_variant)
11656 (create_one_variant_part, create_variant_parts)
11657 (add_variant_property): New functions.
11658 (dwarf2_attach_fields_to_type): Call add_variant_property.
11659 (read_structure_type): Don't handle DW_TAG_variant_part.
11660 (handle_variant_part, handle_variant): New functions.
11661 (handle_struct_member_die): Use them.
11662 (process_structure_scope): Don't handle variant parts.
11663 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11664 (struct discriminant_info): Remove.
11665 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11666 (struct main_type) <flag_discriminated_union>: Remove.
11667 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11668 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11669 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11670 Update.
11671 * valops.c (value_union_variant): Remove.
11672 * value.h (value_union_variant): Don't declare.
11673
11674 2020-04-24 Tom Tromey <tromey@adacore.com>
11675
11676 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11677 (ada_value_primitive_packed_val): Update.
11678 * ada-valprint.c (ada_value_print_1): Update.
11679 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11680 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11681 just an address. Use evaluate_for_locexpr_baton.
11682 (dwarf2_evaluate_property): Update.
11683 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11684 array_view.
11685 * findvar.c (default_read_var_value): Update.
11686 * gdbtypes.c (compute_variant_fields_inner)
11687 (resolve_dynamic_type_internal): Update.
11688 (resolve_dynamic_type): Change type of valaddr parameter.
11689 * gdbtypes.h (resolve_dynamic_type): Update.
11690 * valarith.c (value_subscripted_rvalue): Update.
11691 * value.c (value_from_contents_and_address): Update.
11692
11693 2020-04-24 Tom Tromey <tromey@adacore.com>
11694
11695 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11696 "push_initial_value" parameter.
11697 (dwarf2_evaluate_property): Likewise.
11698 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11699
11700 2020-04-24 Tom Tromey <tromey@adacore.com>
11701
11702 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11703 (variant::matches, compute_variant_fields_recurse)
11704 (compute_variant_fields_inner, compute_variant_fields): New
11705 functions.
11706 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11707 Use resolved_type after type is made.
11708 (operator==): Add new cases.
11709 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11710 (struct discriminant_range, struct variant, struct variant_part):
11711 New.
11712 (union dynamic_prop_data) <variant_parts, original_type>: New
11713 members.
11714 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11715 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11716 constants.
11717 * value.c (unpack_bits_as_long): Now public.
11718 * value.h (unpack_bits_as_long): Declare.
11719
11720 2020-04-24 Tom Tromey <tromey@adacore.com>
11721
11722 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11723 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11724
11725 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11726
11727 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11728
11729 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11730
11731 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11732 (remove_fork_catchpoint, post_startup_inferior)
11733 (post_attach): Move...
11734 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11735 (remove_fork_catchpoint, post_startup_inferior)
11736 (post_attach): ...here.
11737 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11738 (remove_fork_catchpoint, post_startup_inferior)
11739 (post_attach): Move...
11740 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11741 (remove_fork_catchpoint, post_startup_inferior)
11742 (post_attach): ...here.
11743
11744 2020-04-24 Tom Tromey <tromey@adacore.com>
11745
11746 * nat/windows-nat.h (struct windows_thread_info)
11747 <pc_adjusted>: New member.
11748 * windows-nat.c (windows_fetch_one_register): Check
11749 pc_adjusted.
11750 (windows_nat_target::get_windows_debug_event)
11751 (windows_nat_target::wait): Set pc_adjusted.
11752
11753 2020-04-24 Tom de Vries <tdevries@suse.de>
11754
11755 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11756 Run gdb-add-index inside temp dir.
11757
11758 2020-04-23 Tom Tromey <tromey@adacore.com>
11759
11760 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11761 in loop.
11762
11763 2020-04-23 Luis Machado <luis.machado@linaro.org>
11764
11765 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11766 get_frame_register instead of gdbarch_unwind_pc.
11767
11768 2020-04-23 Tom de Vries <tdevries@suse.de>
11769
11770 * symtab.c (lookup_global_symbol): Prefer def over decl.
11771
11772 2020-04-23 Tom de Vries <tdevries@suse.de>
11773
11774 PR symtab/25807
11775 * block.c (best_symbol, better_symbol): Promote to external.
11776 * block.h (best_symbol, better_symbol): Declare.
11777 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11778 decl.
11779
11780 2020-04-23 Tom Tromey <tromey@adacore.com>
11781
11782 PR ada/25837:
11783 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11784 "const char *", not a "const std::string &".
11785 <name_and_matcher::operator==>: Update.
11786 * unittests/lookup_name_info-selftests.c: Change type of
11787 "result".
11788
11789 2020-04-23 Tom Tromey <tom@tromey.com>
11790
11791 * inferior.h (iterate_over_inferiors): Don't declare.
11792 * inferior.c (iterate_over_inferiors): Remove.
11793 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11794 Remove.
11795 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11796 use iterate_over_inferiors.
11797 (darwin_resume_inferior_it)
11798 (struct resume_inferior_threads_param)
11799 (darwin_resume_inferior_threads_it): Remove.
11800 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11801
11802 2020-04-23 Tom de Vries <tdevries@suse.de>
11803
11804 * blockframe.c (find_pc_partial_function): Use
11805 find_pc_sect_compunit_symtab rather than
11806 objfile->sf->qf->find_pc_sect_compunit_symtab.
11807
11808 2020-04-22 Tom de Vries <tdevries@suse.de>
11809
11810 PR symtab/25764
11811 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11812 in psymtabs.
11813
11814 2020-04-22 Tom de Vries <tdevries@suse.de>
11815
11816 PR symtab/25801
11817 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11818 symtabs.
11819
11820 2020-04-22 Tom de Vries <tdevries@suse.de>
11821
11822 PR symtab/25700
11823 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11824 CU if already created.
11825
11826 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11827
11828 * infrun.c (displaced_step_fixup): Switch to the event_thread
11829 before calling displaced_step_restore, not after.
11830
11831 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11832
11833 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11834 its inferior is not recorded by us.
11835 (record_btrace_target_open): Replace call to
11836 all_non_exited_threads () with call to current_inferior
11837 ()->non_exited_threads ().
11838 (record_btrace_target::stop_recording): Likewise.
11839 (record_btrace_target::close): Likewise.
11840 (record_btrace_target::wait): Likewise.
11841 (record_btrace_target::record_stop_replaying): Likewise.
11842
11843 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11844
11845 * btrace.c (btrace_enable): Throw an error on double enables and
11846 when enabling recording fails.
11847 (btrace_disable): Throw an error if the thread is not recorded.
11848
11849 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11850
11851 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11852 request if we do not have a thread_info.
11853
11854 2020-04-21 Tom de Vries <tdevries@suse.de>
11855
11856 PR gdb/25471
11857 * thread.c
11858 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11859 exception in get_frame_id.
11860
11861 2020-04-20 Tom Tromey <tromey@adacore.com>
11862
11863 * python/python.c (struct gdbpy_event): Mark move constructor as
11864 noexcept.
11865 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11866 constructor as noexcept.
11867 * completer.h (struct completion_result): Mark move constructor as
11868 noexcept.
11869 * completer.c (completion_result::completion_result): Use
11870 initialization style. Don't call reset_match_list.
11871
11872 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11873
11874 * MAINTAINERS (Write After Approval): Add myself.
11875
11876 2020-04-18 Tom Tromey <tom@tromey.com>
11877
11878 * windows-tdep.c (init_w32_command_list)
11879 (w32_prefix_command_valid): Restore.
11880 (_initialize_windows_tdep): Call init_w32_command_list.
11881
11882 2020-04-18 Tom Tromey <tom@tromey.com>
11883
11884 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11885 * value.c (value_fn_field): Update.
11886 * valops.c (find_function_in_inferior)
11887 (value_allocate_space_in_inferior): Update.
11888 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11889 Update.
11890 * tui/tui-source.c (tui_source_window::set_contents): Update.
11891 * symtab.c (lookup_global_or_static_symbol)
11892 (find_function_start_sal_1, skip_prologue_sal)
11893 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11894 * symmisc.c (dump_msymbols, dump_symtab_1)
11895 (maintenance_print_one_line_table): Update.
11896 * symfile.c (init_entry_point_info, section_is_mapped)
11897 (list_overlays_command, simple_read_overlay_table)
11898 (simple_overlay_update_1): Update.
11899 * stap-probe.c (handle_stap_probe): Update.
11900 * stabsread.c (dbx_init_float_type, define_symbol)
11901 (read_one_struct_field, read_enum_type, read_range_type): Update.
11902 * source.c (info_line_command): Update.
11903 * python/python.c (gdbpy_source_objfile_script)
11904 (gdbpy_execute_objfile_script): Update.
11905 * python/py-type.c (save_objfile_types): Update.
11906 * python/py-objfile.c (py_free_objfile): Update.
11907 * python/py-inferior.c (python_new_objfile): Update.
11908 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11909 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11910 (maintenance_check_psymtabs): Update.
11911 * printcmd.c (info_address_command): Update.
11912 * objfiles.h (struct objfile) <arch>: New method, from
11913 get_objfile_arch.
11914 (get_objfile_arch): Don't declare.
11915 * objfiles.c (get_objfile_arch): Remove.
11916 (filter_overlapping_sections): Update.
11917 * minsyms.c (msymbol_is_function): Update.
11918 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11919 (output_nondebug_symbol): Update.
11920 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11921 (mdebug_expand_psymtab): Update.
11922 * machoread.c (macho_add_oso_symfile): Update.
11923 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11924 Update.
11925 * linux-fork.c (checkpoint_command): Update.
11926 * linespec.c (convert_linespec_to_sals): Update.
11927 * jit.c (finalize_symtab): Update.
11928 * infrun.c (insert_exception_resume_from_probe): Update.
11929 * ia64-tdep.c (ia64_find_unwind_table): Update.
11930 * hppa-tdep.c (internalize_unwinds): Update.
11931 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11932 Update.
11933 * gcore.c (call_target_sbrk): Update.
11934 * elfread.c (record_minimal_symbol, elf_symtab_read)
11935 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11936 (elf_gnu_ifunc_resolve_by_got): Update.
11937 * dwarf2/read.c (create_addrmap_from_index)
11938 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11939 (read_debug_names_from_section)
11940 (process_psymtab_comp_unit_reader, add_partial_symbol)
11941 (add_partial_subprogram, process_full_comp_unit)
11942 (read_file_scope, read_func_scope, read_lexical_block_scope)
11943 (read_call_site_scope, dwarf2_ranges_read)
11944 (dwarf2_record_block_ranges, dwarf2_add_field)
11945 (mark_common_block_symbol_computed, read_tag_pointer_type)
11946 (read_tag_string_type, dwarf2_init_float_type)
11947 (dwarf2_init_complex_target_type, read_base_type)
11948 (partial_die_info::read, partial_die_info::read)
11949 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11950 (dwarf2_fetch_die_loc_sect_off): Update.
11951 * dwarf2/loc.c (dwarf2_find_location_expression)
11952 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11953 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11954 (dwarf2_loc_desc_get_symbol_read_needs)
11955 (locexpr_describe_location_piece, locexpr_describe_location_1)
11956 (loclist_describe_location): Update.
11957 * dwarf2/index-write.c (write_debug_names): Update.
11958 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11959 * dtrace-probe.c (dtrace_process_dof): Update.
11960 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11961 (process_one_symbol): Update.
11962 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11963 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11964 (coff_read_enum_type): Update.
11965 * cli/cli-cmds.c (edit_command, list_command): Update.
11966 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11967 * breakpoint.c (create_overlay_event_breakpoint)
11968 (create_longjmp_master_breakpoint)
11969 (create_std_terminate_master_breakpoint)
11970 (create_exception_master_breakpoint, get_sal_arch): Update.
11971 * block.c (block_gdbarch): Update.
11972 * annotate.c (annotate_source_line): Update.
11973
11974 2020-04-17 Tom Tromey <tromey@adacore.com>
11975
11976 * auto-load.c (show_auto_load_cmd): Remove.
11977 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11978 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11979 (maintenance_print_arc_command): Remove.
11980 * tui/tui-win.c (tui_command): Remove.
11981 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11982 * tui/tui-layout.c (tui_layout_command): Remove.
11983 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11984 * python/python.c (user_set_python, user_show_python): Remove.
11985 (_initialize_python): Use add_basic_prefix_cmd,
11986 add_show_prefix_cmd.
11987 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11988 (install_gdb_commands): Use add_basic_prefix_cmd,
11989 add_show_prefix_cmd.
11990 (info_guile_command): Remove.
11991 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11992 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11993 add_show_prefix_cmd.
11994 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11995 Remove do_set and do_show parameters.
11996 * cli/cli-style.c (set_style, show_style): Remove.
11997 (_initialize_cli_style): Use add_basic_prefix_cmd,
11998 add_show_prefix_cmd.
11999 (cli_style_option::add_setshow_commands): Remove do_set and
12000 do_show parameters.
12001 (cli_style_option::add_setshow_commands): Use
12002 add_basic_prefix_cmd, add_show_prefix_cmd.
12003 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12004 (set_style_name): Remove.
12005 * cli/cli-dump.c (dump_command, append_command): Remove.
12006 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12007 (tekhex_dump_command, binary_dump_command)
12008 (binary_append_command): Remove.
12009 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12010 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12011 (init_w32_command_list): Remove; move into ...
12012 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12013 * valprint.c (set_print, show_print, set_print_raw)
12014 (show_print_raw): Remove.
12015 (_initialize_valprint): Use add_basic_prefix_cmd,
12016 add_show_prefix_cmd.
12017 * typeprint.c (set_print_type, show_print_type): Remove.
12018 (_initialize_typeprint): Use add_basic_prefix_cmd,
12019 add_show_prefix_cmd.
12020 * record.c (set_record_command, show_record_command): Remove.
12021 (_initialize_record): Use add_basic_prefix_cmd,
12022 add_show_prefix_cmd.
12023 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12024 add_show_prefix_cmd.
12025 (info_command, show_command, set_debug, show_debug): Remove.
12026 * top.h (set_history, show_history): Don't declare.
12027 * top.c (set_history, show_history): Remove.
12028 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12029 (unset_tdesc_cmd): Remove.
12030 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12031 add_show_prefix_cmd.
12032 * symtab.c (info_module_command): Remove.
12033 (_initialize_symtab): Use add_basic_prefix_cmd.
12034 * symfile.c (overlay_command): Remove.
12035 (_initialize_symfile): Use add_basic_prefix_cmd.
12036 * sparc64-tdep.c (info_adi_command): Remove.
12037 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12038 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12039 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12040 add_show_prefix_cmd.
12041 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12042 (_initialize_serial): Use add_basic_prefix_cmd,
12043 add_show_prefix_cmd.
12044 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12045 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12046 add_show_prefix_cmd.
12047 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12048 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12049 add_show_prefix_cmd.
12050 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12051 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12052 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12053 add_show_prefix_cmd.
12054 * remote.c (remote_command, set_remote_cmd): Remove.
12055 (_initialize_remote): Use add_basic_prefix_cmd.
12056 * record-full.c (set_record_full_command)
12057 (show_record_full_command): Remove.
12058 (_initialize_record_full): Use add_basic_prefix_cmd,
12059 add_show_prefix_cmd.
12060 * record-btrace.c (cmd_set_record_btrace)
12061 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12062 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12063 (cmd_show_record_btrace_pt): Remove.
12064 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12065 add_show_prefix_cmd.
12066 * ravenscar-thread.c (set_ravenscar_command)
12067 (show_ravenscar_command): Remove.
12068 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12069 add_show_prefix_cmd.
12070 * mips-tdep.c (show_mips_command, set_mips_command)
12071 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12072 add_show_prefix_cmd.
12073 * maint.c (maintenance_command, maintenance_info_command)
12074 (maintenance_check_command, maintenance_print_command)
12075 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12076 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12077 add_show_prefix_cmd.
12078 (show_per_command_cmd): Remove.
12079 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12080 Remove.
12081 (maintenance_show_test_settings_cmd): Remove.
12082 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12083 add_show_prefix_cmd.
12084 * maint-test-options.c (maintenance_test_options_command):
12085 Remove.
12086 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12087 * macrocmd.c (macro_command): Remove
12088 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12089 * language.c (set_check, show_check): Remove.
12090 (_initialize_language): Use add_basic_prefix_cmd,
12091 add_show_prefix_cmd.
12092 * infcmd.c (unset_command): Remove.
12093 (_initialize_infcmd): Use add_basic_prefix_cmd.
12094 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12095 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12096 add_show_prefix_cmd.
12097 * go32-nat.c (go32_info_dos_command): Remove.
12098 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12099 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12100 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12101 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12102 (_initialize_frame): Use add_basic_prefix_cmd,
12103 add_show_prefix_cmd.
12104 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12105 (_initialize_dcache): Use add_basic_prefix_cmd,
12106 add_show_prefix_cmd.
12107 * cp-support.c (maint_cplus_command): Remove.
12108 (_initialize_cp_support): Use add_basic_prefix_cmd.
12109 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12110 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12111 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12112 add_basic_prefix_cmd, add_show_prefix_cmd.
12113 * breakpoint.c (save_command): Remove.
12114 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12115 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12116 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12117 add_show_prefix_cmd.
12118 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12119 (set_ada_command, show_ada_command): Remove.
12120 (_initialize_ada_language): Use add_basic_prefix_cmd,
12121 add_show_prefix_cmd.
12122 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12123
12124 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12125
12126 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12127 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12128
12129 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12130
12131 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12132 warning messages.
12133
12134 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12135
12136 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12137 import table is not at beginning of .idata section.
12138
12139 2020-04-16 Pedro Alves <palves@redhat.com>
12140
12141 * inferior.c (delete_inferior): Use delete operator directly
12142 instead of delete_program_space.
12143 * progspace.c (add_program_space): New, factored out from
12144 program_space::program_space.
12145 (remove_program_space): New, factored out from
12146 delete_program_space.
12147 (program_space::program_space): Remove intro comment. Rewrite.
12148 (program_space::~program_space): Remove intro comment. Call
12149 remove_program_space.
12150 (delete_program_space): Delete.
12151 * progspace.h (program_space::program_space): Make explicit. Move
12152 intro comment here, adjusted.
12153 (program_space::~program_space): Move intro comment here,
12154 adjusted.
12155 (delete_program_space): Remove.
12156
12157 2020-04-16 Tom Tromey <tromey@adacore.com>
12158
12159 * windows-nat.c (windows_nat::handle_access_violation): New
12160 function.
12161 * nat/windows-nat.h (handle_access_violation): Declare.
12162 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12163 windows-nat.c. Call handle_access_violation.
12164
12165 2020-04-16 Tom de Vries <tdevries@suse.de>
12166
12167 PR symtab/25791
12168 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12169 CUs without psymtab.
12170
12171 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12172
12173 * python/python.c (do_start_initialization): Don't call
12174 PyEval_InitThreads for Python 3.9 and beyond.
12175
12176 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12177
12178 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12179 thread functions.
12180 (obsd_nat_target::wait): Likewise.
12181
12182 2020-04-15 Tom Tromey <tromey@adacore.com>
12183
12184 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12185 (DEBUG_EXCEPT): Use debug_printf.
12186
12187 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12188
12189 * completer.c (class completion_tracker::completion_hash_entry)
12190 <hash_name>: New member function.
12191 (completion_tracker::discard_completions): New callback to hash a
12192 completion_hash_entry, pass this to htab_create_alloc.
12193
12194 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12195
12196 * windows-nat.c (windows_make_so): Warn rather than stopping with
12197 an error if realpath() fails.
12198
12199 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12200
12201 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12202 (nbsd_nat_target::info_proc): Add do_status.
12203
12204 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12205 Tom de Vries <tdevries@suse.de>
12206
12207 PR symtab/25718
12208 * psympriv.h (struct partial_symtab::read_symtab)
12209 (struct partial_symtab::expand_psymtab)
12210 (struct partial_symtab::read_dependencies): Update comments.
12211 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12212 read_symtab for includer.
12213 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12214 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12215 (struct dwarf2_include_psymtab::m_readin): Remove.
12216 (struct dwarf2_include_psymtab::includer): New member function.
12217 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12218
12219 2020-04-14 Tom de Vries <tdevries@suse.de>
12220
12221 PR symtab/25720
12222 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12223 with NULL symbol_matcher and lookup_name.
12224 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12225 and lookup_name.
12226 * dwarf2/read.c (dw2_expand_symtabs_matching)
12227 (dw2_debug_names_expand_symtabs_matching): Same.
12228 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12229 Make lookup_name a pointer. Update comment.
12230 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12231 lookup_name being a pointer.
12232 * symfile.c (expand_symtabs_matching): Same.
12233 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12234 * linespec.c (iterate_over_all_matching_symtabs): Same.
12235
12236 2020-04-13 Tom Tromey <tom@tromey.com>
12237
12238 * run-on-main-thread.c: Update include.
12239 * unittests/main-thread-selftests.c: Update include.
12240 * tui/tui-win.c: Update include.
12241 * tui/tui-io.c: Update include.
12242 * tui/tui-interp.c: Update include.
12243 * tui/tui-hooks.c: Update include.
12244 * top.h: Update include.
12245 * top.c: Update include.
12246 * ser-base.c: Update include.
12247 * remote.c: Update include.
12248 * remote-notif.c: Update include.
12249 * remote-fileio.c: Update include.
12250 * record-full.c: Update include.
12251 * record-btrace.c: Update include.
12252 * python/python.c: Update include.
12253 * posix-hdep.c: Update include.
12254 * mingw-hdep.c: Update include.
12255 * mi/mi-main.c: Update include.
12256 * mi/mi-interp.c: Update include.
12257 * main.c: Update include.
12258 * linux-nat.c: Update include.
12259 * interps.c: Update include.
12260 * infrun.c: Update include.
12261 * inf-loop.c: Update include.
12262 * event-top.c: Update include.
12263 * event-loop.c: Move to ../gdbsupport/.
12264 * event-loop.h: Move to ../gdbsupport/.
12265 * async-event.h: Update include.
12266 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12267
12268 2020-04-13 Tom Tromey <tom@tromey.com>
12269
12270 * tui/tui-win.c: Include async-event.h.
12271 * remote.c: Include async-event.h.
12272 * remote-notif.c: Include async-event.h.
12273 * record-full.c: Include async-event.h.
12274 * record-btrace.c: Include async-event.h.
12275 * infrun.c: Include async-event.h.
12276 * event-top.c: Include async-event.h.
12277 * event-loop.h: Move some declarations to async-event.h.
12278 * event-loop.c: Don't include ser-event.h or top.h. Move some
12279 code to async-event.c.
12280 * async-event.h: New file.
12281 * async-event.c: New file.
12282 * Makefile.in (COMMON_SFILES): Add async-event.c.
12283 (HFILES_NO_SRCDIR): Add async-event.h.
12284
12285 2020-04-13 Tom Tromey <tom@tromey.com>
12286
12287 * utils.c (flush_streams): New function.
12288 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12289
12290 2020-04-13 Tom Tromey <tom@tromey.com>
12291
12292 * event-loop.c (handle_file_event): Use warning, not
12293 printf_unfiltered.
12294
12295 2020-04-13 Tom Tromey <tom@tromey.com>
12296
12297 * event-loop.c: Include <chrono>.
12298
12299 2020-04-13 Tom Tromey <tom@tromey.com>
12300
12301 * gdb_select.h: Move to ../gdbsupport/.
12302 * event-loop.c: Update include path.
12303 * top.c: Update include path.
12304 * ser-base.c: Update include path.
12305 * ui-file.c: Update include path.
12306 * ser-tcp.c: Update include path.
12307 * guile/scm-ports.c: Update include path.
12308 * posix-hdep.c: Update include path.
12309 * ser-unix.c: Update include path.
12310 * gdb_usleep.c: Update include path.
12311 * mingw-hdep.c: Update include path.
12312 * inflow.c: Update include path.
12313 * infrun.c: Update include path.
12314 * event-top.c: Update include path.
12315
12316 2020-04-13 Tom Tromey <tom@tromey.com>
12317
12318 * configure: Rebuild.
12319 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12320
12321 2020-04-13 Tom Tromey <tom@tromey.com>
12322
12323 * event-loop.h (start_event_loop): Don't declare.
12324 * event-loop.c (start_event_loop): Move...
12325 * main.c (start_event_loop): ...here. Now static.
12326
12327 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12328
12329 * MAINTAINERS: Update my email address.
12330
12331 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12332
12333 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12334 IP_ALL.
12335
12336 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12337
12338 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12339 (nbsd_nat_target::info_proc): Add do_cmdline.
12340
12341 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12342
12343 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12344 (nbsd_nat_target::info_proc): Add do_cwd.
12345
12346 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12347
12348 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12349
12350 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12351
12352 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12353 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12354 (nbsd_nat_target::info_proc): New functions.
12355 * nbsd-nat.c (kinfo_get_vmmap): New function.
12356 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12357 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12358 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12359 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12360 functions.
12361 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12362 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12363 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12364 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12365 (KINFO_VME_FLAG_GROWS_DOWN): New.
12366
12367 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12368
12369 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12370 bit shift.
12371
12372 2020-04-10 Tom Tromey <tromey@adacore.com>
12373
12374 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12375
12376 2020-04-10 Tom Tromey <tromey@adacore.com>
12377
12378 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12379 separate debug files.
12380
12381 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12382
12383 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12384 Move to...
12385 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12386 ... here.
12387 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12388 Check for STATUS_WX86_BREAKPOINT.
12389 (windows_nat_target::wait): Same.
12390
12391 2020-04-10 Tom de Vries <tdevries@suse.de>
12392
12393 PR cli/25808
12394 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12395
12396 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12397
12398 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12399 (Write After Approval): Remove Tom de Vries.
12400
12401 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12402
12403 revert partially:
12404 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12405
12406 * buildsym.c (record_line): Fix undefined behavior and preserve
12407 lines at eof.
12408
12409 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12410
12411 * auxv.h (svr4_auxv_parse): New.
12412 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12413 and generic_auxv_parse.
12414 (svr4_auxv_parse): Add.
12415 * obsd-tdep.c: Include "auxv.h".
12416 (obsd_auxv_parse): Remove.
12417 (obsd_init_abi): Remove comment.
12418 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12419 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12420 * nbsd-tdep.c: Include "auxv.h".
12421 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12422
12423 2020-04-08 Tom Tromey <tromey@adacore.com>
12424
12425 * nat/windows-nat.h (last_wait_event): Don't declare.
12426 (wait_for_debug_event): Update comment.
12427 * nat/windows-nat.c (last_wait_event): Now static.
12428
12429 2020-04-08 Tom Tromey <tromey@adacore.com>
12430
12431 * windows-nat.c (wait_for_debug_event): Move to
12432 nat/windows-nat.c.
12433 * nat/windows-nat.h (wait_for_debug_event): Declare.
12434 * nat/windows-nat.c (wait_for_debug_event): Move from
12435 windows-nat.c. No longer static.
12436
12437 2020-04-08 Tom Tromey <tromey@adacore.com>
12438
12439 * windows-nat.c (get_windows_debug_event): Use
12440 fetch_pending_stop.
12441 * nat/windows-nat.h (fetch_pending_stop): Declare.
12442 * nat/windows-nat.c (fetch_pending_stop): New function.
12443
12444 2020-04-08 Tom Tromey <tromey@adacore.com>
12445
12446 * windows-nat.c (windows_continue): Use matching_pending_stop and
12447 continue_last_debug_event.
12448 * nat/windows-nat.h (matching_pending_stop)
12449 (continue_last_debug_event): Declare.
12450 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12451 (matching_pending_stop, continue_last_debug_event): New
12452 functions.
12453
12454 2020-04-08 Tom Tromey <tromey@adacore.com>
12455
12456 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12457 (handle_exception_result): Move to nat/windows-nat.h.
12458 (DEBUG_EXCEPTION_SIMPLE): Remove.
12459 (windows_nat::handle_ms_vc_exception): New function.
12460 (handle_exception): Move to nat/windows-nat.c.
12461 (get_windows_debug_event): Update.
12462 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12463 nat/windows-nat.c.
12464 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12465 (handle_exception_result): Move from windows-nat.c.
12466 (handle_exception): Declare.
12467 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12468 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12469 windows-nat.c.
12470
12471 2020-04-08 Tom Tromey <tromey@adacore.com>
12472
12473 * windows-nat.c (exception_count, event_count): Remove.
12474 (handle_exception, get_windows_debug_event)
12475 (do_initial_windows_stuff): Update.
12476
12477 2020-04-08 Tom Tromey <tromey@adacore.com>
12478
12479 * windows-nat.c (windows_nat::handle_load_dll)
12480 (windows_nat::handle_unload_dll): Rename. No longer static.
12481 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12482 Declare.
12483
12484 2020-04-08 Tom Tromey <tromey@adacore.com>
12485
12486 * complaints.h (stop_whining): Declare at top-level.
12487 (complaint): Don't declare stop_whining.
12488
12489 2020-04-08 Tom Tromey <tromey@adacore.com>
12490
12491 * windows-nat.c (windows_nat::handle_output_debug_string):
12492 Rename. No longer static.
12493 * nat/windows-nat.h (handle_output_debug_string): Declare.
12494
12495 2020-04-08 Tom Tromey <tromey@adacore.com>
12496
12497 * windows-nat.c (current_process_handle, current_process_id)
12498 (main_thread_id, last_sig, current_event, last_wait_event)
12499 (current_windows_thread, desired_stop_thread_id, pending_stops)
12500 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12501 (display_selectors, fake_create_process)
12502 (get_windows_debug_event): Update.
12503 * nat/windows-nat.h (current_process_handle, current_process_id)
12504 (main_thread_id, last_sig, current_event, last_wait_event)
12505 (current_windows_thread, desired_stop_thread_id, pending_stops)
12506 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12507 * nat/windows-nat.c (current_process_handle, current_process_id)
12508 (main_thread_id, last_sig, current_event, last_wait_event)
12509 (current_windows_thread, desired_stop_thread_id, pending_stops)
12510 (siginfo_er): New globals. Move from windows-nat.c.
12511
12512 2020-04-08 Tom Tromey <tromey@adacore.com>
12513
12514 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12515 (handle_load_dll): Update.
12516 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12517
12518 2020-04-08 Tom Tromey <tromey@adacore.com>
12519
12520 * windows-nat.c (enum thread_disposition_type): Move to
12521 nat/windows-nat.h.
12522 (windows_nat::thread_rec): Rename from thread_rec. No longer
12523 static.
12524 (windows_add_thread, windows_nat_target::fetch_registers)
12525 (windows_nat_target::store_registers, handle_exception)
12526 (windows_nat_target::resume, get_windows_debug_event)
12527 (windows_nat_target::get_tib_address)
12528 (windows_nat_target::thread_name)
12529 (windows_nat_target::thread_alive): Update.
12530 * nat/windows-nat.h (enum thread_disposition_type): Move from
12531 windows-nat.c.
12532 (thread_rec): Declare.
12533
12534 2020-04-08 Tom Tromey <tromey@adacore.com>
12535
12536 * windows-nat.c: Add "using namespace".
12537 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12538 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12539
12540 2020-04-08 Tom Tromey <tromey@adacore.com>
12541
12542 * nat/windows-nat.h (struct windows_thread_info): Declare
12543 destructor.
12544 * nat/windows-nat.c (~windows_thread_info): New.
12545
12546 2020-04-08 Tom Tromey <tromey@adacore.com>
12547
12548 PR gdb/22992
12549 * windows-nat.c (current_event): Update comment.
12550 (last_wait_event, desired_stop_thread_id): New globals.
12551 (struct pending_stop): New.
12552 (pending_stops): New global.
12553 (windows_nat_target) <stopped_by_sw_breakpoint>
12554 <supports_stopped_by_sw_breakpoint>: New methods.
12555 (windows_fetch_one_register): Add assertions. Adjust PC.
12556 (windows_continue): Handle pending stops. Suspend other threads
12557 when stepping. Use last_wait_event
12558 (wait_for_debug_event): New function.
12559 (get_windows_debug_event): Use wait_for_debug_event. Handle
12560 pending stops. Queue spurious stops.
12561 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12562 (windows_nat_target::kill): Use wait_for_debug_event.
12563 * nat/windows-nat.h (struct windows_thread_info)
12564 <stopped_at_software_breakpoint>: New field.
12565 * nat/windows-nat.c (windows_thread_info::resume): Clear
12566 stopped_at_software_breakpoint.
12567
12568 2020-04-08 Tom Tromey <tromey@adacore.com>
12569
12570 * windows-nat.c (enum thread_disposition_type): New.
12571 (thread_rec): Replace "get_context" parameter with "disposition";
12572 change type.
12573 (windows_add_thread, windows_nat_target::fetch_registers)
12574 (windows_nat_target::store_registers, handle_exception)
12575 (windows_nat_target::resume, get_windows_debug_event)
12576 (windows_nat_target::get_tib_address)
12577 (windows_nat_target::thread_name)
12578 (windows_nat_target::thread_alive): Update.
12579
12580 2020-04-08 Tom Tromey <tromey@adacore.com>
12581
12582 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12583 (windows_continue): Use windows_continue::resume.
12584 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12585 resume>: Declare new methods.
12586 * nat/windows-nat.c: New file.
12587 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12588
12589 2020-04-08 Tom Tromey <tromey@adacore.com>
12590
12591 * windows-nat.c (windows_add_thread, windows_delete_thread)
12592 (windows_nat_target::fetch_registers)
12593 (windows_nat_target::store_registers, fake_create_process)
12594 (windows_nat_target::resume, windows_nat_target::resume)
12595 (get_windows_debug_event, windows_nat_target::wait)
12596 (windows_nat_target::pid_to_str)
12597 (windows_nat_target::get_tib_address)
12598 (windows_nat_target::get_ada_task_ptid)
12599 (windows_nat_target::thread_name)
12600 (windows_nat_target::thread_alive): Use lwp, not tid.
12601
12602 2020-04-08 Tom Tromey <tromey@adacore.com>
12603
12604 * windows-nat.c (handle_exception)
12605 (windows_nat_target::thread_name): Update.
12606 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12607 <name>: Now unique_xmalloc_ptr.
12608
12609 2020-04-08 Tom Tromey <tromey@adacore.com>
12610
12611 * windows-nat.c (thread_rec)
12612 (windows_nat_target::fetch_registers): Update.
12613 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12614 Update comment.
12615 <debug_registers_changed, reload_context>: Now bool.
12616
12617 2020-04-08 Tom Tromey <tromey@adacore.com>
12618
12619 * windows-nat.c (windows_add_thread): Use new.
12620 (windows_init_thread_list, windows_delete_thread): Use delete.
12621 (get_windows_debug_event): Update.
12622 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12623 destructor, and initializers.
12624
12625 2020-04-08 Tom Tromey <tromey@adacore.com>
12626
12627 * windows-nat.c (struct windows_thread_info): Remove.
12628 * nat/windows-nat.h: New file.
12629
12630 2020-04-08 Tom Tromey <tromey@adacore.com>
12631
12632 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12633 (thread_rec, windows_add_thread, windows_delete_thread)
12634 (windows_continue): Update.
12635
12636 2020-04-08 Tom Tromey <tromey@adacore.com>
12637
12638 * windows-nat.c (struct windows_thread_info): Remove typedef.
12639 (thread_head): Remove.
12640 (thread_list): New global.
12641 (thread_rec, windows_add_thread, windows_init_thread_list)
12642 (windows_delete_thread, windows_continue): Update.
12643
12644 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12645
12646 * windows-tdep.h (windows_init_abi): Add comment.
12647 (cygwin_init_abi): New declaration.
12648 * windows-tdep.c: Split signal enumeration in two, one for
12649 Windows and one for Cygwin.
12650 (windows_gdb_signal_to_target): Only deal with signal of the
12651 Windows OS ABI.
12652 (cygwin_gdb_signal_to_target): New function.
12653 (windows_init_abi): Rename to windows_init_abi_common, don't set
12654 gdb_signal_to_target gdbarch method. Add new new function with
12655 this name.
12656 (cygwin_init_abi): New function.
12657 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12658 comment. Don't call windows_init_abi.
12659 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12660 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12661 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12662 i386_windows_init_abi_common, don't call windows_init_abi. Add
12663 a new function of this name.
12664 (i386_cygwin_init_abi): New function.
12665 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12666 OS ABI Cygwin.
12667
12668 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12669
12670 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12671 parameter.c.
12672 (dwarf2_read_gdb_index): Update.
12673
12674 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12675
12676 * nbsd-tdep.c: Include "objfiles.h".
12677 (nbsd_skip_solib_resolver): New.
12678 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12679
12680 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12681
12682 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12683 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12684 with DW_LLE_base_addressx are being emitted in DWARFv5.
12685 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12686 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12687 unsigned integer.
12688
12689 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12690
12691 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12692 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12693 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12694 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12695 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12696 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12697 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12698
12699
12700 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12701
12702 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12703 (read_loclist_index): New function definition.
12704 (lookup_loclist_base): New function definition.
12705 (read_loclist_header): New function definition.
12706 (dwarf2_cu): Add loclist_base and loclist_header field.
12707 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12708 (read_full_die_1): Read the value of DW_AT_loclists_base.
12709 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12710 (read_attribute_value): Handle DW_FORM_loclistx.
12711 (skip_one_die): Handle DW_FORM_loclistx.
12712 (loclist_header): New structure declaration.
12713 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12714
12715 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12716
12717 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12718 constructor. Remove `addr` parameter from other constructor and
12719 add `per_cu` parameter.
12720 * dwarf2/read.c (create_partial_symtab): Update.
12721
12722 2020-04-07 Tom de Vries <tdevries@suse.de>
12723
12724 PR symtab/25796
12725 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12726 (partial_die_info::fixup): Inherit has_const_value.
12727
12728 2020-04-07 Tom de Vries <tdevries@suse.de>
12729
12730 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12731 symbols without address.
12732
12733 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12734
12735 * nbsd-nat.h (struct thread_info): Add forward declaration.
12736 (nbsd_nat_target::thread_alive): Add.
12737 (nbsd_nat_target::thread_name): Likewise.
12738 (nbsd_nat_target::update_thread_list): Likewise.
12739 (update_thread_list::post_attach): Likewise.
12740 (post_attach::pid_to_str): Likewise.
12741 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12742 (nbsd_thread_lister): Add.
12743 (nbsd_nat_target::thread_alive): Likewise.
12744 (nbsd_nat_target::thread_name): Likewise.
12745 (nbsd_add_threads): Likewise.
12746 (update_thread_list::post_attach): Likewise.
12747 (nbsd_nat_target::update_thread_list): Likewise.
12748 (post_attach::pid_to_str): Likewise.
12749
12750 2020-04-06 Tom Tromey <tromey@adacore.com>
12751
12752 * ada-valprint.c (print_variant_part): Extract the variant field.
12753 (print_field_values): Use the field as the outer value when
12754 recursing.
12755
12756 2020-04-06 Tom Tromey <tromey@adacore.com>
12757
12758 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12759 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12760 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12761 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12762 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12763
12764 2020-04-06 Tom Tromey <tromey@adacore.com>
12765
12766 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12767 TYPE_CODE_ERROR.
12768
12769 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12770
12771 * nbsd-tdep.c: Include "gdbarch.h".
12772 Define enum with NetBSD signal numbers.
12773 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12774 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12775 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12776 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12777 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12778 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12779 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12780 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12781 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12782 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12783 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12784 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12785
12786 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12787
12788 PR gdb/25325
12789 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12790
12791 2020-04-03 Tom Tromey <tromey@adacore.com>
12792
12793 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12794 Read constant block.
12795
12796 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12797
12798 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12799 (gdb_bfd_get_full_section_contents): New declaration.
12800 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12801 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12802 gdb_bfd_get_full_section_contents.
12803
12804 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12805
12806 * exec.c (build_section_table): Replace internal_error with
12807 gdb_assert.
12808 (section_table_xfer_memory_partial): Likewise.
12809 * mdebugread.c (parse_partial_symbols): Likewise.
12810 * psymtab.c (lookup_partial_symbol): Likewise.
12811 * utils.c (wrap_here): Likewise.
12812
12813 2020-04-02 Tom Tromey <tromey@adacore.com>
12814
12815 * f-lang.c (build_fortran_types): Use arch_type to initialize
12816 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12817
12818 2020-04-02 Tom Tromey <tromey@adacore.com>
12819
12820 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12821 of attributes.
12822
12823 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12824 Bernd Edlinger <bernd.edlinger@hotmail.de>
12825 Tom Tromey <tromey@adacore.com>
12826
12827 * buildsym.c (buildsym_compunit::record_line): Remove
12828 deduplication code.
12829
12830 2020-04-02 Tom de Vries <tdevries@suse.de>
12831
12832 PR ada/24671
12833 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12834
12835 2020-04-02 Tom de Vries <tdevries@suse.de>
12836
12837 * dwarf2/read.c (dwarf2_gdb_index_functions,
12838 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12839 NULL.
12840 * psymtab.c (psym_lookup_global_symbol_language): New function.
12841 (psym_functions): Init psym_lookup_global_symbol_language with
12842 psym_lookup_global_symbol_language.
12843 * symfile-debug.c (debug_sym_quick_functions): Init
12844 lookup_global_symbol_language with NULL.
12845 * symfile.c (set_initial_language): Remove fixme comment.
12846 * symfile.h (struct quick_symbol_functions): Add
12847 lookup_global_symbol_language.
12848 * symtab.c (find_quick_global_symbol_language): New function.
12849 (find_main_name): Use find_quick_global_symbol_language.
12850
12851 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12852
12853 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12854
12855 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12856
12857 * buildsym.c (record_line): Fix undefined behavior and preserve
12858 lines at eof.
12859
12860 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12861
12862 * buildsym.c (record_line): Fix the resizing condition.
12863
12864 2020-04-01 Tom Tromey <tom@tromey.com>
12865
12866 * value.h (value_literal_complex): Add comment.
12867 * valops.c (value_literal_complex): Refer to value.h.
12868
12869 2020-04-01 Tom Tromey <tom@tromey.com>
12870
12871 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12872 (scalar_type): New rule, from typebase.
12873 (typebase): Use scalar_type. Recognize complex types.
12874 (field_name): Handle FLOAT_KEYWORD.
12875 (ident_tokens): Add _Complex and __complex__.
12876
12877 2020-04-01 Tom Tromey <tom@tromey.com>
12878
12879 PR exp/25299:
12880 * valarith.c (promotion_type, complex_binop): New functions.
12881 (scalar_binop): Handle complex numbers. Use promotion_type.
12882 (value_pos, value_neg, value_complement): Handle complex numbers.
12883
12884 2020-04-01 Tom Tromey <tom@tromey.com>
12885
12886 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12887 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12888 (parse_number): Handle complex numbers.
12889
12890 2020-04-01 Tom Tromey <tom@tromey.com>
12891
12892 * c-valprint.c (c_decorations): Change complex suffix to "i".
12893
12894 2020-04-01 Tom Tromey <tom@tromey.com>
12895
12896 * valprint.c (generic_value_print_complex): Use accessors.
12897 * value.h (value_real_part, value_imaginary_part): Declare.
12898 * valops.c (value_real_part, value_imaginary_part): New
12899 functions.
12900 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12901
12902 2020-04-01 Tom Tromey <tom@tromey.com>
12903
12904 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12905 (read_range_type): Update.
12906 * mdebugread.c (basic_type): Update.
12907 * go-lang.c (build_go_types): Use init_complex_type.
12908 * gdbtypes.h (struct main_type) <complex_type>: New member.
12909 (init_complex_type): Update.
12910 (arch_complex_type): Don't declare.
12911 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12912 Make name if none given. Use alloc_type_copy. Look for cached
12913 complex type.
12914 (arch_complex_type): Remove.
12915 (gdbtypes_post_init): Use init_complex_type.
12916 * f-lang.c (build_fortran_types): Use init_complex_type.
12917 * dwarf2/read.c (read_base_type): Update.
12918 * d-lang.c (build_d_types): Use init_complex_type.
12919 * ctfread.c (read_base_type): Update.
12920
12921 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12922
12923 * infrun.c (stop_all_threads): Update assertion, plus when
12924 stopping threads, take into account that we might be trying
12925 to stop an all-stop target.
12926 (stop_waiting): Call 'stop_all_threads' if there exists a
12927 non-stop target.
12928
12929 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12930
12931 * target.h (exists_non_stop_target): New function declaration.
12932 * target.c (exists_non_stop_target): New function.
12933
12934 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12935
12936 PR gdb/24789
12937 * eval.c (is_integral_or_integral_reference): New function.
12938 (evaluate_subexp_standard): Allow integer references in
12939 pointer arithmetic.
12940
12941 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12942
12943 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12944 check for no ptid in the stop reply when the target is non-stop.
12945
12946 2020-04-01 Tom Tromey <tromey@adacore.com>
12947
12948 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12949 "name" parameter to rvalue reference. Initialize m_name_holder.
12950 <lookup_name_info>: New overloads.
12951 <name>: Return gdb::string_view.
12952 <c_str>: New method.
12953 <make_ignore_params>: Update.
12954 <search_name_hash>: Update.
12955 <language_lookup_name>: Return const char *.
12956 <m_name>: Change type.
12957 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12958 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12959 (lookup_name_info::match_any): Update.
12960 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12961 Update.
12962 * minsyms.c (linkage_name_str): Update.
12963 * language.c (default_symbol_name_matcher): Update.
12964 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12965 Update.
12966 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12967 (ada_lookup_name_info::ada_lookup_name_info): Update.
12968 (literal_symbol_name_matcher): Update.
12969
12970 2020-04-01 Tom Tromey <tromey@adacore.com>
12971
12972 * psymtab.c (psymtab_search_name): Remove function.
12973 (psym_lookup_symbol): Create search name and lookup name here.
12974 (lookup_partial_symbol): Remove "name" parameter; add
12975 lookup_name.
12976 (psym_expand_symtabs_for_function): Update.
12977
12978 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12979
12980 PR tui/25597:
12981 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12982
12983 2020-03-31 Tom Tromey <tromey@adacore.com>
12984
12985 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12986 memcpy.
12987
12988 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12989
12990 * features/riscv/32bit-csr.xml: Regenerated.
12991 * features/riscv/64bit-csr.xml: Regenerated.
12992
12993 2020-03-30 Tom Tromey <tromey@adacore.com>
12994
12995 * ada-valprint.c (print_variant_part): Update.
12996 * ada-lang.h (ada_which_variant_applies): Update.
12997 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12998 outer_valaddr parameters; replace with "outer" value parameter.
12999 (to_fixed_variant_branch_type): Update.
13000
13001 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13002
13003 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13004 <list>. Remove inclusion of observable.h.
13005 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13006 (struct arch_lwp_info): New struct.
13007 (class ppc_linux_dreg_interface): New class.
13008 (struct ppc_linux_process_info): New struct.
13009 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13010 <low_new_clone, low_forget_process, low_prepare_to_resume>
13011 <copy_thread_dreg_state, mark_thread_stale>
13012 <mark_debug_registers_changed, register_hw_breakpoint>
13013 <clear_hw_breakpoint, register_wp, clear_wp>
13014 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13015 <num_memory_accesses, get_trigger_type>
13016 <create_watchpoint_request, hwdebug_point_cmp>
13017 <init_arch_lwp_info, get_arch_lwp_info>
13018 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13019 methods.
13020 <struct ptid_hash>: New inner struct.
13021 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13022 members.
13023 (saved_dabr_value, hwdebug_info, max_slots_number)
13024 (struct hw_break_tuple, struct thread_points, ppc_threads)
13025 (have_ptrace_hwdebug_interface)
13026 (hwdebug_find_thread_points_by_tid)
13027 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13028 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13029 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13030 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13031 use m_dreg_interface.
13032 (hwdebug_point_cmp): Change to...
13033 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13034 reference arguments instead of pointers.
13035 (ppc_linux_nat_target::ranged_break_num_registers): Use
13036 m_dreg_interface.
13037 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13038 m_dreg_interface. Call register_hw_breakpoint.
13039 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13040 m_dreg_interface. Call clear_hw_breakpoint.
13041 (get_trigger_type): Change to...
13042 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13043 comment.
13044 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13045 use m_dreg_interface. Call register_hw_breakpoint.
13046 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13047 use m_dreg_interface. Call clear_hw_breakpoint.
13048 (can_use_watchpoint_cond_accel): Change to...
13049 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13050 method. Update comment, use m_dreg_interface and
13051 m_process_info.
13052 (calculate_dvc): Change to...
13053 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13054 m_dreg_interface.
13055 (num_memory_accesses): Change to...
13056 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13057 (check_condition): Change to...
13058 (ppc_linux_nat_target::check_condition): ...this method.
13059 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13060 comment, use m_dreg_interface.
13061 (create_watchpoint_request): Change to...
13062 (ppc_linux_nat_target::create_watchpoint_request): ...this
13063 method. Use m_dreg_interface.
13064 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13065 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13066 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13067 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13068 (ppc_linux_nat_target::low_forget_process)
13069 (ppc_linux_nat_target::low_new_fork)
13070 (ppc_linux_nat_target::low_new_clone)
13071 (ppc_linux_nat_target::low_delete_thread)
13072 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13073 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13074 only call mark_thread_stale.
13075 (ppc_linux_thread_exit): Remove.
13076 (ppc_linux_nat_target::stopped_data_address): Change to...
13077 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13078 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13079 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13080 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13081 comment. Call low_stopped_data_address.
13082 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13083 m_dreg_interface.
13084 (ppc_linux_nat_target::masked_watch_num_registers): Use
13085 m_dreg_interface.
13086 (ppc_linux_nat_target::copy_thread_dreg_state)
13087 (ppc_linux_nat_target::mark_thread_stale)
13088 (ppc_linux_nat_target::mark_debug_registers_changed)
13089 (ppc_linux_nat_target::register_hw_breakpoint)
13090 (ppc_linux_nat_target::clear_hw_breakpoint)
13091 (ppc_linux_nat_target::register_wp)
13092 (ppc_linux_nat_target::clear_wp)
13093 (ppc_linux_nat_target::init_arch_lwp_info)
13094 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13095 (_initialize_ppc_linux_nat): Remove observer callback.
13096
13097 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13098
13099 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13100 (ppc_linux_nat_target::auxv_parse)
13101 (ppc_linux_nat_target::read_description)
13102 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13103 Move up.
13104
13105 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13106
13107 * linux-nat.h (low_new_clone): New method.
13108 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13109
13110 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13111
13112 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13113 (dbx_expand_psymtab): ... this.
13114 (start_psymtab): Update.
13115 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13116 (mdebug_expand_psymtab): ... this.
13117 (parse_partial_symbols): Update.
13118 (new_psymtab): Update.
13119 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13120 (xcoff_expand_psymtab): ... this.
13121 (xcoff_start_psymtab): Update.
13122
13123 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13124
13125 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13126 <expand_dependencies>: ... this.
13127 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13128 (partial_symtab::expand_dependencies): ... this.
13129 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13130 Update.
13131 (dwarf2_psymtab::expand_psymtab): Update.
13132 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13133 * mdebugread.c (psymtab_to_symtab_1): Update.
13134 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13135
13136 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13137
13138 * psympriv.h (discard_psymtab): Remove.
13139 * dbxread.c (dbx_end_psymtab): Update.
13140 * xcoffread.c (xcoff_end_psymtab): Update.
13141
13142 2020-03-28 Tom Tromey <tom@tromey.com>
13143
13144 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13145 comment.
13146
13147 2020-03-28 Tom Tromey <tom@tromey.com>
13148
13149 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13150
13151 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13152
13153 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13154
13155 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13156
13157 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13158
13159 2020-03-26 Tom Tromey <tom@tromey.com>
13160
13161 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13162 (mark_common_block_symbol_computed, read_tag_string_type)
13163 (attr_to_dynamic_prop, read_subrange_type): Update.
13164 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13165 to be methods on struct attribute.
13166 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13167 (read_call_site_scope, partial_die_info::read)
13168 (partial_die_info::read, lookup_die_type, follow_die_ref):
13169 Update.
13170 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13171 from dwarf2_get_ref_die_offset.
13172 (attribute::constant_value): New method, from
13173 dwarf2_get_attr_constant_value.
13174 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13175 Declare method.
13176 <constant_value>: New method.
13177
13178 2020-03-26 Tom Tromey <tom@tromey.com>
13179
13180 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13181 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13182 (dwarf_type_encoding_name): Move to stringify.c.
13183 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13184 * dwarf2/stringify.c: New file.
13185 * dwarf2/stringify.h: New file.
13186
13187 2020-03-26 Tom Tromey <tom@tromey.com>
13188
13189 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13190 Rewrite.
13191
13192 2020-03-26 Tom Tromey <tom@tromey.com>
13193
13194 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13195 methods.
13196 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13197 (lookup_ranges_base): Likewise.
13198 (read_cutu_die_from_dwo, read_full_die_1): Update.
13199
13200 2020-03-26 Tom Tromey <tom@tromey.com>
13201
13202 * dwarf2/read.c (read_import_statement, read_file_scope)
13203 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13204 (read_lexical_block_scope, read_call_site_scope)
13205 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13206 (handle_struct_member_die, process_structure_scope)
13207 (update_enumeration_type_from_children)
13208 (process_enumeration_scope, read_array_type, read_common_block)
13209 (read_namespace, read_module, read_subroutine_type): Update.
13210 (sibling_die): Remove.
13211
13212 2020-03-26 Tom Tromey <tom@tromey.com>
13213
13214 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13215 (build_type_psymtabs_reader, read_structure_type)
13216 (read_enumeration_type, read_full_die_1): Update.
13217 (dwarf2_attr_no_follow): Move to die.h.
13218 * dwarf2/die.h (struct die_info) <attr>: New method.
13219
13220 2020-03-26 Tom Tromey <tom@tromey.com>
13221
13222 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13223 <base_address>: Now an optional.
13224 (dwarf2_find_base_address, dwarf2_rnglists_process)
13225 (dwarf2_ranges_process, fill_in_loclist_baton)
13226 (dwarf2_symbol_mark_computed): Update.
13227
13228 2020-03-26 Tom Tromey <tom@tromey.com>
13229
13230 * dwarf2/read.c (struct die_info): Move to die.h.
13231 * dwarf2/die.h: New file.
13232
13233 2020-03-26 Tom Tromey <tom@tromey.com>
13234
13235 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13236 * dwarf2/read.c
13237 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13238 Move to line-header.c.
13239 (read_checked_initial_length_and_offset, read_formatted_entries):
13240 Likewise.
13241 (dwarf_decode_line_header): Split into two.
13242 * dwarf2/line-header.c
13243 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13244 Move from read.c.
13245 (read_checked_initial_length_and_offset, read_formatted_entries):
13246 Likewise.
13247 (dwarf_decode_line_header): New function, split from read.c.
13248
13249 2020-03-26 Tom Tromey <tom@tromey.com>
13250
13251 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13252 Declare method.
13253 * dwarf2/read.c (read_attribute_value): Update.
13254 (dwarf2_per_objfile::read_line_string): Rename from
13255 read_indirect_line_string.
13256 (read_formatted_entries): Update.
13257
13258 2020-03-26 Tom Tromey <tom@tromey.com>
13259
13260 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13261 variable.
13262
13263 2020-03-26 Tom Tromey <tom@tromey.com>
13264
13265 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13266 const.
13267 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13268 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13269 parameter const.
13270
13271 2020-03-26 Tom Tromey <tom@tromey.com>
13272
13273 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13274 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13275 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13276 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13277
13278 2020-03-26 Tom Tromey <tom@tromey.com>
13279
13280 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13281 file_names_size, file_full_name, file_file_name>: Use const.
13282 <file_name_at, file_names>: Add const overload.
13283 * dwarf2/line-header.c (line_header::file_file_name)
13284 (line_header::file_full_name): Update.
13285
13286 2020-03-26 Tom Tromey <tom@tromey.com>
13287
13288 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13289 (macro_start_file, consume_improper_spaces)
13290 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13291 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13292 (dwarf_decode_macros): Move to macro.c.
13293 * dwarf2/macro.c: New file.
13294 * dwarf2/macro.h: New file.
13295 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13296
13297 2020-03-26 Tom Tromey <tom@tromey.com>
13298
13299 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13300 method.
13301 * dwarf2/section.c: New method. From
13302 read_indirect_string_at_offset_from.
13303 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13304 (read_indirect_string_at_offset_from): Move to section.c.
13305 (read_indirect_string_at_offset): Rewrite.
13306 (read_indirect_line_string_at_offset): Remove.
13307 (read_indirect_string, read_indirect_line_string)
13308 (dwarf_decode_macro_bytes): Update.
13309
13310 2020-03-26 Tom Tromey <tom@tromey.com>
13311
13312 * dwarf2/section.h (struct dwarf2_section_info)
13313 <overload_complaint>: Declare.
13314 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13315 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13316 Rename from dwarf2_section_buffer_overflow_complaint.
13317 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13318 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13319
13320 2020-03-26 Tom Tromey <tom@tromey.com>
13321
13322 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13323 Declare.
13324 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13325 Move from read.c.
13326 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13327 to section.c.
13328
13329 2020-03-26 Tom Tromey <tom@tromey.com>
13330
13331 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13332
13333 2020-03-26 Tom Tromey <tom@tromey.com>
13334
13335 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13336 "builder".
13337 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13338 parameter.
13339 (dwarf_decode_macros): Update.
13340
13341 2020-03-26 Tom Tromey <tom@tromey.com>
13342
13343 * dwarf2/read.c (read_attribute_value): Update.
13344 (read_indirect_string_from_dwz): Move to dwz.c; change into
13345 method.
13346 (dwarf_decode_macro_bytes): Update.
13347 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13348 * dwarf2/dwz.c: New file.
13349 * Makefile.in (COMMON_SFILES): Add dwz.c.
13350
13351 2020-03-26 Tom Tromey <tom@tromey.com>
13352
13353 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13354 * dwarf2/read.c: Add include.
13355 * dwarf2/index-write.c: Add include.
13356 * dwarf2/index-cache.c: Add include.
13357 * dwarf2/dwz.h: New file.
13358
13359 2020-03-25 Tom Tromey <tom@tromey.com>
13360
13361 * compile/compile-object-load.c (get_out_value_type): Mention
13362 correct symbol name in error message.
13363
13364 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13365
13366 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13367
13368 2020-03-25 Tom de Vries <tdevries@suse.de>
13369
13370 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13371 * symmisc.c (dump_symtab_1): Print user and includes fields.
13372 (maintenance_info_symtabs): Same.
13373
13374 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13375
13376 PR gdb/25534
13377 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13378 (riscv_regcache_cooked_write): New function.
13379 (riscv_push_dummy_call): Use new function.
13380 (riscv_return_value): Likewise.
13381
13382 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13383
13384 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13385 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13386 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13387 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13388 * infrun.c (follow_fork): Likewise.
13389 (follow_fork_inferior): Likewise.
13390 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13391 * linux-nat.h (class linux_nat_target): Likewise.
13392 * remote.c (class remote_target) <follow_fork>: Likewise.
13393 (remote_target::follow_fork): Likewise.
13394 * target-delegates.c: Re-generate.
13395 * target.c (default_follow_fork): Likewise.
13396 (target_follow_fork): Likewise.
13397 * target.h (struct target_ops) <follow_fork>: Likewise.
13398 (target_follow_fork): Likewise.
13399
13400 2020-03-24 Tom de Vries <tdevries@suse.de>
13401
13402 * psymtab.c (maintenance_info_psymtabs): Print user field.
13403
13404 2020-03-20 Tom Tromey <tromey@adacore.com>
13405
13406 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13407 const.
13408 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13409 const.
13410
13411 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13412
13413 * ptrace.m4: Don't check for ptrace declaration.
13414 * config.in: Re-generate.
13415 * configure: Re-generate.
13416 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13417 not defined.
13418
13419 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13420
13421 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13422 `PTRACE_TYPE_RET'.
13423 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13424 * sparc-nat.c (gdb_ptrace): Likewise.
13425 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13426
13427 2020-03-20 Tom Tromey <tromey@adacore.com>
13428
13429 * c-exp.y (lex_one_token): Fix assert.
13430
13431 2020-03-20 Tom Tromey <tromey@adacore.com>
13432
13433 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13434 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13435 strncpy call.
13436
13437 2020-03-20 Tom Tromey <tromey@adacore.com>
13438
13439 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13440
13441 2020-03-20 Tom Tromey <tromey@adacore.com>
13442
13443 * ada-valprint.c (print_variant_part): Remove parameters; switch
13444 to value-based API.
13445 (print_field_values): Likewise.
13446 (ada_val_print_struct_union): Likewise.
13447 (ada_value_print_1): Update.
13448
13449 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13450
13451 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13452 nbsd_nat_target instead of inf_ptrace_target.
13453 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13454 nbsd_nat_target.
13455
13456 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13457
13458 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13459 it to the ptrace call.
13460 * (store_registers): Likewise.
13461
13462 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13463
13464 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13465 it to the ptrace call.
13466 * (store_registers): Likewise.
13467
13468 2020-03-19 Luis Machado <luis.machado@linaro.org>
13469
13470 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13471 valid, fetch vg value from ptrace.
13472
13473 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13474 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13475 * inf-ptrace.c: Likewise.
13476 * (gdb_ptrace): Add.
13477 * (inf_ptrace_target::resume): Update.
13478 * (inf_ptrace_target::xfer_partial): Likewise.
13479 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13480 * (inf_ptrace_peek_poke): Update.
13481
13482 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13483
13484 * x86-bsd-nat.c (gdb_ptrace): New.
13485 * (x86bsd_dr_set): Add new argument `ptid'.
13486 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13487 x86bsd_dr_set_addr): Update.
13488
13489 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13490
13491 * remote.c (remote_target::process_stop_reply): Handle events for
13492 all threads differently.
13493
13494 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13495
13496 * completer.c (completion_tracker::remove_completion): Define new
13497 function.
13498 * completer.h (completion_tracker::remove_completion): Declare new
13499 function.
13500 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13501 when adding a C++ function symbol.
13502
13503 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13504
13505 * completer.c (completion_tracker::completion_hash_entry): Define
13506 new class.
13507 (advance_to_filename_complete_word_point): Call
13508 recompute_lowest_common_denominator.
13509 (completion_tracker::completion_tracker): Call discard_completions
13510 to setup the hash table.
13511 (completion_tracker::discard_completions): Allow for being called
13512 from the constructor, pass new equal function, and element deleter
13513 when constructing the hash table. Initialise new class member
13514 variables.
13515 (completion_tracker::maybe_add_completion): Remove use of
13516 m_entries_vec, and store more information into m_entries_hash.
13517 (completion_tracker::recompute_lcd_visitor): New function, most
13518 content taken from...
13519 (completion_tracker::recompute_lowest_common_denominator):
13520 ...here, this now just visits each item in the hash calling the
13521 above visitor.
13522 (completion_tracker::build_completion_result): Remove use of
13523 m_entries_vec, call recompute_lowest_common_denominator.
13524 * completer.h (completion_tracker::have_completions): Remove use
13525 of m_entries_vec.
13526 (completion_tracker::completion_hash_entry): Declare new class.
13527 (completion_tracker::recompute_lowest_common_denominator): Change
13528 function signature.
13529 (completion_tracker::recompute_lcd_visitor): Declare new function.
13530 (completion_tracker::m_entries_vec): Delete.
13531 (completion_tracker::m_entries_hash): Initialize to NULL.
13532 (completion_tracker::m_lowest_common_denominator_valid): New
13533 member variable.
13534 (completion_tracker::m_lowest_common_denominator_max_length): New
13535 member variable.
13536
13537 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13538
13539 * regformats/regdef.h: Put reg in gdb namespace.
13540
13541 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13542
13543 * i386-bsd-nat.c (gdb_ptrace): New.
13544 * (i386bsd_fetch_inferior_registers,
13545 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13546 * (i386bsd_fetch_inferior_registers,
13547 i386bsd_store_inferior_registers) Use gdb_ptrace.
13548
13549 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13550
13551 * amd64-bsd-nat.c (gdb_ptrace): New.
13552 * (amd64bsd_fetch_inferior_registers,
13553 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13554 * (amd64bsd_fetch_inferior_registers,
13555 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13556
13557 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13558
13559 * user-regs.c (user_reg::read): Rename to...
13560 (user_reg::xread): ...this.
13561 * (append_user_reg): Rename argument `read' to `xread'.
13562 * (user_reg_add_builtin): Likewise.
13563 * (user_reg_add): Likewise.
13564 * (value_of_user_reg): Likewise.
13565
13566 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13567
13568 * sparc-nat.c (gdb_ptrace): New.
13569 * sparc-nat.c (sparc_fetch_inferior_registers)
13570 (sparc_store_inferior_registers) Remove obsolete comment.
13571 * sparc-nat.c (sparc_fetch_inferior_registers)
13572 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13573 * sparc-nat.c (sparc_fetch_inferior_registers)
13574 (sparc_store_inferior_registers) Use gdb_ptrace.
13575
13576 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13577
13578 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13579 it to the ptrace call.
13580 * sh-nbsd-nat.c (store_registers): Likewise.
13581
13582 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13583
13584 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13585 nbsd_nat_target instead of inf_ptrace_target.
13586 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13587 nbsd_nat_target.
13588
13589 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13590
13591 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13592
13593 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13594
13595 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13596 <sys/sysctl.h>.
13597 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13598
13599 2020-03-17 Tom de Vries <tdevries@suse.de>
13600
13601 PR gdb/23710
13602 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13603 fields.
13604 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13605 fields.
13606 (process_imported_unit_die): Skip import of c++ CUs.
13607
13608 2020-03-16 Tom Tromey <tom@tromey.com>
13609
13610 * p-valprint.c (pascal_object_print_value): Initialize
13611 base_value.
13612
13613 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13614 Shahab Vahedi <shahab@synopsys.com>
13615
13616 * Makefile.in: Add arch/arc.o
13617 * configure.tgt: Likewise.
13618 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13619 (_initialize_arc_tdep): Don't initialize old target descriptions.
13620 (arc_read_description): New function to cache target descriptions.
13621 * arc-tdep.h (arc_read_description): Add proto type.
13622 * arch/arc.c: New file.
13623 * arch/arc.h: Likewise.
13624 * features/Makefile: Replace old target descriptions with new.
13625 * features/arc-arcompact.c: Remove.
13626 * features/arc-arcompact.xml: Likewise.
13627 * features/arc-v2.c: Likewise
13628 * features/arc-v2.xml: Likewise
13629 * features/arc/aux-arcompact.xml: New file.
13630 * features/arc/aux-v2.xml: Likewise.
13631 * features/arc/core-arcompact.xml: Likewise.
13632 * features/arc/core-v2.xml: Likewise.
13633 * features/arc/aux-arcompact.c: Generate.
13634 * features/arc/aux-v2.c: Likewise.
13635 * features/arc/core-arcompact.c: Likewise.
13636 * features/arc/core-v2.c: Likewise.
13637 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13638
13639 2020-03-16 Tom Tromey <tromey@adacore.com>
13640
13641 PR gdb/25663:
13642 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13643 putting value into bcache.
13644
13645 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13646
13647 PR gdb/21500
13648 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13649 to...
13650 (amd64_windows_init_abi_common): ... this. Don't set size of
13651 long type.
13652 (amd64_windows_init_abi): New function.
13653 (amd64_cygwin_init_abi): New function.
13654 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13655 the Cygwin OS ABI.
13656 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13657 comment.
13658
13659 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13660
13661 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13662 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13663 (pe_import_directory_entry): New struct type.
13664 (is_linked_with_cygwin_dll): New function.
13665 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13666 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13667 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13668
13669 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13670
13671 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13672 i386_cygwin_core_osabi_sniffer.
13673
13674 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13675
13676 * i386-cygwin-tdep.c: Rename to...
13677 * i386-windows-tdep.c: ... this.
13678 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13679 i386-windows-tdep.c.
13680 * configure.tgt: Likewise.
13681
13682 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13683
13684 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13685 * osabi.c (gdb_osabi_names): Add "Windows".
13686 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13687 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13688 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13689 i386_cygwin_osabi_sniffer.
13690 (_initialize_i386_cygwin_tdep): Register OS ABI
13691 GDB_OSABI_WINDOWS for i386.
13692 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13693 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13694 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13695 for x86-64.
13696 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13697 when the target matches '*-*-mingw*'.
13698
13699 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13700
13701 * defs.h (enum gdb_osabi): Move to...
13702 * osabi.h (enum gdb_osabi): ... here.
13703 * gdbarch.sh: Include osabi.h in gdbarch.h.
13704 * gdbarch.h: Re-generate.
13705
13706 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13707
13708 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13709 function.
13710 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13711
13712 2020-03-14 Tom Tromey <tom@tromey.com>
13713
13714 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13715 for C++.
13716 (c_type_print_modifier): Likewise. Add "language" parameter.
13717 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13718 (c_type_print_base_1): Update.
13719 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13720 constants.
13721 * type-stack.c (type_stack::insert): Handle tp_atomic and
13722 tp_restrict.
13723 (type_stack::follow_type_instance_flags): Likewise.
13724 (type_stack::follow_types): Likewise. Merge type-following code.
13725 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13726 (space_identifier, cv_with_space_id)
13727 (const_or_volatile_or_space_identifier_noopt)
13728 (const_or_volatile_or_space_identifier): Remove.
13729 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13730 rules.
13731 (ptr_operator, typebase): Update.
13732 (enum token_flag) <FLAG_C>: New constant.
13733 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13734 "_Atomic".
13735 (lex_one_token): Handle FLAG_C.
13736
13737 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13738
13739 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13740 it to the ptrace call.
13741 * m68k-bsd-nat.c (store_registers): Likewise.
13742
13743 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13744
13745 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13746 gdb_byte *.
13747 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13748 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13749 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13750
13751 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13752
13753 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13754 nbsd_nat_target instead of inf_ptrace_target.
13755 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13756 nbsd_nat_target.
13757
13758 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13759
13760 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13761 register_t.
13762
13763 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13764
13765 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13766 it to the ptrace call.
13767 * alpha-bsd-nat.c (store_registers): Likewise.
13768
13769 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13770
13771 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13772 includes.
13773 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13774 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13775 fill_fpregset): Likewise.
13776
13777 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13778
13779 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13780 nbsd_nat_target instead of inf_ptrace_target.
13781 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13782 nbsd_nat_target.
13783
13784 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13785
13786 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13787 register_t.
13788
13789 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13790
13791 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13792 it to the ptrace call.
13793 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13794 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13795 * arm-nbsd-nat.c (store_register): Likewise.
13796 * arm-nbsd-nat.c (store_regs): Likewise.
13797 * arm-nbsd-nat.c (store_fp_register): Likewise.
13798 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13799
13800 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13801
13802 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13803 nbsd_nat_target instead of inf_ptrace_target.
13804 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13805 nbsd_nat_target.
13806
13807 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13808
13809 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13810 it to the ptrace call.
13811 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13812
13813 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13814
13815 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13816 it to the ptrace call.
13817 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13818
13819 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13820
13821 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13822 gdb_byte *.
13823 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13824
13825 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13826
13827 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13828 instead of inf_ptrace_target.
13829 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13830 nbsd_nat_target.
13831
13832 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13833
13834 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13835 register_t.
13836
13837 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13838
13839 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13840 register_t.
13841
13842 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13843
13844 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13845 register_t.
13846
13847 2020-03-13 Tom Tromey <tom@tromey.com>
13848
13849 * value.h (val_print): Don't declare.
13850 * valprint.h (val_print_array_elements)
13851 (val_print_scalar_formatted, generic_val_print): Don't declare.
13852 * valprint.c (generic_val_print_array): Take a struct value.
13853 (generic_val_print_ptr, generic_val_print_memberptr)
13854 (generic_val_print_bool, generic_val_print_int)
13855 (generic_val_print_char, generic_val_print_complex)
13856 (generic_val_print): Remove.
13857 (generic_value_print): Update.
13858 (do_val_print): Remove unused parameters. Don't call
13859 la_val_print.
13860 (val_print): Remove.
13861 (common_val_print): Update. Don't call value_check_printable.
13862 (val_print_scalar_formatted, val_print_array_elements): Remove.
13863 * rust-lang.c (rust_val_print): Remove.
13864 (rust_language_defn): Update.
13865 * p-valprint.c (pascal_val_print): Remove.
13866 (pascal_value_print_inner): Update.
13867 (pascal_object_print_val_fields, pascal_object_print_val):
13868 Remove.
13869 (pascal_object_print_static_field): Update.
13870 * p-lang.h (pascal_val_print): Don't declare.
13871 * p-lang.c (pascal_language_defn): Update.
13872 * opencl-lang.c (opencl_language_defn): Update.
13873 * objc-lang.c (objc_language_defn): Update.
13874 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13875 * m2-lang.h (m2_val_print): Don't declare.
13876 * m2-lang.c (m2_language_defn): Update.
13877 * language.h (struct language_defn) <la_val_print>: Remove.
13878 * language.c (unk_lang_value_print_inner): Rename. Change
13879 argument types.
13880 (unknown_language_defn, auto_language_defn): Update.
13881 * go-valprint.c (go_val_print): Remove.
13882 * go-lang.h (go_val_print): Don't declare.
13883 * go-lang.c (go_language_defn): Update.
13884 * f-valprint.c (f_val_print): Remove.
13885 * f-lang.h (f_value_print): Don't declare.
13886 * f-lang.c (f_language_defn): Update.
13887 * d-valprint.c (d_val_print): Remove.
13888 * d-lang.h (d_value_print): Don't declare.
13889 * d-lang.c (d_language_defn): Update.
13890 * cp-valprint.c (cp_print_value_fields)
13891 (cp_print_value_fields_rtti, cp_print_value): Remove.
13892 (cp_print_static_field): Update.
13893 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13894 (c_val_print_struct, c_val_print_union, c_val_print_int)
13895 (c_val_print_memberptr, c_val_print): Remove.
13896 * c-lang.h (c_val_print_array, cp_print_value_fields)
13897 (cp_print_value_fields_rtti): Don't declare.
13898 * c-lang.c (c_language_defn, cplus_language_defn)
13899 (asm_language_defn, minimal_language_defn): Update.
13900 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13901 (ada_val_print_enum): Take a struct value.
13902 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13903 (ada_val_print): Remove.
13904 (ada_value_print_1): Update.
13905 (printable_val_type): Remove.
13906 * ada-lang.h (ada_val_print): Don't declare.
13907 * ada-lang.c (ada_language_defn): Update.
13908
13909 2020-03-13 Tom Tromey <tom@tromey.com>
13910
13911 * valprint.c (do_val_print): Update.
13912 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13913 a struct value.
13914 (value_to_value_object_no_release): Declare.
13915 * python/py-value.c (value_to_value_object_no_release): New
13916 function.
13917 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13918 struct value.
13919 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13920 function.
13921 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13922 a struct value.
13923 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13924 Declare.
13925 (gdbscm_apply_val_pretty_printer): Take a struct value.
13926 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13927 value.
13928 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13929 value.
13930 * extension-priv.h (struct extension_language_ops)
13931 <apply_val_pretty_printer>: Take a struct value.
13932 * cp-valprint.c (cp_print_value): Create a struct value.
13933 (cp_print_value): Update.
13934
13935 2020-03-13 Tom Tromey <tom@tromey.com>
13936
13937 * ada-valprint.c (print_field_values): Call common_val_print.
13938
13939 2020-03-13 Tom Tromey <tom@tromey.com>
13940
13941 * ada-valprint.c (val_print_packed_array_elements): Remove
13942 bitoffset and val parameters. Call common_val_print.
13943 (ada_val_print_string): Remove offset, address, and original_value
13944 parameters.
13945 (ada_val_print_array): Update.
13946 (ada_value_print_array): New function.
13947 (ada_value_print_1): Call it.
13948
13949 2020-03-13 Tom Tromey <tom@tromey.com>
13950
13951 * ada-valprint.c (ada_value_print): Use common_val_print.
13952
13953 2020-03-13 Tom Tromey <tom@tromey.com>
13954
13955 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13956
13957 2020-03-13 Tom Tromey <tom@tromey.com>
13958
13959 * ada-valprint.c (ada_value_print_num): New function.
13960 (ada_value_print_1): Use it.
13961
13962 2020-03-13 Tom Tromey <tom@tromey.com>
13963
13964 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13965
13966 2020-03-13 Tom Tromey <tom@tromey.com>
13967
13968 * ada-valprint.c (ada_value_print_ptr): New function.
13969 (ada_value_print_1): Use it.
13970
13971 2020-03-13 Tom Tromey <tom@tromey.com>
13972
13973 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13974 call common_val_print.
13975 (ada_val_print_1): Update.
13976 (ada_value_print_1): New function.
13977 (ada_value_print_inner): Rewrite.
13978
13979 2020-03-13 Tom Tromey <tom@tromey.com>
13980
13981 * cp-valprint.c (cp_print_value_fields): Update.
13982 (cp_print_value): New function.
13983
13984 2020-03-13 Tom Tromey <tom@tromey.com>
13985
13986 * m2-valprint.c (m2_value_print_inner): Use
13987 cp_print_value_fields.
13988 * cp-valprint.c (cp_print_value_fields): New function.
13989 * c-valprint.c (c_value_print_struct): New function.
13990 (c_value_print_inner): Use c_value_print_struct.
13991 * c-lang.h (cp_print_value_fields): Declare.
13992
13993 2020-03-13 Tom Tromey <tom@tromey.com>
13994
13995 * c-valprint.c (c_value_print_array): New function.
13996 (c_value_print_inner): Use it.
13997
13998 2020-03-13 Tom Tromey <tom@tromey.com>
13999
14000 * c-valprint.c (c_value_print_memberptr): New function.
14001 (c_value_print_inner): Use it.
14002
14003 2020-03-13 Tom Tromey <tom@tromey.com>
14004
14005 * c-valprint.c (c_value_print_int): New function.
14006 (c_value_print_inner): Use it.
14007
14008 2020-03-13 Tom Tromey <tom@tromey.com>
14009
14010 * c-valprint.c (c_value_print_ptr): New function.
14011 (c_value_print_inner): Use it.
14012
14013 2020-03-13 Tom Tromey <tom@tromey.com>
14014
14015 * c-valprint.c (c_value_print_inner): Rewrite.
14016
14017 2020-03-13 Tom Tromey <tom@tromey.com>
14018
14019 * valprint.c (generic_value_print_complex): New function.
14020 (generic_value_print): Use it.
14021
14022 2020-03-13 Tom Tromey <tom@tromey.com>
14023
14024 * valprint.c (generic_val_print_float): Don't call
14025 val_print_scalar_formatted.
14026 (generic_val_print, generic_value_print): Update.
14027
14028 2020-03-13 Tom Tromey <tom@tromey.com>
14029
14030 * valprint.c (generic_value_print_char): New function
14031 (generic_value_print): Use it.
14032
14033 2020-03-13 Tom Tromey <tom@tromey.com>
14034
14035 * valprint.c (generic_value_print_int): New function.
14036 (generic_value_print): Use it.
14037
14038 2020-03-13 Tom Tromey <tom@tromey.com>
14039
14040 * valprint.c (generic_value_print_bool): New function.
14041 (generic_value_print): Use it.
14042
14043 2020-03-13 Tom Tromey <tom@tromey.com>
14044
14045 * valprint.c (generic_val_print_func): Simplify.
14046 (generic_val_print, generic_value_print): Update.
14047
14048 2020-03-13 Tom Tromey <tom@tromey.com>
14049
14050 * valprint.c (generic_val_print_flags): Remove.
14051 (generic_val_print, generic_value_print): Update.
14052 (val_print_type_code_flags): Add original_value parameter.
14053
14054 2020-03-13 Tom Tromey <tom@tromey.com>
14055
14056 * valprint.c (generic_val_print): Update.
14057 (generic_value_print): Update.
14058 * valprint.c (generic_val_print_enum): Don't call
14059 val_print_scalar_formatted.
14060
14061 2020-03-13 Tom Tromey <tom@tromey.com>
14062
14063 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14064 * valprint.c (generic_value_print_ptr): New function.
14065
14066 2020-03-13 Tom Tromey <tom@tromey.com>
14067
14068 * valprint.c (generic_value_print): Rewrite.
14069
14070 2020-03-13 Tom Tromey <tom@tromey.com>
14071
14072 * p-valprint.c (pascal_object_print_value_fields)
14073 (pascal_object_print_value): New functions.
14074
14075 2020-03-13 Tom Tromey <tom@tromey.com>
14076
14077 * p-valprint.c (pascal_value_print_inner): Rewrite.
14078
14079 2020-03-13 Tom Tromey <tom@tromey.com>
14080
14081 * f-valprint.c (f_value_print_innner): Rewrite.
14082
14083 2020-03-13 Tom Tromey <tom@tromey.com>
14084
14085 * m2-valprint.c (m2_print_unbounded_array): New overload.
14086 (m2_print_unbounded_array): Update.
14087 (m2_print_array_contents): Take a struct value.
14088 (m2_value_print_inner): Rewrite.
14089
14090 2020-03-13 Tom Tromey <tom@tromey.com>
14091
14092 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14093 (d_value_print_inner): New function.
14094 * d-lang.h (d_value_print_inner): Declare.
14095 * d-lang.c (d_language_defn): Use d_value_print_inner.
14096
14097 2020-03-13 Tom Tromey <tom@tromey.com>
14098
14099 * go-valprint.c (go_value_print_inner): New function.
14100 * go-lang.h (go_value_print_inner): Declare.
14101 * go-lang.c (go_language_defn): Use go_value_print_inner.
14102
14103 2020-03-13 Tom Tromey <tom@tromey.com>
14104
14105 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14106 API.
14107 (rust_val_print): Rewrite.
14108 (rust_value_print_inner): New function, from rust_val_print.
14109 (rust_language_defn): Use rust_value_print_inner.
14110
14111 2020-03-13 Tom Tromey <tom@tromey.com>
14112
14113 * ada-valprint.c (ada_value_print_inner): New function.
14114 * ada-lang.h (ada_value_print_inner): Declare.
14115 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14116
14117 2020-03-13 Tom Tromey <tom@tromey.com>
14118
14119 * f-valprint.c (f_value_print_innner): New function.
14120 * f-lang.h (f_value_print_innner): Declare.
14121 * f-lang.c (f_language_defn): Use f_value_print_innner.
14122
14123 2020-03-13 Tom Tromey <tom@tromey.com>
14124
14125 * p-valprint.c (pascal_value_print_inner): New function.
14126 * p-lang.h (pascal_value_print_inner): Declare.
14127 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14128
14129 2020-03-13 Tom Tromey <tom@tromey.com>
14130
14131 * m2-valprint.c (m2_value_print_inner): New function.
14132 * m2-lang.h (m2_value_print_inner): Declare.
14133 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14134
14135 2020-03-13 Tom Tromey <tom@tromey.com>
14136
14137 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14138 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14139 * c-valprint.c (c_value_print_inner): New function.
14140 * c-lang.h (c_value_print_inner): Declare.
14141 * c-lang.c (c_language_defn, cplus_language_defn)
14142 (asm_language_defn, minimal_language_defn): Use
14143 c_value_print_inner.
14144
14145 2020-03-13 Tom Tromey <tom@tromey.com>
14146
14147 * p-valprint.c (pascal_object_print_value_fields): Now static.
14148 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14149
14150 2020-03-13 Tom Tromey <tom@tromey.com>
14151
14152 * c-valprint.c (c_val_print_array): Simplify.
14153
14154 2020-03-13 Tom Tromey <tom@tromey.com>
14155
14156 * valprint.c (value_print_array_elements): New function.
14157 * valprint.h (value_print_array_elements): Declare.
14158
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14160
14161 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14162 * mips-tdep.c (mips_print_register): Use
14163 value_print_scalar_formatted.
14164
14165 2020-03-13 Tom Tromey <tom@tromey.com>
14166
14167 * valprint.h (value_print_scalar_formatted): Declare.
14168 * valprint.c (value_print_scalar_formatted): New function.
14169
14170 2020-03-13 Tom Tromey <tom@tromey.com>
14171
14172 * valprint.h (generic_value_print): Declare.
14173 * valprint.c (generic_value_print): New function.
14174
14175 2020-03-13 Tom Tromey <tom@tromey.com>
14176
14177 * valprint.c (do_val_print): Call la_value_print_inner, if
14178 available.
14179 * rust-lang.c (rust_language_defn): Update.
14180 * p-lang.c (pascal_language_defn): Update.
14181 * opencl-lang.c (opencl_language_defn): Update.
14182 * objc-lang.c (objc_language_defn): Update.
14183 * m2-lang.c (m2_language_defn): Update.
14184 * language.h (struct language_defn) <la_value_print_inner>: New
14185 member.
14186 * language.c (unknown_language_defn, auto_language_defn): Update.
14187 * go-lang.c (go_language_defn): Update.
14188 * f-lang.c (f_language_defn): Update.
14189 * d-lang.c (d_language_defn): Update.
14190 * c-lang.c (c_language_defn, cplus_language_defn)
14191 (asm_language_defn, minimal_language_defn): Update.
14192 * ada-lang.c (ada_language_defn): Update.
14193
14194 2020-03-13 Tom Tromey <tom@tromey.com>
14195
14196 * c-valprint.c (c_value_print): Use common_val_print.
14197
14198 2020-03-13 Tom Tromey <tom@tromey.com>
14199
14200 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14201
14202 2020-03-13 Tom Tromey <tom@tromey.com>
14203
14204 * f-valprint.c (f77_print_array_1, f_val_print): Use
14205 common_val_print.
14206
14207 2020-03-13 Tom Tromey <tom@tromey.com>
14208
14209 * riscv-tdep.c (riscv_print_one_register_info): Use
14210 common_val_print.
14211
14212 2020-03-13 Tom Tromey <tom@tromey.com>
14213
14214 * mi/mi-main.c (output_register): Use common_val_print.
14215
14216 2020-03-13 Tom Tromey <tom@tromey.com>
14217
14218 * infcmd.c (default_print_one_register_info): Use
14219 common_val_print.
14220
14221 2020-03-13 Tom Tromey <tom@tromey.com>
14222
14223 * valprint.h (common_val_print_checked): Declare.
14224 * valprint.c (common_val_print_checked): New function.
14225 * stack.c (print_frame_arg): Use common_val_print_checked.
14226
14227 2020-03-13 Tom Tromey <tom@tromey.com>
14228
14229 * valprint.c (do_val_print): New function, from val_print.
14230 (val_print): Use do_val_print.
14231 (common_val_print): Use do_val_print.
14232
14233 2020-03-13 Tom Tromey <tom@tromey.com>
14234
14235 * valprint.c (value_print): Use scoped_value_mark.
14236
14237 2020-03-13 Tom de Vries <tdevries@suse.de>
14238
14239 PR symtab/25646
14240 * psymtab.c (partial_symtab::partial_symtab): Don't set
14241 globals_offset and statics_offset. Push element onto
14242 current_global_psymbols and current_static_psymbols stacks.
14243 (concat): New function.
14244 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14245 element from current_global_psymbols and current_static_psymbols
14246 stacks. Concat popped elements to global_psymbols and
14247 static_symbols.
14248 (add_psymbol_to_list): Use current_global_psymbols and
14249 current_static_psymbols stacks.
14250 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14251 current_static_psymbols fields.
14252
14253 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14254
14255 * corelow.c (sniff_core_bfd): Remove.
14256 (class core_target) <m_core_vec>: Remove.
14257 (core_target::core_target): Update.
14258 (core_file_fns): Remove.
14259 (deprecated_add_core_fns): Remove.
14260 (default_core_sniffer): Remove.
14261 (sniff_core_bfd): Remove.
14262 (default_check_format): Remove.
14263 (gdb_check_format): Remove.
14264 (core_target_open): Update.
14265 (core_target::get_core_register_section): Update.
14266 (get_core_registers_cb): Update.
14267 (core_target::fetch_registers): Update.
14268 * gdbcore.h (struct core_fns): Remove.
14269 (deprecated_add_core_fns): Remove.
14270 (default_core_sniffer): Remove.
14271 (default_check_format): Remove.
14272
14273 2020-03-12 Tom Tromey <tom@tromey.com>
14274
14275 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14276 CORE_ADDR.
14277 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14278
14279 2020-03-12 Tom Tromey <tom@tromey.com>
14280
14281 * remote.c (remote_target::download_tracepoint)
14282 (remote_target::enable_tracepoint)
14283 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14284 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14285 sprintf_vma.
14286
14287 2020-03-12 Tom Tromey <tom@tromey.com>
14288
14289 * symfile-mem.c: Update CORE_ADDR size assert.
14290
14291 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14292
14293 * selftest.m4: Move to gdbsupport/.
14294 * acinclude.m4: Update path to selftest.m4.
14295
14296 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14297
14298 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14299 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14300 gdbarch-selfselftests.c and selftest-arch.c.
14301 (SUBDIR_UNITTESTS_OBS): Rename to...
14302 (SELFTESTS_OBS): ... this.
14303 (COMMON_SFILES): Remove disasm-selftests.c and
14304 gdbarch-selftests.c.
14305 * configure.ac: Don't add selftest-arch.{c,o} to
14306 CONFIG_{SRCS,OBS}.
14307 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14308 preprocessor conditions.
14309
14310 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14311
14312 * configure.ac: Don't source bfd/development.sh.
14313 * selftest.m4: Modify comment.
14314 * configure: Re-generate.
14315
14316 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14317
14318 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14319 not "true" or "false".
14320 * configure: Re-generate.
14321
14322 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14323
14324 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14325 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14326 renamed to arm_nbsd_supply_gregset.
14327 (fetch_register): Update to call arm_nbsd_supply_gregset.
14328 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14329 (arm_netbsd_nat_target::fetch_registers): Update.
14330 (fetch_elfcore_registers): Removed.
14331 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14332 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14333 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14334 not require NetBSD system headers.
14335 (arm_nbsd_regset): New struct.
14336 (arm_nbsd_iterate_over_regset_sections): New function.
14337 (arm_netbsd_init_abi_common): Updated to call
14338 set_gdbarch_iterate_over_regset_sections.
14339 * arm-nbsd-tdep.h: New file.
14340
14341 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14342
14343 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14344 recursion.
14345
14346 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14347
14348 * configure: Re-generate.
14349
14350 2020-03-11 Tom Tromey <tromey@adacore.com>
14351
14352 * ada-typeprint.c (print_choices): Fix comment.
14353
14354 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14355
14356 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14357 previous item in the list, when the list has no items.
14358
14359 2020-03-11 Tom de Vries <tdevries@suse.de>
14360
14361 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14362 PROP_LOCLIST handling code.
14363
14364 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14365
14366 * buildsym-legacy.c (record_line): Pass extra parameter to
14367 record_line.
14368 * buildsym.c (buildsym_compunit::record_line): Take an extra
14369 parameter, reduce duplication in the line table, and record the
14370 is_stmt flag in the line table.
14371 * buildsym.h (buildsym_compunit::record_line): Add extra
14372 parameter.
14373 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14374 non-statement lines.
14375 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14376 this to the symtab builder.
14377 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14378 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14379 through to dwarf_record_line_1.
14380 * infrun.c (process_event_stop_test): When stepping, don't stop at
14381 a non-statement instruction, and only refresh the step info when
14382 we land in the middle of a line's range. Also add an extra
14383 comment.
14384 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14385 field.
14386 * record-btrace.c (btrace_find_line_range): Only record lines
14387 marked as is-statement.
14388 * stack.c (frame_show_address): Show the frame address if we are
14389 in a non-statement sal.
14390 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14391 (maintenance_print_one_line_table): Print a header for the is_stmt
14392 column, and include is_stmt information in the output.
14393 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14394 preference to non-statements.
14395 (find_pcs_for_symtab_line): Prefer is-statement entries.
14396 (find_line_common): Likewise.
14397 * symtab.h (struct linetable_entry): Add is_stmt field.
14398 (struct symtab_and_line): Likewise.
14399 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14400 arranging the line table.
14401
14402 2020-03-07 Tom de Vries <tdevries@suse.de>
14403
14404 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14405 DIE.
14406
14407 2020-03-07 Tom Tromey <tom@tromey.com>
14408
14409 * valops.c (value_literal_complex): Remove obsolete comment.
14410 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14411 comment.
14412
14413 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14414
14415 * infrun.h: Forward-declare thread_info.
14416 (set_step_info): Add thread_info parameter, add doc.
14417 * infrun.c (set_step_info): Add thread_info parameter, move doc
14418 to header.
14419 * infrun.c (process_event_stop_test): Pass thread to
14420 set_step_info call.
14421 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14422 set_step_info.
14423 (prepare_one_step): Add thread_info parameter, pass it to
14424 set_step_frame and prepare_one_step (recursive) call.
14425 (step_1): Pass thread to prepare_one_step call.
14426 (step_command_fsm::should_stop): Pass thread to
14427 prepare_one_step.
14428 (until_next_fsm): Pass thread to set_step_frame call.
14429 (finish_command): Pass thread to set_step_info call.
14430
14431 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14432
14433 * windows-tdep.c (windows_solib_create_inferior_hook):
14434 Check if inferior is running.
14435
14436 2020-03-06 Tom de Vries <tdevries@suse.de>
14437
14438 * NEWS: Fix "the the".
14439 * ctfread.c: Same.
14440
14441 2020-03-06 Tom de Vries <tdevries@suse.de>
14442
14443 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14444
14445 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14446
14447 * .dir-locals.el: Add a comment referencing the other copies of
14448 this file.
14449
14450 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14451
14452 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14453 psargs.
14454
14455 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14456
14457 * .gitattributes: New file.
14458
14459 2020-03-04 Tom Tromey <tom@tromey.com>
14460
14461 * symmisc.c (print_symbol_bcache_statistics)
14462 (print_objfile_statistics): Update.
14463 * symfile.c (allocate_symtab): Use intern.
14464 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14465 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14466 macro_cache>: Remove.
14467 <string_cache>: New member.
14468 (struct objfile) <intern>: New methods.
14469 * elfread.c (elf_symtab_read): Use intern.
14470 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14471 (dwarf2_compute_name, dwarf2_physname)
14472 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14473 names.
14474 (guess_partial_die_structure_name): Update.
14475 (partial_die_info::fixup): Intern name.
14476 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14477 name.
14478 (dwarf2_name): Intern name. Update.
14479 * buildsym.c (buildsym_compunit::get_macro_table): Use
14480 string_cache.
14481
14482 2020-03-04 Tom Tromey <tom@tromey.com>
14483
14484 * jit.c (bfd_open_from_target_memory): Make "target" const.
14485 * corefile.c (gnutarget): Now const.
14486 * gdbcore.h (gnutarget): Now const.
14487
14488 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14489
14490 * NEWS: Mention support for WOW64 processes.
14491 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14492 (amd64_windows_segment_register_p): Remove static.
14493 (_initialize_amd64_windows_nat): Update.
14494 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14495 * i386-windows-nat.c (context_offset): Update.
14496 (i386_mappings): Rename and remove static.
14497 (i386_windows_segment_register_p): Remove static.
14498 (_initialize_i386_windows_nat): Update.
14499 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14500 (STATUS_WX86_SINGLE_STEP): New macro.
14501 (EnumProcessModulesEx): New macro.
14502 (Wow64SuspendThread): New macro.
14503 (Wow64GetThreadContext): New macro.
14504 (Wow64SetThreadContext): New macro.
14505 (Wow64GetThreadSelectorEntry): New macro.
14506 (windows_set_context_register_offsets): Add static.
14507 (windows_set_segment_register_p): Likewise.
14508 (windows_add_thread): Adapt for WOW64 processes.
14509 (windows_fetch_one_register): Likewise.
14510 (windows_nat_target::fetch_registers): Likewise.
14511 (windows_store_one_register): Likewise.
14512 (display_selector): Likewise.
14513 (display_selectors): Likewise.
14514 (handle_exception): Likewise.
14515 (windows_continue): Likewise.
14516 (windows_nat_target::resume): Likewise.
14517 (windows_add_all_dlls): Likewise.
14518 (do_initial_windows_stuff): Likewise.
14519 (windows_nat_target::attach): Likewise.
14520 (windows_get_exec_module_filename): Likewise.
14521 (windows_nat_target::create_inferior): Likewise.
14522 (windows_xfer_siginfo): Likewise.
14523 (_initialize_loadable): Initialize Wow64SuspendThread,
14524 Wow64GetThreadContext, Wow64SetThreadContext,
14525 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14526 * windows-nat.h (windows_set_context_register_offsets):
14527 Remove declaration.
14528 (windows_set_segment_register_p): Likewise.
14529 (i386_windows_segment_register_p): Add declaration.
14530 (amd64_windows_segment_register_p): Likewise.
14531
14532 2020-03-04 Luis Machado <luis.machado@linaro.org>
14533
14534 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14535 in "info registers" for AArch64/ARM.
14536
14537 The change caused "info registers" to not print GPR's.
14538
14539 gdb/ChangeLog:
14540
14541 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14542
14543 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14544 when reg->group is empty and reggroup is not.
14545
14546 2020-03-03 Tom Tromey <tromey@adacore.com>
14547
14548 * dwarf2/frame.c (struct dwarf2_frame_cache)
14549 <checked_tailcall_bottom, entry_cfa_sp_offset,
14550 entry_cfa_sp_offset_p>: Remove members.
14551 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14552 (dwarf2_frame_prev_register): Don't call
14553 dwarf2_tailcall_sniffer_first.
14554 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14555 * frame-unwind.c (add_unwinder): New fuction.
14556 (frame_unwind_init): Use it. Add tailcall unwinder.
14557
14558 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14559 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14560
14561 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14562 value should be printed as true.
14563
14564 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14565
14566 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14567 (windows_init_abi): Set and use windows_so_ops.
14568
14569 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14570
14571 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14572 when verifying if dealing with a convenience variable.
14573
14574 2020-03-03 Luis Machado <luis.machado@linaro.org>
14575
14576 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14577
14578 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14579
14580 * infrun.c (gdbarch_supports_displaced_stepping): New.
14581 (use_displaced_stepping): Break up conditions in smaller pieces.
14582 Use gdbarch_supports_displaced_stepping.
14583 (displaced_step_prepare_throw): Use
14584 gdbarch_supports_displaced_stepping.
14585
14586 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14587
14588 * NEWS: Mention new behaviour of the history filename.
14589 * top.c (write_history_p): Add comment.
14590 (show_write_history_p): Add header comment, give a different
14591 message when history writing is on, but the history filename is
14592 empty.
14593 (history_filename): Add comment.
14594 (history_filename_empty): New function.
14595 (show_history_filename): Add header comment, give a different
14596 message when the filename is empty.
14597 (init_history): Compare history_filename against nullptr, and only
14598 read history if the filename is not empty.
14599 (set_history_filename): Add header comment, and only make
14600 non-empty filenames absolute.
14601 (init_main): Make the filename argument to 'set history filename'
14602 optional.
14603
14604 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14605
14606 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14607 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14608 (fetch_fp_register): Update.
14609 (fetch_fp_regs): Update.
14610 (store_fp_register): Update.
14611 (store_fp_regs): Update.
14612 (arm_netbsd_nat_target::read_description): New function.
14613 (fetch_elfcore_registers): Update.
14614
14615 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14616
14617 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14618 general_thread if the stop reply is missing a thread-id.
14619 (remote_target::process_stop_reply): Use the first non-exited
14620 thread if the target didn't pass a thread-id.
14621 * infrun.c (do_target_wait): Move call to
14622 switch_to_inferior_no_thread to ....
14623 (do_target_wait_1): ... here.
14624
14625 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14626
14627 * debuginfod-support.c: Include defs.h first.
14628
14629 2020-02-28 Tom de Vries <tdevries@suse.de>
14630
14631 * symfile.c (set_initial_language): Use default language for lookup.
14632
14633 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14634
14635 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14636 reader variable, pass `this` to read_cutu_die_from_dwo.
14637
14638 2020-02-27 Aaron Merey <amerey@redhat.com>
14639
14640 * source.c (open_source_file): Check for nullptr when computing
14641 srcpath.
14642
14643 2020-02-27 Tom Tromey <tromey@adacore.com>
14644
14645 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14646 member.
14647 (dwarf2_add_field): Don't update nfields.
14648 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14649
14650 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14651
14652 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14653 abs.
14654
14655 2020-02-26 Tom Tromey <tom@tromey.com>
14656
14657 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14658 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14659 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14660 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14661 per_cu_data.
14662
14663 2020-02-26 Tom Tromey <tom@tromey.com>
14664
14665 * dwarf2/index-write.c (psym_index_map): Change type.
14666 (add_address_entry_worker, write_one_signatured_type)
14667 (recursively_count_psymbols, recursively_write_psymbols)
14668 (class debug_names, psyms_seen_size, write_gdbindex)
14669 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14670
14671 2020-02-26 Aaron Merey <amerey@redhat.com>
14672
14673 * Makefile.in: Handle optional debuginfod support.
14674 * NEWS: Update.
14675 * README: Add --with-debuginfod summary.
14676 * config.in: Regenerate.
14677 * configure: Regenerate.
14678 * configure.ac: Handle optional debuginfod support.
14679 * debuginfod-support.c: debuginfod helper functions.
14680 * debuginfod-support.h: Ditto.
14681 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14682 summary.
14683 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14684 when a dwz file cannot be found.
14685 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14686 debuginfo file cannot be found.
14687 * source.c (open_source_file): Query debuginfod servers when a
14688 source file cannot be found.
14689 * top.c (print_gdb_configuration): Include
14690 --{with,without}-debuginfod in the output.
14691
14692 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14693
14694 * thread.c (thr_try_catch_cmd): Print thread name.
14695
14696 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14697
14698 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14699 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14700 dwarf2_fetch_die_type_sect_off): Move to...
14701 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14702 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14703 dwarf2_fetch_die_type_sect_off): ... here.
14704 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14705 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14706 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14707
14708 2020-02-26 Tom de Vries <tdevries@suse.de>
14709
14710 PR gdb/25603
14711 * symfile.c (set_initial_language): Exit-early if
14712 language_mode == language_mode_manual.
14713
14714 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14715
14716 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14717 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14718 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14719
14720 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14721
14722 * gdbtypes.c (create_array_type_with_stride): Handle negative
14723 array strides.
14724 * valarith.c (value_subscripted_rvalue): Likewise.
14725
14726 2020-02-25 Luis Machado <luis.machado@linaro.org>
14727
14728 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14729
14730 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14731
14732 * loc.h (dwarf2_get_die_type): Move to...
14733 * read.h (dwarf2_get_die_type): ... here.
14734 * read.c (dwarf2_get_die_type): Move doc to header.
14735
14736 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14737
14738 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14739 'gnulib/Makefile.in' to the list.
14740
14741 2020-02-24 Tom Tromey <tom@tromey.com>
14742
14743 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14744 Remove.
14745 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14746 XOBNEWVEC.
14747
14748 2020-02-24 Tom Tromey <tom@tromey.com>
14749
14750 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14751 New method.
14752 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14753 (dw2_do_instantiate_symtab, dw2_get_file_names)
14754 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14755
14756 2020-02-24 Tom Tromey <tom@tromey.com>
14757
14758 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14759 make_scoped_restore.
14760 (dwarf2_psymtab::read_symtab): Don't clear
14761 reading_partial_symbols.
14762
14763 2020-02-24 Tom de Vries <tdevries@suse.de>
14764
14765 PR gdb/25592
14766 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14767
14768 2020-02-24 Tom de Vries <tdevries@suse.de>
14769
14770 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14771 commands layout next/prev/regs.
14772
14773 2020-02-22 Tom Tromey <tom@tromey.com>
14774
14775 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14776 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14777
14778 2020-02-22 Tom Tromey <tom@tromey.com>
14779
14780 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14781
14782 2020-02-22 Tom Tromey <tom@tromey.com>
14783
14784 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14785 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14786 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14787 * tui/tui.c (_initialize_tui): Add usage text.
14788
14789 2020-02-22 Tom Tromey <tom@tromey.com>
14790
14791 * tui/tui-win.c (tui_set_focus_command)
14792 (tui_set_win_height_command): Use error_no_arg.
14793 (_initialize_tui_win): Update help text.
14794 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14795
14796 2020-02-22 Tom Tromey <tom@tromey.com>
14797
14798 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14799 * tui/tui-disasm.h (struct tui_disasm_window)
14800 <display_start_addr>: Declare.
14801 * tui/tui-source.h (struct tui_source_window)
14802 <display_start_addr>: Declare.
14803 * tui/tui-winsource.h (struct tui_source_window_base)
14804 <show_source_line, display_start_addr>: New methods.
14805 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14806 Rename and move to protected section.
14807 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14808 (tui_source_window_base::do_erase_source_content): Update.
14809 (tui_source_window_base::show_source_line): Now a method.
14810 (tui_source_window_base::show_source_content)
14811 (tui_source_window_base::tui_source_window_base)
14812 (tui_source_window_base::rerender)
14813 (tui_source_window_base::refill)
14814 (tui_source_window_base::do_scroll_horizontal)
14815 (tui_source_window_base::set_is_exec_point_at)
14816 (tui_source_window_base::update_breakpoint_info)
14817 (tui_source_window_base::update_exec_info): Update.
14818 * tui/tui-source.c (tui_source_window::set_contents)
14819 (tui_source_window::showing_source_p)
14820 (tui_source_window::do_scroll_vertical)
14821 (tui_source_window::location_matches_p)
14822 (tui_source_window::line_is_displayed): Update.
14823 (tui_source_window::display_start_addr): New method.
14824 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14825 (tui_disasm_window::do_scroll_vertical)
14826 (tui_disasm_window::location_matches_p): Update.
14827 (tui_disasm_window::display_start_addr): New method.
14828
14829 2020-02-22 Tom Tromey <tom@tromey.com>
14830
14831 * NEWS: Add entry for gdb.register_window_type.
14832 * tui/tui-layout.h (window_factory): New typedef.
14833 (tui_register_window): Declare.
14834 * tui/tui-layout.c (saved_tui_windows): New global.
14835 (tui_apply_current_layout): Use it.
14836 (tui_register_window): New function.
14837 * python/python.c (do_start_initialization): Call
14838 gdbpy_initialize_tui.
14839 (python_GdbMethods): Add "register_window_type" function.
14840 * python/python-internal.h (gdbpy_register_tui_window)
14841 (gdbpy_initialize_tui): Declare.
14842 * python/py-tui.c: New file.
14843 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14844
14845 2020-02-22 Tom Tromey <tom@tromey.com>
14846
14847 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14848
14849 2020-02-22 Tom Tromey <tom@tromey.com>
14850
14851 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14852 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14853 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14854 (tui_set_win_focus_to): Move from tui-win.c.
14855
14856 2020-02-22 Tom Tromey <tom@tromey.com>
14857
14858 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14859 functions.
14860 (known_window_types): New global.
14861 (tui_get_window_by_name): Reimplement.
14862 (initialize_known_windows): New function.
14863 (validate_window_name): Rewrite.
14864 (_initialize_tui_layout): Call initialize_known_windows.
14865
14866 2020-02-22 Tom Tromey <tom@tromey.com>
14867
14868 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14869 Remove constants.
14870 * tui/tui-winsource.h (struct tui_source_window_base)
14871 <tui_source_window_base>: Remove parameter.
14872 * tui/tui-winsource.c
14873 (tui_source_window_base::tui_source_window_base): Remove
14874 parameter.
14875 (tui_source_window_base::refill): Update.
14876 * tui/tui-stack.h (struct tui_locator_window)
14877 <tui_locator_window>: Update.
14878 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14879 Default the constructor.
14880 * tui/tui-regs.h (struct tui_data_item_window)
14881 <tui_data_item_window>: Default the constructor.
14882 (struct tui_data_window) <tui_data_window>: Likewise.
14883 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14884 Default the constructor.
14885 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14886 Default the constructor.
14887 <type>: Remove.
14888 (struct tui_win_info) <tui_win_info>: Default the constructor.
14889 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14890 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14891 Default the constructor.
14892
14893 2020-02-22 Tom Tromey <tom@tromey.com>
14894
14895 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14896 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14897 * tui/tui-win.c (tui_resize_all): Don't call
14898 tui_delete_invisible_windows.
14899 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14900 done.
14901 (tui_set_layout): Update.
14902 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14903 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14904 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14905
14906 2020-02-22 Tom Tromey <tom@tromey.com>
14907
14908 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14909 correctly.
14910
14911 2020-02-22 Tom Tromey <tom@tromey.com>
14912
14913 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14914
14915 2020-02-22 Tom Tromey <tom@tromey.com>
14916
14917 * tui/tui-winsource.h (struct tui_source_window_iterator)
14918 <inner_iterator>: New etytypedef.
14919 <tui_source_window_iterator>: Take "end" parameter.
14920 <tui_source_window_iterator>: Take iterator.
14921 <operator*, advance>: Update.
14922 <m_iter>: Change type.
14923 <m_end>: New field.
14924 (struct tui_source_windows) <begin, end>: Update.
14925 * tui/tui-layout.c (tui_windows): New global.
14926 (tui_apply_current_layout): Clear tui_windows.
14927 (tui_layout_window::apply): Update tui_windows.
14928 * tui/tui-data.h (tui_windows): Declare.
14929 (all_tui_windows): Now inline function.
14930 (class tui_window_iterator, struct all_tui_windows): Remove.
14931
14932 2020-02-22 Tom Tromey <tom@tromey.com>
14933
14934 PR tui/17850:
14935 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14936 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14937 "height" argument.
14938 (class tui_layout_window) <get_sizes>: Likewise.
14939 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14940 argument.
14941 <get_sizes>: Add "height" argument.
14942 <m_vertical>: New field.
14943 * tui/tui-layout.c (tui_layout_split::clone): Update.
14944 (tui_layout_split::get_sizes): Add "height" argument.
14945 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14946 (tui_new_layout_command): Parse "-horizontal".
14947 (_initialize_tui_layout): Update help string.
14948 (tui_layout_split::specification): Add "-horizontal" when needed.
14949 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14950 argument.
14951 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14952 New methods.
14953
14954 2020-02-22 Tom Tromey <tom@tromey.com>
14955
14956 * tui/tui-layout.h (enum tui_adjust_result): New.
14957 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14958 (class tui_layout_window) <adjust_size>: Return
14959 tui_adjust_result. Rewrite.
14960 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14961 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14962
14963 2020-02-22 Tom Tromey <tom@tromey.com>
14964
14965 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14966 parameter and return types.
14967 (class tui_layout_base) <specification>: Add "depth".
14968 (class tui_layout_window) <specification>: Add "depth".
14969 (class tui_layout_split) <specification>: Add "depth".
14970 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14971 and return types.
14972 (tui_new_layout_command): Parse sub-layouts.
14973 (_initialize_tui_layout): Update help string.
14974 (tui_layout_window::specification): Add "depth".
14975 (add_layout_command): Update.
14976
14977 2020-02-22 Tom Tromey <tom@tromey.com>
14978
14979 * NEWS: Add "tui new-layout" item.
14980 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14981 Add new-layout command to help text.
14982 (validate_window_name): New function.
14983 (tui_new_layout_command): New function.
14984 (_initialize_tui_layout): Register "new-layout".
14985 (tui_layout_window::specification): New method.
14986 (tui_layout_window::specification): New method.
14987 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14988 method.
14989 (class tui_layout_window) <specification>: New method.
14990 (class tui_layout_split) <specification>: New method.
14991
14992 2020-02-22 Tom Tromey <tom@tromey.com>
14993
14994 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14995 * tui/tui-win.c (window_name_completer): Update comment.
14996 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14997 Declare method.
14998 (class tui_layout_window) <replace_window>: Likewise.
14999 (class tui_layout_split) <replace_window>: Likewise.
15000 (tui_set_layout): Don't declare.
15001 (tui_set_initial_layout): Declare function.
15002 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15003 (asm_regs_layout): New globals.
15004 (tui_current_layout, show_layout): Remove.
15005 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15006 (find_layout, tui_apply_layout): New function.
15007 (layout_completer): Remove.
15008 (tui_next_layout): Reimplement.
15009 (tui_next_layout_command): New function.
15010 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15011 (tui_regs_layout): Reimplement.
15012 (tui_regs_layout_command): New function.
15013 (extract_display_start_addr): Rewrite.
15014 (next_layout, prev_layout): Remove.
15015 (tui_layout_window::replace_window): New method.
15016 (tui_layout_split::replace_window): New method.
15017 (destroy_layout): New function.
15018 (layout_list): New global.
15019 (add_layout_command): New function.
15020 (initialize_layouts): Update.
15021 (tui_layout_command): New function.
15022 (_initialize_tui_layout): Install "layout" commands.
15023 * tui/tui-data.h (enum tui_layout_type): Remove.
15024 (tui_current_layout): Don't declare.
15025
15026 2020-02-22 Tom Tromey <tom@tromey.com>
15027
15028 * tui/tui-regs.c (tui_reg_layout): Remove.
15029 (tui_reg_command): Use tui_regs_layout.
15030 * tui/tui-layout.h (tui_reg_command): Declare.
15031 * tui/tui-layout.c (tui_reg_command): New function.
15032
15033 2020-02-22 Tom Tromey <tom@tromey.com>
15034
15035 * tui/tui.c (tui_rl_delete_other_windows): Call
15036 tui_remove_some_windows.
15037 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15038 Declare method.
15039 (class tui_layout_window) <remove_windows>: New method.
15040 (class tui_layout_split) <remove_windows>: Declare.
15041 (tui_remove_some_windows): Declare.
15042 * tui/tui-layout.c (tui_remove_some_windows): New function.
15043 (tui_layout_split::remove_windows): New method.
15044
15045 2020-02-22 Tom Tromey <tom@tromey.com>
15046
15047 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15048 * tui/tui-layout.h (tui_next_layout): Declare.
15049 * tui/tui-layout.c (tui_next_layout): New function.
15050
15051 2020-02-22 Tom Tromey <tom@tromey.com>
15052
15053 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15054 correct coordinates.
15055
15056 2020-02-22 Tom Tromey <tom@tromey.com>
15057
15058 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15059 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15060 DATA_WIN case.
15061
15062 2020-02-22 Tom Tromey <tom@tromey.com>
15063
15064 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15065 TUI_DISASM_WIN, not tui_win_list.
15066
15067 2020-02-22 Tom Tromey <tom@tromey.com>
15068
15069 * valprint.c (generic_val_print_enum_1)
15070 (val_print_type_code_flags): Style member names.
15071 * rust-lang.c (val_print_struct, rust_print_enum)
15072 (rust_print_struct_def, rust_internal_print_type): Style member
15073 names.
15074 * p-valprint.c (pascal_object_print_value_fields): Style member
15075 names. Only call fprintf_symbol_filtered for static members.
15076 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15077 * f-valprint.c (f_val_print): Style member names.
15078 * f-typeprint.c (f_type_print_base): Style member names.
15079 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15080 call fprintf_symbol_filtered for static members.
15081 (cp_print_class_member): Style member names.
15082 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15083 member names.
15084 * ada-valprint.c (ada_print_scalar): Style enum names.
15085 (ada_val_print_enum): Likewise.
15086 * ada-typeprint.c (print_enum_type): Style enum names.
15087
15088 2020-02-21 Tom Tromey <tom@tromey.com>
15089
15090 * psympriv.h (struct partial_symtab): Update comment.
15091
15092 2020-02-21 Tom Tromey <tromey@adacore.com>
15093
15094 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15095 type is CORE_ADDR.
15096
15097 2020-02-21 Tom de Vries <tdevries@suse.de>
15098
15099 PR gdb/25534
15100 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15101 if dependencies[i]->user != NULL.
15102
15103 2020-02-21 Ali Tamur <tamur@google.com>
15104
15105 * dwarf2/read.c (dwarf2_name): Add null check.
15106
15107 2020-02-20 Tom Tromey <tom@tromey.com>
15108
15109 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15110 ">=", in binary search.
15111 (dwarf2_find_containing_comp_unit): New overload.
15112 (run_test): New self-test.
15113 (_initialize_dwarf2_read): Register new test.
15114
15115 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15116
15117 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15118 * riscv-tdep.h: Likewise.
15119 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15120 rv32-only CSR.
15121 * features/riscv/64bit-csr.xml: Regenerated.
15122
15123 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15124 Tom Tromey <tom@tromey.com>
15125
15126 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15127 of 'fputc_unfiltered'.
15128 (putchar_unfiltered): Call 'fputc_unfiltered'.
15129 (fputc_unfiltered): Call 'fputs_unfiltered'.
15130
15131 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15132
15133 * config.in: Regenerate.
15134 * configure: Regenerate.
15135 * configure.ac: Add --with-python-libdir option.
15136 * main.c: Use WITH_PYTHON_LIBDIR.
15137
15138 2020-02-19 Tom Tromey <tom@tromey.com>
15139
15140 * symtab.c (general_symbol_info::compute_and_set_names): Use
15141 obstack_strndup. Simplify call to symbol_set_demangled_name.
15142
15143 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15144
15145 * dwarf2/read.c (allocate_signatured_type_table,
15146 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15147 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15148 Remove objfile parameter, update all callers.
15149
15150 2020-02-19 Doug Evans <dje@google.com>
15151
15152 PR rust/25535
15153 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15154 rust_enum_variant calculation.
15155
15156 2020-02-19 Tom Tromey <tromey@adacore.com>
15157
15158 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15159
15160 2020-02-19 Tom Tromey <tromey@adacore.com>
15161
15162 * ada-lang.c (cache_symbol): Use obstack_strdup.
15163
15164 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15165
15166 * configure: Regenerate.
15167
15168 2020-02-19 Tom Tromey <tromey@adacore.com>
15169
15170 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15171 NULL check.
15172
15173 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15174
15175 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15176
15177 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15178
15179 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15180 if GDBSERVER is not defined.
15181 (riscv_tdesc_cache): Likewise, also store const target_desc.
15182 (STATIC_IN_GDB): Define.
15183 (riscv_create_target_description): Update declaration with
15184 STATIC_IN_GDB.
15185 (riscv_lookup_target_description): New function, only define if
15186 GDBSERVER is not defined.
15187 * arch/riscv.h (riscv_create_target_description): Declare only
15188 when GDBSERVER is defined.
15189 (riscv_lookup_target_description): New declaration when GDBSERVER
15190 is not defined.
15191 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15192 (riscv_linux_read_features): ...this, and return
15193 riscv_gdbarch_features instead of target_desc.
15194 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15195 (riscv_linux_read_description): Rename to...
15196 (riscv_linux_read_features): ...this.
15197 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15198 Update to use riscv_gdbarch_features and
15199 riscv_lookup_target_description.
15200 * riscv-tdep.c (riscv_find_default_target_description): Use
15201 riscv_lookup_target_description instead of
15202 riscv_create_target_description.
15203
15204 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15205
15206 * valprint.c (generic_val_print_enum_1): When printing a flag
15207 enum with value 0 and there is no enumerator with value 0, print
15208 just "0" instead of "(unknown: 0x0)".
15209
15210 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15211
15212 * valprint.c (generic_val_print_enum_1): Print unknown part of
15213 flag enum in hex.
15214
15215 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15216
15217 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15218 flag enums to contain duplicate enumerators.
15219 * valprint.c (generic_val_print_enum_1): Update comment.
15220
15221 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15222
15223 * dwarf2/read.c: Include "count-one-bits.h".
15224 (update_enumeration_type_from_children): If an enumerator has
15225 multiple bits set, don't treat the enumeration as a "flag enum".
15226 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15227 of flag enums have 0 or 1 bit set.
15228
15229 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15230
15231 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15232 conversion.
15233 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15234 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15235 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15236 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15237 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15238
15239 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15240
15241 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15242
15243 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15244
15245 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15246 displaced_step_closure_up.
15247 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15248 (struct displaced_step_closure_up):
15249 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15250 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15251 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15252 Likewise.
15253 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15254 * gdbarch.c, gdbarch.h: Re-generate.
15255 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15256 displaced_step_closure_up.
15257 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15258 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15259 * infrun.h (displaced_step_closure_up): New type alias.
15260 (struct displaced_step_inferior_state) <step_closure>: Change
15261 type to displaced_step_closure_up.
15262 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15263 displaced_step_closure_up.
15264 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15265
15266 2020-02-14 Tom Tromey <tom@tromey.com>
15267
15268 * minidebug.c (gnu_debug_key): New global.
15269 (find_separate_debug_file_in_section): Use it.
15270
15271 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15272
15273 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15274 std::unique_ptr.
15275 * gdbarch.c: Re-generate.
15276 * gdbarch.h: Re-generate.
15277 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15278 change.
15279 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15280 type to std::unique_ptr.
15281 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15282 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15283 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15284 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15285 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15286 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15287 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15288 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15289 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15290
15291 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15292
15293 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15294 std::unique_ptr.
15295 (displaced_step_clear): Rename to...
15296 (displaced_step_reset): ... this. Just call displaced->reset ().
15297 (displaced_step_clear_cleanup): Rename to...
15298 (displaced_step_reset_cleanup): ... this.
15299 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15300 (displaced_step_fixup): Likewise.
15301 (resume_1): Likewise.
15302 (handle_inferior_event): Restore child's memory before calling
15303 displaced_step_fixup on the parent.
15304 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15305 to std::unique_ptr.
15306 <step_closure>: Change type to std::unique_ptr.
15307
15308 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15309
15310 * arm-tdep.c: Include count-one-bits.h.
15311 (cleanup_block_store_pc): Use count_one_bits.
15312 (cleanup_block_load_pc): Use count_one_bits.
15313 (arm_copy_block_xfer): Use count_one_bits.
15314 (thumb2_copy_block_xfer): Use count_one_bits.
15315 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15316 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15317 (thumb_get_next_pcs_raw): Use count_one_bits.
15318 (arm_get_next_pcs_raw): Use count_one_bits_l.
15319 * arch/arm.c (bitcount): Remove.
15320 * arch/arm.h (bitcount): Remove.
15321
15322 2020-02-14 Tom Tromey <tromey@adacore.com>
15323
15324 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15325 Update.
15326 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15327 * dwarf2/loc.c (call_site_find_chain_1): Return
15328 unique_xmalloc_ptr.
15329 (call_site_find_chain): Likewise.
15330
15331 2020-02-14 Richard Biener <rguenther@suse.de>
15332
15333 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15334 on expression with division operators.
15335
15336 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15337
15338 * MAINTAINERS (Write After Approval): Adding myself.
15339
15340 2020-02-12 Tom Tromey <tom@tromey.com>
15341
15342 * event-loop.c (event_data, gdb_event, event_handler_func):
15343 Remove.
15344
15345 2020-02-12 Tom Tromey <tom@tromey.com>
15346
15347 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15348 (dwarf2_frame_objfile_data): Add comment.
15349 (find_comp_unit, set_comp_unit): New functions.
15350 (dwarf2_frame_find_fde): Use find_comp_unit.
15351 (dwarf2_build_frame_info): Use set_comp_unit.
15352
15353 2020-02-12 Tom Tromey <tom@tromey.com>
15354
15355 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15356 (comp_unit): Don't initialize objfile.
15357 (execute_cfa_program): Add text_offset parameter.
15358 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15359 (dwarf2_frame_cache): Update.
15360 (dwarf2_build_frame_info): Don't set "objfile" member.
15361
15362 2020-02-12 Tom Tromey <tom@tromey.com>
15363
15364 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15365 (decode_frame_entry): Likewise.
15366 (dwarf2_build_frame_info): Update.
15367
15368 2020-02-12 Tom Tromey <tom@tromey.com>
15369
15370 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15371 (decode_frame_entry_1): Use the comp_unit obstack.
15372
15373 2020-02-12 Tom Tromey <tom@tromey.com>
15374
15375 * dwarf2/frame.c (struct comp_unit): Add initializers and
15376 constructor.
15377 (dwarf2_frame_objfile_data): Store a comp_unit.
15378 (dwarf2_frame_find_fde): Update.
15379 (dwarf2_build_frame_info): Use "new".
15380
15381 2020-02-12 Tom Tromey <tom@tromey.com>
15382
15383 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15384 (dwarf2_fde_table): Typedef for std::vector.
15385 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15386 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15387 (decode_frame_entry): Update.
15388 (dwarf2_build_frame_info): Use "new".
15389
15390 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15391
15392 * arm-tdep.c (arm_gdbarch_init): Update.
15393 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15394 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15395 have_neon, is_m>: Change to bool.
15396
15397 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15398
15399 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15400
15401 2020-02-12 Tom Tromey <tom@tromey.com>
15402
15403 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15404
15405 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15406
15407 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15408 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15409
15410 2020-02-11 Tom Tromey <tom@tromey.com>
15411
15412 * psymtab.h: Update comment.
15413
15414 2020-02-11 Tom Tromey <tom@tromey.com>
15415
15416 * gdb_obstack.h (struct auto_obstack): Use
15417 DISABLE_COPY_AND_ASSIGN.
15418
15419 2020-02-11 Tom Tromey <tom@tromey.com>
15420
15421 * dwarf2/frame.h (struct objfile): Don't forward declare.
15422
15423 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15424
15425 * cris-tdep.c (cris_supply_gregset): Change signature to match
15426 what struct regset expects.
15427 (cris_regset): New struct.
15428 (fetch_core_registers): Remove.
15429 (cris_iterate_over_regset_sections): New function.
15430 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15431 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15432
15433 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15434
15435 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15436 registers.
15437
15438 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15439
15440 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15441
15442 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15443
15444 * configure: Re-generate.
15445
15446 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15447
15448 * configure: Re-generate.
15449
15450 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15451
15452 * acinclude: Update warning.m4 path.
15453 * warning.m4: Move to gdbsupport.
15454
15455 2020-02-11 Tom Tromey <tromey@adacore.com>
15456
15457 * remote.c (remote_console_output): Update.
15458 * printcmd.c (printf_command): Update.
15459 * event-loop.c (gdb_wait_for_event): Update.
15460 * linux-nat.c (sigchld_handler): Update.
15461 * remote-sim.c (gdb_os_write_stdout): Update.
15462 (gdb_os_flush_stdout): Update.
15463 (gdb_os_flush_stderr): Update.
15464 (gdb_os_write_stderr): Update.
15465 * exceptions.c (print_exception): Update.
15466 * remote-fileio.c (remote_fileio_func_read): Update.
15467 (remote_fileio_func_write): Update.
15468 * tui/tui.c (tui_enable): Update.
15469 * tui/tui-interp.c (tui_interp::init): Update.
15470 * utils.c (init_page_info): Update.
15471 (putchar_unfiltered, fputc_unfiltered): Update.
15472 (gdb_flush): Update.
15473 (emit_style_escape): Update.
15474 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15475 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15476 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15477 (stderr_file::write): Update.
15478 (stderr_file::puts): Update.
15479 * ui-file.h (ui_file_isatty, ui_file_write)
15480 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15481 (ui_file_puts): Don't declare.
15482
15483 2020-02-10 Tom de Vries <tdevries@suse.de>
15484
15485 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15486 sentinel to char *.
15487
15488 2020-02-09 Tom de Vries <tdevries@suse.de>
15489
15490 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15491 filename if it matches "<artificial>".
15492
15493 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15494
15495 * windows-tdep.c (struct enum_value_name): New struct.
15496 (create_enum): New function.
15497 (windows_get_siginfo_type): Create and use enum types.
15498
15499 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15500
15501 * NEWS: Mention $_siginfo support for Windows.
15502 * windows-nat.c (handle_exception): Set siginfo_er.
15503 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15504 (windows_xfer_siginfo): New function.
15505 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15506 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15507 (init_windows_gdbarch_data): New function.
15508 (get_windows_gdbarch_data): New function.
15509 (windows_get_siginfo_type): New function.
15510 (windows_init_abi): Register windows_get_siginfo_type.
15511 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15512
15513 2020-02-08 Tom Tromey <tom@tromey.com>
15514
15515 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15516 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15517 <keep>: Declare method.
15518 <m_keep>: Remove member.
15519 <~cutu_reader>: Remove.
15520 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15521 (cutu_reader::cutu_reader): Update.
15522 (cutu_reader::keep): Rename from ~cutu_reader.
15523 (process_psymtab_comp_unit, build_type_psymtabs_1)
15524 (process_skeletonless_type_unit, load_partial_comp_unit)
15525 (load_full_comp_unit, dwarf2_read_addr_index)
15526 (read_signatured_type): Update.
15527
15528 2020-02-08 Tom Tromey <tom@tromey.com>
15529
15530 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15531 "want_partial_unit" parameter.
15532 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15533 Inline check for DW_TAG_partial_unit.
15534 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15535
15536 2020-02-08 Tom Tromey <tom@tromey.com>
15537
15538 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15539 read.c.
15540 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15541 read.c.
15542
15543 2020-02-08 Tom Tromey <tom@tromey.com>
15544
15545 * dwarf2/read.c (read_address): Move to comp-unit.c.
15546 (dwarf2_rnglists_process, dwarf2_ranges_process)
15547 (read_attribute_value, dwarf_decode_lines_1)
15548 (var_decode_location, decode_locdesc): Update.
15549 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15550 read.c. Remove "cu" parameter.
15551 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15552 method.
15553
15554 2020-02-08 Tom Tromey <tom@tromey.com>
15555
15556 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15557 (read_indirect_line_string): Update.
15558 * dwarf2/comp-unit.c (read_offset): Remove.
15559 (read_comp_unit_head): Update.
15560 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15561 method.
15562 (read_offset): Don't declare.
15563
15564 2020-02-08 Tom Tromey <tom@tromey.com>
15565
15566 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15567 * dwarf2/read.c (struct comp_unit_head): Move to
15568 dwarf2/comp-unit.h.
15569 (enum class rcuh_kind): Move to comp-unit.h.
15570 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15571 (read_comp_unit_head, error_check_comp_unit_head)
15572 (read_and_check_comp_unit_head): Move to comp-unit.c.
15573 (read_offset, dwarf_unit_type_name): Likewise.
15574 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15575 (cutu_reader::cutu_reader, read_call_site_scope)
15576 (find_partial_die, follow_die_offset): Update.
15577 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15578
15579 2020-02-08 Tom Tromey <tom@tromey.com>
15580
15581 * dwarf2/read.c (read_offset_1): Move to leb.c.
15582 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15583 (dwarf_decode_macro_bytes): Update.
15584 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15585 * dwarf2/leb.h (read_offset): Declare.
15586
15587 2020-02-08 Tom Tromey <tom@tromey.com>
15588
15589 * dwarf2/read.c (dwarf2_section_size): Remove.
15590 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15591 Update.
15592 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15593
15594 2020-02-08 Tom Tromey <tom@tromey.com>
15595
15596 * dwarf2/read.c (read_initial_length): Move to leb.c.
15597 * dwarf2/leb.h (read_initial_length): Declare.
15598 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15599 handle_nonstd parameter.
15600 * dwarf2/frame.c (read_initial_length): Remove.
15601 (decode_frame_entry_1): Update.
15602
15603 2020-02-08 Tom Tromey <tom@tromey.com>
15604
15605 * dwarf2/loc.c (dwarf2_find_location_expression)
15606 (dwarf_evaluate_loc_desc::get_tls_address)
15607 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15608 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15609 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15610 (dwarf2_compile_property_to_c)
15611 (dwarf2_loc_desc_get_symbol_read_needs)
15612 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15613 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15614 (loclist_describe_location, loclist_tracepoint_var_ref)
15615 (loclist_generate_c_location): Update.
15616 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15617 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15618 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15619 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15620 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15621 (dwarf2_per_cu_data::addr_size)
15622 (dwarf2_per_cu_data::ref_addr_size)
15623 (dwarf2_per_cu_data::text_offset)
15624 (dwarf2_per_cu_data::addr_type): Now methods.
15625 (per_cu_header_read_in): Make per_cu "const".
15626 (dwarf2_version): Remove.
15627 (dwarf2_per_cu_data::int_type): Now a method.
15628 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15629 (set_die_type, read_array_type, read_subrange_index_type)
15630 (read_tag_string_type, read_subrange_type): Update.
15631 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15632 offset_size, ref_addr_size, text_offset, addr_type, version,
15633 objfile, int_type, addr_sized_int_type>: Declare methods.
15634
15635 2020-02-08 Tom Tromey <tom@tromey.com>
15636
15637 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15638 Move earlier.
15639
15640 2020-02-08 Tom Tromey <tom@tromey.com>
15641
15642 * dwarf2/read.h (dwarf_line_debug): Declare.
15643 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15644 * dwarf2/read.c: Move line_header code to new files.
15645 (dwarf_line_debug): No longer static.
15646 * dwarf2/line-header.c: New file.
15647 * dwarf2/line-header.h: New file.
15648
15649 2020-02-08 Tom Tromey <tom@tromey.com>
15650
15651 * dwarf2/read.c (struct line_header) <file_full_name,
15652 file_file_name>: Return unique_xmalloc_ptr.
15653 (line_header::file_file_name): Update.
15654 (line_header::file_full_name): Update.
15655 (dw2_get_file_names_reader): Update.
15656 (macro_start_file): Update.
15657
15658 2020-02-08 Tom Tromey <tom@tromey.com>
15659
15660 * dwarf2/read.c (struct line_header) <file_full_name,
15661 file_file_name>: Declare methods.
15662 (dw2_get_file_names_reader): Update.
15663 (file_file_name): Now a method.
15664 (file_full_name): Likewise.
15665 (macro_start_file): Update.
15666
15667 2020-02-08 Tom Tromey <tom@tromey.com>
15668
15669 * dwarf2/read.c (dwarf_always_disassemble)
15670 (show_dwarf_always_disassemble): Move to loc.c.
15671 (_initialize_dwarf2_read): Move "always-disassemble" registration
15672 to loc.c.
15673 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15674 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15675 static.
15676 (show_dwarf_always_disassemble): Move from read.c.
15677 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15678
15679 2020-02-08 Tom Tromey <tom@tromey.com>
15680
15681 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15682 (create_quick_file_names_table): Return htab_up.
15683 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15684 Update.
15685 * dwarf2/read.h (struct dwarf2_per_objfile)
15686 <quick_file_names_table>: Now htab_up.
15687
15688 2020-02-08 Tom Tromey <tom@tromey.com>
15689
15690 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15691
15692 2020-02-08 Tom Tromey <tom@tromey.com>
15693
15694 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15695 Rewrite.
15696 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15697 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15698 (abbrev_table::abbrev_table): No longer inline.
15699 (ABBREV_HASH_SIZE): Remove.
15700 (abbrev_table::m_abbrevs): Now an htab_up.
15701
15702 2020-02-08 Tom Tromey <tom@tromey.com>
15703
15704 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15705 (cutu_reader): Update.
15706 (build_type_psymtabs_1): Update.
15707 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15708 (abbrev_table::alloc_abbrev): Update.
15709 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15710 (abbrev_table::read): New static method, renamed from
15711 abbrev_table_read_table.
15712 (abbrev_table::alloc_abbrev)
15713 (abbrev_table::add_abbrev): Now private.
15714 (abbrev_table::abbrev_table): Now private.
15715 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15716
15717 2020-02-08 Tom Tromey <tom@tromey.com>
15718
15719 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15720 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15721 htab_up.
15722
15723 2020-02-08 Tom Tromey <tom@tromey.com>
15724
15725 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15726 htab_up.
15727 (lookup_dwo_unit_in_dwp): Update.
15728 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15729 on obstack.
15730
15731 2020-02-08 Tom Tromey <tom@tromey.com>
15732
15733 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15734 obstack.
15735
15736 2020-02-08 Tom Tromey <tom@tromey.com>
15737
15738 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15739 line_header_hash.
15740 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15741 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15742 Change type to htab_up.
15743
15744 2020-02-08 Tom Tromey <tom@tromey.com>
15745
15746 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15747 htab_up. Don't allocate on obstack.
15748 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15749 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15750 Change type to htab_up.
15751
15752 2020-02-08 Tom Tromey <tom@tromey.com>
15753
15754 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15755 Change type to htab_up.
15756 * dwarf2/read.c (create_signatured_type_table_from_index)
15757 (create_signatured_type_table_from_debug_names)
15758 (create_all_type_units, add_type_unit)
15759 (lookup_dwo_signatured_type, lookup_signatured_type)
15760 (process_skeletonless_type_unit): Update.
15761 (create_debug_type_hash_table, create_debug_types_hash_table):
15762 Change type of types_htab.
15763 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15764 htab_up. Don't allocate on obstack.
15765 (create_cus_hash_table): Change type of cus_htab parameter.
15766 (struct dwo_file) <cus, tus>: Now htab_up.
15767 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15768 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15769 (queue_and_load_all_dwo_tus): Update.
15770 * dwarf2/index-write.c (write_gdbindex): Update.
15771 (write_debug_names): Update.
15772
15773 2020-02-08 Tom Tromey <tom@tromey.com>
15774
15775 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15776 dwarf2/read.c. Remove "next" member. Add constructor ntad
15777 destructor.
15778 (struct dwarf2_per_objfile) <queue>: New member.
15779 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15780 dwarf2/read.h.
15781 (dwarf2_queue, dwarf2_queue_tail): Remove.
15782 (class dwarf2_queue_guard): Add parameter to constructor. Use
15783 DISABLE_COPY_AND_ASSIGN.
15784 <m_per_objfile>: New member.
15785 <~dwarf2_queue_guard>: Rewrite.
15786 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15787 Update.
15788 (~dwarf2_queue_item): New.
15789
15790 2020-02-08 Tom Tromey <tom@tromey.com>
15791
15792 * dwarf2/read.c (struct die_info) <has_children>: New member.
15793 (dw2_get_file_names_reader): Remove has_children.
15794 (dw2_get_file_names): Update.
15795 (read_cutu_die_from_dwo): Remove has_children.
15796 (cutu_reader::init_tu_and_read_dwo_dies)
15797 (cutu_reader::cutu_reader): Update.
15798 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15799 Remove has_children.
15800 (build_type_psymtabs_1, process_skeletonless_type_unit)
15801 (load_partial_comp_unit, load_full_comp_unit): Update.
15802 (create_dwo_cu_reader): Remove has_children.
15803 (create_cus_hash_table, read_die_and_children): Update.
15804 (read_full_die_1,read_full_die): Remove has_children.
15805 (read_signatured_type): Update.
15806 (class cutu_reader) <has_children>: Remove.
15807
15808 2020-02-08 Tom Tromey <tom@tromey.com>
15809
15810 * dwarf2/expr.c: Rename from dwarf2expr.c.
15811 * dwarf2/expr.h: Rename from dwarf2expr.h.
15812 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15813 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15814 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15815 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15816 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15817 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15818 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15819 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15820 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15821 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15822 * dwarf2/loc.c: Rename from dwarf2loc.c.
15823 * dwarf2/loc.h: Rename from dwarf2loc.h.
15824 * dwarf2/read.c: Rename from dwarf2read.c.
15825 * dwarf2/read.h: Rename from dwarf2read.h.
15826 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15827 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15828 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15829 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15830 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15831 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15832 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15833 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15834 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15835 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15836 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15837 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15838 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15839 Update.
15840 * Makefile.in (COMMON_SFILES): Update.
15841 (HFILES_NO_SRCDIR): Update.
15842
15843 2020-02-08 Tom Tromey <tom@tromey.com>
15844
15845 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15846 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15847
15848 2020-02-08 Tom Tromey <tom@tromey.com>
15849
15850 * dwarf2read.h (struct die_info): Don't declare.
15851
15852 2020-02-08 Tom Tromey <tom@tromey.com>
15853
15854 * dwarf2read.h (die_info_ptr): Remove typedef.
15855
15856 2020-02-08 Tom Tromey <tom@tromey.com>
15857
15858 * dwarf2read.c (read_call_site_scope)
15859 (handle_data_member_location, dwarf2_add_member_fn)
15860 (mark_common_block_symbol_computed, read_common_block)
15861 (attr_to_dynamic_prop, partial_die_info::read)
15862 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15863 (dwarf2_symbol_mark_computed, set_die_type): Update.
15864 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15865 method.
15866 (attr_form_is_block): Don't declare.
15867 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15868
15869 2020-02-08 Tom Tromey <tom@tromey.com>
15870
15871 * dwarf2read.c (dwarf2_find_base_address, )
15872 (read_call_site_scope, rust_containing_type)
15873 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15874 (handle_data_member_location, dwarf2_add_member_fn)
15875 (get_alignment, read_structure_type, process_structure_scope)
15876 (mark_common_block_symbol_computed, read_common_block)
15877 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15878 (partial_die_info::read, read_attribute_value, new_symbol)
15879 (lookup_die_type, dwarf2_get_ref_die_offset)
15880 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15881 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15882 (dwarf2_symbol_mark_computed): Update.
15883 * dwarf2/attribute.h (struct attribute) <value_as_address,
15884 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15885 methods.
15886 (value_as_address, attr_form_is_section_offset)
15887 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15888 * dwarf2/attribute.c (attribute::value_as_address)
15889 (attribute::form_is_section_offset, attribute::form_is_constant)
15890 (attribute::form_is_ref): Now methods.
15891
15892 2020-02-08 Tom Tromey <tom@tromey.com>
15893
15894 * dwarf2read.c (struct attribute, DW_STRING)
15895 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15896 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15897 (attr_form_is_block, attr_form_is_section_offset)
15898 (attr_form_is_constant, attr_form_is_ref): Move.
15899 * dwarf2/attribute.h: New file.
15900 * dwarf2/attribute.c: New file, from dwarf2read.c.
15901 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15902
15903 2020-02-08 Tom Tromey <tom@tromey.com>
15904
15905 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15906 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15907 Move.
15908 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15909 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15910 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15911 abbrev.c.
15912 * dwarf2/abbrev.h: New file.
15913 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15914 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15915
15916 2020-02-08 Tom Tromey <tom@tromey.com>
15917
15918 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15919 (dwarf2_section_size, dwarf2_get_section_info)
15920 (create_signatured_type_table_from_debug_names)
15921 (create_addrmap_from_aranges, read_debug_names_from_section)
15922 (get_gdb_index_contents_from_section, read_comp_unit_head)
15923 (error_check_comp_unit_head, read_abbrev_offset)
15924 (create_debug_type_hash_table, init_cu_die_reader)
15925 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15926 (read_comp_units_from_section, create_cus_hash_table)
15927 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15928 (create_dwp_v2_section, dwarf2_rnglists_process)
15929 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15930 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15931 (read_indirect_string_from_dwz, read_addr_index_1)
15932 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15933 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15934 (fill_in_loclist_baton): Update.
15935 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15936 get_containing_section, get_bfd_owner, get_bfd_section,
15937 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15938 (dwarf2_read_section, get_section_name, get_section_file_name)
15939 (get_containing_section, get_section_bfd_owner)
15940 (get_section_bfd_section, get_section_name, get_section_file_name)
15941 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15942 declare.
15943 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15944 (dwarf2_section_info::get_bfd_owner)
15945 (dwarf2_section_info::get_bfd_section)
15946 (dwarf2_section_info::get_name)
15947 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15948 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15949 (dwarf2_section_info::read): Now methods.
15950 * dwarf-index-write.c (class debug_names): Update.
15951
15952 2020-02-08 Tom Tromey <tom@tromey.com>
15953
15954 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15955 Move to dwarf2/section.h.
15956 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15957 (get_section_bfd_section, get_section_name)
15958 (get_section_file_name, get_section_id, get_section_flags)
15959 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15960 dwarf2/section.c.
15961 * dwarf2/section.h: New file.
15962 * dwarf2/section.c: New file, from dwarf2read.c.
15963 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15964
15965 2020-02-08 Tom Tromey <tom@tromey.com>
15966
15967 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15968 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15969 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15970 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15971 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15972 * dwarf2/leb.h: New file, from dwarf2read.c.
15973 * dwarf2/leb.c: New file, from dwarf2read.c.
15974 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15975 Remove.
15976 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15977 (COMMON_SFILES): Add dwarf2/leb.c.
15978
15979 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15980
15981 GDB 9.1 released.
15982
15983 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15984
15985 PR gdb/25190:
15986 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15987 * gdb/remote.c (remote_console_output): Update.
15988 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15989 (ui_file_puts): ...this.
15990 * gdb/ui-file.h (ui_file_puts): Add declaration.
15991 * gdb/utils.c (emit_style_escape): Update.
15992 (flush_wrap_buffer): Update.
15993 (fputs_maybe_filtered): Update.
15994 (fputs_unfiltered): Add function.
15995
15996 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15997
15998 * gdb/event-loop.c (gdb_wait_for_event): Update.
15999 * gdb/printcmd.c (printf_command): Update.
16000 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16001 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16002 (gdb_os_flush_stderr): Update.
16003 * gdb/remote.c (remote_console_output): Update.
16004 * gdb/ui-file.c (gdb_flush): Rename to...
16005 (ui_file_flush): ...this.
16006 (stderr_file::write): Update.
16007 (stderr_file::puts): Update.
16008 * gdb/ui-file.h (gdb_flush): Rename to...
16009 (ui_file_flush): ...this.
16010 * gdb/utils.c (gdb_flush): Add function.
16011 * gdb/utils.h (gdb_flush): Add declaration.
16012
16013 2020-02-07 Tom Tromey <tromey@adacore.com>
16014
16015 PR breakpoints/24915:
16016 * source.c (find_and_open_source): Do not check basenames_may_differ.
16017
16018 2020-02-07 Tom Tromey <tom@tromey.com>
16019
16020 * README: Update gdbserver documentation.
16021 * gdbserver: Move to top level.
16022 * configure.tgt (build_gdbserver): Remove.
16023 * configure.ac: Remove --enable-gdbserver.
16024 * configure: Rebuild.
16025 * Makefile.in (distclean): Don't mention gdbserver.
16026
16027 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16028
16029 * source-cache.c (source_cache::ensure): Surround
16030 get_plain_source_lines with a try/catch.
16031 (source_cache::get_line_charpos): Get rid of try/catch
16032 and only check for the return value of "ensure".
16033 * tui/tui-source.c (tui_source_window::set_contents):
16034 Simplify "nlines" calculation.
16035
16036 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16037
16038 * MAINTAINERS (Write After Approval): Add myself.
16039
16040 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16041
16042 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16043 function call.
16044
16045 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16046
16047 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16048
16049 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16050
16051 * nat/riscv-linux-tdesc.h: New file.
16052 * nat/riscv-linux-tdesc.c: New file, taking code from...
16053 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16054 ... here.
16055 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16056 NATDEPFILES.
16057
16058 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16059
16060 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16061 we don't set the fake simulator ptid to the null_ptid.
16062
16063 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16064
16065 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16066 * gdbthread.h (class thread_info) <resumed>: Likewise.
16067 * infrun.c (resume_1): Likewise.
16068 (proceed): Likewise.
16069 (infrun_thread_stop_requested): Likewise.
16070 (stop_all_threads): Likewise.
16071 (handle_inferior_event): Likewise.
16072 (restart_threads): Likewise.
16073 (finish_step_over): Likewise.
16074 (keep_going_stepped_thread): Likewise.
16075 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16076 (linux_handle_extended_wait): Likewise.
16077 * record-btrace.c (get_thread_current_frame_id): Likewise.
16078 * record-full.c (record_full_wait_1): Likewise.
16079 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16080 * target.c (target_resume): Likewise.
16081 * thread.c (set_running_thread): Likewise.
16082
16083 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16084
16085 * f-valprint.c (f77_print_array_1): Changed datatype of index
16086 variable to LONGEST from int to enable it to contain bound
16087 values correctly.
16088
16089 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16090
16091 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16092 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16093 offsets according to FLEN determined.
16094 (riscv_linux_nat_target::read_description): Determine FLEN
16095 dynamically.
16096 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16097 according to FLEN determined.
16098 (riscv_linux_nat_target::store_registers): Likewise.
16099
16100 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16101
16102 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16103 when reg->group is empty and reggroup is not.
16104
16105 2020-01-31 Tom Tromey <tromey@adacore.com>
16106
16107 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16108 Call beneath target's mourn_inferior after unpushing.
16109
16110 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16111
16112 PR tui/9765
16113 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16114 have enough lines to fill the screen, still return the lowest
16115 address we found.
16116
16117 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16118
16119 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16120 '-', '<', and '>' commands.
16121
16122 2020-01-29 Pedro Alves <palves@redhat.com>
16123 Sergio Durigan Junior <sergiodj@redhat.com>
16124
16125 * infcmd.c (construct_inferior_arguments): Assert that
16126 'argc' is greater than 0.
16127
16128 2020-01-29 Luis Machado <luis.machado@linaro.org>
16129
16130 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16131 (BRK_INSN_MASK): Define to 0xd4200000.
16132 (aarch64_program_breakpoint_here_p): New function.
16133 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16134 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16135 breakpoint.c.
16136 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16137 breakpoint.h
16138 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16139 call gdbarch_program_breakpoint_here_p.
16140 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16141 default_program_breakpoint_here_p, changed return type to bool and
16142 simplified.
16143 * breakpoint.h (program_breakpoint_here): Moved prototype to
16144 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16145 return type to bool.
16146 * gdbarch.c: Regenerate.
16147 * gdbarch.h: Regenerate.
16148 * gdbarch.sh (program_breakpoint_here_p): New method.
16149 * infrun.c (handle_signal_stop): Call
16150 gdbarch_program_breakpoint_here_p.
16151
16152 2020-01-26 Tom Tromey <tom@tromey.com>
16153
16154 * ctfread.c (struct ctf_fp_info): Reindent.
16155 (_initialize_ctfread): Remove.
16156
16157 2020-01-26 Tom Tromey <tom@tromey.com>
16158
16159 * psymtab.c (partial_map_expand_apply)
16160 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16161 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16162 (psym_print_stats, psym_expand_symtabs_for_function)
16163 (psym_map_symbol_filenames, psym_map_matching_symbols)
16164 (psym_expand_symtabs_matching)
16165 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16166 (maintenance_check_psymtabs): Use new methods.
16167 * psympriv.h (struct partial_symtab) <readin_p,
16168 get_compunit_symtab>: New methods.
16169 <readin, compunit_symtab>: Remove members.
16170 (struct standard_psymtab): New.
16171 (struct legacy_psymtab): Derive from standard_psymtab.
16172 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16173 standard_psymtab.
16174 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16175
16176 2020-01-26 Tom Tromey <tom@tromey.com>
16177
16178 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16179 read_dependencies. Add assert.
16180 * psymtab.c (partial_symtab::read_dependencies): New method.
16181 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16182 method.
16183 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16184 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16185 read_dependencies.
16186 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16187 Add assert.
16188
16189 2020-01-26 Tom Tromey <tom@tromey.com>
16190
16191 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16192 Call expand_psymtab.
16193 (xcoff_read_symtab): Call expand_psymtab.
16194 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16195 legacy_expand_psymtab.
16196 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16197 method.
16198 (struct legacy_psymtab) <expand_psymtab>: Implement.
16199 <legacy_expand_psymtab>: New member.
16200 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16201 (parse_partial_symbols): Set legacy_expand_psymtab.
16202 (psymtab_to_symtab_1): Change argument order. Call
16203 expand_psymtab.
16204 (new_psymtab): Set legacy_expand_psymtab.
16205 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16206 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16207 expand_psymtab.
16208 (dwarf2_psymtab::expand_psymtab): Rename from
16209 psymtab_to_symtab_1. Call expand_psymtab.
16210 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16211 (dbx_end_psymtab): Likewise.
16212 (dbx_psymtab_to_symtab_1): Change argument order. Call
16213 expand_psymtab.
16214 (dbx_read_symtab): Call expand_psymtab.
16215 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16216 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16217 (ctf_psymtab::read_symtab): Call expand_psymtab.
16218
16219 2020-01-26 Tom Tromey <tom@tromey.com>
16220
16221 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16222 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16223 messages.
16224 * mdebugread.c (mdebug_read_symtab): Remove prints.
16225 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16226 assert.
16227 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16228
16229 2020-01-26 Tom Tromey <tom@tromey.com>
16230
16231 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16232 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16233 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16234 legacy_symtab.
16235 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16236 * psymtab.c (psymtab_to_symtab): Call method.
16237 (dump_psymtab): Update.
16238 * psympriv.h (struct partial_symtab): Add virtual destructor.
16239 <read_symtab>: New method.
16240 (struct legacy_symtab): New.
16241 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16242 (struct pst_map) <pst>: Now a legacy_psymtab.
16243 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16244 (new_psymtab): Use legacy_psymtab.
16245 * dwarf2read.h (struct dwarf2_psymtab): New.
16246 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16247 * dwarf2read.c (dwarf2_create_include_psymtab)
16248 (dwarf2_build_include_psymtabs, create_type_unit_group)
16249 (create_partial_symtab, process_psymtab_comp_unit_reader)
16250 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16251 (set_partial_user): Use dwarf2_psymtab.
16252 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16253 (psymtab_to_symtab_1, process_full_comp_unit)
16254 (process_full_type_unit, dwarf2_ranges_read)
16255 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16256 (dwarf_decode_lines): Use dwarf2_psymtab.
16257 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16258 (add_address_entry_worker, write_one_signatured_type)
16259 (recursively_count_psymbols, recursively_write_psymbols)
16260 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16261 (write_debug_names): Likewise.
16262 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16263 <pst>: Now a legacy_psymtab.
16264 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16265 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16266 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16267 * ctfread.c (struct ctf_psymtab): New.
16268 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16269 ctf_psymtab.
16270 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16271 (create_partial_symtab): Return a ctf_psymtab.
16272 (scan_partial_symbols): Update.
16273
16274 2020-01-26 Tom Tromey <tom@tromey.com>
16275
16276 * xcoffread.c (xcoff_start_psymtab): Use new.
16277 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16278 renamed from start_psymtab_common.
16279 * psympriv.h (struct partial_symtab): Add new constructor.
16280 (start_psymtab_common): Don't declare.
16281 * mdebugread.c (parse_partial_symbols): Use new.
16282 * dwarf2read.c (create_partial_symtab): Use new.
16283 * dbxread.c (start_psymtab): Use new.
16284 * ctfread.c (create_partial_symtab): Use new.
16285
16286 2020-01-26 Tom Tromey <tom@tromey.com>
16287
16288 * xcoffread.c (xcoff_end_psymtab): Use new.
16289 * psymtab.c (start_psymtab_common): Use new.
16290 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16291 Update.
16292 * psympriv.h (struct partial_symtab): Add parameters to
16293 constructor. Don't inline.
16294 (allocate_psymtab): Don't declare.
16295 * mdebugread.c (new_psymtab): Use new.
16296 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16297 * dbxread.c (dbx_end_psymtab): Use new.
16298
16299 2020-01-26 Tom Tromey <tom@tromey.com>
16300
16301 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16302 allocate_psymtab. Update documentation.
16303 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16304 allocate_psymtab. Do not use new.
16305 (allocate_psymtab): Use new. Update.
16306
16307 2020-01-26 Tom Tromey <tom@tromey.com>
16308
16309 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16310 * psymtab.c (psym_print_stats): Update.
16311 * psympriv.h (struct partial_symtab) <readin,
16312 psymtabs_addrmap_supported, anonymous>: Now bool.
16313 * mdebugread.c (psymtab_to_symtab_1): Update.
16314 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16315 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16316 (process_full_comp_unit, process_full_type_unit): Update.
16317 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16318 * ctfread.c (psymtab_to_symtab): Update.
16319
16320 2020-01-26 Tom Tromey <tom@tromey.com>
16321
16322 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16323 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16324 * psymtab.c (psymtab_storage): Delete psymtabs.
16325 (psymtab_storage::allocate_psymtab): Use new.
16326 (psymtab_storage::discard_psymtab): Use delete.
16327 * psympriv.h (struct partial_symtab): Add constructor and
16328 initializers.
16329
16330 2020-01-26 Tom Tromey <tom@tromey.com>
16331
16332 * machoread.c: Do not include psympriv.h.
16333
16334 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16335
16336 * NEWS: Mention the new option and the set/show commands.
16337
16338 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16339
16340 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16341 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16342 (validate_exec_file): New variables, enums, functions.
16343 (exec_file_locate_attach, print_section_info): Style the filenames.
16344 (_initialize_exec): Install show_exec_file_mismatch_command and
16345 set_exec_file_mismatch_command.
16346 * gdbcore.h (validate_exec_file): Declare.
16347 * infcmd.c (attach_command): Call validate_exec_file.
16348 * remote.c ( remote_target::remote_add_inferior): Likewise.
16349
16350 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16351
16352 * frame.c (find_frame_sal): Move call to get_next_frame into more
16353 inner scope.
16354 * inline-frame.c (inilne_state) <inline_state>: Update argument
16355 types.
16356 (inilne_state) <skipped_symbol>: Rename to...
16357 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16358 (skip_inline_frames): Build vector of skipped symbols and use this
16359 to reate the inline_state.
16360 (inline_skipped_symbol): Add a comment and some assertions, fetch
16361 skipped symbol from the list.
16362
16363 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16364
16365 * buildsym.c (lte_is_less_than): Delete.
16366 (buildsym_compunit::end_symtab_with_blockvector): Create local
16367 lambda function to sort line table entries, and use
16368 std::stable_sort instead of std::sort.
16369 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16370 markers when looking for a previous line.
16371
16372 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16373
16374 * dwarf2read.c (lnp_state_machine::record_line): Include
16375 end_sequence parameter in debug print out. Record the line if we
16376 are at an end_sequence marker even if it's not the start of a
16377 statement.
16378 * symmisc.c (maintenance_print_one_line_table): Print end of
16379 sequence markers with 'END' not '0'.
16380
16381 2020-01-24 Pedro Alves <palves@redhat.com>
16382
16383 PR gdb/25410
16384 * thread.c (scoped_restore_current_thread::restore): Use
16385 switch_to_inferior_no_thread.
16386 * exec.c: Include "progspace-and-thread.h".
16387 (add_target_sections, remove_target_sections):
16388 scoped_restore_current_pspace_and_thread instead of
16389 scoped_restore_current_thread.
16390 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16391 and aspace to the inferior before calling clone_program_space.
16392 Remove stale comment.
16393
16394 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16395
16396 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16397 (arm_netbsd_nat_target::fetch_registers): ...this.
16398 (arm_nbsd_nat_target::store_registers): Rename to...
16399 (arm_netbsd_nat_target::store_registers): ...this.
16400
16401 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16402
16403 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16404 register_t.
16405
16406 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16407
16408 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16409 Update comment.
16410 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16411 Likewise.
16412 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16413 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16414 the correct replacement (iterate_over_regset_sections).
16415 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16416 Update comment.
16417
16418 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16419
16420 PR gdb/23718
16421 * gdb/python/python.c (execute_gdb_command): Call
16422 async_enable_stdin in catch block.
16423
16424 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16425
16426 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16427 SWITCH_THRU_ALL_UIS.
16428
16429 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16430
16431 PR tui/9765
16432 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16433 comment, add extra parameter, and update to store previous symbol
16434 when appropriate.
16435 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16436 add extra parameter.
16437 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16438 remove unneeded parameter, add try/catch around gdb_print_insn,
16439 rewrite to add items to asm_lines vector.
16440 (tui_find_backward_disassembly_start_address): New function.
16441 (tui_find_disassembly_address): Updated throughout.
16442 (tui_disasm_window::set_contents): Update for changes to
16443 tui_disassemble.
16444 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16445 number of lines to scroll.
16446
16447 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16448
16449 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16450 (SECT_OFF_DATA): Likewise.
16451 (SECT_OFF_RODATA): Likewise.
16452 (SECT_OFF_TEXT): Likewise.
16453 (SECT_OFF_BSS): Likewise.
16454 (struct objfile) <text_section_offset, data_section_offset>: New
16455 methods.
16456 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16457 objfile::text_section_offset.
16458 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16459 * coffread.c (coff_symtab_read): Likewise.
16460 (enter_linenos): Likewise.
16461 (process_coff_symbol): Likewise.
16462 * ctfread.c (get_objfile_text_range): Likewise.
16463 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16464 Use objfile::data_section_offset.
16465 * dwarf2-frame.c (execute_cfa_program): Use
16466 objfile::text_section_offset.
16467 (dwarf2_frame_find_fde): Likewise.
16468 * dwarf2read.c (create_addrmap_from_index): Likewise.
16469 (create_addrmap_from_aranges): Likewise.
16470 (dw2_find_pc_sect_compunit_symtab): Likewise.
16471 (process_psymtab_comp_unit_reader): Likewise.
16472 (add_partial_symbol): Likewise.
16473 (add_partial_subprogram): Likewise.
16474 (process_full_comp_unit): Likewise.
16475 (read_file_scope): Likewise.
16476 (read_func_scope): Likewise.
16477 (read_lexical_block_scope): Likewise.
16478 (read_call_site_scope): Likewise.
16479 (dwarf2_rnglists_process): Likewise.
16480 (dwarf2_ranges_process): Likewise.
16481 (dwarf2_ranges_read): Likewise.
16482 (dwarf_decode_lines_1): Likewise.
16483 (new_symbol): Likewise.
16484 (dwarf2_fetch_die_loc_sect_off): Likewise.
16485 (dwarf2_per_cu_text_offset): Likewise.
16486 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16487 * hppa-tdep.c (read_unwind_info): Likewise.
16488 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16489 * psympriv.h (struct partial_symtab): Likewise.
16490 * psymtab.c (find_pc_sect_psymtab): Likewise.
16491 * solib-svr4.c (enable_break): Likewise.
16492 * stap-probe.c (relocate_address): Use
16493 objfile::data_section_offset.
16494 * xcoffread.c (enter_line_range): Use
16495 objfile::text_section_offset.
16496 (read_xcoff_symtab): Likewise.
16497
16498 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16499
16500 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16501 declaration to narrower scopes.
16502
16503 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16504
16505 * darwin-nat.h (struct darwin_exception_msg, enum
16506 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16507 Move up.
16508 (class darwin_nat_target) <wait_1, check_new_threads,
16509 decode_exception_message, decode_message, stop_inferior,
16510 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16511 * darwin-nat.c (darwin_check_new_threads): Rename to...
16512 (darwin_nat_target::check_new_threads): ... this.
16513 (darwin_suspend_inferior_it): Remove.
16514 (darwin_decode_exception_message): Rename to...
16515 (darwin_nat_target::decode_exception_message): ... this.
16516 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16517 (darwin_decode_message): Rename to...
16518 (darwin_nat_target::decode_message): ... this.
16519 (cancel_breakpoint): Rename to...
16520 (darwin_nat_target::cancel_breakpoint): ... this.
16521 (darwin_wait): Rename to...
16522 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16523 instead of iterate_over_inferiors.
16524 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16525 (darwin_stop_inferior): Rename to...
16526 (darwin_nat_target::stop_inferior): ... this.
16527 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16528 (darwin_init_thread_list): Rename to...
16529 (darwin_nat_target::init_thread_list): ... this.
16530 (darwin_ptrace_him): Rename to...
16531 (darwin_nat_target::ptrace_him): ... this.
16532 (darwin_nat_target::create_inferior): Pass lambda function to
16533 fork_inferior.
16534 (darwin_nat_target::detach): Call stop_inferior instead of
16535 darwin_stop_inferior.
16536 * fork-inferior.h (fork_inferior): Change init_trace_fun
16537 parameter to gdb::function_view.
16538 * fork-inferior.c (fork_inferior): Likewise.
16539
16540 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16541
16542 * i386-cygwin-tdep.c (core_process_module_section): Update.
16543 * windows-nat.c (struct lm_info_windows): Add text_offset.
16544 (windows_xfer_shared_libraries): Update.
16545 * windows-tdep.c (windows_xfer_shared_library):
16546 Add text_offset_cached argument.
16547 * windows-tdep.h (windows_xfer_shared_library): Update.
16548
16549 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16550
16551 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16552
16553 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16554
16555 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16556 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16557 replace with range-based for.
16558 (gdbsim_interrupt_inferior): Remove.
16559 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16560 with a range-based for. Inline code from
16561 gdbsim_interrupt_inferior.
16562
16563 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16564
16565 * infrun.c (proceed): Fix indentation.
16566
16567 2020-01-21 Tom Tromey <tromey@adacore.com>
16568
16569 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16570 * python/python.c (python_extension_ops): Update.
16571 (gdbpy_colorize): New function.
16572 * python/lib/gdb/__init__.py (colorize): New function.
16573 * extension.h (ext_lang_colorize): Declare.
16574 * extension.c (ext_lang_colorize): New function.
16575 * extension-priv.h (struct extension_language_ops) <colorize>: New
16576 member.
16577 * cli/cli-style.c (_initialize_cli_style): Update help text.
16578
16579 2020-01-21 Luis Machado <luis.machado@linaro.org>
16580
16581 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16582 <cond>: Change type to bool.
16583 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16584 (aarch64_displaced_step_cb): Likewise.
16585 (aarch64_displaced_step_tb): Likewise.
16586
16587 2020-01-21 Luis Machado <luis.machado@linaro.org>
16588
16589 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16590 output.
16591
16592 2020-01-21 Luis Machado <luis.machado@linaro.org>
16593
16594 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16595 <pc_adjust>: Adjust the documentation.
16596 (aarch64_displaced_step_fixup): Check if PC really moved before
16597 adjusting it.
16598
16599 2020-01-19 Tom Tromey <tom@tromey.com>
16600
16601 * disasm.c (~gdb_disassembler): New destructor.
16602 (gdb_buffered_insn_length): Call disassemble_free_target.
16603 * disasm.h (class gdb_disassembler): Declare destructor. Use
16604 DISABLE_COPY_AND_ASSIGN.
16605
16606 2020-01-19 Tom Tromey <tom@tromey.com>
16607
16608 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16609 (die_reader_func_ftype): Remove.
16610 (cutu_reader): New class.
16611 (dw2_get_file_names_reader): Remove "data" parameter.
16612 (dw2_get_file_names): Use cutu_reader.
16613 (create_debug_type_hash_table): Update.
16614 (read_cutu_die_from_dwo): Update comment.
16615 (lookup_dwo_unit): Add dwo_name parameter.
16616 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16617 die_reader_func_ftype and data parameters.
16618 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16619 Remove die_reader_func_ftype and data parameters.
16620 (~cutu_reader): New; from init_cutu_and_read_dies.
16621 (cutu_reader::cutu_reader): Rename from
16622 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16623 and data parameters.
16624 (init_cutu_and_read_dies_simple): Remove.
16625 (struct process_psymtab_comp_unit_data): Remove.
16626 (process_psymtab_comp_unit_reader): Remove data parameter; add
16627 want_partial_unit and pretend_language parameters.
16628 (process_psymtab_comp_unit): Use cutu_reader.
16629 (build_type_psymtabs_reader): Remove data parameter.
16630 (build_type_psymtabs_1): Use cutu_reader.
16631 (process_skeletonless_type_unit): Likewise.
16632 (load_partial_comp_unit_reader): Remove.
16633 (load_partial_comp_unit): Use cutu_reader.
16634 (load_full_comp_unit_reader): Remove.
16635 (load_full_comp_unit): Use cutu_reader.
16636 (struct create_dwo_cu_data): Remove.
16637 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16638 dwo_unit parameters.
16639 (create_cus_hash_table): Use cutu_reader.
16640 (struct dwarf2_read_addr_index_data): Remove.
16641 (dwarf2_read_addr_index_reader): Remove.
16642 (dwarf2_read_addr_index): Use cutu_reader.
16643 (read_signatured_type_reader): Remove.
16644 (read_signatured_type): Use cutu_reader.
16645
16646 2020-01-19 Tom Tromey <tom@tromey.com>
16647
16648 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16649 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16650 (tui_wrefresh): Declare.
16651 * tui/tui-wingeneral.c (suppress_output): New global.
16652 (tui_suppress_output, ~tui_suppress_output): New constructor and
16653 destructor.
16654 (tui_wrefresh): New function.
16655 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16656 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16657 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16658 method.
16659 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16660 tui_wrefresh.
16661 (tui_data_window::no_refresh): New method.
16662 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16663 (tui_reg_command): Use tui_suppress_output
16664 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16665 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16666 method.
16667 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16668
16669 2020-01-19 Tom Tromey <tom@tromey.com>
16670
16671 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16672 Handle case where symtab is null.
16673
16674 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16675
16676 * linux-fork.c (one_fork_p): Simplify.
16677
16678 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16679
16680 * top.c (struct qt_args): Remove.
16681 (kill_or_detach): Change return type to void, replace `void *`
16682 parameter with a proper one.
16683 (print_inferior_quit_action): Likewise.
16684 (quit_confirm): Use range-based for loop to iterate over inferiors.
16685 (quit_force): Likewise.
16686
16687 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16688
16689 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16690 `void *` parameter with proper parameters.
16691 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16692 (print_one_inferior): Change return type to void, replace `void *`
16693 parameter with proper parameters.
16694 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16695 inferiors.
16696 (get_other_inferior): Remove.
16697 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16698 inferiors.
16699
16700 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16701
16702 * mi/mi-interp.c (report_initial_inferior): Remove.
16703 (mi_interp::init): Use range-based for to iterate over inferiors.
16704
16705 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16706
16707 * python/py-inferior.c (build_inferior_list): Remove.
16708 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16709
16710 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16711
16712 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16713 (btrace_stitch_trace): Likewise.
16714 * charset.c (intermediate_encoding): Likewise (vaild).
16715 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16716 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16717 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16718
16719 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16720
16721 * windows-tdep.c (windows_get_tlb_type):
16722 Add rtl_user_process_parameters type.
16723
16724 2020-01-16 Pedro Alves <palves@redhat.com>
16725 Norbert Lange <nolange79@gmail.com>
16726
16727 PR build/24805
16728 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16729 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16730 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16731 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16732 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16733 (ps_plog): Redeclare exported functions with default visibility.
16734
16735 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16736
16737 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16738 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16739
16740 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16741
16742 * infcmd.c (post_create_inferior): Use get_thread_regcache
16743 instead of get_current_regcache.
16744
16745 2020-01-14 Tom Tromey <tom@tromey.com>
16746
16747 PR symtab/12535:
16748 * python/python.c (gdbpy_decode_line): Treat empty string the same
16749 as no argument.
16750
16751 2020-01-14 Tom Tromey <tom@tromey.com>
16752
16753 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16754
16755 2020-01-14 Tom Tromey <tom@tromey.com>
16756
16757 * nat/linux-btrace.c: Don't include <config.h>.
16758 * nat/linux-ptrace.c: Don't include <config.h>.
16759 * nat/x86-linux-dregs.c: Don't include <config.h>.
16760
16761 2020-01-14 Tom Tromey <tom@tromey.com>
16762
16763 * configure: Rebuild.
16764 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16765
16766 2020-01-14 Tom Tromey <tom@tromey.com>
16767
16768 * nat/x86-linux-dregs.c: Include configh.h.
16769 * nat/linux-ptrace.c: Include configh.h.
16770 * nat/linux-btrace.c: Include configh.h.
16771 * defs.h: Include config.h, bfd.h.
16772 * configure.ac: Don't source common.host.
16773 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16774 * configure: Rebuild.
16775 * acinclude.m4: Update path.
16776 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16777 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16778 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16779 (CLIBS): Add LIBSUPPORT.
16780 (CDEPS): Likewise.
16781 (COMMON_SFILES): Remove gdbsupport files.
16782 (HFILES_NO_SRCDIR): Likewise.
16783 (stamp-version): Update path to create-version.sh.
16784 (ALLDEPFILES): Remove gdbsupport files.
16785
16786 2020-01-14 Tom Tromey <tom@tromey.com>
16787
16788 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16789 USE_WIN32API when needed.
16790 * configure.ac (USE_WIN32API): Don't define.
16791 (WIN32LIBS): Use WIN32APILIBS.
16792 * configure: Rebuild.
16793
16794 2020-01-14 Tom Tromey <tom@tromey.com>
16795
16796 * configure: Rebuild.
16797 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16798
16799 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16800
16801 * skip.c (skip_function_command): Make skip w/o arguments use the
16802 name of the inlined function if pc is inside any inlined function.
16803
16804 2020-01-14 Luis Machado <luis.machado@linaro.org>
16805
16806 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16807 * infrun.c (resume_1): Likewise.
16808 (handle_inferior_event): Remove stale comment.
16809 * linux-nat.c (linux_nat_target::resume): Update comments.
16810 (save_stop_reason): Likewise.
16811 (linux_nat_filter_event): Likewise.
16812 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16813
16814 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16815
16816 * elfread.c (record_minimal_symbol): Set section index to 0 for
16817 non-allocatable sections.
16818
16819
16820 2020-01-13 Ali Tamur <tamur@google.com>
16821
16822 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16823 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16824 to gdb::optional. Update comments.
16825 (dwo_file): Update comments.
16826 (read_attribute): Update API to take an additional out parameter,
16827 need_reprocess. This is used to mark attributes that need other
16828 attributes (e.g. str_offsets_base) for correct computation which may not
16829 have been read yet.
16830 (read_attribute_reprocess): New function declaration.
16831 (read_addr_index): Likewise.
16832 (read_dwo_str_index): Likewise.
16833 (read_stub_str_index): Likewise.
16834 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16835 (lookup_addr_base): New function definition.
16836 (lookup_ranges_base): Likewise.
16837 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16838 lookup_ranges_base.
16839 (init_cutu_and_read_dies): Update comments.
16840 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16841 unit. This is used to inherit parent's str_offsets_base and addr_base.
16842 Update comments.
16843 (init_cutu_and_read_dies_simple): Reflect API changes.
16844 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16845 (create_cus_hash_table): Change API to take parent compile unit.
16846 Reflect API changes.
16847 (open_and_init_dwo_file): Reflect API changes.
16848 (dwarf2_get_pc_bounds): Update comments.
16849 (dwarf2_record_block_ranges): Likewise.
16850 (read_full_die_1): Change implementation to reprocess attributes that
16851 need str_offsets_base and addr_base.
16852 (partial_die_info::read): Likewise.
16853 (read_attribute_reprocess): New function definition.
16854 (read_attribute_value): Change API to take an additional out parameter,
16855 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16856 when a non-dwo compile unit has index based attributes.
16857 (read_attribute): Reflect API changes.
16858 (read_addr_index_1): Reflect API changes. Update comments.
16859 (dwarf2_read_addr_index_data): Reflect API changes.
16860 (dwarf2_read_addr_index): Likewise.
16861 (read_str_index): Change API and implementation. This becomes a helper
16862 to be used by the new string index related methods. Update error
16863 message and comments.
16864 (read_dwo_str_index): New function definition.
16865 (read_stub_str_index): Likewise.
16866 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16867 * symfile.h (dwarf2_debug_sections): Likewise.
16868 * xcoffread.c (dwarf2_debug_sections): Likewise.
16869
16870 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16871
16872 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16873 core_reg_sect type to gdb_byte *.
16874 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16875 * cris-tdep.c (fetch_core_registers): Likewise.
16876 * corelow.c (core_target::get_core_register_section): Change
16877 type of `contents` to gdb::byte_vector.
16878
16879 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16880
16881 * tui/tui-wingeneral.c (box_win): Position the title in the center
16882 of the border.
16883
16884 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16885
16886 * corelow.c (core_target::get_core_register_section): Use
16887 std::vector instead of alloca.
16888
16889 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16890
16891 * warning.m4: Add -Wmissing-declarations to build_warnings.
16892 * configure: Re-generate.
16893
16894 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16895
16896 * python/python.c (init__gdb_module): Add declaration.
16897
16898 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16899
16900 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16901 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16902 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16903 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16904 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16905 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16906 * ada-exp.y (_initialize_ada_exp): Add declaration.
16907 * ada-lang.c (_initialize_ada_language): Add declaration.
16908 * ada-tasks.c (_initialize_tasks): Add declaration.
16909 * agent.c (_initialize_agent): Add declaration.
16910 * aix-thread.c (_initialize_aix_thread): Add declaration.
16911 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16912 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16913 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16914 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16915 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16916 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16917 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16918 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16919 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16920 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16921 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16922 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16923 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16924 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16925 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16926 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16927 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16928 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16929 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16930 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16931 * annotate.c (_initialize_annotate): Add declaration.
16932 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16933 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16934 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16935 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16936 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16937 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16938 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16939 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16940 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16941 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16942 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16943 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16944 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16945 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16946 * auto-load.c (_initialize_auto_load): Add declaration.
16947 * auxv.c (_initialize_auxv): Add declaration.
16948 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16949 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16950 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16951 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16952 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16953 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16954 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16955 * breakpoint.c (_initialize_breakpoint): Add declaration.
16956 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16957 * btrace.c (_initialize_btrace): Add declaration.
16958 * charset.c (_initialize_charset): Add declaration.
16959 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16960 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16961 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16962 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16963 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16964 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16965 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16966 * coffread.c (_initialize_coffread): Add declaration.
16967 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16968 * compile/compile.c (_initialize_compile): Add declaration.
16969 * complaints.c (_initialize_complaints): Add declaration.
16970 * completer.c (_initialize_completer): Add declaration.
16971 * copying.c (_initialize_copying): Add declaration.
16972 * corefile.c (_initialize_core): Add declaration.
16973 * corelow.c (_initialize_corelow): Add declaration.
16974 * cp-abi.c (_initialize_cp_abi): Add declaration.
16975 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16976 * cp-support.c (_initialize_cp_support): Add declaration.
16977 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16978 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16979 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16980 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16981 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16982 * ctfread.c (_initialize_ctfread): Add declaration.
16983 * d-lang.c (_initialize_d_language): Add declaration.
16984 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16985 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16986 * dbxread.c (_initialize_dbxread): Add declaration.
16987 * dcache.c (_initialize_dcache): Add declaration.
16988 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16989 * disasm.c (_initialize_disasm): Add declaration.
16990 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16991 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16992 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16993 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16994 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16995 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16996 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16997 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16998 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16999 * elfread.c (_initialize_elfread): Add declaration.
17000 * exec.c (_initialize_exec): Add declaration.
17001 * extension.c (_initialize_extension): Add declaration.
17002 * f-lang.c (_initialize_f_language): Add declaration.
17003 * f-valprint.c (_initialize_f_valprint): Add declaration.
17004 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17005 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17006 * filesystem.c (_initialize_filesystem): Add declaration.
17007 * findcmd.c (_initialize_mem_search): Add declaration.
17008 * findvar.c (_initialize_findvar): Add declaration.
17009 * fork-child.c (_initialize_fork_child): Add declaration.
17010 * frame-base.c (_initialize_frame_base): Add declaration.
17011 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17012 * frame.c (_initialize_frame): Add declaration.
17013 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17014 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17015 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17016 * gcore.c (_initialize_gcore): Add declaration.
17017 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17018 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17019 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17020 * gdbarch.c (_initialize_gdbarch): Add declaration.
17021 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17022 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17023 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17024 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17025 * go-lang.c (_initialize_go_language): Add declaration.
17026 * go32-nat.c (_initialize_go32_nat): Add declaration.
17027 * guile/guile.c (_initialize_guile): Add declaration.
17028 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17029 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17030 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17031 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17032 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17033 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17034 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17035 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17036 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17037 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17038 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17039 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17040 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17041 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17042 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17043 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17044 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17045 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17046 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17047 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17048 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17049 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17050 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17051 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17052 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17053 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17054 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17055 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17056 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17057 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17058 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17059 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17060 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17061 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17062 * infcall.c (_initialize_infcall): Add declaration.
17063 * infcmd.c (_initialize_infcmd): Add declaration.
17064 * inflow.c (_initialize_inflow): Add declaration.
17065 * infrun.c (_initialize_infrun): Add declaration.
17066 * interps.c (_initialize_interpreter): Add declaration.
17067 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17068 * jit.c (_initialize_jit): Add declaration.
17069 * language.c (_initialize_language): Add declaration.
17070 * linux-fork.c (_initialize_linux_fork): Add declaration.
17071 * linux-nat.c (_initialize_linux_nat): Add declaration.
17072 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17073 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17074 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17075 * m2-lang.c (_initialize_m2_language): Add declaration.
17076 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17077 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17078 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17079 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17080 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17081 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17082 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17083 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17084 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17085 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17086 * machoread.c (_initialize_machoread): Add declaration.
17087 * macrocmd.c (_initialize_macrocmd): Add declaration.
17088 * macroscope.c (_initialize_macroscope): Add declaration.
17089 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17090 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17091 * maint.c (_initialize_maint_cmds): Add declaration.
17092 * mdebugread.c (_initialize_mdebugread): Add declaration.
17093 * memattr.c (_initialize_mem): Add declaration.
17094 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17095 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17096 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17097 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17098 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17099 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17100 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17101 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17102 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17103 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17104 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17105 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17106 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17107 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17108 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17109 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17110 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17111 * mipsread.c (_initialize_mipsread): Add declaration.
17112 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17113 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17114 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17115 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17116 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17117 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17118 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17119 * nto-procfs.c (_initialize_procfs): Add declaration.
17120 * objc-lang.c (_initialize_objc_language): Add declaration.
17121 * observable.c (_initialize_observer): Add declaration.
17122 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17123 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17124 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17125 * osabi.c (_initialize_gdb_osabi): Add declaration.
17126 * osdata.c (_initialize_osdata): Add declaration.
17127 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17128 * parse.c (_initialize_parse): Add declaration.
17129 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17130 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17131 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17132 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17133 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17134 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17135 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17136 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17137 * printcmd.c (_initialize_printcmd): Add declaration.
17138 * probe.c (_initialize_probe): Add declaration.
17139 * proc-api.c (_initialize_proc_api): Add declaration.
17140 * proc-events.c (_initialize_proc_events): Add declaration.
17141 * proc-service.c (_initialize_proc_service): Add declaration.
17142 * procfs.c (_initialize_procfs): Add declaration.
17143 * producer.c (_initialize_producer): Add declaration.
17144 * psymtab.c (_initialize_psymtab): Add declaration.
17145 * python/python.c (_initialize_python): Add declaration.
17146 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17147 * record-btrace.c (_initialize_record_btrace): Add declaration.
17148 * record-full.c (_initialize_record_full): Add declaration.
17149 * record.c (_initialize_record): Add declaration.
17150 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17151 * regcache.c (_initialize_regcache): Add declaration.
17152 * reggroups.c (_initialize_reggroup): Add declaration.
17153 * remote-notif.c (_initialize_notif): Add declaration.
17154 * remote-sim.c (_initialize_remote_sim): Add declaration.
17155 * remote.c (_initialize_remote): Add declaration.
17156 * reverse.c (_initialize_reverse): Add declaration.
17157 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17158 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17159 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17160 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17161 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17162 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17163 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17164 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17165 Add declaration.
17166 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17167 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17168 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17169 * rust-exp.y (_initialize_rust_exp): Add declaration.
17170 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17171 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17172 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17173 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17174 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17175 * score-tdep.c (_initialize_score_tdep): Add declaration.
17176 * ser-go32.c (_initialize_ser_dos): Add declaration.
17177 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17178 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17179 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17180 * ser-uds.c (_initialize_ser_socket): Add declaration.
17181 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17182 * serial.c (_initialize_serial): Add declaration.
17183 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17184 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17185 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17186 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17187 * skip.c (_initialize_step_skip): Add declaration.
17188 * sol-thread.c (_initialize_sol_thread): Add declaration.
17189 * solib-aix.c (_initialize_solib_aix): Add declaration.
17190 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17191 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17192 * solib-frv.c (_initialize_frv_solib): Add declaration.
17193 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17194 * solib-target.c (_initialize_solib_target): Add declaration.
17195 * solib.c (_initialize_solib): Add declaration.
17196 * source-cache.c (_initialize_source_cache): Add declaration.
17197 * source.c (_initialize_source): Add declaration.
17198 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17199 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17200 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17201 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17202 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17203 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17204 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17205 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17206 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17207 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17208 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17209 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17210 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17211 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17212 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17213 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17214 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17215 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17216 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17217 * stabsread.c (_initialize_stabsread): Add declaration.
17218 * stack.c (_initialize_stack): Add declaration.
17219 * stap-probe.c (_initialize_stap_probe): Add declaration.
17220 * std-regs.c (_initialize_frame_reg): Add declaration.
17221 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17222 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17223 * symfile.c (_initialize_symfile): Add declaration.
17224 * symmisc.c (_initialize_symmisc): Add declaration.
17225 * symtab.c (_initialize_symtab): Add declaration.
17226 * target.c (_initialize_target): Add declaration.
17227 * target-connection.c (_initialize_target_connection): Add
17228 declaration.
17229 * target-dcache.c (_initialize_target_dcache): Add declaration.
17230 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17231 * thread.c (_initialize_thread): Add declaration.
17232 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17233 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17234 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17235 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17236 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17237 * tracectf.c (_initialize_ctf): Add declaration.
17238 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17239 * tracefile.c (_initialize_tracefile): Add declaration.
17240 * tracepoint.c (_initialize_tracepoint): Add declaration.
17241 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17242 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17243 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17244 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17245 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17246 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17247 * tui/tui.c (_initialize_tui): Add declaration.
17248 * typeprint.c (_initialize_typeprint): Add declaration.
17249 * ui-style.c (_initialize_ui_style): Add declaration.
17250 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17251 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17252 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17253 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17254 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17255 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17256 * unittests/filtered_iterator-selftests.c
17257 (_initialize_filtered_iterator_selftests): Add declaration.
17258 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17259 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17260 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17261 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17262 * unittests/main-thread-selftests.c
17263 (_initialize_main_thread_selftests): Add declaration.
17264 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17265 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17266 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17267 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17268 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17269 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17270 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17271 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17272 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17273 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17274 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17275 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17276 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17277 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17278 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17279 declaration.
17280 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17281 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17282 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17283 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17284 * user-regs.c (_initialize_user_regs): Add declaration.
17285 * utils.c (_initialize_utils): Add declaration.
17286 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17287 * valops.c (_initialize_valops): Add declaration.
17288 * valprint.c (_initialize_valprint): Add declaration.
17289 * value.c (_initialize_values): Add declaration.
17290 * varobj.c (_initialize_varobj): Add declaration.
17291 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17292 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17293 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17294 * windows-nat.c (_initialize_windows_nat): Add declaration.
17295 (_initialize_check_for_gdb_ini): Add declaration.
17296 (_initialize_loadable): Add declaration.
17297 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17298 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17299 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17300 * xcoffread.c (_initialize_xcoffread): Add declaration.
17301 * xml-support.c (_initialize_xml_support): Add declaration.
17302 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17303 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17304 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17305 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17306
17307 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17308
17309 * regformats/regdat.sh: Generate declaration for init function.
17310
17311 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17312
17313 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17314 up.
17315 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17316 close_one_inferior>: New methods.
17317 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17318 pass down target to find_inferior_pid.
17319 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17320 Pass down target to find_inferior_ptid.
17321 (gdbsim_target::create_inferior): Pass down target to
17322 add_thread_silent.
17323 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17324 target down to find_inferior_ptid and switch_to_thread.
17325 (gdbsim_target::close): Update to call close_one_inferior.
17326 (struct resume_data): Remove.
17327 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17328 directly, rather than through a void pointer.
17329 (gdbsim_target::resume): Update to call resume_one_inferior.
17330
17331 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17332
17333 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17334
17335 2020-01-12 Pedro Alves <palves@redhat.com>
17336
17337 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17338 directly for the current inferior instead of
17339 discard_all_inferiors.
17340 (discard_all_inferiors): Delete.
17341
17342 2020-01-11 Tom Tromey <tom@tromey.com>
17343
17344 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17345 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17346 deprecated_safe_get_selected_frame.
17347
17348 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17349
17350 * inferior.c (print_inferior): Switch inferior before printing it.
17351
17352 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17353 Pedro Alves <palves@redhat.com>
17354
17355 * progspace-and-thread.c (switch_to_program_space_and_thread):
17356 Assert there's an inferior for PSPACE. Use
17357 switch_to_inferior_no_thread to switch the inferior too.
17358 * progspace.c (program_space::~program_space): Call
17359 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17360 (program_space::free_all_objfiles): Don't call clear_symtab_users
17361 here.
17362 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17363
17364 2020-01-10 Pedro Alves <palves@redhat.com>
17365
17366 * NEWS: Mention multi-target debugging, "info connections", and
17367 "add-inferior -no-connection".
17368
17369 2020-01-10 Pedro Alves <palves@redhat.com>
17370
17371 * infrun.c: Include "target-connection.h".
17372 (check_multi_target_resumption): New.
17373 (proceed): Call it.
17374 * target-connection.c (make_target_connection_string): Make
17375 extern.
17376 * target-connection.h (make_target_connection_string): Declare.
17377
17378 2020-01-10 Pedro Alves <palves@redhat.com>
17379
17380 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17381 * inferior.c (uiout_field_connection): New function.
17382 (print_inferior): Add new "connection-id" column.
17383 (add_inferior_command): Show connection number/string of added
17384 inferior.
17385 * process-stratum-target.h
17386 (process_stratum_target::connection_string): New virtual method.
17387 (process_stratum_target::connection_number): New field.
17388 * remote.c (remote_target::connection_string): New override.
17389 * target-connection.c: New file.
17390 * target-connection.h: New file.
17391 * target.c (decref_target): Remove process_stratum targets from
17392 the connection list.
17393 (target_stack::push): Add process_stratum targets to the
17394 connection list.
17395
17396 2020-01-10 Pedro Alves <palves@redhat.com>
17397
17398 Revert:
17399 2016-04-12 Pedro Alves <palves@redhat.com>
17400 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17401 Remove references to name.
17402 * serial.h (struct serial) <name>: Delete.
17403
17404 2020-01-10 Pedro Alves <palves@redhat.com>
17405
17406 * gdbarch-selftests.c (register_to_value_test): Remove "target
17407 already pushed" check.
17408
17409 2020-01-10 Pedro Alves <palves@redhat.com>
17410 John Baldwin <jhb@FreeBSD.org>
17411
17412 * aarch64-linux-nat.c
17413 (aarch64_linux_nat_target::thread_architecture): Adjust.
17414 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17415 (task_command_1): Likewise.
17416 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17417 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17418 (aix_thread_target::store_registers)
17419 (aix_thread_target::thread_alive): Adjust.
17420 * amd64-fbsd-tdep.c: Include "inferior.h".
17421 (amd64fbsd_get_thread_local_address): Pass down target.
17422 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17423 thread's gdbarch instead of target_gdbarch.
17424 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17425 get_last_target_status.
17426 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17427 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17428 inferiors.
17429 (update_inserted_breakpoint_locations): Skip if inferiors with no
17430 execution.
17431 (update_global_location_list): When handling moribund locations,
17432 find representative inferior for location's pspace, and use thread
17433 count of its process_stratum target.
17434 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17435 * bsd-uthread.c (bsd_uthread_target::wait): Use
17436 as_process_stratum_target and adjust thread_change_ptid and
17437 add_thread calls.
17438 (bsd_uthread_target::update_thread_list): Use
17439 as_process_stratum_target and adjust find_thread_ptid,
17440 thread_change_ptid and add_thread calls.
17441 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17442 find_thread_ptid call.
17443 * corelow.c (add_to_thread_list): Adjust add_thread call.
17444 (core_target_open): Adjust add_thread_silent and thread_count
17445 calls.
17446 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17447 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17448 * event-top.c (async_disconnect): Pop targets from all inferiors.
17449 * exec.c (add_target_sections): Push exec target on all inferiors
17450 sharing the program space.
17451 (remove_target_sections): Remove the exec target from all
17452 inferiors sharing the program space.
17453 (exec_on_vfork): New.
17454 * exec.h (exec_on_vfork): Declare.
17455 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17456 Pass it down.
17457 (fbsd_nat_target::update_thread_list): Adjust.
17458 (fbsd_nat_target::resume): Adjust.
17459 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17460 down.
17461 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17462 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17463 get_thread_arch_regcache call.
17464 * fork-child.c (gdb_startup_inferior): Pass target down to
17465 startup_inferior and set_executing.
17466 * gdbthread.h (struct process_stratum_target): Forward declare.
17467 (add_thread, add_thread_silent, add_thread_with_info)
17468 (in_thread_list): Add process_stratum_target parameter.
17469 (find_thread_ptid(inferior*, ptid_t)): New overload.
17470 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17471 parameter.
17472 (all_threads()): Delete overload.
17473 (all_threads, all_non_exited_threads): Add process_stratum_target
17474 parameter.
17475 (all_threads_safe): Use brace initialization.
17476 (thread_count): Add process_stratum_target parameter.
17477 (set_resumed, set_running, set_stop_requested, set_executing)
17478 (threads_are_executing, finish_thread_state): Add
17479 process_stratum_target parameter.
17480 (switch_to_thread): Use is_current_thread.
17481 * i386-fbsd-tdep.c: Include "inferior.h".
17482 (i386fbsd_get_thread_local_address): Pass down target.
17483 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17484 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17485 have_inferiors check.
17486 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17487 (inf_ptrace_target::attach): Adjust.
17488 * infcall.c (run_inferior_call): Adjust.
17489 * infcmd.c (run_command_1): Pass target to
17490 scoped_finish_thread_state.
17491 (proceed_thread_callback): Skip inferiors with no execution.
17492 (continue_command): Rename 'all_threads' local to avoid hiding
17493 'all_threads' function. Adjust get_last_target_status call.
17494 (prepare_one_step): Adjust set_running call.
17495 (signal_command): Use user_visible_resume_target. Compare thread
17496 pointers instead of inferior_ptid.
17497 (info_program_command): Adjust to pass down target.
17498 (attach_command): Mark target's 'thread_executing' flag.
17499 (stop_current_target_threads_ns): New, factored out from ...
17500 (interrupt_target_1): ... this. Switch inferior before making
17501 target calls.
17502 * inferior-iter.h
17503 (struct all_inferiors_iterator, struct all_inferiors_range)
17504 (struct all_inferiors_safe_range)
17505 (struct all_non_exited_inferiors_range): Filter on
17506 process_stratum_target too. Remove explicit.
17507 * inferior.c (inferior::inferior): Push dummy target on target
17508 stack.
17509 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17510 Add process_stratum_target parameter, and pass it down.
17511 (have_live_inferiors): Adjust.
17512 (switch_to_inferior_and_push_target): New.
17513 (add_inferior_command, clone_inferior_command): Handle
17514 "-no-connection" parameter. Use
17515 switch_to_inferior_and_push_target.
17516 (_initialize_inferior): Mention "-no-connection" option in
17517 the help of "add-inferior" and "clone-inferior" commands.
17518 * inferior.h: Include "process-stratum-target.h".
17519 (interrupt_target_1): Use bool.
17520 (struct inferior) <push_target, unpush_target, target_is_pushed,
17521 find_target_beneath, top_target, process_target, target_at,
17522 m_stack>: New.
17523 (discard_all_inferiors): Delete.
17524 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17525 (all_inferiors, all_non_exited_inferiors): Add
17526 process_stratum_target parameter.
17527 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17528 (target_last_proc_target): New global.
17529 (follow_fork_inferior): Push target on new inferior. Pass target
17530 to add_thread_silent. Call exec_on_vfork. Handle target's
17531 reference count.
17532 (follow_fork): Adjust get_last_target_status call. Also consider
17533 target.
17534 (follow_exec): Push target on new inferior.
17535 (struct execution_control_state) <target>: New field.
17536 (user_visible_resume_target): New.
17537 (do_target_resume): Call target_async.
17538 (resume_1): Set target's threads_executing flag. Consider resume
17539 target.
17540 (commit_resume_all_targets): New.
17541 (proceed): Also consider resume target. Skip threads of inferiors
17542 with no execution. Commit resumtion in all targets.
17543 (start_remote): Pass current inferior to wait_for_inferior.
17544 (infrun_thread_stop_requested): Consider target as well. Pass
17545 thread_info pointer to clear_inline_frame_state instead of ptid.
17546 (infrun_thread_thread_exit): Consider target as well.
17547 (random_pending_event_thread): New inferior parameter. Use it.
17548 (do_target_wait): Rename to ...
17549 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17550 down.
17551 (threads_are_resumed_pending_p, do_target_wait): New.
17552 (prepare_for_detach): Adjust calls.
17553 (wait_for_inferior): New inferior parameter. Handle it. Use
17554 do_target_wait_1 instead of do_target_wait.
17555 (fetch_inferior_event): Adjust. Switch to representative
17556 inferior. Pass target down.
17557 (set_last_target_status): Add process_stratum_target parameter.
17558 Save target in global.
17559 (get_last_target_status): Add process_stratum_target parameter and
17560 handle it.
17561 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17562 (context_switch): Check inferior_ptid == null_ptid before calling
17563 inferior_thread().
17564 (get_inferior_stop_soon): Pass down target.
17565 (wait_one): Rename to ...
17566 (poll_one_curr_target): ... this.
17567 (struct wait_one_event): New.
17568 (wait_one): New.
17569 (stop_all_threads): Adjust.
17570 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17571 event's target.
17572 (switch_back_to_stepped_thread): Also consider target.
17573 (print_stop_event): Update.
17574 (normal_stop): Update. Also consider the resume target.
17575 * infrun.h (wait_for_inferior): Remove declaration.
17576 (user_visible_resume_target): New declaration.
17577 (get_last_target_status, set_last_target_status): New
17578 process_stratum_target parameter.
17579 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17580 process_stratum_target parameter, and use it.
17581 (clear_inline_frame_state (thread_info*)): New.
17582 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17583 process_stratum_target parameter.
17584 (clear_inline_frame_state (thread_info*)): Declare.
17585 * linux-fork.c (delete_checkpoint_command): Pass target down to
17586 find_thread_ptid.
17587 (checkpoint_command): Adjust.
17588 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17589 instead of just tweaking inferior_ptid.
17590 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17591 (exit_lwp): Pass target down to find_thread_ptid.
17592 (attach_proc_task_lwp_callback): Pass target down to
17593 add_thread/set_running/set_executing.
17594 (linux_nat_target::attach): Pass target down to
17595 thread_change_ptid.
17596 (get_detach_signal): Pass target down to find_thread_ptid.
17597 Consider last target status's target.
17598 (linux_resume_one_lwp_throw, resume_lwp)
17599 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17600 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17601 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17602 (linux_nat_target::async_wait_fd): New.
17603 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17604 target down.
17605 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17606 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17607 * linux-thread-db.c (struct thread_db_info::process_target): New
17608 field.
17609 (add_thread_db_info): Save target.
17610 (get_thread_db_info): New process_stratum_target parameter. Also
17611 match target.
17612 (delete_thread_db_info): New process_stratum_target parameter.
17613 Also match target.
17614 (thread_from_lwp): Adjust to pass down target.
17615 (thread_db_notice_clone): Pass down target.
17616 (check_thread_db_callback): Pass down target.
17617 (try_thread_db_load_1): Always push the thread_db target.
17618 (try_thread_db_load, record_thread): Pass target down.
17619 (thread_db_target::detach): Pass target down. Always unpush the
17620 thread_db target.
17621 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17622 target down. Always unpush the thread_db target.
17623 (find_new_threads_callback, thread_db_find_new_threads_2)
17624 (thread_db_target::update_thread_list): Pass target down.
17625 (thread_db_target::pid_to_str): Pass current inferior down.
17626 (thread_db_target::get_thread_local_address): Pass target down.
17627 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17628 target down.
17629 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17630 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17631 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17632 (procfs_init_inferior): Rename to ...
17633 (procfs_target::procfs_init_inferior): ... this and adjust.
17634 (procfs_target::create_inferior, procfs_notice_thread)
17635 (procfs_do_thread_registers): Adjust.
17636 * ppc-fbsd-tdep.c: Include "inferior.h".
17637 (ppcfbsd_get_thread_local_address): Pass down target.
17638 * proc-service.c (ps_xfer_memory): Switch current inferior and
17639 program space as well.
17640 (get_ps_regcache): Pass target down.
17641 * process-stratum-target.c
17642 (process_stratum_target::thread_address_space)
17643 (process_stratum_target::thread_architecture): Pass target down.
17644 * process-stratum-target.h
17645 (process_stratum_target::threads_executing): New field.
17646 (as_process_stratum_target): New.
17647 * ravenscar-thread.c
17648 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17649 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17650 down.
17651 * record-btrace.c (record_btrace_target::info_record): Adjust.
17652 (record_btrace_target::record_method)
17653 (record_btrace_target::record_is_replaying)
17654 (record_btrace_target::fetch_registers)
17655 (get_thread_current_frame_id, record_btrace_target::resume)
17656 (record_btrace_target::wait, record_btrace_target::stop): Pass
17657 target down.
17658 * record-full.c (record_full_wait_1): Switch to event thread.
17659 Pass target down.
17660 * regcache.c (regcache::regcache)
17661 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17662 process_stratum_target parameter and handle it.
17663 (current_thread_target): New global.
17664 (get_thread_regcache): Add process_stratum_target parameter and
17665 handle it. Switch inferior before calling target method.
17666 (get_thread_regcache): Pass target down.
17667 (get_thread_regcache_for_ptid): Pass target down.
17668 (registers_changed_ptid): Add process_stratum_target parameter and
17669 handle it.
17670 (registers_changed_thread, registers_changed): Pass target down.
17671 (test_get_thread_arch_aspace_regcache): New.
17672 (current_regcache_test): Define a couple local test_target_ops
17673 instances and use them for testing.
17674 (readwrite_regcache): Pass process_stratum_target parameter.
17675 (cooked_read_test, cooked_write_test): Pass mock_target down.
17676 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17677 (get_thread_arch_aspace_regcache): Add process_stratum_target
17678 parameter.
17679 (regcache::target): New method.
17680 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17681 (regcache::registers_changed_ptid): Add process_stratum_target
17682 parameter.
17683 (regcache::m_target): New field.
17684 (registers_changed_ptid): Add process_stratum_target parameter.
17685 * remote.c (remote_state::supports_vCont_probed): New field.
17686 (remote_target::async_wait_fd): New method.
17687 (remote_unpush_and_throw): Add remote_target parameter.
17688 (get_current_remote_target): Adjust.
17689 (remote_target::remote_add_inferior): Push target.
17690 (remote_target::remote_add_thread)
17691 (remote_target::remote_notice_new_inferior)
17692 (get_remote_thread_info): Pass target down.
17693 (remote_target::update_thread_list): Skip threads of inferiors
17694 bound to other targets. (remote_target::close): Don't discard
17695 inferiors. (remote_target::add_current_inferior_and_thread)
17696 (remote_target::process_initial_stop_replies)
17697 (remote_target::start_remote)
17698 (remote_target::remote_serial_quit_handler): Pass down target.
17699 (remote_target::remote_unpush_target): New remote_target
17700 parameter. Unpush the target from all inferiors.
17701 (remote_target::remote_unpush_and_throw): New remote_target
17702 parameter. Pass it down.
17703 (remote_target::open_1): Check whether the current inferior has
17704 execution instead of checking whether any inferior is live. Pass
17705 target down.
17706 (remote_target::remote_detach_1): Pass down target. Use
17707 remote_unpush_target.
17708 (extended_remote_target::attach): Pass down target.
17709 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17710 (remote_target::append_resumption): Pass down target.
17711 (remote_target::append_pending_thread_resumptions)
17712 (remote_target::remote_resume_with_hc, remote_target::resume)
17713 (remote_target::commit_resume): Pass down target.
17714 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17715 (remote_target::interrupt_query)
17716 (remote_target::remove_new_fork_children)
17717 (remote_target::check_pending_events_prevent_wildcard_vcont)
17718 (remote_target::remote_parse_stop_reply)
17719 (remote_target::process_stop_reply): Pass down target.
17720 (first_remote_resumed_thread): New remote_target parameter. Pass
17721 it down.
17722 (remote_target::wait_as): Pass down target.
17723 (unpush_and_perror): New remote_target parameter. Pass it down.
17724 (remote_target::readchar, remote_target::remote_serial_write)
17725 (remote_target::getpkt_or_notif_sane_1)
17726 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17727 down target.
17728 (remote_target::mourn_inferior): Pass down target. Use
17729 remote_unpush_target.
17730 (remote_target::core_of_thread)
17731 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17732 (remote_target::pid_to_exec_file)
17733 (remote_target::thread_handle_to_thread_info): Pass down target.
17734 (remote_target::async_wait_fd): New.
17735 * riscv-fbsd-tdep.c: Include "inferior.h".
17736 (riscv_fbsd_get_thread_local_address): Pass down target.
17737 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17738 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17739 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17740 Adjust.
17741 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17742 * solib-svr4.c (enable_break): Pass down target.
17743 * spu-multiarch.c (parse_spufs_run): Pass down target.
17744 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17745 * target-delegates.c: Regenerate.
17746 * target.c (g_target_stack): Delete.
17747 (current_top_target): Return the current inferior's top target.
17748 (target_has_execution_1): Refer to the passed-in inferior's top
17749 target.
17750 (target_supports_terminal_ours): Check whether the initial
17751 inferior was already created.
17752 (decref_target): New.
17753 (target_stack::push): Incref/decref the target.
17754 (push_target, push_target, unpush_target): Adjust.
17755 (target_stack::unpush): Defref target.
17756 (target_is_pushed): Return bool. Adjust to refer to the current
17757 inferior's target stack.
17758 (dispose_inferior): Delete, and inline parts ...
17759 (target_preopen): ... here. Only dispose of the current inferior.
17760 (target_detach): Hold strong target reference while detaching.
17761 Pass target down.
17762 (target_thread_name): Add assertion.
17763 (target_resume): Pass down target.
17764 (target_ops::beneath, find_target_at): Adjust to refer to the
17765 current inferior's target stack.
17766 (get_dummy_target): New.
17767 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17768 has a thread running.
17769 (initialize_targets): Rename to ...
17770 (_initialize_target): ... this.
17771 * target.h: Include "gdbsupport/refcounted-object.h".
17772 (struct target_ops): Inherit refcounted_object.
17773 (target_ops::shortname, target_ops::longname): Make const.
17774 (target_ops::async_wait_fd): New method.
17775 (decref_target): Declare.
17776 (struct target_ops_ref_policy): New.
17777 (target_ops_ref): New typedef.
17778 (get_dummy_target): Declare function.
17779 (target_is_pushed): Return bool.
17780 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17781 (all_matching_threads_iterator::all_matching_threads_iterator):
17782 Handle filter target.
17783 * thread-iter.h (struct all_matching_threads_iterator, struct
17784 all_matching_threads_range, class all_non_exited_threads_range):
17785 Filter by target too. Remove explicit.
17786 * thread.c (threads_executing): Delete.
17787 (inferior_thread): Pass down current inferior.
17788 (clear_thread_inferior_resources): Pass down thread pointer
17789 instead of ptid_t.
17790 (add_thread_silent, add_thread_with_info, add_thread): Add
17791 process_stratum_target parameter. Use it for thread and inferior
17792 searches.
17793 (is_current_thread): New.
17794 (thread_info::deletable): Use it.
17795 (find_thread_ptid, thread_count, in_thread_list)
17796 (thread_change_ptid, set_resumed, set_running): New
17797 process_stratum_target parameter. Pass it down.
17798 (set_executing): New process_stratum_target parameter. Pass it
17799 down. Adjust reference to 'threads_executing'.
17800 (threads_are_executing): New process_stratum_target parameter.
17801 Adjust reference to 'threads_executing'.
17802 (set_stop_requested, finish_thread_state): New
17803 process_stratum_target parameter. Pass it down.
17804 (switch_to_thread): Also match inferior.
17805 (switch_to_thread): New process_stratum_target parameter. Pass it
17806 down.
17807 (update_threads_executing): Reimplement.
17808 * top.c (quit_force): Pop targets from all inferior.
17809 (gdb_init): Don't call initialize_targets.
17810 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17811 Declare.
17812 (windows_add_thread, windows_delete_thread): Adjust.
17813 (get_windows_debug_event): Rename to ...
17814 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17815 * tracefile-tfile.c (tfile_target_open): Pass down target.
17816 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17817 Forward declare.
17818 (switch_to_thread): Add process_stratum_target parameter.
17819 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17820 parameter. Use it.
17821 (mi_on_resume): Pass target down.
17822 * nat/fork-inferior.c (startup_inferior): Add
17823 process_stratum_target parameter. Pass it down.
17824 * nat/fork-inferior.h (startup_inferior): Add
17825 process_stratum_target parameter.
17826 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17827
17828 2020-01-10 Pedro Alves <palves@redhat.com>
17829
17830 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17831 directly. Instead find the first thread in the thread list and
17832 use switch_to_thread.
17833
17834 2020-01-10 Pedro Alves <palves@redhat.com>
17835
17836 * remote.c (remote_target::remote_add_inferior): Don't bind a
17837 process to the current inferior if the current inferior is already
17838 bound to a process.
17839
17840 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17841 Pedro Alves <palves@redhat.com>
17842
17843 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17844 If no process is specified, return null_ptid instead of
17845 inferior_ptid.
17846 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17847 TARGET_WAITKIND_SIGNALLED with no pid.
17848
17849 2020-01-10 Pedro Alves <palves@redhat.com>
17850
17851 * remote.c (first_remote_resumed_thread): New.
17852 (remote_target::wait_as): Use it as default event_ptid instead of
17853 inferior_ptid.
17854
17855 2020-01-10 Pedro Alves <palves@redhat.com>
17856
17857 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17858
17859 2020-01-10 Pedro Alves <palves@redhat.com>
17860
17861 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17862 not -1.
17863
17864 2020-01-10 Pedro Alves <palves@redhat.com>
17865
17866 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17867 ptid to get_last_target_status.
17868 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17869 ptid to get_last_target_status.
17870 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17871 get_last_target_status.
17872 (info_program_command): Don't pass a target_waitstatus to
17873 get_last_target_status.
17874 * infrun.c (init_wait_for_inferior): Use
17875 nullify_last_target_wait_ptid.
17876 (get_last_target_status): Handle nullptr arguments.
17877 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17878 (print_stop_event): Don't pass a ptid to get_last_target_status.
17879 (normal_stop): Don't pass a ptid to get_last_target_status.
17880 * infrun.h (get_last_target_status, set_last_target_status): Move
17881 comments here and update.
17882 (nullify_last_target_wait_ptid): Declare.
17883 * linux-fork.c (fork_load_infrun_state): Remove local extern
17884 declaration of nullify_last_target_wait_ptid.
17885 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17886 to get_last_target_status.
17887
17888 2020-01-10 Pedro Alves <palves@redhat.com>
17889
17890 * gdbthread.h (scoped_restore_current_thread)
17891 <dont_restore, restore, m_dont_restore>: Declare.
17892 * thread.c (thread_alive): Add assertion. Return bool.
17893 (switch_to_thread_if_alive): New.
17894 (prune_threads): Switch inferior/thread.
17895 (print_thread_info_1): Switch thread before calling target methods.
17896 (scoped_restore_current_thread::restore): New, factored out from
17897 ...
17898 (scoped_restore_current_thread::~scoped_restore_current_thread):
17899 ... this.
17900 (scoped_restore_current_thread::scoped_restore_current_thread):
17901 Add assertion.
17902 (thread_apply_all_command, thread_select): Use
17903 switch_to_thread_if_alive.
17904 * infrun.c (proceed, restart_threads, handle_signal_stop)
17905 (switch_back_to_stepped_thread): Switch current thread before
17906 calling target methods.
17907
17908 2020-01-10 Pedro Alves <palves@redhat.com>
17909
17910 * inferior.c (switch_to_inferior_no_thread): New function,
17911 factored out from ...
17912 (inferior_command): ... here.
17913 * inferior.h (switch_to_inferior_no_thread): Declare.
17914 * mi/mi-main.c (run_one_inferior): Use
17915 switch_to_inferior_no_thread.
17916
17917 2020-01-10 Pedro Alves <palves@redhat.com>
17918
17919 * infcmd.c (kill_command): Remove dead code.
17920
17921 2020-01-10 Pedro Alves <palves@redhat.com>
17922
17923 * remote.c (remote_target::mourn_inferior): No longer check
17924 whether the target is running.
17925
17926 2020-01-10 Pedro Alves <palves@redhat.com>
17927
17928 * corelow.c (core_target::has_execution): Change parameter type to
17929 inferior pointer.
17930 * inferior.c (number_of_live_inferiors): Use
17931 inferior::has_execution instead of target_has_execution_1.
17932 * inferior.h (inferior::has_execution): New.
17933 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17934 inferior::has_execution instead of target_has_execution_1.
17935 * process-stratum-target.c
17936 (process_stratum_target::has_execution): Change parameter type to
17937 inferior pointer. Check the inferior's PID instead of
17938 inferior_ptid.
17939 * process-stratum-target.h
17940 (process_stratum_target::has_execution): Change parameter type to
17941 inferior pointer.
17942 * record-full.c (record_full_core_target::has_execution): Change
17943 parameter type to inferior pointer.
17944 * target.c (target_has_execution_1): Change parameter type to
17945 inferior pointer.
17946 (target_has_execution_current): Adjust.
17947 * target.h (target_ops::has_execution): Change parameter type to
17948 inferior pointer.
17949 (target_has_execution_1): Change parameter type to inferior
17950 pointer. Change return type to bool.
17951 * tracefile.h (tracefile_target::has_execution): Change parameter
17952 type to inferior pointer.
17953
17954 2020-01-10 Pedro Alves <palves@redhat.com>
17955
17956 * exceptions.c (print_flush): Remove current_top_target() check.
17957
17958 2020-01-10 Pedro Alves <palves@redhat.com>
17959
17960 * remote.c (show_remote_exec_file): Show the current inferior's
17961 exec-file instead of the command variable's value.
17962
17963 2020-01-10 Pedro Alves <palves@redhat.com>
17964
17965 * record-full.c (record_full_resume_ptid): New global.
17966 (record_full_target::resume): Set it.
17967 (record_full_wait_1): Use record_full_resume_ptid instead of
17968 inferior_ptid.
17969
17970 2020-01-10 Pedro Alves <palves@redhat.com>
17971
17972 * gdbthread.h (scoped_restore_current_thread)
17973 <dont_restore, restore, m_dont_restore>: Declare.
17974 * thread.c (thread_alive): Add assertion. Return bool.
17975 (switch_to_thread_if_alive): New.
17976 (prune_threads): Switch inferior/thread.
17977 (print_thread_info_1): Switch thread before calling target methods.
17978 (scoped_restore_current_thread::restore): New, factored out from
17979 ...
17980 (scoped_restore_current_thread::~scoped_restore_current_thread):
17981 ... this.
17982 (scoped_restore_current_thread::scoped_restore_current_thread):
17983 Add assertion.
17984 (thread_apply_all_command, thread_select): Use
17985 switch_to_thread_if_alive.
17986
17987 2020-01-10 George Barrett <bob@bob131.so>
17988
17989 * stap-probe.c (stap_modify_semaphore): Don't check for null
17990 semaphores.
17991 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17992 for null semaphores.
17993
17994 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17995
17996 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17997 all source windows, and maintain horizontal scroll status while
17998 doing so.
17999
18000 2020-01-09 Tom Tromey <tom@tromey.com>
18001
18002 PR tui/18932:
18003 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18004 update_source_window, not print_source_lines.
18005
18006 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18007
18008 * tui/tui.c (tui_enable): Register tui hooks after calling
18009 tui_display_main.
18010
18011 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18012
18013 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18014
18015 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18016
18017 * thread.c (print_thread_info_1): Fix indentation.
18018
18019 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18020
18021 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18022 unique_xmalloc_ptr outside the if to always free the demangled name.
18023
18024 2020-01-08 Tom Tromey <tromey@adacore.com>
18025
18026 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18027 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18028 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18029 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18030 Remove.
18031 (section_offsets): New typedef.
18032 * symtab.c (fixup_section, get_msymbol_address): Update.
18033 * symmisc.c (dump_msymbols): Update.
18034 * symfile.h (relative_addr_info_to_section_offsets)
18035 (symfile_map_offsets_to_segments): Update.
18036 * symfile.c (build_section_addr_info_from_objfile)
18037 (init_objfile_sect_indices): Update.
18038 (struct place_section_arg): Change type of "offsets".
18039 (place_section): Update.
18040 (relative_addr_info_to_section_offsets): Change type of
18041 "section_offsets". Remove "num_sections" parameter.
18042 (default_symfile_offsets, syms_from_objfile_1)
18043 (set_objfile_default_section_offset): Update.
18044 (reread_symbols): No need to preserve section offsets by hand.
18045 (symfile_map_offsets_to_segments): Change type of "offsets".
18046 * stap-probe.c (relocate_address): Update.
18047 * stabsread.h (process_one_symbol): Update.
18048 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18049 (solib_target_relocate_section_addresses): Update.
18050 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18051 Update.
18052 * solib-frv.c (frv_relocate_main_executable): Update.
18053 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18054 * solib-aix.c (solib_aix_get_section_offsets): Change return
18055 type.
18056 (solib_aix_solib_create_inferior_hook): Update.
18057 * remote.c (remote_target::get_offsets): Update.
18058 * psymtab.c (find_pc_sect_psymtab): Update.
18059 * psympriv.h (struct partial_symbol) <address, text_low,
18060 text_high>: Update.
18061 * objfiles.h (obj_section_offset): Update.
18062 (struct objfile) <section_offsets>: Change type.
18063 <num_sections>: Remove.
18064 (objfile_relocate): Update.
18065 * objfiles.c (entry_point_address_query): Update
18066 (relocate_one_symbol): Change type of "section_offsets".
18067 (objfile_relocate1, objfile_relocate1): Change type of
18068 "new_offsets".
18069 (objfile_rebase1): Update.
18070 * mipsread.c (mipscoff_symfile_read): Update.
18071 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18072 parameter.
18073 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18074 (parse_external, psymtab_to_symtab_1): Update.
18075 * machoread.c (macho_symfile_offsets): Update.
18076 * ia64-tdep.c (ia64_find_unwind_table): Update.
18077 * hppa-tdep.c (read_unwind_info): Update.
18078 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18079 * dwarf2read.c (create_addrmap_from_index)
18080 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18081 (process_psymtab_comp_unit_reader, add_partial_symbol)
18082 (add_partial_subprogram, process_full_comp_unit)
18083 (read_file_scope, read_func_scope, read_lexical_block_scope)
18084 (read_call_site_scope, dwarf2_rnglists_process)
18085 (dwarf2_ranges_process, dwarf2_ranges_read)
18086 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18087 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18088 Update.
18089 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18090 Update.
18091 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18092 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18093 (process_one_symbol): Change type of "section_offsets".
18094 * ctfread.c (get_objfile_text_range): Update.
18095 * coffread.c (coff_symtab_read, enter_linenos)
18096 (process_coff_symbol): Update.
18097 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18098 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18099
18100 2020-01-08 Tom Tromey <tromey@adacore.com>
18101
18102 * dwarf2read.c (parse_macro_definition): Use std::string.
18103 (parse_macro_definition): Likewise.
18104
18105 2020-01-08 Tom Tromey <tromey@adacore.com>
18106
18107 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18108 (ATTR_ALLOC_CHUNK): Remove.
18109
18110 2020-01-08 Tom Tromey <tromey@adacore.com>
18111
18112 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18113
18114 2020-01-08 Tom Tromey <tromey@adacore.com>
18115
18116 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18117 (dwarf2_compute_name, open_dwo_file): Likewise.
18118 (process_enumeration_scope): Use std::vector.
18119 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18120 (partial_die_info::fixup, dwarf2_start_subfile)
18121 (guess_full_die_structure_name, dwarf2_name): Likewise.
18122 (determine_prefix): Update.
18123 (guess_full_die_structure_name): Make return type const.
18124 (partial_die_full_name): Return unique_xmalloc_ptr.
18125 (DW_FIELD_ALLOC_CHUNK): Remove.
18126
18127 2020-01-07 Tom Tromey <tromey@adacore.com>
18128
18129 PR build/24937:
18130 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18131
18132 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18133
18134 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18135
18136 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18137
18138 * stack.c (print_frame_info): Move disassemble_next_line code
18139 inside source_print block.
18140
18141 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18142
18143 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18144 gdb/signals.h, as we are now using native signal symbols.
18145
18146 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18147
18148 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18149 overflow by an early check of content vs threshold.
18150 * tui/tui-source.c (tui_source_window::line_is_displayed):
18151 Likewise.
18152
18153 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18154
18155 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18156
18157 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18158
18159 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18160 export table if no section contains it's RVA.
18161
18162 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18163
18164 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18165
18166 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18167
18168 * source.c (print_source_lines_base): Set last_line_listed.
18169
18170 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18171
18172 * tui/tui-disasm.c: Remove trailing spaces.
18173
18174 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18175 Pedro Alves <palves@redhat.com>
18176
18177 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18178 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18179 (windows_gdb_signal_to_target): New function, uses the above
18180 enumeration to convert GDB internal signal codes to equivalent
18181 Windows codes.
18182 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18183 * windows-nat.c: Include "gdb_wait.h".
18184 (get_windows_debug_event): Extract the fatal exception from the
18185 exit status and convert to the equivalent Posix signal number.
18186 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18187 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18188 * gdbsupport/gdb_wait.c: New file, implements
18189 windows_status_to_termsig.
18190 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18191 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18192
18193 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18194
18195 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18196 show_layout.
18197
18198 2020-01-05 Luis Machado <luis.machado@linaro.org>
18199
18200 * aarch64-linux-nat.c
18201 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18202 and bfd_mach_aarch64.
18203
18204 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18205
18206 * ui-file.c (stdio_file::can_emit_style_escape)
18207 (tee_file::can_emit_style_escape): Ensure style is used also on
18208 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18209 to gdb_stdout.
18210 * main.c (set_gdb_data_directory): Use file style to output the
18211 warning that the given pathname is not a directory.
18212 * top.c (show_history_filename, gdb_safe_append_history)
18213 (show_gdb_datadir): Use file style.
18214
18215 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18216
18217 * solib-target.c (struct lm_info_target):
18218 Change offsets to be a unique_xmalloc_ptr.
18219 (solib_target_relocate_section_addresses): Update.
18220
18221 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18222
18223 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18224
18225 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18226
18227 * MAINTAINERS (Write After Approval): Add myself.
18228
18229 2020-01-02 Luis Machado <luis.machado@linaro.org>
18230
18231 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18232 Cell BE architecture.
18233 * target.h (struct target_ops) <thread_architecture>: Likewise.
18234
18235 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18236
18237 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18238
18239 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18240
18241 * MAINTAINERS (Write After Approval): Add myself.
18242
18243 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18244
18245 * gdbarch.sh: Update copyright year range of generated files.
18246
18247 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18248
18249 Update copyright year range in all GDB files.
18250
18251 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18252
18253 * copyright.py: Convert to Python 3.
18254
18255 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18256
18257 * copyright.py: Adapt after move of gnulib directory from gdb
18258 directory to toplevel directory.
18259
18260 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18261
18262 * copyright.py (main): Exit if run from the wrong directory.
18263
18264 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18265
18266 * top.c (print_gdb_version): Change copyright year to 2020.
18267
18268 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18269
18270 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18271
18272 For older changes see ChangeLog-2019.
18273 \f
18274 Local Variables:
18275 mode: change-log
18276 left-margin: 8
18277 fill-column: 74
18278 version-control: never
18279 coding: utf-8
18280 End:
This page took 0.396537 seconds and 5 git commands to generate.