gdb: factor out debug_prefixed_printf_cond
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * displaced-stepping.h (displaced_debug_printf): Use
4 debug_prefixed_printf_cond.
5 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
6 (dwarf_read_debug_printf_v): Likewise.
7 * infrun.h (infrun_debug_printf): Likewise.
8 * linux-nat.c (linux_nat_debug_printf): Likewise.
9
10 2020-12-11 Tom Tromey <tom@tromey.com>
11
12 * p-exp.y (intvar): Remove global.
13 (DOLLAR_VARIABLE): Change type.
14 (start): Update.
15 (exp): Call write_dollar_variable here...
16 (yylex): ... not here.
17 * m2-exp.y (DOLLAR_VARIABLE): Change type.
18 (variable): Call write_dollar_variable here...
19 (yylex): ... not here.
20 * f-exp.y (DOLLAR_VARIABLE): Change type.
21 (exp): Call write_dollar_variable here...
22 (yylex): ... not here.
23
24 2020-12-11 Tom Tromey <tom@tromey.com>
25
26 * varobj.c (varobj_create): Update.
27 (install_variable): Return void.
28
29 2020-12-11 Tom Tromey <tom@tromey.com>
30
31 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
32
33 2020-12-11 Tom Tromey <tom@tromey.com>
34
35 * varobj.c (varobj_clear_saved_item): Remove.
36 (update_dynamic_varobj_children): Update.
37 (varobj::~varobj): Don't call varobj_clear_saved_item.
38
39 2020-12-11 Tom Tromey <tom@tromey.com>
40
41 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
42 (update_dynamic_varobj_children, create_child)
43 (create_child_with_value): Update.
44 * varobj-iter.h (struct varobj_item) <value>: Now a
45 value_ref_ptr.
46 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
47
48 2020-12-11 Tom Tromey <tom@tromey.com>
49
50 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
51 (varobj_get_iterator): Return unique_ptr.
52 (update_dynamic_varobj_children, install_visualizer)
53 (varobj::~varobj): Update.
54 * python/python-internal.h (py_varobj_get_iterator): Return
55 unique_ptr.
56 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
57
58 2020-12-11 Tom Tromey <tom@tromey.com>
59
60 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
61 (varobj_clear_saved_item, update_dynamic_varobj_children):
62 Update.
63
64 2020-12-11 Tom Tromey <tom@tromey.com>
65
66 * varobj.c (update_dynamic_varobj_children): Update.
67 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
68 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
69 type.
70 (py_varobj_iter::next): Likewise.
71
72 2020-12-11 Tom Tromey <tom@tromey.com>
73
74 * varobj.c (update_dynamic_varobj_children, install_visualizer)
75 (varobj::~varobj): Update.
76 * varobj-iter.h (struct varobj_iter): Change to interface class.
77 (struct varobj_iter_ops): Remove.
78 (varobj_iter_next, varobj_iter_delete): Remove.
79 * python/py-varobj.c (struct py_varobj_iter): Derive from
80 varobj_iter. Add constructor, destructor. Rename members.
81 (py_varobj_iter::~py_varobj_iter): Rename from
82 py_varobj_iter_dtor.
83 (py_varobj_iter::next): Rename from py_varobj_iter_next.
84 (py_varobj_iter_ops): Remove.
85 (py_varobj_iter): Rename from py_varobj_iter_ctor.
86 (py_varobj_iter_new): Remove.
87 (py_varobj_get_iterator): Update.
88
89 2020-12-11 Tom Tromey <tom@tromey.com>
90
91 * varobj.h (all_root_varobjs): Take a function_view.
92 * varobj.c (all_root_varobjs): Take a function_view.
93 (varobj_invalidate_iter): Remove unused parameter.
94 (varobj_invalidate): Update.
95 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
96 (mi_cmd_var_update_iter): Change parameters.
97
98 2020-12-11 Tom Tromey <tom@tromey.com>
99
100 * varobj.c (struct varobj_root) <next>: Remove.
101 (struct vlist): Remove.
102 (rootlist): Now a std::list.
103 (install_variable, uninstall_variable, all_root_varobjs): Update.
104
105 2020-12-11 Tom Tromey <tom@tromey.com>
106
107 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
108 (varobj_table): Now htab_t.
109 (varobj_get_handle, install_variable, uninstall_variable):
110 Update.
111 (hash_varobj, eq_varobj_and_string): New functions.
112 (hash_varobj): Update.
113
114 2020-12-11 Tom Tromey <tom@tromey.com>
115
116 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
117 * ada-lang.c (check_status_exception): Update.
118 * breakpoint.c (free_bp_location): Remove.
119 (decref_bp_location): Use bp_location_ref_policy.
120 (bpstats::bpstats): Don't call incref_bp_location.
121 (bpstats::~bpstats): Remove.
122 (bpstats::bpstats): Update.
123 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
124 (bp_location::bp_location): Update.
125 (incref_bp_location): Remove.
126 (bkpt_print_it): Update.
127 * breakpoint.h (class bp_location): Derive from
128 refcounted_object.
129 (struct bpstats): Remove destructor.
130 <bp_location_at>: Now a bp_location_ref_ptr.
131 <refc>: Remove.
132 (bp_location_ref_ptr): New typedef.
133 (struct bp_location_ref_policy): New.
134
135 2020-12-11 Tom Tromey <tom@tromey.com>
136
137 * thread.c (class scoped_inc_dec_ref): Remove.
138 (tp_array_compar_ascending, tp_array_compar_descending): Change
139 parameter types.
140 (thread_apply_all_command): Use thread_info_ref.
141
142 2020-12-11 Tom Tromey <tom@tromey.com>
143
144 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
145 (stop_context::stop_context): Update.
146 (stop_context::~stop_context): Remove.
147
148 2020-12-11 Tom Tromey <tom@tromey.com>
149
150 * inferior.c (current_inferior_): Change type.
151 (current_inferior, set_current_inferior, initialize_inferiors):
152 Update.
153
154 2020-12-11 Tom Tromey <tom@tromey.com>
155
156 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
157 Change type.
158
159 2020-12-11 Tom Tromey <tromey@adacore.com>
160
161 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
162 field.
163 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
164 (read_atcb): Use cpu_id_offset.
165
166 2020-12-10 Kevin Buettner <kevinb@redhat.com>
167
168 * ada-lang.c (ada_fold_name): Fix off-by-one error.
169
170 2020-12-10 Luis Machado <luis.machado@linaro.org>
171
172 * breakpoint.c (should_be_inserted): Don't output newline.
173
174 2020-12-10 Luis Machado <luis.machado@linaro.org>
175
176 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
177 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
178 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
179 * arch/aarch64.h: ... here.
180 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
181 (aarch64_maybe_swab128): New function.
182 (aarch64_sve_regs_copy_to_reg_buf)
183 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
184 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
185 the data field.
186 (TF_REG_VALUE_BYTES): New enum value.
187 (trad_frame_value_bytes_p): New function.
188 (trad_frame_set_value_bytes): New function.
189 (trad_frame_set_reg_value_bytes): New function.
190 (trad_frame_get_prev_register): Handle register values saved as bytes.
191 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
192 (struct trad_frame_saved_reg) <data>: New field.
193 (trad_frame_set_value_bytes): New prototype.
194 (trad_frame_value_bytes_p): New prototype.
195
196 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
197
198 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
199 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
200 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
201
202 2020-12-09 Tom Tromey <tromey@adacore.com>
203
204 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
205
206 2020-12-09 Tom Tromey <tromey@adacore.com>
207
208 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
209 and "denominator" to gdb_mpz. Handle block forms.
210 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
211 "denominator" to gdb_mpz.
212 (finish_fixed_point_type): Update.
213 (has_zero_over_zero_small_attribute): Update.
214
215 2020-12-09 Tom Tromey <tromey@adacore.com>
216
217 * expprint.c (op_name): Update.
218 * expression.h (enum exp_opcode): Update.
219 * std-operator.def: Add more opcodes.
220 * ada-operator.def, fortran-operator.def: Remove, moving contents
221 into std-operator.def.
222
223 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
226 Return {} instead of false.
227 (get_discrete_bounds): Compute high bound only if low bound is
228 valid.
229
230 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
231
232 PR 26875, PR 26901
233 * gdbtypes.c (get_discrete_low_bound): Make non-static.
234 (get_discrete_high_bound): Make non-static.
235 * gdbtypes.h (get_discrete_low_bound): New declaration.
236 (get_discrete_high_bound): New declaration.
237 * valarith.c (value_subscript): Only fetch high bound if
238 necessary.
239
240 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
241
242 * gdbtypes.c (get_discrete_bounds): Implement with
243 get_discrete_low_bound and get_discrete_high_bound.
244 (get_discrete_low_bound): New.
245 (get_discrete_high_bound): New.
246
247 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
248
249 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
250 callers.
251 * gdbtypes.c (get_discrete_bounds): Return bool.
252
253 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
254
255 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
256 (ada_value_slice): Adjust.
257 (pos_atr): Adjust.
258 * gdbtypes.c (get_discrete_bounds): Adjust.
259 (discrete_position): Return optional.
260 * gdbtypes.h (discrete_position): Return optional.
261
262 2020-12-07 Tom Tromey <tromey@adacore.com>
263
264 * maint.c (_initialize_maint_cmds): Use expression command
265 completer for "maint print type".
266
267 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
268
269 * completer.c (complete_explicit_location): Also add keywords
270 that start with '-' to the completion list.
271
272 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
273
274 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
275 keyword may be followed by any keyword.
276 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
277 'toklen' in the case for "-force-condition".
278
279 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
280
281 * main.c (catch_command_errors): Add a flag parameter; invoke
282 `bpstat_do_actions` if the flag is set.
283 (execute_cmdargs): Update a call to `catch_command_errors`.
284
285 2020-12-07 Tom de Vries <tdevries@suse.de>
286
287 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
288
289 2020-12-06 Tom Tromey <tom@tromey.com>
290
291 PR ada/26999
292 * ada-lang.c (replace_operator_with_call): Rewrite.
293
294 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
295
296 PR breakpoints/27009
297 * s390-tdep.h (op_bc): Correct BC opcode value.
298
299 2020-12-06 Joel Brobecker <brobecker@adacore.com>
300
301 * gmp-utils.h (gdb_mpz::safe_export): New private method.
302 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
303 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
304 (gdb_mpz::safe_export): New method.
305 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
306 Update function description.
307 (check_as_integer_raises_out_of_range_error): New function.
308 (gdb_mpz_as_integer_out_of_range): New function.
309 (_initialize_gmp_utils_selftests): Register
310 gdb_mpz_as_integer_out_of_range as a selftest.
311
312 2020-12-05 Joel Brobecker <brobecker@adacore.com>
313
314 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
315 TARGET_CHAR_BIT.
316 (gdb_mpz::write): Likewise.
317
318 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
319
320 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
321 number of displaced step buffers.
322
323 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
324
325 * displaced-stepping.h (struct displaced_step_buffer): Rename
326 to...
327 (struct displaced_step_buffers): ... this.
328 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
329 <struct displaced_step_buffer>: New inner class.
330 <m_buffers>: New.
331 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
332 to...
333 (displaced_step_buffers::prepare): ... this, adjust for multiple
334 buffers.
335 (displaced_step_buffer::finish): Rename to...
336 (displaced_step_buffers::finish): ... this, adjust for multiple
337 buffers.
338 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
339 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
340 adjust for multiple buffers.
341 (displaced_step_buffer::restore_in_ptid): Rename to...
342 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
343 multiple buffers.
344 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
345 for num_disp_step_buffers.
346 * linux-tdep.c (struct linux_gdbarch_data)
347 <num_disp_step_buffers>: New field.
348 (struct linux_info) <disp_step_buf>: Rename to...
349 <disp_step_bufs>: ... this, change type to
350 displaced_step_buffers.
351 (linux_displaced_step_prepare): Use
352 linux_gdbarch_data::num_disp_step_buffers to create that number
353 of buffers.
354 (linux_displaced_step_finish): Adjust.
355 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
356 (linux_displaced_step_restore_all_in_ptid): Adjust.
357 (linux_init_abi): Change supports_displaced_step parameter for
358 num_disp_step_buffers, save it in linux_gdbarch_data.
359 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
360 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
361 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
362 supports_displaced_step parameter for num_disp_step_buffers.
363 (amd64_linux_init_abi): Adjust.
364 (amd64_x32_linux_init_abi): Adjust.
365 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
366 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
367 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
368 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
369 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
370 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
371 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
372 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
373 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
374 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
375 * m68k-linux-tdep.c (m68k_linux_init_abi):
376 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
377 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
378 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
379 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
380 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
381 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
382 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
383 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
384 Change type to displaced_step_buffers.
385 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
386 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
387 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
388 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
389 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
390 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
391 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
392
393 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
394
395 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
396 obkstack.
397 (_initialize_linux_tdep): Register pre-init gdb data instead of
398 post-init.
399
400 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
401
402 * displaced-stepping.h (struct
403 displaced_step_copy_insn_closure): Adjust comments.
404 (struct displaced_step_inferior_state) <step_thread,
405 step_gdbarch, step_closure, step_original, step_copy,
406 step_saved_copy>: Remove fields.
407 (struct displaced_step_thread_state): New.
408 (struct displaced_step_buffer): New.
409 * displaced-stepping.c (displaced_step_buffer::prepare): New.
410 (write_memory_ptid): Move from infrun.c.
411 (displaced_step_instruction_executed_successfully): New,
412 factored out of displaced_step_finish.
413 (displaced_step_buffer::finish): New.
414 (displaced_step_buffer::copy_insn_closure_by_addr): New.
415 (displaced_step_buffer::restore_in_ptid): New.
416 * gdbarch.sh (displaced_step_location): Remove.
417 (displaced_step_prepare, displaced_step_finish,
418 displaced_step_copy_insn_closure_by_addr,
419 displaced_step_restore_all_in_ptid): New.
420 * gdbarch.c: Re-generate.
421 * gdbarch.h: Re-generate.
422 * gdbthread.h (class thread_info) <displaced_step_state>: New
423 field.
424 (thread_step_over_chain_remove): New declaration.
425 (thread_step_over_chain_next): New declaration.
426 (thread_step_over_chain_length): New declaration.
427 * thread.c (thread_step_over_chain_remove): Make non-static.
428 (thread_step_over_chain_next): New.
429 (global_thread_step_over_chain_next): Use
430 thread_step_over_chain_next.
431 (thread_step_over_chain_length): New.
432 (global_thread_step_over_chain_enqueue): Add debug print.
433 (global_thread_step_over_chain_remove): Add debug print.
434 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
435 Remove.
436 * infrun.c (get_displaced_stepping_state): New.
437 (displaced_step_in_progress_any_inferior): Remove.
438 (displaced_step_in_progress_thread): Adjust.
439 (displaced_step_in_progress): Adjust.
440 (displaced_step_in_progress_any_thread): New.
441 (get_displaced_step_copy_insn_closure_by_addr): Remove.
442 (gdbarch_supports_displaced_stepping): Use
443 gdbarch_displaced_step_prepare_p.
444 (displaced_step_reset): Change parameter from inferior to
445 thread.
446 (displaced_step_prepare_throw): Implement using
447 gdbarch_displaced_step_prepare.
448 (write_memory_ptid): Move to displaced-step.c.
449 (displaced_step_restore): Remove.
450 (displaced_step_finish): Implement using
451 gdbarch_displaced_step_finish.
452 (start_step_over): Allow starting more than one displaced step.
453 (prepare_for_detach): Handle possibly multiple threads doing
454 displaced steps.
455 (handle_inferior_event): Handle possibility that fork event
456 happens while another thread displaced steps.
457 * linux-tdep.h (linux_displaced_step_prepare): New.
458 (linux_displaced_step_finish): New.
459 (linux_displaced_step_copy_insn_closure_by_addr): New.
460 (linux_displaced_step_restore_all_in_ptid): New.
461 (linux_init_abi): Add supports_displaced_step parameter.
462 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
463 (linux_displaced_step_prepare): New.
464 (linux_displaced_step_finish): New.
465 (linux_displaced_step_copy_insn_closure_by_addr): New.
466 (linux_displaced_step_restore_all_in_ptid): New.
467 (linux_init_abi): Add supports_displaced_step parameter,
468 register displaced step methods if true.
469 (_initialize_linux_tdep): Register inferior_execd observer.
470 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
471 supports_displaced_step parameter, adjust call to
472 linux_init_abi. Remove call to
473 set_gdbarch_displaced_step_location.
474 (amd64_linux_init_abi): Adjust call to
475 amd64_linux_init_abi_common.
476 (amd64_x32_linux_init_abi): Likewise.
477 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
478 linux_init_abi. Remove call to
479 set_gdbarch_displaced_step_location.
480 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
481 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
482 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
483 linux_init_abi.
484 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
485 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
486 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
487 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
488 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
489 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
490 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
491 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
492 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
493 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
494 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
495 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
496 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
497 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
498 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
499 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
500 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
501 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
502 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
503 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
504 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
505 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
506 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
507 linux_init_abi. Remove call to
508 set_gdbarch_displaced_step_location.
509 * arm-tdep.c (arm_pc_is_thumb): Call
510 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
511 get_displaced_step_copy_insn_closure_by_addr.
512 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
513 clear gdbarch methods.
514 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
515 (get_ppc_per_inferior): New function.
516 (ppc_displaced_step_prepare): New function.
517 (ppc_displaced_step_finish): New function.
518 (ppc_displaced_step_restore_all_in_ptid): New function.
519 (rs6000_gdbarch_init): Register new gdbarch methods.
520 * s390-tdep.c (s390_gdbarch_init): Don't call
521 set_gdbarch_displaced_step_location, set new gdbarch methods.
522
523 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
524
525 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
526 * aarch64-tdep.h: Include displaced-stepping.h.
527 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
528 Move here.
529 (displaced_step_copy_insn_closure_up): Move here.
530 (struct buf_displaced_step_copy_insn_closure): Move here.
531 (struct displaced_step_inferior_state): Move here.
532 (debug_displaced): Move here.
533 (displaced_debug_printf_1): Move here.
534 (displaced_debug_printf): Move here.
535 * displaced-stepping.c: New file.
536 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
537 * gdbarch.h: Re-generate.
538 * inferior.h: Include displaced-stepping.h.
539 * infrun.h (debug_displaced): Move to displaced-stepping.h.
540 (displaced_debug_printf_1): Likewise.
541 (displaced_debug_printf): Likewise.
542 (struct displaced_step_copy_insn_closure): Likewise.
543 (displaced_step_copy_insn_closure_up): Likewise.
544 (struct buf_displaced_step_copy_insn_closure): Likewise.
545 (struct displaced_step_inferior_state): Likewise.
546 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
547 (displaced_debug_printf_1): Likewise.
548 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
549 Likewise.
550 (_initialize_infrun): Don't register "set/show debug displaced".
551
552 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
553
554 * linux-tdep.c (get_linux_inferior_data): Add inferior
555 parameter.
556 (linux_vsyscall_range): Pass current inferior.
557
558 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
559
560 * infrun.c (displaced_step_prepare_throw): Change return type to
561 displaced_step_prepare_status.
562 (displaced_step_prepare): Likewise.
563 (displaced_step_finish): Change return type to
564 displaced_step_finish_status.
565 (resume_1): Adjust.
566 (stop_all_threads): Adjust.
567 * displaced-stepping.h: New file.
568
569 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
570
571 * infrun.c (displaced_step_fixup): Rename to...
572 (displaced_step_finish): ... this, update all callers.
573
574 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
575
576 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
577 (get_displaced_step_copy_insn_closure_by_addr): ... this.
578 Update all users.
579 (displaced_step_closure): Rename to...
580 (displaced_step_copy_insn_closure): ... this. Update all users.
581 (displaced_step_closure_up): Rename to...
582 (displaced_step_copy_insn_closure_up). ... this. Update all
583 users.
584 (buf_displaced_step_closure): Rename to...
585 (buf_displaced_step_copy_insn_closure): ... this. Update all
586 users.
587 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
588 (get_displaced_step_copy_insn_closure_by_addr): ... this.
589 Update all users.
590 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
591 (aarch64_displaced_step_copy_insn_closure): ... this. Update
592 all users.
593 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
594 (amd64_displaced_step_copy_insn_closure): ... this. Update all
595 users.
596 * arm-tdep.h (arm_displaced_step_closure): Rename to...
597 (arm_displaced_step_copy_insn_closure): ... this. Update all
598 users.
599 * i386-tdep.h (i386_displaced_step_closure): Rename to...
600 (i386_displaced_step_copy_insn_closure): ... this. Update all
601 users.
602 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
603 (ppc_displaced_step_copy_insn_closure): ... this. Update all
604 users.
605 * s390-tdep.c (s390_displaced_step_closure): Rename to...
606 (s390_displaced_step_copy_insn_closure): ... this. Update all
607 users.
608 * gdbarch.h: Re-generate.
609 * gdbarch.c: Re-generate.
610
611 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
612
613 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
614 (global_thread_step_over_chain_enqueue): ... this. Update all
615 users.
616 (thread_step_over_chain_remove): Rename to...
617 (global_thread_step_over_chain_remove): ... this. Update all
618 users.
619 (thread_step_over_chain_next): Rename to...
620 (global_thread_step_over_chain_next): ... this. Update all
621 users.
622 * infrun.h (step_over_queue_head): Rename to...
623 (global_thread_step_over_chain_head): ... this. Update all
624 users.
625 * infrun.c (step_over_queue_head): Rename to...
626 (global_thread_step_over_chain_head): ... this. Update all
627 users.
628 * thread.c (step_over_chain_remove): Rename to...
629 (thread_step_over_chain_remove): ... this. Update all users.
630 (thread_step_over_chain_next): Rename to...
631 (global_thread_step_over_chain_next): ... this. Update all
632 users.
633 (thread_step_over_chain_enqueue): Rename to...
634 (global_thread_step_over_chain_enqueue): ... this. Update all
635 users.
636 (thread_step_over_chain_remove): Rename to...
637 (global_thread_step_over_chain_remove): ... this. Update all
638 users.
639
640 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * infrun.c (get_displaced_stepping_state): Remove, change
643 callers to access the field directly.
644
645 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
646
647 * infrun.c (handle_inferior_event): Restore displaced step
648 buffer bytes in child process when handling fork, even if fork
649 happened in another thread than the displaced-stepping one.
650
651 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
652
653 * infrun.c (infrun_inferior_execd): New function.
654 (_initialize_infrun): Attach inferior_execd observer.
655
656 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
657
658 * observable.h (inferior_execd): Declare new observable.
659 * observable.c (inferior_execd): Declare new observable.
660 * infrun.c (follow_exec): Notify inferior_execd observer.
661 * jit.c (jit_inferior_created_hook): Make static.
662 (_initialize_jit): Register inferior_execd observer.
663 * jit.h (jit_inferior_created_hook): Remove declaration.
664 * solib.c (_initialize_solib): Register inferior_execd observer.
665
666 2020-12-04 Tom de Vries <tdevries@suse.de>
667
668 PR gdb/27003
669 * completer.c (completion_tracker::build_completion_result): Don't
670 access match_list[0][-1].
671
672 2020-12-04 Tom Tromey <tromey@adacore.com>
673
674 * linespec.c (struct linespec_token): Rename; remove typedef.
675 * guile/scm-block.c (struct block_smob): Remove typedef.
676 (struct block_syms_progress_smob): Likewise.
677 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
678 * guile/scm-symtab.c (symtab_smob): Remove typedef.
679 (struct sal_smob): Remove typedef.
680 * guile/scm-param.c (struct param_smob): Remove typedef.
681 * guile/scm-progspace.c (struct pspace_smob): Rename.
682 * guile/scm-objfile.c (struct objfile_smob): Rename.
683 * guile/scm-iterator.c (struct iterator_smob): Rename.
684 * guile/scm-frame.c (struct frame_smob): Rename.
685 * guile/scm-arch.c (struct arch_smob): Rename.
686 * guile/scm-type.c (struct field_smob): Remove typedef.
687 (struct type_smob): Rename.
688 * guile/scm-cmd.c (struct command_smob): Remove typedef.
689 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
690 * guile/scm-value.c (struct value_smob): Remove typedef.
691 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
692 * guile/guile-internal.h (struct scheme_variable)
693 (struct scheme_function, struct scheme_integer_constant)
694 (struct gdb_smob, struct chained_gdb_smob)
695 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
696 (objfile_smob, pspace_smob, type_smob): Remove typedef.
697 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
698 (struct pretty_printer_worker_smob): Remove typedef.
699 * guile/scm-exception.c (struct exception_smob): Remove typedef.
700 * python/py-block.c (struct block_object): Remove typedef.
701 (block_syms_iterator_object): Update.
702 (set_block): Update.
703 (block_syms_iterator_object): Remove typedef.
704 * python/py-inferior.c (struct membuf_object): Remove typedef.
705 * python/py-symtab.c (struct symtab_object): Remove typedef.
706 (set_symtab): Update.
707 (sal_object): Remove typedef.
708 (set_sal): Update.
709 * python/py-frame.c (frame_object): Remove typedef.
710 * python/py-record-btrace.c (struct btpy_list_object): Remove
711 typedef.
712 * python/py-arch.c (struct arch_object): Remove typedef.
713 * python/py-linetable.c (struct linetable_entry_object)
714 (linetable_object, struct ltpy_iterator_object): Remove typedef.
715 * python/py-events.h (eventregistry_object): Remove typedef.
716 (struct events_object): Remove typedef.
717 * python/python-internal.h (gdbpy_breakpoint_object): Remove
718 typedef.
719 (thread_object): Remove typedef.
720 * python/py-progspace.c (pspace_object): Remove typedef.
721 * python/py-value.c (struct value_object): Remove typedef.
722 * python/py-record.h (recpy_record_object): Remove typedef.
723 (struct recpy_element_object): Remove typedef.
724 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
725 * python/py-objfile.c (objfile_object): Remove typedef.
726 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
727 * python/py-type.c (type_object): Remove typedef.
728 (typy_iterator_object): Update.
729 (set_type): Update.
730 (field_object): Remove typedef.
731 (typy_iterator_object): Remove typedef.
732 * python/py-registers.c (register_descriptor_iterator_object):
733 Remove typedef.
734 (struct register_descriptor_object)
735 (struct reggroup_iterator_object, struct reggroup_object): Remove
736 typedef.
737 * python/py-record.c (recpy_gap_object): Remove typedef.
738 * python/py-symbol.c (symbol_object): Remove typedef.
739 (set_symbol): Update.
740 * python/py-event.h (event_object): Remove typedef.
741 * python/py-param.c (parmpy_object): Remove typedef.
742 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
743 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
744 (unwind_info_object, struct cached_frame_info): Likewise.
745
746 2020-12-04 Tom Tromey <tromey@adacore.com>
747
748 * value.c (value_internal_function_name): Make return type const.
749 * value.h (value_internal_function_name): Make return type const.
750
751 2020-12-04 Luis Machado <luis.machado@linaro.org>
752
753 * aarch64-tdep.c (submask, bit, bits): Remove.
754 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
755 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
756 (aarch64_decode_cb, aarch64_decode_tb)
757 (aarch64_decode_ldr_literal): Use sbits to extract a signed
758 immediate.
759 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
760
761 2020-12-04 Tom de Vries <tdevries@suse.de>
762
763 PR tdep/27007
764 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
765
766 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
767
768 PR gdb/26876
769 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
770 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
771
772 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
773
774 * arch/riscv.c: Include 'rv32e-xregs.c'.
775 (riscv_create_target_description): Update to handle rv32e.
776 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
777 member variable.
778 <operator==>: Update to account for new field.
779 <hash>: Likewise.
780 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
781 * features/riscv/rv32e-xregs.c: Generated.
782 * features/riscv/rv32e-xregs.xml: New file.
783 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
784 file.
785 (riscv_debug_infcall): Likewise.
786 (riscv_debug_unwinder): Likewise.
787 (riscv_debug_gdbarch): Likewise.
788 (enum riscv_register_required_status): Delete.
789 (struct riscv_register_feature): Add constructor, delete default
790 constructor, copy, and assign constructors.
791 (struct riscv_register_feature::register_info) <required>: Delete.
792 <check>: Update comment and arguments.
793 (struct riscv_register_feature) <name>: Change to member function.
794 <prefer_first_name>: Delete.
795 <tdesc_feature>: New member function.
796 <registers>: Rename to...
797 <m_registers>: ...this.
798 <m_feature_name>: New member variable.
799 (riscv_register_feature::register_info::check): Update arguments.
800 (riscv_xreg_feature): Rewrite as class, create a single static
801 instance of the class.
802 (riscv_freg_feature): Likewise.
803 (riscv_virtual_feature): Likewise.
804 (riscv_csr_feature): Likewise.
805 (riscv_create_csr_aliases): Has become a member function inside
806 riscv_csr_feature class.
807 (riscv_abi_embedded): New function definition.
808 (riscv_register_name): Adjust to use new feature objects.
809 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
810 and adjust available argument registers.
811 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
812 (riscv_check_tdesc_feature): Delete.
813 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
814 (riscv_gdbarch_init): Delete target description checking code, and
815 instead call to the new feature objects to perform the checks.
816 Reorder handling of no abi information case, allows small code
817 simplification.
818 (_initialize_riscv_tdep): Remove call, this is now done in the
819 riscv_csr_feature constructor.
820 * riscv-tdep.h (riscv_abi_embedded): Declare.
821
822 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
823
824 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
825 DECLARE_CSR_ALIAS.
826
827 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
828
829 * riscv-tdep.c (riscv_is_unknown_csr): New function,
830 implementation moved from riscv_register_reggroup_p.
831 (riscv_register_reggroup_p): Update group handling for unknown
832 CSRs.
833
834 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
835
836 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
837 (dwarf2_get_dwz_file): Convert 'filename' to a
838 std::string. Use dwz_search_other_debugdirs to search for DWZ
839 files in the debug-file-directories provided by the user as well.
840
841 2020-12-01 Tom Tromey <tom@tromey.com>
842
843 * parse.c (expr_builder::expr_builder): Initialize expout.
844 (expr_builder::release): Use expression::resize.
845 (expression::expression, expression::~expression)
846 (expression::resize): New methods.
847 (write_exp_elt): Use expression::resize.
848 (prefixify_expression): Update.
849 (increase_expout_size): Use expression::resize.
850 * expression.h (struct expression): Add constructor, destructor.
851 <resize>: New method.
852 (expression_up): Change type.
853
854 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
855 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
856 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
857 set region.
858
859 2020-11-30 Tom de Vries <tdevries@suse.de>
860
861 PR symtab/26905
862 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
863 is_reference parameter.
864 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
865
866 2020-11-30 Tom Tromey <tom@tromey.com>
867
868 * rust-lang.c (rust_op_name): Remove.
869 (exp_descriptor_rust): Update.
870 * parser-defs.h (op_name_standard): Don't declare.
871 (struct exp_descriptor) <op_name>: Remove.
872 * parse.c (exp_descriptor_standard): Update.
873 * opencl-lang.c (exp_descriptor_opencl): Update.
874 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
875 * f-lang.c (op_name_f): Remove.
876 (f_language::exp_descriptor_tab): Update.
877 * expression.h (op_name): Update.
878 * expprint.c (op_name): Rewrite.
879 (op_name_standard): Remove.
880 (dump_raw_expression, dump_subexp): Update.
881 * c-lang.c (exp_descriptor_c): Update.
882 * ax-gdb.c (gen_expr): Update.
883 * ada-lang.c (ada_op_name): Remove.
884 (ada_exp_descriptor): Update.
885
886 2020-11-30 Tom Tromey <tom@tromey.com>
887
888 * eval.c (init_array_element): Remove.
889 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
890
891 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
892
893 PR tui/26973
894 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
895 static locator win info.
896
897 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
898
899 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
900 program.
901
902 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
903
904 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
905 is always initialized.
906
907 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
908 * MAINTAINERS (Write After Approval): Add myself.
909
910 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
911
912 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
913 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
914
915 2020-11-25 Tom Tromey <tom@tromey.com>
916
917 * eval.c (evaluate_subexp_standard): Remove unnecessary
918 variables.
919
920 2020-11-25 Tom Tromey <tom@tromey.com>
921
922 * d-lang.c: Include parser-defs.h.
923 * rust-lang.c: Include parser-defs.h.
924 * c-lang.h: Do not include parser-defs.h.
925
926 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
927
928 * regcache.h (struct cached_reg): Remove typedef.
929
930 2020-11-24 Joel Brobecker <brobecker@adacore.com>
931
932 * README: Fix the URL of the MPFR library.
933
934 2020-11-24 Joel Brobecker <brobecker@adacore.com>
935
936 * README: Document the --with-libgmp-prefix configure option.
937
938 2020-11-24 Joel Brobecker <brobecker@adacore.com>
939
940 * NEWS: Add entry documenting support for DWARF-based fixed
941 point types.
942
943 2020-11-24 Joel Brobecker <brobecker@adacore.com>
944
945 * NEWS: Document that building GDB now requires GMP.
946
947 2020-11-24 Joel Brobecker <brobecker@adacore.com>
948
949 * typeprint.c (print_type_scalar): Add handling of
950 TYPE_CODE_FIXED_POINT.
951
952 2020-11-24 Joel Brobecker <brobecker@adacore.com>
953
954 * valarith.c (fixed_point_binop): Replace the
955 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
956 users accordingly.
957
958 2020-11-24 Joel Brobecker <brobecker@adacore.com>
959
960 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
961 replacing fixed_point_scaling_factor. All callers updated
962 throughout this project.
963 (fixed_point_scaling_factor): Delete declaration.
964 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
965 fixed_point_scaling_factor. Adjust implementation accordingly.
966
967 2020-11-24 Joel Brobecker <brobecker@adacore.com>
968
969 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
970 replacing the fixed_point_type_base_type function. All callers
971 updated throughout this project.
972 (fixed_point_type_base_type): Remove declaration.
973 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
974 fixed_point_type_base_type. Adjust implementation accordingly.
975
976 2020-11-24 Joel Brobecker <brobecker@adacore.com>
977
978 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
979 New methods.
980 (INIT_FIXED_POINT_SPECIFIC): Adjust.
981 (TYPE_FIXED_POINT_INFO): Delete macro.
982 (allocate_fixed_point_type_info): Change return type to void.
983 * gdbtypes.c (copy_type_recursive): Replace the use of
984 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
985 (fixed_point_scaling_factor): Likewise.
986 (allocate_fixed_point_type_info): Change return type to void.
987 Adjust implementation accordingly.
988 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
989 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
990
991 2020-11-24 Joel Brobecker <brobecker@adacore.com>
992
993 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
994 into one single gdb::array_view parameter.
995 (gdb_mpz::write): Likewise.
996 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
997 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
998 into one single gdb::array_view parameter.
999 Adjust implementation accordingly.
1000 (gdb_mpz::write): Likewise.
1001 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1002 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1003 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1004
1005 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1006
1007 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1008 Change return type to std::string. Update all callers.
1009 * gmp-utils.c (gmp_string_printf): Likewise.
1010
1011 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1012
1013 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1014 instead of mpq_set_ui to initialize our GMP rational.
1015
1016 2020-11-23 Tom de Vries <tdevries@suse.de>
1017
1018 * debuginfod-support.c (debuginfod_source_query)
1019 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1020
1021 2020-11-21 Tom Tromey <tom@tromey.com>
1022
1023 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1024
1025 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1026
1027 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1028 Pass 2.0 to pow.
1029 (gdb_mpz_write_all_from_small): Likewise.
1030
1031 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1032
1033 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1034 of abs.
1035
1036 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1037
1038 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1039 ctf_arc_open_by_name.
1040
1041 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1042
1043 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1044 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1045
1046 2020-11-20 Pedro Alves <pedro@palves.net>
1047
1048 * language.c (language_arch_info::lookup_primitive_type): Use
1049 gdb::function_view instead of gdb::function.
1050 (template language_lookup_primitive_type): Rename to ...
1051 (language_lookup_primitive_type_1): ... this, and make static.
1052 (language_lookup_primitive_type(const struct language_defn *,
1053 struct gdbarch *, const char *): Make non-template.
1054 (language_lookup_primitive_type(const struct language_defn *,
1055 struct gdbarch *, std::function<bool (struct type *)>): Make
1056 non-template and use gdb::function_view.
1057 * language.h (language_arch_info::lookup_primitive_type): Use
1058 gdb::function_view instead of std::function.
1059 (language_lookup_primitive_type): No longer template.
1060 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1061 lambda instead of a std::function.
1062
1063 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1064
1065 PR tdep/26916
1066 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1067 and STOCFH.
1068
1069 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1072
1073 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1076 in `loop_cb` parameter.
1077 * gdbarch.c: Re-generate.
1078 * gdbarch.h: Re-generate.
1079 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1080 parameter.
1081 * arch-utils.h (default_read_core_file_mappings): Likewise.
1082 * corelow.c (core_target::build_file_mappings): Likewise.
1083 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1084 (linux_core_info_proc_mappings): Likewise.
1085
1086 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1089 * NEWS: Mention new options.
1090 * f-array-walker.h: New file.
1091 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1092 (repack_array_slices): New static global.
1093 (show_repack_array_slices): New function.
1094 (fortran_array_slicing_debug): New static global.
1095 (show_fortran_array_slicing_debug): New function.
1096 (value_f90_subarray): Delete.
1097 (skip_undetermined_arglist): Delete.
1098 (class fortran_array_repacker_base_impl): New class.
1099 (class fortran_lazy_array_repacker_impl): New class.
1100 (class fortran_array_repacker_impl): New class.
1101 (fortran_value_subarray): Complete rewrite.
1102 (set_fortran_list): New static global.
1103 (show_fortran_list): Likewise.
1104 (_initialize_f_language): Register new commands.
1105 (fortran_adjust_dynamic_array_base_address_hack): New function.
1106 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1107 Declare.
1108 * f-valprint.c: Include 'f-array-walker.h'.
1109 (class fortran_array_printer_impl): New class.
1110 (f77_print_array_1): Delete.
1111 (f77_print_array): Delete.
1112 (fortran_print_array): New.
1113 (f_value_print_inner): Update to call fortran_print_array.
1114 * gdbtypes.c: Include 'f-lang.h'.
1115 (resolve_dynamic_type_internal): Call
1116 fortran_adjust_dynamic_array_base_address_hack.
1117
1118 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1119
1120 * breakpoint.c (struct watch_options): New struct.
1121 (watch_option_defs): New static global.
1122 (make_watch_options_def_group): New function.
1123 (watch_maybe_just_location): Convert option parsing.
1124 (watch_command_completer): New function.
1125 (_initialize_breakpoint): Build help text using options mechanism.
1126
1127 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1128
1129 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1130 (watch_command_1): Update parameter types. Convert locals to
1131 bool.
1132 (watch_command_wrapper): Change parameter type.
1133 (watch_maybe_just_location): Change locals to bool.
1134 (rwatch_command_wrapper): Update parameter type.
1135 (awatch_command_wrapper): Update parameter type.
1136 * breakpoint.h (watch_command_wrapper): Change parameter type.
1137 (rwatch_command_wrapper): Update parameter type.
1138 (awatch_command_wrapper): Update parameter type.
1139 * eval.c (fetch_subexp_value): Change parameter type.
1140 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1141 'false' not '0'.
1142 * value.h (fetch_subexp_value): Change parameter type in
1143 declaration.
1144
1145 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1148 skip_spaces.
1149
1150 2020-11-18 Keith Seitz <keiths@redhat.com>
1151
1152 * linux-tdep.c (dump_note_entry_p): Return true instead of
1153 checking `filename'.
1154
1155 2020-11-18 Tom de Vries <tdevries@suse.de>
1156
1157 * debuginfod-support.c (debuginfod_source_query)
1158 (debuginfod_debuginfo_query): Also do early exit if
1159 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1160
1161 2020-11-18 Tom de Vries <tdevries@suse.de>
1162
1163 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1164 warning.
1165
1166 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1169 callers. Move doc here.
1170 * gdbtypes.c (get_array_bounds): Return bool
1171
1172 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1175 assert.
1176 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1177 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1178 case to the default.
1179
1180 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * printcmd.c: Include 'safe-ctype.c'.
1183 (skip_over_slash_fmt): New function.
1184 (print_command_completer): Call skip_over_slash_fmt.
1185 (display_and_x_command_completer): New function.
1186 (_initialize_printcmd): Add command completion for 'x' and
1187 'display'.
1188
1189 2020-11-16 Pedro Alves <pedro@palves.net>
1190
1191 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1192 (get_prev_frame_always_1): ... to here.
1193 * inline-frame.c (inline_frame_this_id): Mention
1194 get_prev_frame_always_1 in comment.
1195
1196 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1197
1198 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1199 handling.
1200 (value_less): Add fixed-point handling.
1201
1202 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1203
1204 * eval.c (binop_promote): Add fixed-point type handling.
1205 * valarith.c (fixed_point_binop): New function.
1206 (scalar_binop): Add fixed-point type handling.
1207 (value_neg): Add fixed-point type handling.
1208 * valops.c (value_cast_to_fixed_point): New function.
1209 (value_cast): Add fixed-point type handling.
1210
1211 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1212
1213 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1214 range types.
1215 * c-typeprint.c (c_type_print_varspec_prefix)
1216 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1217 TYPE_CODE_FIXED_POINT handling.
1218 * p-typeprint.c (pascal_type_print_varspec_prefix)
1219 (pascal_type_print_varspec_suffix): Likewise.
1220 * typeprint.c (print_type_fixed_point): New function.
1221 * typeprint.h (print_type_fixed_point): Add declaration.
1222
1223 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1224
1225 * printcmd.c (print_scalar_formatted): Add fixed-point type
1226 handling when options->format is set.
1227
1228 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1229
1230 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1231 * dwarf2/read.c (get_dwarf2_rational_constant)
1232 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1233 (has_zero_over_zero_small_attribute): New functions.
1234 read_base_type, set_die_type): Add fixed-point type handling.
1235 * gdb-gdb.py.in: Add fixed-point type handling.
1236 * gdbtypes.c: #include "gmp-utils.h".
1237 (create_range_type, set_type_code): Add fixed-point type handling.
1238 (init_fixed_point_type): New function.
1239 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1240 (print_fixed_point_type_info): New function.
1241 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1242 handling.
1243 (fixed_point_type_storage): New typedef.
1244 (fixed_point_objfile_key): New static global.
1245 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1246 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1247 functions.
1248 * gdbtypes.h: #include "gmp-utils.h".
1249 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1250 (union type_specific) <fixed_point_info>: New field.
1251 (struct fixed_point_type_info): New struct.
1252 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1253 (init_fixed_point_type, is_fixed_point_type)
1254 (fixed_point_type_base_type, fixed_point_scaling_factor)
1255 (allocate_fixed_point_type_info): Add declarations.
1256 * valprint.c (generic_val_print_fixed_point): New function.
1257 (generic_value_print): Add fixed-point type handling.
1258 * value.c (value_as_address, unpack_long): Add fixed-point type
1259 handling.
1260
1261 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1262
1263 * utils.h (uinteger_pow): Add declaration.
1264 * utils.c (uinteger_pow): Moved here (without changes)...
1265 * valarith.c (uinteger_pow): ... from here.
1266
1267 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1268
1269 * gmp-utils.h, gmp-utils.c: New file.
1270 * unittests/gmp-utils-selftests.c: New file.
1271 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1272 unittests/gmp-utils-selftests.c.
1273 (COMMON_SFILES) Add gmp-utils.c.
1274 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1275
1276 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1277
1278 * configure.ac: Generate an error if a usable GMP library
1279 could not be found.
1280 * configure: Regenerate.
1281
1282 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1283
1284 * configure.ac: Add support for --with-libgmp-prefix.
1285 * Makefile.in (LIBGMP): New variable.
1286 (CLIBS): Include $(LIBGMP).
1287 * configure, config.in: Regenerate
1288
1289 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 PR cli/26879
1292 * f-exp.y (COMPLETE): New token.
1293 (exp): Two new rules for tab-completion.
1294 (saw_name_at_eof): New static global.
1295 (last_was_structop): Likewise.
1296 (yylex): Set new variables, and return COMPLETE token at the end
1297 of the input stream in some cases.
1298
1299 2020-11-14 Tom Tromey <tom@tromey.com>
1300
1301 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1302
1303 2020-11-14 Tom Tromey <tom@tromey.com>
1304
1305 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1306
1307 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1308
1309 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1310
1311 2020-11-13 Tom Tromey <tom@tromey.com>
1312
1313 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1314 (convert_escape, parse_one_string): Constify.
1315
1316 2020-11-13 Keith Seitz <keiths@redhat.com>
1317
1318 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1319 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1320 outside of ELF segments" warning for debugin
1321
1322 2020-11-13 Keith Seitz <keiths@redhat.com>
1323
1324 PR gdb/23034
1325 * elfread.c (elf_symfile_segments): Output a BFD file name
1326 for the "Loadable section ... outside of ELF segments" warning.
1327
1328 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1329
1330 PR gdb/26835
1331 * arm-tdep.c (class arm_instruction_reader): New.
1332 (target_arm_instruction_reader): New.
1333 (arm_analyze_prologue): Add instruction reader parameter and use
1334 it. Use arm_expand_immediate.
1335 (class target_arm_instruction_reader): Adjust.
1336 (arm_skip_prologue): Adjust.
1337 (arm_expand_immediate): New.
1338 (arm_scan_prologue): Adjust.
1339 (arm_analyze_prologue_test): New.
1340 (class test_arm_instruction_reader): New.
1341
1342 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1343
1344 * f-lang.c (fortran_argument_convert): Add declaration. Add
1345 header comment, taken from f-lang.h. Make static.
1346 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1347 (fortran_argument_convert): Delete declaration.
1348
1349 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1350
1351 * ada-exp.y (find_primitive_type): Make parameter const.
1352 * ada-lang.c (enum ada_primitive_types): Delete.
1353 (ada_language::language_arch_info): Update.
1354 * c-lang.c (enum c_primitive_types): Delete.
1355 (c_language_arch_info): Update.
1356 (enum cplus_primitive_types): Delete.
1357 (cplus_language::language_arch_info): Update.
1358 * d-lang.c (enum d_primitive_types): Delete.
1359 (d_language::language_arch_info): Update.
1360 * f-lang.c (enum f_primitive_types): Delete.
1361 (f_language::language_arch_info): Update.
1362 * go-lang.c (enum go_primitive_types): Delete.
1363 (go_language::language_arch_info): Update.
1364 * language.c (auto_or_unknown_language::language_arch_info):
1365 Update.
1366 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1367 (language_string_char_type): Add header comment, call function in
1368 language_arch_info.
1369 (language_bool_type): Likewise
1370 (language_arch_info::bool_type): Define.
1371 (language_lookup_primitive_type_1): Delete.
1372 (language_lookup_primitive_type): Rewrite as a templated function
1373 to call function in language_arch_info, then instantiate twice.
1374 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1375 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1376 (language_arch_info::lookup_primitive_type): Define twice with
1377 different signatures.
1378 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1379 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1380 member function in language_arch_info.
1381 * language.h (language_arch_info): Complete rewrite.
1382 (language_lookup_primitive_type): Make templated.
1383 * m2-lang.c (enum m2_primitive_types): Delete.
1384 (m2_language::language_arch_info): Update.
1385 * opencl-lang.c (OCL_P_TYPE): Delete.
1386 (enum opencl_primitive_types): Delete.
1387 (opencl_type_data): Delete.
1388 (builtin_opencl_type): Delete.
1389 (lookup_opencl_vector_type): Update.
1390 (opencl_language::language_arch_info): Update, lots of content
1391 moved from...
1392 (build_opencl_types): ...here. This function is now deleted.
1393 (_initialize_opencl_language): Delete.
1394 * p-lang.c (enum pascal_primitive_types): Delete.
1395 (pascal_language::language_arch_info): Update.
1396 * rust-lang.c (enum rust_primitive_types): Delete.
1397 (rust_language::language_arch_info): Update.
1398
1399 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1400
1401 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1402 dwarf2_queue_guard.
1403
1404 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1405
1406 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1407 comment.
1408
1409 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1410
1411 * dwarf2/read.c (dwarf_read_debug_printf,
1412 dwarf_read_debug_printf_v): New macros, use throughout the file.
1413
1414 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1415
1416 PR tdep/27015
1417 * arc-linux-tdep.c (collect_register): Populate "eret" by
1418 "pc" value from the regcache when asked for "pc" value.
1419
1420 2020-11-12 Tom Tromey <tom@tromey.com>
1421
1422 PR rust/26799:
1423 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1424 exist.
1425
1426 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * features/Makefile (XMLTOC): Add rx.xml.
1429 (FEATURE_XMLFILES): Remove rx.xml.
1430 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1431 * features/rx.c: Regenerate.
1432 * features/rx.xml: Wrap in `target` tags, and reindent.
1433 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1434 structure.
1435 (maint_print_c_tdesc_opt_def): New typedef.
1436 (maint_print_c_tdesc_opt_defs): New static global.
1437 (make_maint_print_c_tdesc_options_def_group): New function.
1438 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1439 print single feature C file for target descriptions containing a
1440 single feature.
1441 (maint_print_c_tdesc_cmd_completer): New function.
1442 (_initialize_target_descriptions): Update call to register command
1443 completer, and include command line flag in help text.
1444
1445 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1448 numbers.
1449 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1450 enum values.
1451
1452 2020-11-10 Tom Tromey <tom@tromey.com>
1453
1454 * value.h (internalvar_name): Update.
1455 * value.c (internalvar_name): Make return type const.
1456
1457 2020-11-10 Tom Tromey <tom@tromey.com>
1458
1459 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1460 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1461 const.
1462
1463 2020-11-10 Tom Tromey <tom@tromey.com>
1464
1465 * objc-lang.h (value_nsstring): Update.
1466 * objc-lang.c (value_nsstring): Make "ptr" const.
1467
1468 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1469
1470 * expprint.c (print_subexp_funcall): Increment expression position
1471 after reading argument count.
1472 * f-lang.c (print_subexp_f): Skip over opcode before calling
1473 common function.
1474 (dump_subexp_body_f): Likewise.
1475
1476 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1477
1478 PR python/26832
1479 * configure: Regenerate.
1480 * configure.ac: Check for python modules ctypes instead of
1481 itertools.
1482
1483 2020-11-06 Pedro Alves <pedro@palves.net>
1484
1485 * macroexp.c (struct macro_buffer): Split in two classes. Add
1486 uses adjusted.
1487 (struct shared_macro_buffer): New, factored out from struct
1488 macro_buffer.
1489 (struct growable_macro_buffer): New, factored out from struct
1490 macro_buffer.
1491 (set_token, get_comment, get_identifier, get_pp_number)
1492 (get_character_constant, get_string_literal, get_punctuator)
1493 (get_next_token_for_substitution): Constify parameters.
1494 (substitute_args): Constify locals.
1495
1496 2020-11-05 Tom Tromey <tom@tromey.com>
1497
1498 * dwarf2/read.c (read_cutu_die_from_dwo)
1499 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1500 (build_type_psymtabs_1): Update.
1501 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1502 parameter.
1503 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1504 Don't read section. Add assert.
1505
1506 2020-11-04 Tom Tromey <tromey@adacore.com>
1507
1508 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1509
1510 2020-11-04 Tom Tromey <tromey@adacore.com>
1511
1512 * ada-typeprint.c (ada_print_type): Handle __T types.
1513
1514 2020-11-04 Tom Tromey <tromey@adacore.com>
1515
1516 * dwarf2/read.c (add_partial_symbol, process_die):
1517 Handle DW_TAG_array_type.
1518 (is_type_tag_for_partial): Add "lang" parameter.
1519 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1520
1521 2020-11-04 Tom Tromey <tromey@adacore.com>
1522
1523 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1524
1525 2020-11-04 Tom Tromey <tromey@adacore.com>
1526
1527 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1528 array.
1529
1530 2020-11-04 Tom Tromey <tromey@adacore.com>
1531
1532 * gdbtypes.c (update_static_array_size): Handle bit stride.
1533
1534 2020-11-04 Tom Tromey <tromey@adacore.com>
1535
1536 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1537
1538 2020-11-04 Tom Tromey <tromey@adacore.com>
1539
1540 * ada-lang.c (ada_is_any_packed_array_type): New function.
1541 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1542
1543 2020-11-04 Tom Tromey <tromey@adacore.com>
1544
1545 * dwarf2/read.c (recognize_bound_expression)
1546 (quirk_ada_thick_pointer): New functions.
1547 (read_array_type): Call quirk_ada_thick_pointer.
1548 (set_die_type): Add "skip_data_location" parameter.
1549 (quirk_ada_thick_pointer): New function.
1550 (process_structure_scope): Call quirk_ada_thick_pointer.
1551 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1552 (decode_packed_array_bitsize): Handle thick pointers without
1553 parallel types.
1554 (ada_is_gnat_encoded_packed_array_type): Rename from
1555 ada_is_packed_array_type.
1556 (ada_is_constrained_packed_array_type): Update.
1557 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1558 (ada_value_print_1): Use ada_get_decoded_value.
1559
1560 2020-11-04 Tom Tromey <tromey@adacore.com>
1561
1562 * ada-lang.c (recursively_update_array_bitsize): New function.
1563 (decode_constrained_packed_array_type): Call it.
1564
1565 2020-11-04 Tom Tromey <tromey@adacore.com>
1566
1567 * ada-lang.c (to_fixed_array_type): Error if
1568 decode_constrained_packed_array_type returns NULL.
1569
1570 2020-11-04 Tom Tromey <tromey@adacore.com>
1571
1572 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1573
1574 2020-11-02 Tom Tromey <tromey@adacore.com>
1575
1576 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1577 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1578 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1579 * amd64-ravenscar-thread.c: New file.
1580 * amd64-ravenscar-thread.h: New file.
1581 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1582 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1583
1584 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1585
1586 * main.c (execute_cmdargs): New function.
1587 (captured_main_1): Make use of execute_cmdargs.
1588
1589 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * NEWS: Mention changes to config file search path.
1592 * main.c
1593
1594 2020-11-02 Tom Tromey <tromey@adacore.com>
1595
1596 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1597 (python_GdbModuleDef): Move earlier. Now static.
1598 (do_start_initialization): Consolidate some IS_PY3K blocks.
1599
1600 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * aarch64-linux-tdep.c: Fix indentation.
1603 * aarch64-ravenscar-thread.c: Fix indentation.
1604 * aarch64-tdep.c: Fix indentation.
1605 * aarch64-tdep.h: Fix indentation.
1606 * ada-lang.c: Fix indentation.
1607 * ada-lang.h: Fix indentation.
1608 * ada-tasks.c: Fix indentation.
1609 * ada-typeprint.c: Fix indentation.
1610 * ada-valprint.c: Fix indentation.
1611 * ada-varobj.c: Fix indentation.
1612 * addrmap.c: Fix indentation.
1613 * addrmap.h: Fix indentation.
1614 * agent.c: Fix indentation.
1615 * aix-thread.c: Fix indentation.
1616 * alpha-bsd-nat.c: Fix indentation.
1617 * alpha-linux-tdep.c: Fix indentation.
1618 * alpha-mdebug-tdep.c: Fix indentation.
1619 * alpha-nbsd-tdep.c: Fix indentation.
1620 * alpha-obsd-tdep.c: Fix indentation.
1621 * alpha-tdep.c: Fix indentation.
1622 * amd64-bsd-nat.c: Fix indentation.
1623 * amd64-darwin-tdep.c: Fix indentation.
1624 * amd64-linux-nat.c: Fix indentation.
1625 * amd64-linux-tdep.c: Fix indentation.
1626 * amd64-nat.c: Fix indentation.
1627 * amd64-obsd-tdep.c: Fix indentation.
1628 * amd64-tdep.c: Fix indentation.
1629 * amd64-windows-tdep.c: Fix indentation.
1630 * annotate.c: Fix indentation.
1631 * arc-tdep.c: Fix indentation.
1632 * arch-utils.c: Fix indentation.
1633 * arch/arm-get-next-pcs.c: Fix indentation.
1634 * arch/arm.c: Fix indentation.
1635 * arm-linux-nat.c: Fix indentation.
1636 * arm-linux-tdep.c: Fix indentation.
1637 * arm-nbsd-tdep.c: Fix indentation.
1638 * arm-pikeos-tdep.c: Fix indentation.
1639 * arm-tdep.c: Fix indentation.
1640 * arm-tdep.h: Fix indentation.
1641 * arm-wince-tdep.c: Fix indentation.
1642 * auto-load.c: Fix indentation.
1643 * auxv.c: Fix indentation.
1644 * avr-tdep.c: Fix indentation.
1645 * ax-gdb.c: Fix indentation.
1646 * ax-general.c: Fix indentation.
1647 * bfin-linux-tdep.c: Fix indentation.
1648 * block.c: Fix indentation.
1649 * block.h: Fix indentation.
1650 * blockframe.c: Fix indentation.
1651 * bpf-tdep.c: Fix indentation.
1652 * break-catch-sig.c: Fix indentation.
1653 * break-catch-syscall.c: Fix indentation.
1654 * break-catch-throw.c: Fix indentation.
1655 * breakpoint.c: Fix indentation.
1656 * breakpoint.h: Fix indentation.
1657 * bsd-uthread.c: Fix indentation.
1658 * btrace.c: Fix indentation.
1659 * build-id.c: Fix indentation.
1660 * buildsym-legacy.h: Fix indentation.
1661 * buildsym.c: Fix indentation.
1662 * c-typeprint.c: Fix indentation.
1663 * c-valprint.c: Fix indentation.
1664 * c-varobj.c: Fix indentation.
1665 * charset.c: Fix indentation.
1666 * cli/cli-cmds.c: Fix indentation.
1667 * cli/cli-decode.c: Fix indentation.
1668 * cli/cli-decode.h: Fix indentation.
1669 * cli/cli-script.c: Fix indentation.
1670 * cli/cli-setshow.c: Fix indentation.
1671 * coff-pe-read.c: Fix indentation.
1672 * coffread.c: Fix indentation.
1673 * compile/compile-cplus-types.c: Fix indentation.
1674 * compile/compile-object-load.c: Fix indentation.
1675 * compile/compile-object-run.c: Fix indentation.
1676 * completer.c: Fix indentation.
1677 * corefile.c: Fix indentation.
1678 * corelow.c: Fix indentation.
1679 * cp-abi.h: Fix indentation.
1680 * cp-namespace.c: Fix indentation.
1681 * cp-support.c: Fix indentation.
1682 * cp-valprint.c: Fix indentation.
1683 * cris-linux-tdep.c: Fix indentation.
1684 * cris-tdep.c: Fix indentation.
1685 * darwin-nat-info.c: Fix indentation.
1686 * darwin-nat.c: Fix indentation.
1687 * darwin-nat.h: Fix indentation.
1688 * dbxread.c: Fix indentation.
1689 * dcache.c: Fix indentation.
1690 * disasm.c: Fix indentation.
1691 * dtrace-probe.c: Fix indentation.
1692 * dwarf2/abbrev.c: Fix indentation.
1693 * dwarf2/attribute.c: Fix indentation.
1694 * dwarf2/expr.c: Fix indentation.
1695 * dwarf2/frame.c: Fix indentation.
1696 * dwarf2/index-cache.c: Fix indentation.
1697 * dwarf2/index-write.c: Fix indentation.
1698 * dwarf2/line-header.c: Fix indentation.
1699 * dwarf2/loc.c: Fix indentation.
1700 * dwarf2/macro.c: Fix indentation.
1701 * dwarf2/read.c: Fix indentation.
1702 * dwarf2/read.h: Fix indentation.
1703 * elfread.c: Fix indentation.
1704 * eval.c: Fix indentation.
1705 * event-top.c: Fix indentation.
1706 * exec.c: Fix indentation.
1707 * exec.h: Fix indentation.
1708 * expprint.c: Fix indentation.
1709 * f-lang.c: Fix indentation.
1710 * f-typeprint.c: Fix indentation.
1711 * f-valprint.c: Fix indentation.
1712 * fbsd-nat.c: Fix indentation.
1713 * fbsd-tdep.c: Fix indentation.
1714 * findvar.c: Fix indentation.
1715 * fork-child.c: Fix indentation.
1716 * frame-unwind.c: Fix indentation.
1717 * frame-unwind.h: Fix indentation.
1718 * frame.c: Fix indentation.
1719 * frv-linux-tdep.c: Fix indentation.
1720 * frv-tdep.c: Fix indentation.
1721 * frv-tdep.h: Fix indentation.
1722 * ft32-tdep.c: Fix indentation.
1723 * gcore.c: Fix indentation.
1724 * gdb_bfd.c: Fix indentation.
1725 * gdbarch.sh: Fix indentation.
1726 * gdbarch.c: Re-generate
1727 * gdbarch.h: Re-generate.
1728 * gdbcore.h: Fix indentation.
1729 * gdbthread.h: Fix indentation.
1730 * gdbtypes.c: Fix indentation.
1731 * gdbtypes.h: Fix indentation.
1732 * glibc-tdep.c: Fix indentation.
1733 * gnu-nat.c: Fix indentation.
1734 * gnu-nat.h: Fix indentation.
1735 * gnu-v2-abi.c: Fix indentation.
1736 * gnu-v3-abi.c: Fix indentation.
1737 * go32-nat.c: Fix indentation.
1738 * guile/guile-internal.h: Fix indentation.
1739 * guile/scm-cmd.c: Fix indentation.
1740 * guile/scm-frame.c: Fix indentation.
1741 * guile/scm-iterator.c: Fix indentation.
1742 * guile/scm-math.c: Fix indentation.
1743 * guile/scm-ports.c: Fix indentation.
1744 * guile/scm-pretty-print.c: Fix indentation.
1745 * guile/scm-value.c: Fix indentation.
1746 * h8300-tdep.c: Fix indentation.
1747 * hppa-linux-nat.c: Fix indentation.
1748 * hppa-linux-tdep.c: Fix indentation.
1749 * hppa-nbsd-nat.c: Fix indentation.
1750 * hppa-nbsd-tdep.c: Fix indentation.
1751 * hppa-obsd-nat.c: Fix indentation.
1752 * hppa-tdep.c: Fix indentation.
1753 * hppa-tdep.h: Fix indentation.
1754 * i386-bsd-nat.c: Fix indentation.
1755 * i386-darwin-nat.c: Fix indentation.
1756 * i386-darwin-tdep.c: Fix indentation.
1757 * i386-dicos-tdep.c: Fix indentation.
1758 * i386-gnu-nat.c: Fix indentation.
1759 * i386-linux-nat.c: Fix indentation.
1760 * i386-linux-tdep.c: Fix indentation.
1761 * i386-nto-tdep.c: Fix indentation.
1762 * i386-obsd-tdep.c: Fix indentation.
1763 * i386-sol2-nat.c: Fix indentation.
1764 * i386-tdep.c: Fix indentation.
1765 * i386-tdep.h: Fix indentation.
1766 * i386-windows-tdep.c: Fix indentation.
1767 * i387-tdep.c: Fix indentation.
1768 * i387-tdep.h: Fix indentation.
1769 * ia64-libunwind-tdep.c: Fix indentation.
1770 * ia64-libunwind-tdep.h: Fix indentation.
1771 * ia64-linux-nat.c: Fix indentation.
1772 * ia64-linux-tdep.c: Fix indentation.
1773 * ia64-tdep.c: Fix indentation.
1774 * ia64-tdep.h: Fix indentation.
1775 * ia64-vms-tdep.c: Fix indentation.
1776 * infcall.c: Fix indentation.
1777 * infcmd.c: Fix indentation.
1778 * inferior.c: Fix indentation.
1779 * infrun.c: Fix indentation.
1780 * iq2000-tdep.c: Fix indentation.
1781 * language.c: Fix indentation.
1782 * linespec.c: Fix indentation.
1783 * linux-fork.c: Fix indentation.
1784 * linux-nat.c: Fix indentation.
1785 * linux-tdep.c: Fix indentation.
1786 * linux-thread-db.c: Fix indentation.
1787 * lm32-tdep.c: Fix indentation.
1788 * m2-lang.c: Fix indentation.
1789 * m2-typeprint.c: Fix indentation.
1790 * m2-valprint.c: Fix indentation.
1791 * m32c-tdep.c: Fix indentation.
1792 * m32r-linux-tdep.c: Fix indentation.
1793 * m32r-tdep.c: Fix indentation.
1794 * m68hc11-tdep.c: Fix indentation.
1795 * m68k-bsd-nat.c: Fix indentation.
1796 * m68k-linux-nat.c: Fix indentation.
1797 * m68k-linux-tdep.c: Fix indentation.
1798 * m68k-tdep.c: Fix indentation.
1799 * machoread.c: Fix indentation.
1800 * macrocmd.c: Fix indentation.
1801 * macroexp.c: Fix indentation.
1802 * macroscope.c: Fix indentation.
1803 * macrotab.c: Fix indentation.
1804 * macrotab.h: Fix indentation.
1805 * main.c: Fix indentation.
1806 * mdebugread.c: Fix indentation.
1807 * mep-tdep.c: Fix indentation.
1808 * mi/mi-cmd-catch.c: Fix indentation.
1809 * mi/mi-cmd-disas.c: Fix indentation.
1810 * mi/mi-cmd-env.c: Fix indentation.
1811 * mi/mi-cmd-stack.c: Fix indentation.
1812 * mi/mi-cmd-var.c: Fix indentation.
1813 * mi/mi-cmds.c: Fix indentation.
1814 * mi/mi-main.c: Fix indentation.
1815 * mi/mi-parse.c: Fix indentation.
1816 * microblaze-tdep.c: Fix indentation.
1817 * minidebug.c: Fix indentation.
1818 * minsyms.c: Fix indentation.
1819 * mips-linux-nat.c: Fix indentation.
1820 * mips-linux-tdep.c: Fix indentation.
1821 * mips-nbsd-tdep.c: Fix indentation.
1822 * mips-tdep.c: Fix indentation.
1823 * mn10300-linux-tdep.c: Fix indentation.
1824 * mn10300-tdep.c: Fix indentation.
1825 * moxie-tdep.c: Fix indentation.
1826 * msp430-tdep.c: Fix indentation.
1827 * namespace.h: Fix indentation.
1828 * nat/fork-inferior.c: Fix indentation.
1829 * nat/gdb_ptrace.h: Fix indentation.
1830 * nat/linux-namespaces.c: Fix indentation.
1831 * nat/linux-osdata.c: Fix indentation.
1832 * nat/netbsd-nat.c: Fix indentation.
1833 * nat/x86-dregs.c: Fix indentation.
1834 * nbsd-nat.c: Fix indentation.
1835 * nbsd-tdep.c: Fix indentation.
1836 * nios2-linux-tdep.c: Fix indentation.
1837 * nios2-tdep.c: Fix indentation.
1838 * nto-procfs.c: Fix indentation.
1839 * nto-tdep.c: Fix indentation.
1840 * objfiles.c: Fix indentation.
1841 * objfiles.h: Fix indentation.
1842 * opencl-lang.c: Fix indentation.
1843 * or1k-tdep.c: Fix indentation.
1844 * osabi.c: Fix indentation.
1845 * osabi.h: Fix indentation.
1846 * osdata.c: Fix indentation.
1847 * p-lang.c: Fix indentation.
1848 * p-typeprint.c: Fix indentation.
1849 * p-valprint.c: Fix indentation.
1850 * parse.c: Fix indentation.
1851 * ppc-linux-nat.c: Fix indentation.
1852 * ppc-linux-tdep.c: Fix indentation.
1853 * ppc-nbsd-nat.c: Fix indentation.
1854 * ppc-nbsd-tdep.c: Fix indentation.
1855 * ppc-obsd-nat.c: Fix indentation.
1856 * ppc-ravenscar-thread.c: Fix indentation.
1857 * ppc-sysv-tdep.c: Fix indentation.
1858 * ppc64-tdep.c: Fix indentation.
1859 * printcmd.c: Fix indentation.
1860 * proc-api.c: Fix indentation.
1861 * producer.c: Fix indentation.
1862 * producer.h: Fix indentation.
1863 * prologue-value.c: Fix indentation.
1864 * prologue-value.h: Fix indentation.
1865 * psymtab.c: Fix indentation.
1866 * python/py-arch.c: Fix indentation.
1867 * python/py-bpevent.c: Fix indentation.
1868 * python/py-event.c: Fix indentation.
1869 * python/py-event.h: Fix indentation.
1870 * python/py-finishbreakpoint.c: Fix indentation.
1871 * python/py-frame.c: Fix indentation.
1872 * python/py-framefilter.c: Fix indentation.
1873 * python/py-inferior.c: Fix indentation.
1874 * python/py-infthread.c: Fix indentation.
1875 * python/py-objfile.c: Fix indentation.
1876 * python/py-prettyprint.c: Fix indentation.
1877 * python/py-registers.c: Fix indentation.
1878 * python/py-signalevent.c: Fix indentation.
1879 * python/py-stopevent.c: Fix indentation.
1880 * python/py-stopevent.h: Fix indentation.
1881 * python/py-threadevent.c: Fix indentation.
1882 * python/py-tui.c: Fix indentation.
1883 * python/py-unwind.c: Fix indentation.
1884 * python/py-value.c: Fix indentation.
1885 * python/py-xmethods.c: Fix indentation.
1886 * python/python-internal.h: Fix indentation.
1887 * python/python.c: Fix indentation.
1888 * ravenscar-thread.c: Fix indentation.
1889 * record-btrace.c: Fix indentation.
1890 * record-full.c: Fix indentation.
1891 * record.c: Fix indentation.
1892 * reggroups.c: Fix indentation.
1893 * regset.h: Fix indentation.
1894 * remote-fileio.c: Fix indentation.
1895 * remote.c: Fix indentation.
1896 * reverse.c: Fix indentation.
1897 * riscv-linux-tdep.c: Fix indentation.
1898 * riscv-ravenscar-thread.c: Fix indentation.
1899 * riscv-tdep.c: Fix indentation.
1900 * rl78-tdep.c: Fix indentation.
1901 * rs6000-aix-tdep.c: Fix indentation.
1902 * rs6000-lynx178-tdep.c: Fix indentation.
1903 * rs6000-nat.c: Fix indentation.
1904 * rs6000-tdep.c: Fix indentation.
1905 * rust-lang.c: Fix indentation.
1906 * rx-tdep.c: Fix indentation.
1907 * s12z-tdep.c: Fix indentation.
1908 * s390-linux-tdep.c: Fix indentation.
1909 * score-tdep.c: Fix indentation.
1910 * ser-base.c: Fix indentation.
1911 * ser-mingw.c: Fix indentation.
1912 * ser-uds.c: Fix indentation.
1913 * ser-unix.c: Fix indentation.
1914 * serial.c: Fix indentation.
1915 * sh-linux-tdep.c: Fix indentation.
1916 * sh-nbsd-tdep.c: Fix indentation.
1917 * sh-tdep.c: Fix indentation.
1918 * skip.c: Fix indentation.
1919 * sol-thread.c: Fix indentation.
1920 * solib-aix.c: Fix indentation.
1921 * solib-darwin.c: Fix indentation.
1922 * solib-frv.c: Fix indentation.
1923 * solib-svr4.c: Fix indentation.
1924 * solib.c: Fix indentation.
1925 * source.c: Fix indentation.
1926 * sparc-linux-tdep.c: Fix indentation.
1927 * sparc-nbsd-tdep.c: Fix indentation.
1928 * sparc-obsd-tdep.c: Fix indentation.
1929 * sparc-ravenscar-thread.c: Fix indentation.
1930 * sparc-tdep.c: Fix indentation.
1931 * sparc64-linux-tdep.c: Fix indentation.
1932 * sparc64-nbsd-tdep.c: Fix indentation.
1933 * sparc64-obsd-tdep.c: Fix indentation.
1934 * sparc64-tdep.c: Fix indentation.
1935 * stabsread.c: Fix indentation.
1936 * stack.c: Fix indentation.
1937 * stap-probe.c: Fix indentation.
1938 * stubs/ia64vms-stub.c: Fix indentation.
1939 * stubs/m32r-stub.c: Fix indentation.
1940 * stubs/m68k-stub.c: Fix indentation.
1941 * stubs/sh-stub.c: Fix indentation.
1942 * stubs/sparc-stub.c: Fix indentation.
1943 * symfile-mem.c: Fix indentation.
1944 * symfile.c: Fix indentation.
1945 * symfile.h: Fix indentation.
1946 * symmisc.c: Fix indentation.
1947 * symtab.c: Fix indentation.
1948 * symtab.h: Fix indentation.
1949 * target-float.c: Fix indentation.
1950 * target.c: Fix indentation.
1951 * target.h: Fix indentation.
1952 * tic6x-tdep.c: Fix indentation.
1953 * tilegx-linux-tdep.c: Fix indentation.
1954 * tilegx-tdep.c: Fix indentation.
1955 * top.c: Fix indentation.
1956 * tracefile-tfile.c: Fix indentation.
1957 * tracepoint.c: Fix indentation.
1958 * tui/tui-disasm.c: Fix indentation.
1959 * tui/tui-io.c: Fix indentation.
1960 * tui/tui-regs.c: Fix indentation.
1961 * tui/tui-stack.c: Fix indentation.
1962 * tui/tui-win.c: Fix indentation.
1963 * tui/tui-winsource.c: Fix indentation.
1964 * tui/tui.c: Fix indentation.
1965 * typeprint.c: Fix indentation.
1966 * ui-out.h: Fix indentation.
1967 * unittests/copy_bitwise-selftests.c: Fix indentation.
1968 * unittests/memory-map-selftests.c: Fix indentation.
1969 * utils.c: Fix indentation.
1970 * v850-tdep.c: Fix indentation.
1971 * valarith.c: Fix indentation.
1972 * valops.c: Fix indentation.
1973 * valprint.c: Fix indentation.
1974 * valprint.h: Fix indentation.
1975 * value.c: Fix indentation.
1976 * value.h: Fix indentation.
1977 * varobj.c: Fix indentation.
1978 * vax-tdep.c: Fix indentation.
1979 * windows-nat.c: Fix indentation.
1980 * windows-tdep.c: Fix indentation.
1981 * xcoffread.c: Fix indentation.
1982 * xml-syscall.c: Fix indentation.
1983 * xml-tdesc.c: Fix indentation.
1984 * xstormy16-tdep.c: Fix indentation.
1985 * xtensa-config.c: Fix indentation.
1986 * xtensa-linux-nat.c: Fix indentation.
1987 * xtensa-linux-tdep.c: Fix indentation.
1988 * xtensa-tdep.c: Fix indentation.
1989
1990 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1991 Craig Blackmore <craig.blackmore@embecosm.com>
1992
1993 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1994 as an unsigned value.
1995
1996 2020-11-01 Tom Tromey <tom@tromey.com>
1997
1998 * dbxread.c (dbx_end_psymtab): Update.
1999 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2000 (build_type_psymtabs_reader): Update.
2001 * xcoffread.c (xcoff_end_psymtab): Update.
2002 * ctfread.c (scan_partial_symbols): Update.
2003 * psymtab.c (sort_pst_symbols): Remove.
2004 (partial_symtab::end): Rename from end_psymtab_common. Inline
2005 sort_pst_symbols.
2006 * psympriv.h (struct partial_symtab) <end>: New method.
2007 (end_psymtab_common): Don't declare.
2008
2009 2020-11-01 Tom Tromey <tom@tromey.com>
2010
2011 * symmisc.c (count_psyms): New function.
2012 (print_objfile_statistics): Use it.
2013 * psymtab.c (append_psymbol_to_list): Remove.
2014 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2015 * objfiles.h (struct objstats) <n_psyms>: Remove.
2016
2017 2020-11-01 Tom Tromey <tom@tromey.com>
2018
2019 * dbxread.c (dbx_end_psymtab): Update.
2020 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2021 (build_type_psymtabs_reader): Update.
2022 * xcoffread.c (xcoff_end_psymtab): Update.
2023 * ctfread.c (scan_partial_symbols): Update.
2024 * psympriv.h (end_psymtab_common): Update.
2025 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2026 (sort_pst_symbols): Likewise.
2027
2028 2020-11-01 Tom Tromey <tom@tromey.com>
2029
2030 * dbxread.c (dbx_symfile_read): Update.
2031 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2032 * xcoffread.c (xcoff_initial_scan): Update.
2033 * psympriv.h (init_psymbol_list): Don't declare.
2034 * psymtab.c (init_psymbol_list): Remove.
2035
2036 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2037
2038 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2039 gnat_encoded_fixed_type_info. Update all callers.
2040
2041 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2042
2043 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2044 line too long.
2045
2046 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2047
2048 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2049 cast_from_fixed. Update all callers.
2050 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2051 Update all callers.
2052 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2053 Update all callers.
2054 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2055 ada_scaling_factor.
2056 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2057 to print_gnat_encoded_fixed_point_type.
2058 * ada-valprint.c: Likewise.
2059
2060 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2061
2062 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2063 (debug_prefixed_printf): Add check of debug_displaced flag.
2064 * linux-nat.c (linux_nat_debug_printf): Add check of
2065 debug_linux_nat flag.
2066
2067 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 * infrun.c (infrun_debug_printf_1): Remove.
2070 (displaced_debug_printf_1): Remove.
2071 (stop_all_threads): Use debug_prefixed_printf.
2072 * infrun.h (infrun_debug_printf_1): Remove.
2073 (infrun_debug_printf): Use debug_prefixed_printf.
2074 (displaced_debug_printf_1): Remove.
2075 (displaced_debug_printf): Use debug_prefixed_printf.
2076 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2077 (linux_nat_debug_printf): Use debug_prefixed_printf.
2078
2079 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2080
2081 * configure: Re-generate.
2082 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2083 AC_LANG_PROGRAM.
2084
2085 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2086
2087 * configure: Re-generate.
2088
2089 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2090
2091 * configure: Re-generate.
2092
2093 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * configure: Re-generate.
2096
2097 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2098
2099 * configure: Re-generate.
2100
2101 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2102
2103 * acinclude.m4: Modernize.
2104 * configure: Re-generate.
2105
2106 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2107
2108 * configure.ac: Modernize.
2109 * configure: Re-generate.
2110
2111 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2112
2113 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2114 * configure: Re-generate.
2115 * configure.ac: Remove AM_PROG_CC_STDC.
2116
2117 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2118
2119 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2120 AC_CANONICAL_SYSTEM.
2121 * configure: Re-generate.
2122
2123 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2124
2125 * infrun.h (displaced_debug_printf): New macro. Replace
2126 displaced debug prints throughout to use it.
2127 (displaced_debug_printf_1): New declaration.
2128 (displaced_step_dump_bytes): Return string, remove ui_file
2129 parameter, update all callers.
2130 * infrun.c (displaced_debug_printf_1): New function.
2131 (displaced_step_dump_bytes): Return string, remove ui_file
2132 parameter
2133
2134 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2135
2136 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2137
2138 2020-10-30 Tom Tromey <tromey@adacore.com>
2139
2140 * Makefile.in (stamp-init): Depend on config.status.
2141
2142 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2143
2144 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2145
2146 2020-10-30 Pedro Alves <pedro@palves.net>
2147
2148 * thread.c (lookup_selected_frame): Move ...
2149 * frame.c (lookup_selected_frame): ... here.
2150
2151 2020-10-30 Pedro Alves <pedro@palves.net>
2152
2153 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2154 * frame.c
2155 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2156 Use save_selected_frame. Save language as well.
2157 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2158 Use restore_selected_frame, and restore language as well.
2159 (selected_frame_id, selected_frame_level): New.
2160 (selected_frame): Update comments.
2161 (save_selected_frame, restore_selected_frame): New.
2162 (get_selected_frame): Use lookup_selected_frame.
2163 (get_selected_frame_if_set): Delete.
2164 (select_frame): Record selected_frame_level and selected_frame_id.
2165 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2166 fields.
2167 (get_selected_frame): Make 'message' parameter optional.
2168 (get_selected_frame_if_set): Delete declaration.
2169 (select_frame): Update comments.
2170 (save_selected_frame, restore_selected_frame)
2171 (lookup_selected_frame): Declare.
2172 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2173 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2174 New field.
2175 (save_infcall_control_state): Use save_selected_frame.
2176 (restore_selected_frame): Delete.
2177 (restore_infcall_control_state): Use restore_selected_frame.
2178 * stack.c (select_frame_command_core, frame_command_core): Use
2179 get_selected_frame.
2180 * thread.c (restore_selected_frame): Rename to ...
2181 (lookup_selected_frame): ... this and make extern. Select the
2182 current frame if the frame level is -1.
2183 (scoped_restore_current_thread::restore): Also restore the
2184 language.
2185 (scoped_restore_current_thread::~scoped_restore_current_thread):
2186 Don't try/catch.
2187 (scoped_restore_current_thread::scoped_restore_current_thread):
2188 Save the language as well. Use save_selected_frame.
2189
2190 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2191
2192 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2193 documentation.
2194 * gdbarch.h: Re-generate.
2195
2196 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2197
2198 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2199 parameter.
2200 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2201 Likewise.
2202 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2203 Likewise.
2204 * arch-utils.c (default_displaced_step_hw_singlestep):
2205 Likewise.
2206 * arch-utils.h (default_displaced_step_hw_singlestep):
2207 Likewise.
2208 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2209 Likewise.
2210 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2211 Likewise.
2212 * gdbarch.c: Re-generate.
2213 * gdbarch.h: Re-generate.
2214 * infrun.c (resume_1): Adjust.
2215
2216 2020-10-29 Tom Tromey <tom@tromey.com>
2217
2218 * progspace.c (program_space::~program_space): Don't call
2219 exec_close.
2220
2221 2020-10-29 Tom Tromey <tom@tromey.com>
2222
2223 * exec.c (exec_target::close): Don't change current program
2224 space.
2225
2226 2020-10-29 Tom Tromey <tom@tromey.com>
2227
2228 * symfile.c (add_symbol_file_command): Update.
2229 * exec.c (program_space::add_target_sections): Rename.
2230 * symfile-mem.c (symbol_file_add_from_memory): Update.
2231 * progspace.h (struct program_space) <add_target_sections>:
2232 Declare new overload.
2233 * exec.h (add_target_sections_of_objfile): Don't declare.
2234
2235 2020-10-29 Tom Tromey <tom@tromey.com>
2236
2237 * solib.c (solib_map_sections): Update.
2238 * exec.c (program_space::add_target_sections): Now a method.
2239 (exec_file_attach): Update.
2240 * exec.h (add_target_sections): Don't declare.
2241 * progspace.h (struct program_space) <add_target_sections>:
2242 Declare.
2243
2244 2020-10-29 Tom Tromey <tom@tromey.com>
2245
2246 * progspace.h (struct program_space) <remove_target_sections>:
2247 Declare.
2248 * exec.c (program_space::remove_target_sections): Now a method.
2249 * exec.h (remove_target_sections): Don't declare.
2250
2251 2020-10-29 Tom Tromey <tom@tromey.com>
2252
2253 * inferior.c (delete_inferior): Update.
2254 * progspace.c (program_space::empty): Rename from
2255 program_space_empty_p. Return bool.
2256 * progspace.h (struct program_space) <empty>: New method.
2257 (program_space_empty_p): Don't declare.
2258
2259 2020-10-29 Tom Tromey <tom@tromey.com>
2260
2261 * progspace.c (program_space::~program_space): Don't call
2262 clear_program_space_solib_cache.
2263 (program_space::clear_solib_cache): Rename from
2264 clear_solib_cache.
2265 * solib.c (handle_solib_event): Update.
2266 * progspace.h (struct program_space) <clear_solib_cache>: New
2267 method.
2268 (clear_program_space_solib_cache): Don't declare.
2269
2270 2020-10-29 Tom Tromey <tom@tromey.com>
2271
2272 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2273 * target.c (info_target_command): Update.
2274 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2275 (symbol_file_clear, reread_symbols): Update.
2276 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2277 * stabsread.c (scan_file_globals): Update.
2278 * solib.c (update_solib_list): Update.
2279 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2280 (svr4_fetch_objfile_link_map, enable_break)
2281 (svr4_relocate_main_executable)
2282 (svr4_iterate_over_objfiles_in_search_order): Update.
2283 * solib-frv.c (lm_base, enable_break)
2284 (frv_relocate_main_executable): Update.
2285 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2286 (frv_fetch_objfile_link_map): Update.
2287 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2288 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2289 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2290 * remote.c (remote_target::get_offsets): Update.
2291 (remote_target::start_remote)
2292 (extended_remote_target::post_attach): Update.
2293 * objfiles.c (entry_point_address_query): Update.
2294 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2295 * minsyms.c (get_symbol_leading_char): Update.
2296 * frame.c (inside_main_func): Update.
2297 * progspace.h (symfile_objfile): Remove macro.
2298
2299 2020-10-29 Tom Tromey <tom@tromey.com>
2300
2301 * exec.c (exec_file_attach): Update.
2302 * progspace.c (program_space::exec_close): Update.
2303 * progspace.h (struct program_space) <ebfd>: Now a
2304 gdb_bfd_ref_ptr.
2305 <set_exec_bfd>: Change argument type.
2306 <exec_bfd>: Update.
2307
2308 2020-10-29 Tom Tromey <tom@tromey.com>
2309
2310 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2311 * symfile.c (reread_symbols): Update.
2312 * symfile-mem.c (add_symbol_file_from_memory_command)
2313 (add_vsyscall_page): Update.
2314 * source-cache.c (source_cache::get_plain_source_lines): Update.
2315 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2316 (svr4_current_sos_direct, svr4_exec_displacement)
2317 (svr4_relocate_main_executable): Update.
2318 (svr4_iterate_over_objfiles_in_search_order): Update.
2319 * solib-frv.c (enable_break2, enable_break): Update.
2320 * solib-dsbt.c (lm_base, enable_break): Update.
2321 * solib-darwin.c (find_program_interpreter)
2322 (darwin_solib_create_inferior_hook): Update.
2323 * sol-thread.c (rw_common, ps_pdmodel): Update.
2324 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2325 * remote.c (compare_sections_command)
2326 (remote_target::trace_set_readonly_regions): Update.
2327 * remote-sim.c (get_sim_inferior_data)
2328 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2329 (gdbsim_target_open, gdbsim_target::files_info): Update.
2330 * exec.h (exec_bfd): Remove macro.
2331 * progspace.c (initialize_progspace): Update.
2332 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2333 Update.
2334 * nto-procfs.c (nto_procfs_target::post_attach)
2335 (nto_procfs_target::create_inferior): Update.
2336 * maint.c (maintenance_info_sections): Update.
2337 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2338 Update.
2339 * infcmd.c (post_create_inferior): Update.
2340 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2341 (objfile_find_memory_regions): Update.
2342 * exec.c (validate_exec_file, exec_file_attach)
2343 (exec_read_partial_read_only, print_section_info): Update.
2344 * corelow.c (core_target_open): Update.
2345 * corefile.c (reopen_exec_file, validate_files): Update.
2346 * arm-tdep.c (gdb_print_insn_arm): Update.
2347 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2348 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2349 methods.
2350
2351 2020-10-29 Tom Tromey <tom@tromey.com>
2352
2353 * progspace.h (current_target_sections): Remove macro.
2354 * solib-svr4.c (scan_dyntag): Update.
2355 * solib-dsbt.c (scan_dyntag): Update.
2356 * exec.c (exec_target::close): Update.
2357 (add_target_sections, add_target_sections_of_objfile)
2358 (remove_target_sections, exec_target::get_section_table)
2359 (exec_target::files_info, set_section_command)
2360 (exec_set_section_address, exec_target::has_memory)
2361 (exec_target::has_memory): Update.
2362
2363 2020-10-29 Tom Tromey <tom@tromey.com>
2364
2365 * source-cache.c (source_cache::get_plain_source_lines): Use
2366 current_program_space.
2367 * corefile.c (reopen_exec_file): Use current_program_space.
2368 * exec.c (exec_file_attach): Use current_program_space.
2369 * exec.h (exec_bfd_mtime): Remove.
2370
2371 2020-10-29 Tom Tromey <tom@tromey.com>
2372
2373 * gcore.c (default_gcore_mach): Remove.
2374 (create_gcore_bfd): Update.
2375
2376 2020-10-29 Tom Tromey <tom@tromey.com>
2377
2378 * progspace.c (program_space::exec_close): New method, from
2379 exec_close in exec.c.
2380 * exec.c (exec_close): Move to progspace.c.
2381 (exec_target::close, exec_file_attach): Update.
2382 * progspace.h (struct program_space) <exec_close>: Declare
2383 method.
2384
2385 2020-10-29 Tom Tromey <tom@tromey.com>
2386
2387 * progspace.h (struct program_space) <exec_filename>: Rename from
2388 pspace_exec_filename. Now a unique_xmalloc_ptr.
2389 * inferior.c (print_selected_inferior): Update.
2390 (print_inferior): Update.
2391 * mi/mi-main.c (print_one_inferior): Update.
2392 * exec.h (exec_filename): Remove macro.
2393 * corefile.c (get_exec_file): Update.
2394 * exec.c (exec_close): Update.
2395 (exec_file_attach): Update.
2396 * progspace.c (clone_program_space): Update.
2397 (print_program_space): Update.
2398
2399 2020-10-29 Tom Tromey <tom@tromey.com>
2400
2401 * target-section.h (struct target_section): Add constructor.
2402 * exec.c (build_section_table, add_target_sections_of_objfile):
2403 Update.
2404 * corelow.c (core_target::build_file_mappings): Update.
2405
2406 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2407
2408 PR gdb/19318
2409 * inferior.c (detach_inferior_command): Restore the current thread.
2410 (kill_inferior_command): Ditto.
2411
2412 2020-10-28 Tom de Vries <tdevries@suse.de>
2413
2414 PR symtab/26772
2415 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2416 map, check it in the "best match" loop.
2417
2418 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2419
2420 * m32c-tdep.c: Remove unused includes.
2421
2422 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2423
2424 * xtensa-tdep.c: Remove includes.
2425
2426 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2427
2428 * breakpoint.c (struct condition_command_opts): New struct.
2429 (condition_command_option_defs): New static global.
2430 (make_condition_command_options_def_group): New function.
2431 (condition_completer): Update to consider the '-force' flag.
2432 (condition_command): Use gdb::option for the '-force' flag.
2433
2434 2020-10-27 Tom de Vries <tdevries@suse.de>
2435
2436 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2437 symbols in section check.
2438
2439 2020-10-27 Tom de Vries <tdevries@suse.de>
2440
2441 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2442
2443 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2444
2445 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2446 * breakpoint.c: Update the help text of the 'condition' and 'break'
2447 commands.
2448 (set_breakpoint_condition): Take a new bool parameter
2449 to control whether condition definition should be forced even when
2450 the condition expression is invalid in all of the current locations.
2451 (condition_command): Update the call to 'set_breakpoint_condition'.
2452 (find_condition_and_thread): Take the "-force-condition" flag into
2453 account.
2454 * linespec.c (linespec_keywords): Add "-force-condition" as an
2455 element.
2456 (FORCE_KEYWORD_INDEX): New #define.
2457 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2458 as a keyword.
2459 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2460 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2461 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2462 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2463
2464 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2465
2466 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2467 * breakpoint.c (set_breakpoint_location_condition): New function.
2468 (set_breakpoint_condition): Disable a breakpoint location if parsing
2469 the condition string gives an error.
2470 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2471 (build_target_condition_list): Ditto.
2472 (build_target_command_list): Ditto.
2473 (build_bpstat_chain): Ditto.
2474 (print_one_breakpoint_location): Ditto.
2475 (print_one_breakpoint): Ditto.
2476 (breakpoint_1): Ditto.
2477 (bp_location::bp_location): Ditto.
2478 (locations_are_equal): Ditto.
2479 (update_breakpoint_locations): Ditto.
2480 (enable_disable_bp_num_loc): Ditto.
2481 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2482 (find_condition_and_thread_for_sals): New static function.
2483 (create_breakpoint): Call find_condition_and_thread_for_sals.
2484 (location_to_sals): Call find_condition_and_thread_for_sals instead
2485 of find_condition_and_thread.
2486
2487 2020-10-26 Tom de Vries <tdevries@suse.de>
2488
2489 * dwarf2/read.c (process_full_comp_unit): Call
2490 dwarf2_find_base_address.
2491
2492 2020-10-26 Tom Tromey <tromey@adacore.com>
2493
2494 * gdbtypes.c (create_range_type): Revert previous patch. Add
2495 comment.
2496
2497 2020-10-26 Pedro Alves <pedro@palves.net>
2498
2499 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2500 (my_waitpid): Use gdb::handle_eintr.
2501
2502 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2503
2504 * acinclude.m4: Update ptrace.m4 path.
2505 * ptrace.m4: Moved to gdbsupport.
2506
2507 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2508
2509 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2510 instead of target_gdbarch.
2511
2512 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2513
2514 * jit.c (jit_reader_load_command): Pass current inferior.
2515 (jit_inferior_init): Change parameter type to inferior, use it.
2516 (jit_inferior_created): Remove.
2517 (jit_inferior_created_hook): Pass inferior parameter down.
2518 (_initialize_jit): Use jit_inferior_created_hook instead of
2519 jit_inferior_created.
2520 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2521 * infrun.c (follow_exec): Pass inferior to
2522 jit_inferior_created_hook.
2523
2524 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2525
2526 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2527 parameter and use it.
2528 (thread_db_inferior_created): Pass inferior argument.
2529
2530 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2531
2532 * aix-thread.c (aix_thread_inferior_created): Add inferior
2533 parameter.
2534 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2535 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2536 * jit.c (jit_inferior_created): Likewise.
2537 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2538 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2539 * observable.h (inferior_created): Likewise.
2540 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2541 * symfile-mem.c (add_vsyscall_page): Likewise.
2542 * infcmd.c (post_create_inferior): Pass inferior argument.
2543
2544 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2545
2546 GDB 10.1 released.
2547
2548 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2549
2550 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2551 to ada_check_typedef.
2552
2553 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2554
2555 * f-exp.y (f_parse): Rename to...
2556 (f_language::parser): ...this.
2557 * f-lang.c (f_get_encoding): Rename to...
2558 (f_language::get_encoding): ...this.
2559 (f_op_print_tab): Rename to...
2560 (f_language::op_print_tab): ...this.
2561 (exp_descriptor_f): Rename to...
2562 (f_language::exp_descriptor_tab): ...this.
2563 (class f_language): Moved to f-lang.h.
2564 (f_language::language_arch_info): New function, moved out of class
2565 declaration.
2566 (f_language::search_name_hash): Likewise.
2567 (f_language::lookup_symbol_nonlocal): Likewise.
2568 (f_language::get_symbol_name_matcher_inner): Likewise.
2569 * f-lang.h: Add 'valprint.h' include.
2570 (class f_language): Moved here from f-lang.c.
2571 * f-typeprint.c (f_type_print_args): Delete commented out
2572 declaration.
2573 (f_print_typedef): Rename to...
2574 (f_language::print_typedef): ...this.
2575 (f_print_type): Rename to...
2576 (f_language::print_type): ...this.
2577 (f_type_print_varspec_prefix): Delete declaration and rename to...
2578 (f_language::f_type_print_varspec_prefix): ...this.
2579 (f_type_print_varspec_suffix): Delete declaration and rename to...
2580 (f_language::f_type_print_varspec_suffix): ...this.
2581 (f_type_print_base): Delete declaration and rename to...
2582 (f_language::f_type_print_base): ...this.
2583 * f-valprint.c (f_value_print_inner): Rename to...
2584 (f_language::value_print_inner): ...this.
2585 * parse.c: Delete 'f-lang.h' include.
2586
2587 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * language.h (language_defn::print_type): Add variable names in
2590 declaration, and update header comment.
2591
2592 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 * ada-lang.c (ada_language::demangle): Rename to...
2595 (ada_language::demangle_symbol): ...this.
2596 * c-lang.c (cplus_language::demangle): Rename to...
2597 (cplus_language::demangle_symbol): ...this.
2598 * d-lang.c (d_language::demangle): Rename to...
2599 (d_language::demangle_symbol): ...this.
2600 * f-lang.c (f_language::demangle): Rename to...
2601 (f_language::demangle_symbol): ...this.
2602 * go-lang.c (go_language::demangle): Rename to...
2603 (go_language::demangle_symbol): ...this.
2604 * language.c (language_demangle): Update call to demangle_symbol.
2605 (auto_or_unknown_language::demangle): Rename to...
2606 (auto_or_unknown_language::demangle_symbol): ...this.
2607 * language.h (language_defn::demangle): Rename to...
2608 (language_defn::demangle_symbol): ...this.
2609 * objc-lang.c (objc_language::demangle): Rename to...
2610 (objc_language::demangle_symbol): ...this.
2611 * rust-lang.c (rust_language::demangle): Rename to...
2612 (rust_language::demangle_symbol): ...this.
2613
2614 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2615
2616 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2617 (iterate_over_file_blocks): Replace use of macro with the macros
2618 definition.
2619
2620 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2623 * valprint.c (maybe_print_array_index): Replace use of macro with
2624 the macros definition.
2625
2626 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2627
2628 * ada-lang.c (ada_language::print_array_index): Call value_print
2629 directly.
2630 * language.c (language_defn::print_array_index): Likewise.
2631 * language.h (LA_VALUE_PRINT): Delete.
2632 * valprint.c (value_print): Call value_print on the
2633 current_language directly.
2634
2635 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * language.h (LA_PRINT_TYPEDEF): Delete.
2638 * typeprint.c (typedef_print): Call print_typedef directly on the
2639 current_language object.
2640
2641 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2642
2643 * m2-exp.y (m2_parse): Rename to...
2644 (m2_language::parser): ...this. Update function signature.
2645 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2646 (m2_op_print): Rename to...
2647 (m2_language::op_print_tab): ...this, and make const.
2648 (exp_descriptor_modula2): Rename to...
2649 (m2_language::exp_descriptor_modula2): ...this.
2650 (class m2_language): Move to m2-lang.h.
2651 (m2_language::language_arch_info): New function, moved out of
2652 class declaration.
2653 (m2_language::printchar): New function, body from m2_printchar.
2654 (m2_language::printstr): New function, moved out of class
2655 declaration.
2656 (m2_language::emitchar): Likewise.
2657 * m2-lang.h (m2_parse): Delete declaration.
2658 (m2_print_typedef): Delete declaration.
2659 (m2_value_print_inner): Delete declaration.
2660 (class m2_language): Class declaration moved from m2-lang.c,
2661 larger functions are left in m2-lang.c.
2662 * m2-typeprint.c (m2_print_typedef): Rename to...
2663 (m2_language::print_typedef): ...this, and update function
2664 signature.
2665 * m2-valprint.c (m2_value_print_inner): Rename to...
2666 (m2_language::value_print_inner): ...this, replace use of
2667 LA_PRINT_STRING with a direct call to printstr member function,
2668 and update recursive call.
2669
2670 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * language.c (default_is_string_type_p): Delete, implementation
2673 moved into auto_or_unknown_language::is_string_type_p.
2674 (unk_op_print_tab): Moved into
2675 auto_or_unknown_language::opcode_print_table.
2676 (unknown_language_arch_info): Delete, implementation moved into
2677 auto_or_unknown_language::language_arch_info.
2678 (class auto_or_unknown_language): New class, member functions
2679 copied from unknown_language class, with some updates.
2680 (class unknown_language): Most member functions moved into
2681 auto_or_unknown_language class. Inherit from
2682 auto_or_unknown_language class.
2683 (class auto_language): Inherit from auto_or_unknown_language.
2684 Delete most member functions.
2685
2686 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2687
2688 * stabsread.c (read_member_functions): Remove gdb_assert.
2689
2690 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2691
2692 * gdbtypes.c (init_complex_type): Check target type name.
2693
2694 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2695
2696 * target-debug.h (target_debug_print_struct_target_ops_p):
2697 Remove.
2698 (target_debug_print_async_callback_ftype_p): Remove.
2699 (target_debug_print_struct_trace_state_variable_p): Remove.
2700 (target_debug_print_struct_traceframe_info_p): Remove.
2701 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2702 (target_debug_print_enum_btrace_format): Remove.
2703 (target_debug_print_enum_info_proc_what): Remove.
2704 (target_debug_print_thread_info_pp): Remove.
2705
2706 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2707
2708 * target.h (struct target_ops) <make_corefile_notes>:
2709 Change return type to unique pointer.
2710 * target.c (dummy_make_corefile_notes): Likewise.
2711 * exec.c (struct exec_target) <make_corefile_notes>:
2712 Likewise.
2713 (exec_target::make_corefile_notes): Likewise.
2714 * procfs.c (class procfs_target) <make_corefile_notes>:
2715 Likewise.
2716 (procfs_do_thread_registers): Adjust to unique pointer.
2717 (struct procfs_corefile_thread_data): Add constructor.
2718 <note_data>: Change type to unique pointer.
2719 (procfs_corefile_thread_callback): Adjust to unique pointer.
2720 (procfs_target::make_corefile_notes): Change return type to
2721 unique pointer.
2722 * target-delegates.c: Re-generate.
2723 * gcore.c (write_gcore_file_1): Adjust.
2724 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2725 New.
2726
2727 2020-10-22 Tom de Vries <tdevries@suse.de>
2728
2729 * block.c (find_block_in_blockvector): Make sure the returned block
2730 contains pc.
2731
2732 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2733
2734 PR gdb/26693
2735 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2736 parameter.
2737 (load_cu): Pass existing CU.
2738 (process_imported_unit_die): Likewise.
2739 (follow_die_offset): Likewise.
2740
2741 2020-10-22 Luis Machado <luis.machado@linaro.org>
2742
2743 * corelow.c (core_target::xfer_partial): Also check for an empty
2744 m_core_unavailable_mappings vector.
2745
2746 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2747
2748 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2749 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2750 * f-exp.y (arglist): Allow for a series of subranges.
2751 (subrange): Add cases for subranges with strides.
2752 * f-lang.c (value_f90_subarray): Catch use of array strides and
2753 throw an error.
2754 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2755
2756 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2757
2758 * expprint.c (print_subexp_standard): Change enum range_type to
2759 range_flag and rename variables to match.
2760 (dump_subexp_body_standard): Likewise.
2761 * expression.h (enum range_type): Rename to...
2762 (enum range_flag): ...this.
2763 (range_types): Rename to...
2764 (range_flags): ...this.
2765 * f-lang.c (value_f90_subarray): Change enum range_type to
2766 range_flag and rename variables to match.
2767 * parse.c (operator_length_standard): Likewise.
2768 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2769 range_type to range_flag.
2770 * rust-lang.c (rust_evaluate_funcall): Likewise.
2771 (rust_range): Likewise.
2772 (rust_compute_range): Likewise.
2773 (rust_subscript): Likewise.
2774
2775 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2776
2777 * expprint.c (print_subexp_standard): Update to reflect changes to
2778 enum range_type.
2779 (dump_subexp_body_standard): Likewise.
2780 * expression.h (enum range_type): Convert to a bit field enum, and
2781 make the enum unsigned.
2782 * f-exp.y (subrange): Update to reflect changes to enum
2783 range_type.
2784 * f-lang.c (value_f90_subarray): Likewise.
2785 * parse.c (operator_length_standard): Likewise.
2786 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2787 * rust-lang.c (rust_range): Likewise.
2788 (rust_compute_range): Likewise.
2789 (rust_subscript): Likewise.
2790
2791 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2792
2793 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2794 (displaced_step_in_progress): Fix comment.
2795
2796 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2799 * gdbarch.c: Re-generate.
2800 * gdbarch.h: Re-generate.
2801 * gcore.c (write_gcore_file_1): Adjust.
2802 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2803 constructor.
2804 <note_data>: Change type to unique pointer.
2805 <abort_iteration>: Change type to bool.
2806 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2807 (fbsd_collect_thread_registers): Return void, adjust.
2808 (struct fbsd_corefile_thread_data): Add construtor.
2809 <note_data>: Change type to unique pointer.
2810 (fbsd_corefile_thread): Adjust.
2811 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2812 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2813 to unique pointer, adjust.
2814 (struct linux_collect_regset_section_cb_data): Add constructor.
2815 <note_data>: Change type to unique pointer.
2816 <abort_iteration>: Change type to bool.
2817 (linux_collect_thread_registers): Return void, adjust.
2818 (struct linux_corefile_thread_data): Add constructor.
2819 <note_data>: Change type to unique pointer.
2820 (linux_corefile_thread): Adjust.
2821 (linux_make_corefile_notes): Return unique pointer, adjust.
2822
2823 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2826 * gdbarch.c: Re-generate.
2827 * gdbarch.h: Re-generate.
2828 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2829 bool.
2830 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2831 Likewise.
2832 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2833 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2834 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2835 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2836
2837 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2838
2839 * gdbarch.sh: Make generated predicates return bool.
2840 * gdbarch.c: Re-generate.
2841 * gdbarch.h: Re-generate.
2842
2843 2020-10-20 Tom Tromey <tom@tromey.com>
2844
2845 * varobj-iter.h (struct varobj_item): Remove typedef.
2846
2847 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2848
2849 * infrun.c (currently_stepping): Change int to bool
2850 (maybe_software_singlestep): Likewise.
2851 (show_stop_on_solib_events): Likewise.
2852 (stepping_past_nonsteppable_watchpoint): Likewise.
2853 (displaced_step_in_progress_any_inferior): Likewise.
2854 (displaced_step_in_progress_thread): Likewise.
2855 (keep_going_stepped_thread): Likewise.
2856 (thread_still_needs_step_over): Likewise.
2857 (start_step_over): Likewise.
2858 (do_target_resume): Likewise.
2859 (resume_1): Likewise.
2860 (clear_proceed_status): Likewise.
2861 (thread_still_needs_step_over_bp): Likewise.
2862 (proceed): Likewise.
2863 (switch_back_to_stepped_thread): Likewise.
2864 (adjust_pc_after_break): Likewise.
2865 (stepped_in_from): Likewise.
2866 (handle_stop_requested): Likewise.
2867 (handle_syscall_event): Likewise.
2868 (handle_no_resumed): Likewise.
2869 (handle_inferior_event): Likewise.
2870 (finish_step_over): Likewise.
2871 (handle_signal_stop): Likewise.
2872 (process_event_stop_test): Likewise.
2873
2874 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2875
2876 * infrun.c (get_displaced_stepping_state): Fix comment.
2877
2878 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2879
2880 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2881
2882 2020-10-19 Tom Tromey <tromey@adacore.com>
2883
2884 PR tui/26719
2885 * tui/tui-winsource.h (struct tui_source_window_base)
2886 <refresh_window>: Rename from refresh_pad.
2887 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2888 Rename from refresh_pad.
2889 (tui_source_window_base::show_source_content)
2890 (tui_source_window_base::do_scroll_horizontal): Update.
2891
2892 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2893
2894 * thread.c (_initialize_thread): Fine-tune the help text of
2895 'info threads'.
2896
2897 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898
2899 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2900
2901 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2902
2903 * breakpoint.c (handle_jit_event): Add an argument, change how
2904 `jit_event_handler` is called.
2905
2906 2020-10-17 Tom Tromey <tom@tromey.com>
2907
2908 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2909 (scan_xcoff_symtab): Update.
2910 * psymtab.h (class psymtab_storage) <global_psymbols,
2911 static_psymbols, current_global_psymbols,
2912 current_static_psymbols>: Remove.
2913 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2914 (match_partial_symbol, lookup_partial_symbol): Update.
2915 (print_partial_symbols): Change parameters.
2916 (dump_psymtab, recursively_search_psymtabs)
2917 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2918 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2919 (concat): Remove.
2920 (end_psymtab_common): Simplify.
2921 (append_psymbol_to_list): Change parameters.
2922 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2923 (init_psymbol_list): Simplify.
2924 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2925 * psympriv.h (struct partial_symtab) <empty>: New method.
2926 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2927 Remove.
2928 <global_psymbols, static_psymbols>: New members.
2929 <add_psymbol>: New methods.
2930 (add_psymbol_to_list): Don't declare.
2931 (psymbol_placement): Move earlier.
2932 * mdebugread.c (parse_partial_symbols): Update.
2933 (handle_psymbol_enumerators): Change parameters.
2934 (mdebug_expand_psymtab): Update.
2935 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2936 (add_partial_symbol): Update.
2937 * dwarf2/index-write.c (write_psymbols): Change parameters.
2938 (write_one_signatured_type): Update.
2939 (recursively_count_psymbols): Update.
2940 (recursively_write_psymbols): Update.
2941 (class debug_names) <recursively_write_psymbols>: Update.
2942 <write_psymbols>: Change parameters.
2943 <write_one_signatured_type>: Update.
2944 * dbxread.c (read_dbx_symtab): Update.
2945 (dbx_end_psymtab): Use partial_symtab::empty.
2946 * ctfread.c (struct ctf_context) <pst>: New member.
2947 (create_partial_symtab): Set it.
2948 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2949 (scan_partial_symbols): Use the psymtab's context. Update.
2950
2951 2020-10-17 Tom Tromey <tom@tromey.com>
2952
2953 * valprint.c (generic_value_print): Remove comment.
2954 * m2-valprint.c (m2_value_print_inner): Remove comment.
2955 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2956 type.
2957
2958 2020-10-17 Tom de Vries <tdevries@suse.de>
2959
2960 PR symtab/26317
2961 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2962 symbol main.
2963
2964 2020-10-14 Tom de Vries <tdevries@suse.de>
2965
2966 PR gdb/26733
2967 * solib.c (solib_contains_address_p): Handle
2968 'solib->sections == nullptr'.
2969
2970 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 PR gdb/26642
2973 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2974 target can't do async.
2975 * target.c (target_wait): Assert that we don't pass
2976 TARGET_WNOHANG to a target that can't async.
2977
2978 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2979
2980 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2981 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2982 * alpha-bsd-nat.c: Adjust include.
2983 * alpha-bsd-tdep.h: Adjust comment.
2984 * alpha-nbsd-tdep.c: Rename to ...
2985 * alpha-netbsd-tdep.c: ... this, adjust include.
2986 * amd64-nbsd-nat.c: Rename to ...
2987 * amd64-netbsd-nat.c: ... this, adjust include.
2988 * amd64-nbsd-tdep.c: Rename to ...
2989 * amd64-netbsd-tdep.c: ... this, adjust include.
2990 * amd64-tdep.h: Adjust include.
2991 * arm-nbsd-nat.c: Rename to ...
2992 * arm-netbsd-nat.c: ... this, adjust include.
2993 * arm-nbsd-tdep.c: Rename to ...
2994 * arm-netbsd-tdep.c: ... this, adjust include.
2995 * arm-nbsd-tdep.h: Rename to ...
2996 * arm-netbsd-tdep.h: ... this, adjust include.
2997 * configure.nat: Adjust file lists.
2998 * configure.tgt: Likewise.
2999 * hppa-nbsd-nat.c: Rename to ...
3000 * hppa-netbsd-nat.c: ... this, adjust include.
3001 * hppa-nbsd-tdep.c: Rename to ...
3002 * hppa-netbsd-tdep.c: ... this, adjust include.
3003 * i386-nbsd-nat.c: Rename to ...
3004 * i386-netbsd-nat.c: ... this, adjust include.
3005 * i386-nbsd-tdep.c: Rename to ...
3006 * i386-netbsd-tdep.c: ... this, adjust include.
3007 * m68k-bsd-nat.c: Adjust include.
3008 * mips-nbsd-nat.c: Rename to ...
3009 * mips-netbsd-nat.c: ... this, adjust include.
3010 * mips-nbsd-tdep.c: Rename to ...
3011 * mips-netbsd-tdep.c: ... this, adjust include.
3012 * mips-nbsd-tdep.h: Rename to ...
3013 * mips-netbsd-tdep.h: ... this.
3014 * nbsd-nat.c: Rename to ...
3015 * netbsd-nat.c: ... this, adjust include.
3016 * nbsd-nat.h: Rename to ...
3017 * netbsd-nat.h: ... this, adjust include.
3018 * nbsd-tdep.c: Rename to ...
3019 * netbsd-tdep.c: ... this, adjust include.
3020 * nbsd-tdep.h: Rename to ...
3021 * netbsd-tdep.h: ... this.
3022 * ppc-nbsd-nat.c: Rename to ...
3023 * ppc-netbsd-nat.c: ... this, adjust include.
3024 * ppc-nbsd-tdep.c: Rename to ...
3025 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3026 * ppc-nbsd-tdep.h: Rename to ...
3027 * ppc-netbsd-tdep.h: ... this.
3028 * sh-nbsd-nat.c: Rename to ...
3029 * sh-netbsd-nat.c: ... this, adjust include.
3030 * sh-nbsd-tdep.c: Rename to ...
3031 * sh-netbsd-tdep.c: ... this, adjust include.
3032 * sparc-nbsd-nat.c: Rename to ...
3033 * sparc-netbsd-nat.c: ... this.
3034 * sparc-nbsd-tdep.c: Rename to ...
3035 * sparc-netbsd-tdep.c: ... this, adjust include.
3036 * sparc64-nbsd-nat.c: Rename to ...
3037 * sparc64-netbsd-nat.c: ... this.
3038 * sparc64-nbsd-tdep.c: Rename to ...
3039 * sparc64-netbsd-tdep.c: ... this, adjust include.
3040 * sparc64-tdep.h: Adjust comment.
3041 * vax-bsd-nat.c: Adjust include.
3042 * vax-nbsd-tdep.c: Rename to ...
3043 * vax-netbsd-tdep.c: ... this, adjust include.
3044
3045 2020-10-12 Tom Tromey <tom@tromey.com>
3046
3047 * target.h (struct target_ops) <get_section_table>: Update.
3048 (target_get_section_table): Update.
3049 * target.c (target_get_section_table, target_section_by_addr)
3050 (memory_xfer_partial_1): Update.
3051 * target-section.h (target_section_table): Now an alias.
3052 * target-delegates.c: Rebuild.
3053 * target-debug.h (target_debug_print_target_section_table_p):
3054 Rename from target_debug_print_struct_target_section_table_p.
3055 * symfile.c (build_section_addr_info_from_section_table): Update.
3056 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3057 * solib-svr4.c (scan_dyntag): Update.
3058 * solib-dsbt.c (scan_dyntag): Update.
3059 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3060 Update.
3061 * record-full.c (record_full_core_target::xfer_partial): Update.
3062 * progspace.h (struct program_space) <target_sections>: Update.
3063 * exec.h (print_section_info): Update.
3064 * exec.c (exec_target::close, build_section_table)
3065 (add_target_sections, add_target_sections_of_objfile)
3066 (remove_target_sections, exec_on_vfork)
3067 (section_table_available_memory)
3068 (section_table_xfer_memory_partial)
3069 (exec_target::get_section_table, exec_target::xfer_partial)
3070 (print_section_info, set_section_command)
3071 (exec_set_section_address, exec_target::has_memory): Update.
3072 * corelow.c (core_target::build_file_mappings)
3073 (core_target::xfer_partial, core_target::info_proc_mappings)
3074 (core_target::info_proc_mappings): Update.
3075 * bfd-target.c (class target_bfd): Update
3076
3077 2020-10-12 Tom Tromey <tom@tromey.com>
3078
3079 * progspace.c (program_space::~program_space): Don't call
3080 clear_section_table.
3081 * exec.h (clear_section_table): Don't declare.
3082 * exec.c (exec_target::close): Update.
3083 (clear_section_table): Remove.
3084
3085 2020-10-12 Tom Tromey <tom@tromey.com>
3086
3087 * exec.c (add_target_sections_of_objfile): Simplify.
3088
3089 2020-10-12 Tom Tromey <tom@tromey.com>
3090
3091 * solib.c (solib_map_sections): Update.
3092 * record-full.c (record_full_core_open_1): Update.
3093 * exec.h (build_section_table): Return a target_section_table.
3094 * exec.c (exec_file_attach): Update.
3095 (build_section_table): Return a target_section_table.
3096 * corelow.c (core_target::core_target): Update.
3097 * bfd-target.c (target_bfd::target_bfd): Update.
3098
3099 2020-10-12 Tom Tromey <tom@tromey.com>
3100
3101 * target.c (target_section_by_addr, memory_xfer_partial_1):
3102 Update.
3103 * target-section.h (struct target_section_table): Use
3104 std::vector.
3105 * symfile.h (build_section_addr_info_from_section_table): Take a
3106 target_section_table.
3107 * symfile.c (build_section_addr_info_from_section_table): Take a
3108 target_section_table.
3109 * solist.h (struct so_list) <sections>: Change type.
3110 <sections_end>: Remove.
3111 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3112 (solib_contains_address_p): Update.
3113 * solib-svr4.c (scan_dyntag): Update.
3114 * solib-dsbt.c (scan_dyntag): Update.
3115 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3116 Update.
3117 * record-full.c (record_full_core_start, record_full_core_end):
3118 Remove.
3119 (record_full_core_sections): New global.
3120 (record_full_core_open_1, record_full_core_target::xfer_partial):
3121 Update.
3122 * exec.h (build_section_table, section_table_xfer_memory_partial)
3123 (add_target_sections): Take a target_section_table.
3124 * exec.c (exec_file_attach, clear_section_table): Update.
3125 (resize_section_table): Remove.
3126 (build_section_table, add_target_sections): Take a
3127 target_section_table.
3128 (add_target_sections_of_objfile, remove_target_sections)
3129 (exec_on_vfork): Update.
3130 (section_table_available_memory): Take a target_section_table.
3131 (section_table_read_available_memory): Update.
3132 (section_table_xfer_memory_partial): Take a target_section_table.
3133 (print_section_info, set_section_command)
3134 (exec_set_section_address, exec_target::has_memory): Update.
3135 * corelow.c (class core_target) <m_core_section_table,
3136 m_core_file_mappings>: Remove braces.
3137 <~core_target>: Remove.
3138 (core_target::core_target): Update.
3139 (core_target::~core_target): Remove.
3140 (core_target::build_file_mappings)
3141 (core_target::xfer_memory_via_mappings)
3142 (core_target::xfer_partial, core_target::info_proc_mappings):
3143 Update.
3144 * bfd-target.c (target_bfd::xfer_partial): Update.
3145 (target_bfd::target_bfd): Update.
3146 (target_bfd::~target_bfd): Remove.
3147
3148 2020-10-12 Tom Tromey <tom@tromey.com>
3149
3150 * target.h (struct target_section, struct target_section_table):
3151 Move to target-section.h.
3152 * target-section.h: New file.
3153
3154 2020-10-12 Pedro Alves <pedro@palves.net>
3155
3156 PR exp/26602
3157 * valops.c (struct struct_field_searcher): New.
3158 (update_search_result): Rename to ...
3159 (struct_field_searcher::update_result): ... this. Simplify
3160 prototype. Record all found fields.
3161 (do_search_struct_field): Rename to ...
3162 (struct_field_searcher::search): ... this. Simplify prototype.
3163 Maintain stack of visited baseclass path. Call update_result for
3164 fields too. Keep searching fields in baseclasses instead of
3165 stopping at the first found field.
3166 (search_struct_field): Use struct_field_searcher. When looking
3167 for fields, report ambiguous access attempts.
3168
3169 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3170
3171 * frame.c (inside_main_func): Check full symbols as well as
3172 minimal symbols.
3173
3174 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3175
3176 * ada-lang.c (advance_wild_match): Rewrite the function's
3177 description. Change the type of target0, t0 and t1 to char.
3178
3179 2020-10-09 Tom Tromey <tromey@adacore.com>
3180
3181 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3182
3183 2020-10-09 Tom Tromey <tromey@adacore.com>
3184
3185 * ada-lang.h (ada_encode): Return std::string.
3186 * ada-lang.c (ada_encode_1): Return std::string.
3187 (ada_encode): Likewise.
3188 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3189 Update.
3190 * ada-exp.y (block_lookup, write_var_or_type): Update.
3191
3192 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3193
3194 PR exp/26714
3195 * printcmd.c (print_formatted): Handle void results as
3196 unformatted prints.
3197
3198 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3199
3200 * arch/aarch32.c (aarch32_create_target_description): Release the
3201 target_desc_up as late as possible.
3202 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3203 * arch/amd64.c (amd64_create_target_description): Likewise.
3204 * arch/arc.c (arc_create_target_description): Return a
3205 target_desc_up, don't release it.
3206 * arch/arc.h (arc_create_target_description): Update declaration.
3207 (arc_lookup_target_description): Move target_desc_up into the
3208 cache, and return a borrowed pointer.
3209 * arch/arm.c (arm_create_target_description): Release the
3210 target_desc_up as late as possible.
3211 * arch/i386.c (i386_create_target_description): Likewise.
3212 * arch/riscv.h (riscv_create_target_description): Update
3213 declaration to match definition.
3214 * arch/tic6x.c (tic6x_create_target_description): Release the
3215 target_desc_up as late as possible.
3216
3217 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3220 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3221
3222 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3223
3224 * source.c (directory_command): Notify observers that "directories"
3225 parameter has changed.
3226
3227 2020-10-08 Tom Tromey <tom@tromey.com>
3228
3229 * cli/cli-cmds.c (print_disassembly): Style function name and
3230 addresses. Add _() wrappers.
3231
3232 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3233
3234 * NEWS: Mention ARC support in GDBserver.
3235
3236 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * arch/aarch32.c (aarch32_create_target_description): Release
3239 unique_ptr returned from allocate_target_description.
3240 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3241 * arch/amd64.c (amd64_create_target_description): Likewise.
3242 * arch/arc.c (arc_create_target_description): Likewise.
3243 * arch/arm.c (arm_create_target_description): Likewise.
3244 * arch/i386.c (i386_create_target_description): Likewise.
3245 * arch/riscv.c (riscv_create_target_description): Update return
3246 type. Handle allocate_target_description returning a unique_ptr.
3247 (riscv_lookup_target_description): Update to handle unique_ptr.
3248 * arch/tic6x.c (tic6x_create_target_description): Release
3249 unique_ptr returned from allocate_target_description.
3250 * features/microblaze-with-stack-protect.c: Regenerate.
3251 * features/microblaze.c: Regenerate.
3252 * features/mips-dsp-linux.c: Regenerate.
3253 * features/mips-linux.c: Regenerate.
3254 * features/mips64-dsp-linux.c: Regenerate.
3255 * features/mips64-linux.c: Regenerate.
3256 * features/nds32.c: Regenerate.
3257 * features/nios2.c: Regenerate.
3258 * features/or1k.c: Regenerate.
3259 * features/rs6000/powerpc-32.c: Regenerate.
3260 * features/rs6000/powerpc-32l.c: Regenerate.
3261 * features/rs6000/powerpc-403.c: Regenerate.
3262 * features/rs6000/powerpc-403gc.c: Regenerate.
3263 * features/rs6000/powerpc-405.c: Regenerate.
3264 * features/rs6000/powerpc-505.c: Regenerate.
3265 * features/rs6000/powerpc-601.c: Regenerate.
3266 * features/rs6000/powerpc-602.c: Regenerate.
3267 * features/rs6000/powerpc-603.c: Regenerate.
3268 * features/rs6000/powerpc-604.c: Regenerate.
3269 * features/rs6000/powerpc-64.c: Regenerate.
3270 * features/rs6000/powerpc-64l.c: Regenerate.
3271 * features/rs6000/powerpc-7400.c: Regenerate.
3272 * features/rs6000/powerpc-750.c: Regenerate.
3273 * features/rs6000/powerpc-860.c: Regenerate.
3274 * features/rs6000/powerpc-altivec32.c: Regenerate.
3275 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3276 * features/rs6000/powerpc-altivec64.c: Regenerate.
3277 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3278 * features/rs6000/powerpc-e500.c: Regenerate.
3279 * features/rs6000/powerpc-e500l.c: Regenerate.
3280 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3281 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3282 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3283 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3284 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3285 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3286 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3287 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3288 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3289 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3290 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3291 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3292 * features/rs6000/powerpc-vsx32.c: Regenerate.
3293 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3294 * features/rs6000/powerpc-vsx64.c: Regenerate.
3295 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3296 * features/rs6000/rs6000.c: Regenerate.
3297 * features/rx.c: Regenerate.
3298 * features/s390-gs-linux64.c: Regenerate.
3299 * features/s390-linux32.c: Regenerate.
3300 * features/s390-linux32v1.c: Regenerate.
3301 * features/s390-linux32v2.c: Regenerate.
3302 * features/s390-linux64.c: Regenerate.
3303 * features/s390-linux64v1.c: Regenerate.
3304 * features/s390-linux64v2.c: Regenerate.
3305 * features/s390-te-linux64.c: Regenerate.
3306 * features/s390-tevx-linux64.c: Regenerate.
3307 * features/s390-vx-linux64.c: Regenerate.
3308 * features/s390x-gs-linux64.c: Regenerate.
3309 * features/s390x-linux64.c: Regenerate.
3310 * features/s390x-linux64v1.c: Regenerate.
3311 * features/s390x-linux64v2.c: Regenerate.
3312 * features/s390x-te-linux64.c: Regenerate.
3313 * features/s390x-tevx-linux64.c: Regenerate.
3314 * features/s390x-vx-linux64.c: Regenerate.
3315 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3316 from allocate_target_description.
3317 * target-descriptions.c (allocate_target_description): Update
3318 return type.
3319 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3320 allocate_target_description.
3321
3322 2020-10-07 Tom Tromey <tromey@adacore.com>
3323
3324 * unittests/search-memory-selftests.c: New file.
3325 * Makefile.in (SELFTESTS_SRCS): Add
3326 unittests/search-memory-selftests.c.
3327
3328 2020-10-07 Tom Tromey <tromey@adacore.com>
3329
3330 PR gdb/16930:
3331 * findcmd.c (_initialize_mem_search): Mention that the range is
3332 inclusive.
3333
3334 2020-10-07 Tom Tromey <tromey@adacore.com>
3335
3336 * target.h (simple_search_memory): Don't declare.
3337 * target.c (simple_search_memory): Move to gdbsupport.
3338 (default_search_memory): Update.
3339 * remote.c (remote_target::search_memory): Update.
3340
3341 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3342
3343 * Makefile.in (COMPILE): Add CXXFLAGS.
3344 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3345 (check-headers): Add CXXFLAGS.
3346
3347 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3348
3349 * arc-linux-tdep.h: New file.
3350 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3351 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3352 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3353 arc_linux_gregset, arc_linux_v2_regset,
3354 arc_linux_iterate_over_regset_sections,
3355 arc_linux_core_read_description): Implement.
3356 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3357 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3358 (arc_gdbarch_features_create): Add.
3359 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3360
3361 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3362
3363 * arch/arc.h: Rename "arc_gdbarch_features" to
3364 "arc_arch_features".
3365 * arc-tdep.h: Likewise.
3366 * arc-tdep.c: Likewise.
3367
3368 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3369
3370 * infcmd.c (attach_command): Remove the redundant call to
3371 `clear_proceed_status`.
3372
3373 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3374
3375 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3376
3377 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3378
3379 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3380 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3381 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3382
3383 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3384
3385 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3386 (_initialize_break_catch_sig): Don't allocate array.
3387
3388 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 * symtab.c (find_pc_line): Return unmapped addresses when the
3391 requested address is also unmapped.
3392
3393 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3396 tui/tui-out.h.
3397
3398 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3401 type::is_vector instead of TYPE_VECTOR.
3402
3403 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3404
3405 * auto-load.c (auto_load_objfile_script_1): Don't use
3406 debugfile_holder as temporary variable when stripping drive
3407 letter.
3408
3409 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3410
3411 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3412 Add TYPE_CODE_COMPLEX.
3413 (amd64_windows_return_value): Fix types returned via XMM0.
3414
3415 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3416
3417 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3418 AArch64/ARM maintainers.
3419
3420 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3421
3422 * NEWS: Mention set/show debug event-loop.
3423
3424 2020-10-02 Tom Tromey <tromey@adacore.com>
3425
3426 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3427 REG_EXTENDED.
3428
3429 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3432 * procfs.c (procfs_inferior_created): Remove.
3433 (_initialize_procfs): Don't register procfs_inferior_created.
3434
3435 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3436
3437 * async-event.c (invoke_async_signal_handlers): Add debug
3438 print.
3439 (check_async_event_handlers): Likewise.
3440 * event-top.c (show_debug_event_loop): New function.
3441 (_initialize_event_top): Register "set debug event-loop"
3442 setting.
3443
3444 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3445
3446 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3447 * debug.h: Remove.
3448 * infrun.c: Include gdbsupport/common-debug.h.
3449 * linux-nat.c: Likewise.
3450
3451 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3452
3453 * async-event.h (create_async_signal_handler): Add name
3454 parameter.
3455 (create_async_event_handler): Likewise.
3456 * async-event.c (struct async_signal_handler) <name>: New field.
3457 (struct async_event_handler) <name>: New field.
3458 (create_async_signal_handler): Assign name.
3459 (create_async_event_handler): Assign name.
3460 * event-top.c (async_init_signals): Pass name when creating
3461 handler.
3462 * infrun.c (_initialize_infrun): Likewise.
3463 * record-btrace.c (record_btrace_push_target): Likewise.
3464 * record-full.c (record_full_open): Likewise.
3465 * remote-notif.c (remote_notif_state_allocate): Likewise.
3466 * remote.c (remote_target::open_1): Likewise.
3467 * tui/tui-win.c (tui_initialize_win): Likewise.
3468
3469 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3470
3471 * async-event.c (initialize_async_signal_handlers): Pass name to
3472 add_file_handler
3473 * event-top.c (ui_register_input_event_handler): Likewise.
3474 * linux-nat.c (linux_nat_target::async): Likewise.
3475 * run-on-main-thread.c (_initialize_run_on_main_thread):
3476 Likewise
3477 * ser-base.c (reschedule): Likewise.
3478 (ser_base_async): Likewise.
3479 * tui/tui-io.c: Likewise.
3480 * top.h (struct ui) <num>: New field.
3481 * top.c (highest_ui_num): New variable.
3482 (ui::ui): Initialize num.
3483
3484 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3485
3486 * observable.h <inferior_created>: Remove parameters. Update all
3487 listeners.
3488 * inferior.h (post_create_inferior): Remove target parameter.
3489 Update all callers.
3490
3491 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3492
3493 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3494 and DW_MACRO_undef_strx.
3495 (dwarf_decode_macros): Likewise
3496 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3497 which is the value of DW_AT_str_offsets_base.
3498 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3499 str_offsets_base.
3500
3501 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3502
3503 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3504
3505 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3506
3507 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3508 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3509
3510 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3511
3512 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3513
3514 2020-09-30 Tom de Vries <tdevries@suse.de>
3515
3516 PR symtab/26683
3517 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3518
3519 2020-09-30 Tom Tromey <tromey@adacore.com>
3520
3521 * dwarf2/read.c (handle_variant): Use constant_value.
3522
3523 2020-09-29 Tom Tromey <tom@tromey.com>
3524
3525 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3526 (read_file_scope, dwarf2_get_pc_bounds)
3527 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3528 (read_structure_type, handle_struct_member_die)
3529 (read_enumeration_type, read_array_type, read_set_type)
3530 (read_tag_pointer_type, read_tag_reference_type)
3531 (read_subroutine_type, read_base_type, read_subrange_type)
3532 (read_full_die_1, partial_die_info::read)
3533 (partial_die_info::read, by, new_symbol)
3534 (dwarf2_const_value_data, dwarf2_const_value_attr)
3535 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3536 (prepare_one_comp_unit): Update.
3537 * dwarf2/attribute.h (DW_UNSND): Remove.
3538
3539 2020-09-29 Tom Tromey <tom@tromey.com>
3540
3541 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3542 (read_subroutine_type, partial_die_info::read)
3543 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3544 (dwarf2_add_member_fn): Update.
3545 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3546 * dwarf2/attribute.c (attribute::as_boolean): New method.
3547
3548 2020-09-29 Tom Tromey <tom@tromey.com>
3549
3550 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3551 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3552 method.
3553 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3554
3555 2020-09-29 Tom Tromey <tom@tromey.com>
3556
3557 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3558 the attribute's form.
3559
3560 2020-09-29 Tom Tromey <tom@tromey.com>
3561
3562 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3563 (dwarf2_add_member_fn): Update.
3564 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3565 * dwarf2/attribute.c (attribute::defaulted): New method, from
3566 is_valid_DW_AT_defaulted.
3567
3568 2020-09-29 Tom Tromey <tom@tromey.com>
3569
3570 * dwarf2/read.c (dw2_get_file_names_reader)
3571 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3572 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3573 (dwarf2_symbol_mark_computed): Use as_unsigned.
3574 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3575 method.
3576 <form_is_section_offset>: Update comment.
3577
3578 2020-09-29 Tom Tromey <tom@tromey.com>
3579
3580 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3581 dwarf2_default_access_attribute. Look up attribute.
3582 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3583 Update.
3584
3585 2020-09-29 Tom Tromey <tom@tromey.com>
3586
3587 * dwarf2/read.c (skip_one_die): Update.
3588 (read_full_die_1): Change how reprocessing is done.
3589 (partial_die_info::read): Update.
3590 (read_attribute_value): Remove need_reprocess parameter.
3591 (read_attribute): Likewise.
3592 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3593 New method.
3594
3595 2020-09-29 Tom Tromey <tom@tromey.com>
3596
3597 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3598 (dwarf2_const_value_attr, dump_die_shallow)
3599 (dwarf2_fetch_constant_bytes): Update.
3600 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3601 comment.
3602 <set_address>: New method.
3603 (DW_ADDR): Remove.
3604 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3605 (attribute::as_string, attribute::as_address): Add assert.
3606
3607 2020-09-29 Tom Tromey <tom@tromey.com>
3608
3609 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3610 (read_attribute_reprocess, read_attribute_value): Update.
3611 (read_attribute): Clear requires_reprocessing.
3612 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3613 form_requires_reprocessing>: New methods.
3614 <string_init>: Clear requires_reprocessing.
3615 <set_unsigned_reprocess>: New method.
3616 <name>: Shrink by one bit.
3617 <requires_reprocessing>: New member.
3618 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3619 method.
3620
3621 2020-09-29 Tom Tromey <tom@tromey.com>
3622
3623 * dwarf2/read.c (read_attribute_value): Update.
3624 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3625 set_unsigned>: New methods.
3626 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3627
3628 2020-09-29 Tom Tromey <tom@tromey.com>
3629
3630 * dwarf2/read.c (get_alignment, read_array_order)
3631 (read_attribute_value, dwarf2_const_value_attr)
3632 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3633 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3634 New methods.
3635 (DW_SND): Remove.
3636
3637 2020-09-29 Tom Tromey <tom@tromey.com>
3638
3639 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3640 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3641 Update.
3642 * dwarf2/attribute.h (struct attribute) <as_signature,
3643 set_signature>: New methods.
3644 (DW_SIGNATURE): Remove.
3645
3646 2020-09-29 Tom Tromey <tom@tromey.com>
3647
3648 * dwarf2/read.c (read_call_site_scope)
3649 (handle_data_member_location, dwarf2_add_member_fn)
3650 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3651 (partial_die_info::read, read_attribute_value)
3652 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3653 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3654 (dwarf2_symbol_mark_computed): Update.
3655 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3656 methods.
3657 (DW_BLOCK): Remove.
3658 * dwarf2/attribute.c (attribute::form_is_block): Add
3659 DW_FORM_data16.
3660
3661 2020-09-29 Tom Tromey <tom@tromey.com>
3662
3663 * dwarf2/read.c (read_cutu_die_from_dwo)
3664 (read_attribute_reprocess, read_attribute_value, read_attribute)
3665 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3666 (dwarf2_fetch_constant_bytes): Update.
3667 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3668 <set_string_noncanonical, set_string_canonical>: New methods.
3669 <string_is_canonical>: Update comment.
3670 <canonical_string_p>: Add assert.
3671 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3672 * dwarf2/attribute.c (attribute::form_is_string): New method.
3673 (attribute::string): Use it.
3674
3675 2020-09-29 Tom Tromey <tom@tromey.com>
3676
3677 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3678 (dump_die_shallow): Use canonical_string_p.
3679 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3680 method.
3681
3682 2020-09-29 Tom Tromey <tom@tromey.com>
3683
3684 * dwarf2/read.c (partial_die_info::read)
3685 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3686 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3687 attribute::as_string.
3688
3689 2020-09-29 Tom Tromey <tom@tromey.com>
3690
3691 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3692 DW_ADDR.
3693 (attribute::string): Don't use DW_STRING.
3694 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3695 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3696
3697 2020-09-29 Tom Tromey <tom@tromey.com>
3698
3699 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3700 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3701 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3702 * dwarf2/attribute.h (struct attribute): Rename methods.
3703 * dwarf2/attribute.c (attribute::as_address): Rename from
3704 value_as_address.
3705 (attribute::as_string): Rename from value_as_string.
3706
3707 2020-09-29 Tom Tromey <tom@tromey.com>
3708
3709 * dwarf2/read.c (partial_die_info::read) <case
3710 DW_AT_linkage_name>: Use value_as_string.
3711 (dwarf2_string_attr): Use value_as_string.
3712 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3713 method.
3714 * dwarf2/attribute.c (attribute::value_as_string): New method.
3715
3716 2020-09-29 Pedro Alves <pedro@palves.net>
3717
3718 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3719 defined before using '#pragma GCC diagnostic' instead of checking
3720 __clang__.
3721
3722 2020-09-28 Tom Tromey <tom@tromey.com>
3723
3724 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3725 (handle_signal_stop): Update.
3726 * procfs.c (procfs_target::insert_watchpoint): Update.
3727 * target.h (target_have_steppable_watchpoint): Now a function.
3728
3729 2020-09-28 Tom Tromey <tom@tromey.com>
3730
3731 * infrun.c (set_schedlock_func): Update.
3732 * target.h (target_can_lock_scheduler): Now a function.
3733
3734 2020-09-28 Tom Tromey <tom@tromey.com>
3735
3736 * inferior.h (class inferior) <has_execution>: Update.
3737 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3738 * valops.c (find_function_in_inferior)
3739 (value_allocate_space_in_inferior): Update.
3740 * top.c (kill_or_detach): Update.
3741 * target.c (target_preopen, set_target_permissions): Update.
3742 (target_has_execution_current): Remove.
3743 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3744 Update.
3745 * solib.c (update_solib_list, reload_shared_libraries): Update.
3746 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3747 * solib-dsbt.c (enable_break): Update.
3748 * score-tdep.c (score7_fetch_inst): Update.
3749 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3750 Update.
3751 * remote.c (remote_target::start_remote)
3752 (remote_target::remote_check_symbols, remote_target::open_1)
3753 (remote_target::remote_detach_1, remote_target::verify_memory)
3754 (remote_target::xfer_partial, remote_target::read_description)
3755 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3756 * record-full.c (record_full_open_1): Update.
3757 * record-btrace.c (record_btrace_target_open): Update.
3758 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3759 (value_nsstring): Update.
3760 * linux-thread-db.c (add_thread_db_info)
3761 (thread_db_find_new_threads_silently, check_thread_db_callback)
3762 (try_thread_db_load_1, record_thread): Update.
3763 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3764 Update.
3765 * linux-fork.c (checkpoint_command): Update.
3766 * infrun.c (set_non_stop, set_observer_mode)
3767 (check_multi_target_resumption, for_each_just_stopped_thread)
3768 (maybe_remove_breakpoints, normal_stop)
3769 (class infcall_suspend_state): Update.
3770 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3771 (info_program_command, attach_command): Update.
3772 * infcall.c (call_function_by_hand_dummy): Update.
3773 * inf-loop.c (inferior_event_handler): Update.
3774 * gcore.c (gcore_command, derive_heap_segment): Update.
3775 * exec.c (exec_file_command): Update.
3776 * eval.c (evaluate_subexp): Update.
3777 * compile/compile.c (compile_to_object): Update.
3778 * cli/cli-dump.c (restore_command): Update.
3779 * breakpoint.c (update_watchpoint)
3780 (update_inserted_breakpoint_locations)
3781 (insert_breakpoint_locations, get_bpstat_thread): Update.
3782 * target.h (target_has_execution): Remove macro.
3783 (target_has_execution_current): Don't declare.
3784 (target_has_execution): Rename from target_has_execution_1. Add
3785 argument default.
3786
3787 2020-09-28 Tom Tromey <tom@tromey.com>
3788
3789 * mi/mi-main.c (exec_reverse_continue)
3790 (mi_cmd_list_target_features): Update.
3791 * infrun.c (set_exec_direction_func): Update.
3792 * target.c (default_execution_direction): Update.
3793 * reverse.c (exec_reverse_once): Update.
3794 * target.h (target_can_execute_reverse): Now a function.
3795
3796 2020-09-28 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-regs.c (tui_get_register)
3799 (tui_data_window::show_registers): Update.
3800 * thread.c (scoped_restore_current_thread::restore)
3801 (scoped_restore_current_thread::scoped_restore_current_thread):
3802 Update.
3803 * regcache-dump.c (regcache_print): Update.
3804 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3805 Update.
3806 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3807 * mep-tdep.c (current_me_module, current_options): Update.
3808 * linux-thread-db.c (thread_db_load): Update.
3809 * infcmd.c (registers_info, info_vector_command)
3810 (info_float_command): Update.
3811 * ia64-tdep.c (ia64_frame_prev_register)
3812 (ia64_sigtramp_frame_prev_register): Update.
3813 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3814 * gcore.c (derive_stack_segment): Update.
3815 * frame.c (get_current_frame, has_stack_frames): Update.
3816 * findvar.c (language_defn::read_var_value): Update.
3817 * arm-tdep.c (arm_pc_is_thumb): Update.
3818 * target.c (target_has_registers): Rename from
3819 target_has_registers_1.
3820 * target.h (target_has_registers): Remove macro.
3821 (target_has_registers): Rename from target_has_registers_1.
3822
3823 2020-09-28 Tom Tromey <tom@tromey.com>
3824
3825 * windows-tdep.c (tlb_make_value): Update.
3826 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3827 * thread.c (scoped_restore_current_thread::restore)
3828 (scoped_restore_current_thread::scoped_restore_current_thread)
3829 (thread_command): Update.
3830 * stack.c (backtrace_command_1, frame_apply_level_command)
3831 (frame_apply_all_command, frame_apply_command): Update.
3832 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3833 Update.
3834 * gcore.c (derive_stack_segment): Update.
3835 * frame.c (get_current_frame, has_stack_frames): Update.
3836 * auxv.c (info_auxv_command): Update.
3837 * ada-tasks.c (ada_build_task_list): Update.
3838 * target.c (target_has_stack): Rename from target_has_stack_1.
3839 * target.h (target_has_stack): Remove macro.
3840 (target_has_stack): Rename from target_has_stack_1.
3841
3842 2020-09-28 Tom Tromey <tom@tromey.com>
3843
3844 * target.c (target_has_memory): Rename from target_has_memory_1.
3845 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3846 * thread.c (scoped_restore_current_thread::restore)
3847 (scoped_restore_current_thread::scoped_restore_current_thread):
3848 Update.
3849 * frame.c (get_current_frame, has_stack_frames): Update.
3850 * target.h (target_has_memory): Remove macro.
3851 (target_has_memory): Rename from target_has_memory_1.
3852
3853 2020-09-28 Tom Tromey <tom@tromey.com>
3854
3855 * target.c (target_has_all_memory_1): Remove.
3856 * target.h (target_has_all_memory): Remove define.
3857 (target_has_all_memory_1): Don't declare.
3858
3859 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3860
3861 * ser-base.c: Adjust comments formatting.
3862
3863 2020-09-27 Tom Tromey <tom@tromey.com>
3864
3865 PR tui/25342:
3866 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3867
3868 2020-09-27 Tom Tromey <tom@tromey.com>
3869
3870 PR tui/25342:
3871 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3872
3873 2020-09-27 Tom Tromey <tom@tromey.com>
3874
3875 * unittests/tui-selftests.c: Update.
3876 * tui/tui-winsource.h (struct tui_source_window_base)
3877 <extra_margin, show_line_number, refresh_pad>: New methods.
3878 <m_max_length, m_pad>: New members.
3879 (tui_copy_source_line): Update.
3880 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3881 first_col, line_width, ndigits parameters. Add length.
3882 (tui_source_window_base::show_source_line): Write to pad. Line
3883 number now 0-based.
3884 (tui_source_window_base::refresh_pad): New method.
3885 (tui_source_window_base::show_source_content): Write to pad. Call
3886 refresh_pad.
3887 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3888 not refill.
3889 (tui_source_window_base::update_exec_info): Call
3890 show_line_number.
3891 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3892 method.
3893 <m_digits>: New member.
3894 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3895 and m_max_length.
3896 (tui_source_window::show_line_number): New method.
3897 * tui/tui-io.h (tui_puts): Fix comment.
3898 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3899 m_max_length.
3900
3901 2020-09-27 Tom Tromey <tom@tromey.com>
3902
3903 * tui/tui-winsource.c
3904 (tui_source_window_base::set_is_exec_point_at): Don't call
3905 show_source_line.
3906
3907 2020-09-27 Tom Tromey <tom@tromey.com>
3908
3909 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3910 method.
3911 <erase>: Update.
3912 <cursor_x, cursor_y>: Remove.
3913 <m_inner_window>: New member.
3914 (tui_py_window::rerender): Create inner window.
3915 (tui_py_window::output): Write to inner window.
3916
3917 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3918
3919 PR python/26586
3920 * cli/cli-script.c (execute_control_commands): don't set
3921 instream to nullptr here as this breaks the from_tty argument
3922 to gdb.execute in Python.
3923 (execute_user_command): set instream to nullptr here instead.
3924
3925 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * infrun.h (infrun_debug_printf): Fix formatting.
3928 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3929
3930 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3931
3932 * compile/compile-object-load.h (struct munmap_list): Add
3933 explicitly-defined move constructor.
3934
3935 2020-09-24 Tom Tromey <tromey@adacore.com>
3936
3937 PR tui/26638:
3938 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3939 method.
3940 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3941 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3942 (tui_prev_win): Rewrite.
3943
3944 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3945
3946 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3947 in WOW64 processes as SIGINT.
3948 * nat/windows-nat.h: Make wow64_process a shared variable.
3949 * windows-nat.c: Remove static wow64_process variable.
3950
3951 2020-09-23 Tom Tromey <tom@tromey.com>
3952
3953 PR symtab/25470:
3954 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3955 offset and bit size.
3956 * printcmd.c (print_scalar_formatted): Handle zero-length
3957 integer.
3958 (print_scalar_formatted): Use bit_size_differs_p.
3959 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3960 constant.
3961 (union type_specific): <int_stuff>: New member.
3962 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3963 methods.
3964 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3965 TYPE_SPECIFIC_FIELD.
3966 (recursive_dump_type, copy_type_recursive): Update.
3967 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3968 DW_AT_data_bit_offset.
3969
3970 2020-09-23 Tom Tromey <tom@tromey.com>
3971
3972 * utils.h (class gdb_argv): Add move operators.
3973 <append>: New methods.
3974 * compile/compile.c (build_argc_argv): Remove.
3975 (compile_args_argc): Remove.
3976 (compile_args_argv): Change type.
3977 (set_compile_args): Simplify.
3978 (append_args): Remove.
3979 (filter_args): Remove argcp parameter.
3980 (get_args): Return gdb_argv. Simplify.
3981 (compile_to_object): Update.
3982
3983 2020-09-23 Tom Tromey <tom@tromey.com>
3984
3985 * compile/compile-object-run.c (do_module_cleanup)
3986 <~do_module_cleanup> :Remove.
3987 (do_module_cleanup): Update.
3988 * compile/compile-object-load.h (struct munmap_list): Add move
3989 assignment operator.
3990 <source_file>: Now a std::string.
3991 <munmap_list>: Rename. No longer a pointer.
3992 * compile/compile-object-load.c (struct setup_sections_data): Add
3993 constructor.
3994 <setup_one_section>: Declare.
3995 <munmap_list>: Move earlier.
3996 <m_bfd>: New member.
3997 <m_last_size, m_last_section_first, m_last_prot,
3998 m_last_max_alignment>: Rename, add initializers where needed.
3999 (setup_sections_data::setup_one_section): Rename from
4000 setup_sections. Update.
4001 (compile_object_load): Update. Don't use bfd_map_over_sections.
4002
4003 2020-09-23 Tom Tromey <tom@tromey.com>
4004
4005 * compile/compile-object-run.c (struct do_module_cleanup): Add
4006 parameters to constructor. Update destructor.
4007 <source_file, scope, scope_data, out_value_type, out_value_addr,
4008 munmap_list_head, objfile_name_string>: Remove.
4009 <module>: New member.
4010 (do_module_cleanup): Update.
4011 (compile_object_run): Update.
4012
4013 2020-09-23 Tom Tromey <tom@tromey.com>
4014
4015 * compile/compile.c (eval_compile_command): Update.
4016 * compile/compile-object-run.h (compile_object_run): Take a
4017 compile_module_up.
4018 * compile/compile-object-run.c (compile_object_run): Take a
4019 compile_module_up.
4020 * compile/compile-object-load.h (struct compile_module): Add
4021 constructor, destructor.
4022 (compile_module_up): New typedef.
4023 (compile_object_load): Return compile_object_up.
4024 * compile/compile-object-load.c (compile_object_load): Return
4025 compile_module_up.
4026
4027 2020-09-23 Tom Tromey <tom@tromey.com>
4028
4029 * compile/compile-object-run.c (struct do_module_cleanup): Add
4030 constructor, destructor.
4031 <objfile_name_string>: Don't use struct hack.
4032 (do_module_cleanup): Use delete.
4033 (compile_object_run): Use new.
4034
4035 2020-09-23 Tom Tromey <tom@tromey.com>
4036
4037 * compile/compile-cplus-types.c
4038 (compile_cplus_convert_struct_or_union): Use std::vector.
4039 (compile_cplus_convert_func): Likewise.
4040 * compile/compile-c-types.c (convert_func): Use std::vector.
4041
4042 2020-09-21 Tom Tromey <tromey@adacore.com>
4043
4044 * sparc-tdep.c (sparc32_skip_prologue): Use
4045 skip_prologue_using_sal.
4046
4047 2020-09-19 Tom Tromey <tom@tromey.com>
4048
4049 * symfile.c (add_section_size_callback): Remove.
4050 (load_one_section): Rename from load_section_callback. Change
4051 parameters.
4052 (generic_load): Use foreach.
4053
4054 2020-09-19 Tom Tromey <tom@tromey.com>
4055
4056 * exec.c (add_to_section_table): Remove.
4057 (build_section_table): Use foreach.
4058
4059 2020-09-19 Tom Tromey <tom@tromey.com>
4060
4061 * elfread.c (elf_locate_sections): Change parameters.
4062 (elf_symfile_read): Use foreach.
4063
4064 2020-09-19 Tom Tromey <tom@tromey.com>
4065
4066 * cli/cli-dump.c (struct callback_data): Remove.
4067 (restore_one_section): Rename from restore_section_callback.
4068 Change parameters.
4069 (restore_binary_file): Change parameters.
4070 (restore_command): Use foreach.
4071
4072 2020-09-19 Tom Tromey <tom@tromey.com>
4073
4074 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4075 (gcore_copy_callback): Likewise.
4076 (gcore_memory_sections): Use foreach.
4077
4078 2020-09-19 Tom Tromey <tom@tromey.com>
4079
4080 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4081 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4082 parameters.
4083 (generic_elf_osabi_sniffer): Use foreach.
4084 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4085 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4086
4087 2020-09-19 Tom Tromey <tom@tromey.com>
4088
4089 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4090 (dwarf2_get_dwz_file): Use foreach.
4091 (dwarf2_locate_dwo_sections): Change parameters.
4092 (open_and_init_dwo_file): Use foreach.
4093 (dwarf2_locate_common_dwp_sections): Change parameters.
4094 (open_and_init_dwp_file): Use foreach.
4095
4096 2020-09-19 Tom Tromey <tom@tromey.com>
4097
4098 * symfile.h: (find_lowest_section): Don't declare.
4099 * symfile.c (find_lowest_section): Now static. Change
4100 parameters.
4101 (struct place_section_arg): Remove.
4102 (place_section): Change parameters.
4103 (addr_info_make_relative): Use foreach.
4104 (symfile_dummy_outputs): Remove.
4105 (default_symfile_relocate): Use foreach.
4106
4107 2020-09-19 Tom Tromey <tom@tromey.com>
4108
4109 * objfiles.c (add_to_objfile_sections): Rename from
4110 add_to_objfile_sections_full.
4111 (add_to_objfile_sections): Remove.
4112 (build_objfile_section_table): Use foreach.
4113
4114 2020-09-19 Tom Tromey <tom@tromey.com>
4115
4116 * stap-probe.c (get_stap_base_address_1): Remove.
4117 (get_stap_base_address): Use foreach.
4118
4119 2020-09-19 Tom Tromey <tom@tromey.com>
4120
4121 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4122 parameters.
4123 (gdb_bfd_close_or_warn): Use foreach.
4124
4125 2020-09-19 Tom Tromey <tom@tromey.com>
4126
4127 * corelow.c (add_to_thread_list): Change parameters.
4128 (core_target_open): Use foreach.
4129
4130 2020-09-19 Tom Tromey <tom@tromey.com>
4131
4132 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4133 existing function.
4134
4135 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4136
4137 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4138 for arrays.
4139
4140 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4141
4142 * eval.c: Remove 'f-lang.h' include.
4143 (value_f90_subarray): Moved to f-lang.c.
4144 (eval_call): Renamed to...
4145 (evaluate_subexp_do_call): ...this, is no longer static, header
4146 comment moved into header file.
4147 (evaluate_funcall): Update call to eval_call.
4148 (skip_undetermined_arglist): Moved to f-lang.c.
4149 (fortran_value_subarray): Likewise.
4150 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4151 moved to evaluate_subexp_f.
4152 (calc_f77_array_dims): Moved to f-lang.c
4153 * expprint.c (print_subexp_funcall): New function.
4154 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4155 moved to print_subexp_f, OP_FUNCALL uses new function.
4156 (dump_subexp_body_funcall): New function.
4157 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4158 moved to dump_subexp_f, OP_FUNCALL uses new function.
4159 * expression.h (evaluate_subexp_do_call): Declare.
4160 * f-lang.c (value_f90_subarray): Moved from eval.c.
4161 (skip_undetermined_arglist): Likewise.
4162 (calc_f77_array_dims): Likewise.
4163 (fortran_value_subarray): Likewise.
4164 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4165 (operator_length_f): Likewise.
4166 (print_subexp_f): Likewise.
4167 (dump_subexp_body_f): Likewise.
4168 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4169 declaration of this operation to here.
4170 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4171 support moved to operator_length_f.
4172 * parser-defs.h (dump_subexp_body_funcall): Declare.
4173 (print_subexp_funcall): Declare.
4174 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4175 fortran-operator.def.
4176
4177 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4178
4179 * eval.c (fortran_value_subarray): New function, content is taken
4180 from...
4181 (evaluate_subexp_standard): ...here, in two places. Now arrays
4182 and strings both call the new function.
4183 (calc_f77_array_dims): Add header comment, handle strings.
4184
4185 2020-09-18 Victor Collod <vcollod@nvidia.com>
4186
4187 PR gdb/26635
4188 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4189 (i386_analyze_prologue): Call i386_skip_endbr.
4190
4191 2020-09-18 Tom Tromey <tromey@adacore.com>
4192
4193 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4194 (windows_nat_target::wait): Update.
4195 * target/wait.h (enum target_wait_flag): New. Use
4196 DEF_ENUM_FLAGS_TYPE.
4197 * target/target.h (target_wait): Change type of options.
4198 * target.h (target_options_to_string, default_target_wait):
4199 Update.
4200 (struct target_ops) <wait>: Change type of options.
4201 * target.c (target_wait, default_target_wait, do_option): Change
4202 type of "options".
4203 (target_options_to_string): Likewise.
4204 * target-delegates.c: Rebuild.
4205 * target-debug.h (target_debug_print_target_wait_flags): Rename
4206 from target_debug_print_options.
4207 * sol-thread.c (class sol_thread_target) <wait>: Update.
4208 (sol_thread_target::wait): Update.
4209 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4210 (rs6000_nat_target::wait): Update.
4211 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4212 Update.
4213 (remote_target::wait_ns, remote_target::wait_as): Change type of
4214 "options".
4215 (remote_target::wait): Update.
4216 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4217 (gdbsim_target::wait): Update.
4218 * record-full.c (class record_full_base_target) <wait>: Update.
4219 (record_full_wait_1): Change type of "options".
4220 (record_full_base_target::wait): Update.
4221 * record-btrace.c (class record_btrace_target) <wait>: Update.
4222 (record_btrace_target::wait): Update.
4223 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4224 Update.
4225 (ravenscar_thread_target::wait): Update.
4226 * procfs.c (class procfs_target) <wait>: Update.
4227 (procfs_target::wait): Update.
4228 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4229 * obsd-nat.c (obsd_nat_target::wait): Update.
4230 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4231 (nto_procfs_target::wait): Update.
4232 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4233 * nbsd-nat.c (nbsd_wait): Change type of "options".
4234 (nbsd_nat_target::wait): Update.
4235 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4236 (thread_db_target::wait): Update.
4237 * linux-nat.h (class linux_nat_target) <wait>: Update.
4238 * linux-nat.c (linux_nat_target::wait): Update.
4239 (linux_nat_wait_1): Update.
4240 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4241 "options".
4242 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4243 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4244 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4245 (go32_nat_target::wait): Update.
4246 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4247 * gnu-nat.c (gnu_nat_target::wait): Update.
4248 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4249 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4250 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4251 * darwin-nat.c (darwin_nat_target::wait): Update.
4252 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4253 (bsd_uthread_target::wait): Update.
4254 * aix-thread.c (class aix_thread_target) <wait>: Update.
4255 (aix_thread_target::wait): Update.
4256
4257 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4258
4259 * compile/compile-object-run.c (create_copied_type_recursive): New
4260 function.
4261 (compile_object_run): Use new function.
4262
4263 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4264
4265 * NEWS: Mention x86_64 Cygwin core file support.
4266
4267 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4268
4269 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4270 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4271
4272 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4273
4274 * windows-tdep.h: Add prototypes.
4275 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4276 (i386_windows_core_pid_to_str): Move and rename ...
4277 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4278 (windows_core_pid_to_str): ... and here.
4279 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4280
4281 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4282 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4283 (amd64_windows_init_abi_common): ... and register.
4284
4285 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4286
4287 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4288 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4289
4290 2020-09-18 Pedro Alves <pedro@palves.net>
4291
4292 PR gdb/26631
4293 * thread.c (thread_find_command): Switch inferior before calling
4294 target methods.
4295
4296 2020-09-17 Tom Tromey <tromey@adacore.com>
4297
4298 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4299 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4300 (tdesc_arch_data_up): New typedef.
4301 (tdesc_use_registers, tdesc_data_alloc): Update.
4302 (tdesc_data_cleanup): Don't declare.
4303 * target-descriptions.c (tdesc_data_alloc): Return a
4304 tdesc_arch_data_up.
4305 (tdesc_arch_data_deleter::operator()): Rename from
4306 tdesc_data_cleanup. Change argument type.
4307 (tdesc_use_registers): Change early_data to an rvalue reference.
4308 (tdesc_use_registers): Don't use delete.
4309 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4310 * s390-tdep.c (s390_gdbarch_init): Update.
4311 * rx-tdep.c (rx_gdbarch_init): Update.
4312 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4313 * riscv-tdep.c (riscv_gdbarch_init): Update.
4314 * or1k-tdep.c (or1k_gdbarch_init): Update.
4315 * nios2-tdep.c (nios2_gdbarch_init): Update.
4316 * nds32-tdep.c (nds32_gdbarch_init): Update.
4317 * mips-tdep.c (mips_gdbarch_init): Update.
4318 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4319 * m68k-tdep.c (m68k_gdbarch_init): Update.
4320 * i386-tdep.c (i386_gdbarch_init): Update.
4321 * arm-tdep.c (arm_gdbarch_init): Update.
4322 * arc-tdep.c (arc_tdesc_init): Update.
4323 (arc_gdbarch_init): Update.
4324 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4325
4326 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4327
4328 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4329 for WOW64 processes.
4330
4331 2020-09-17 Tom Tromey <tom@tromey.com>
4332
4333 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4334
4335 2020-09-17 Tom Tromey <tom@tromey.com>
4336
4337 * value.c (preserve_values): Update.
4338 * python/py-type.c (save_objfile_types): Update.
4339 * guile/scm-type.c (save_objfile_types): Update.
4340 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4341 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4342 * compile/compile-object-run.c (compile_object_run): Update.
4343
4344 2020-09-17 Tom Tromey <tom@tromey.com>
4345
4346 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4347 Remove.
4348 <m_table>: Now htab_up.
4349 * typeprint.c (typedef_hash_table::recursively_update)
4350 (typedef_hash_table::add_template_parameters)
4351 (typedef_hash_table::typedef_hash_table): Update.
4352 (typedef_hash_table::~typedef_hash_table): Remove.
4353 (typedef_hash_table::typedef_hash_table)
4354 (typedef_hash_table::find_global_typedef)
4355 (typedef_hash_table::find_typedef): Update.
4356
4357 2020-09-17 Tom Tromey <tom@tromey.com>
4358
4359 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4360
4361 2020-09-17 Tom Tromey <tom@tromey.com>
4362
4363 * linespec.c (class decode_compound_collector)
4364 <~decode_compound_collector>: Remove.
4365 <m_unique_syms>: Now htab_up.
4366 (decode_compound_collector::operator ()): Update.
4367 (class symtab_collector) <~symtab_collector>: Remove.
4368 <m_symtab_table>: Now htab_up.
4369 (symtab_collector::operator ()): Update.
4370
4371 2020-09-17 Tom Tromey <tom@tromey.com>
4372
4373 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4374 (filename_seen_cache::clear): Update.
4375 (~filename_seen_cache): Remove.
4376 (filename_seen_cache::seen): Update.
4377 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4378 htab_up.
4379 <~filename_seen_cache>: Remove.
4380 <traverse>: Update.
4381
4382 2020-09-17 Tom Tromey <tom@tromey.com>
4383
4384 * completer.c (completion_tracker::discard_completions)
4385 (completion_tracker::~completion_tracker)
4386 (completion_tracker::maybe_add_completion)
4387 (completion_tracker::remove_completion)
4388 (completion_tracker::recompute_lowest_common_denominator)
4389 (completion_tracker::build_completion_result): Update.
4390 * completer.h (class completion_tracker) <have_completions>:
4391 Update.
4392 <m_entries_hash>: Now htab_up.
4393
4394 2020-09-17 Tom Tromey <tom@tromey.com>
4395
4396 * breakpoint.c (ambiguous_names_p): Use htab_up.
4397
4398 2020-09-17 Tom Tromey <tom@tromey.com>
4399
4400 * auto-load.c (struct auto_load_pspace_info)
4401 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4402 <loaded_script_files, loaded_script_texts>: Change type to
4403 htab_up.
4404 (~auto_load_pspace_info) Remove.
4405 (init_loaded_scripts_info, maybe_add_script_file)
4406 (maybe_add_script_text, auto_load_info_scripts): Update.
4407
4408 2020-09-17 Tom Tromey <tromey@adacore.com>
4409
4410 * c-exp.y (name_obstack): Now static.
4411
4412 2020-09-17 Chungyi Chi <demonic@csie.io>
4413
4414 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4415
4416 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4419 (add_solib_catchpoint): Likewise.
4420 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4421 to bool.
4422 (add_solib_catchpoint): Change int parameter/variable to bool.
4423 (catch_load_or_unload): Likewise.
4424 (init_catchpoint): Likewise.
4425 (create_fork_vfork_event_catchpoint): Likewise.
4426 (catch_fork_command_1): Likewise.
4427 (catch_exec_command_1): Likewise.
4428
4429 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4430
4431 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4432 Change instance_flags to m_instance_flags.
4433
4434 2020-09-16 Tom Tromey <tromey@adacore.com>
4435
4436 PR gdb/26598:
4437 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4438
4439 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4440
4441 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4442 PL_FLAG_EXEC.
4443 (fbsd_nat_target::insert_exec_catchpoint)
4444 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4445 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4446 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4447
4448 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4449
4450 * configure.ac: Remove check for kinfo_getvmmap().
4451 * configure, config.in: Regenerate.
4452 * fbsd-nat.c (fbsd_read_mapping): Remove
4453 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4454 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4455 kinfo_get_vmmap() are always present.
4456
4457 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4458
4459 * fbsd-nat.c: Always include support for
4460 TARGET_OBJECT_SIGNAL_INFO.
4461
4462 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4463
4464 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4465 sysctl and remove procfs fallback.
4466
4467 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4468
4469 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4470 * fbsd-nat.h: Likewise.
4471
4472 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4473
4474 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4475 argument.
4476
4477 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4478
4479 * ada-lang.c (ada_language_data): Delete.
4480 (ada_language): Remove references to ada_language_data.
4481 * c-lang.c (c_language_data): Delete.
4482 (c_language): Remove references to c_language_data.
4483 (cplus_language_data): Delete.
4484 (cplus_language): Remove references to cplus_language_data.
4485 (asm_language_data): Delete.
4486 (asm_language): Remove references to asm_language_data.
4487 (minimal_language_data): Delete.
4488 (minimal_language): Remove references to minimal_language_data.
4489 * d-lang.c (d_language_data): Delete.
4490 (d_language): Remove references to d_language_data.
4491 * f-lang.c (f_language_data): Delete.
4492 (f_language): Remove references to f_language_data.
4493 * go-lang.c (go_language_data): Delete.
4494 (go_language): Remove references to go_language_data.
4495 * language.c (unknown_language_data): Delete.
4496 (unknown_language): Remove references to unknown_language_data.
4497 (auto_language_data): Delete.
4498 (auto_language): Remove references to auto_language_data.
4499 * language.h (language_data): Delete struct.
4500 (language_defn): No longer inherit from language_data.
4501 * m2-lang.c (m2_language_data): Delete.
4502 (m2_language): Remove references to m2_language_data.
4503 * objc-lang.c (objc_language_data): Delete.
4504 (objc_language): Remove references to objc_language_data.
4505 * opencl-lang.c (opencl_language_data): Delete.
4506 (opencl_language): Remove references to opencl_language_data.
4507 * p-lang.c (pascal_language_data): Delete.
4508 (pascal_language): Remove references to pascal_language_data.
4509 * rust-lang.c (rust_language_data): Delete.
4510 (rust_language): Remove references to rust_language_data.
4511
4512 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4513
4514 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4515 initializer.
4516 (ada_language::opcode_print_table): New member function.
4517 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4518 (c_language::opcode_print_table): New member function.
4519 (cplus_language_data): Remove la_op_print_tab initializer.
4520 (cplus_language::opcode_print_table): New member function.
4521 (asm_language_data): Remove la_op_print_tab initializer.
4522 (asm_language::opcode_print_table): New member function.
4523 (minimal_language_data): Remove la_op_print_tab initializer.
4524 (minimal_language::opcode_print_table): New member function.
4525 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4526 (d_language::opcode_print_table): New member function.
4527 * expprint.c (print_subexp_standard): Update call to
4528 opcode_print_table.
4529 (op_string): Likewise.
4530 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4531 (f_language::opcode_print_table): New member function.
4532 * go-lang.c (go_language_data): Remove la_op_print_tab
4533 initializer.
4534 (go_language::opcode_print_table): New member function.
4535 * language.c (unknown_language_data): Remove la_op_print_tab
4536 initializer.
4537 (unknown_language::opcode_print_table): New member function.
4538 (auto_language_data): Remove la_op_print_tab initializer.
4539 (auto_language::opcode_print_table): New member function.
4540 * language.h (language_data): Remove la_op_print_tab field.
4541 (language_defn::opcode_print_table): Declare new member function.
4542 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4543 initializer.
4544 (m2_language::opcode_print_table): New member function.
4545 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4546 initializer.
4547 (objc_language::opcode_print_table): New member function.
4548 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4549 initializer.
4550 (opencl_language::opcode_print_table): New member function.
4551 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4552 initializer.
4553 (pascal_language::opcode_print_table): New member function.
4554 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4555 initializer.
4556 (rust_language::opcode_print_table): New member function.
4557
4558 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4559
4560 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4561 (ada_language::expression_ops): New member function.
4562 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4563 (c_language::expression_ops): New member function.
4564 (cplus_language_data): Remove la_exp_desc initializer.
4565 (cplus_language::expression_ops): New member function.
4566 (asm_language_data): Remove la_exp_desc initializer.
4567 (asm_language::expression_ops): New member function.
4568 (minimal_language_data): Remove la_exp_desc initializer.
4569 (minimal_language::expression_ops): New member function.
4570 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4571 (d_language::expression_ops): New member function.
4572 * eval.c (evaluate_subexp): Update call to expression_ops.
4573 * expprint.c (print_subexp): Likewise.
4574 (op_name): Likewise.
4575 (dump_subexp_body): Likewise.
4576 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4577 (f_language::expression_ops): New member function.
4578 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4579 (go_language::expression_ops): New member function.
4580 * language.c (language_defn::expression_ops): New function.
4581 (unknown_language_data): Remove la_exp_desc initializer.
4582 (auto_language_data): Likewise.
4583 * language.h (language_data): Remove la_exp_desc field.
4584 (language_defn::expression_ops): Declare new member function.
4585 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4586 (m2_language::expression_ops): New member function.
4587 * objc-lang.c (objc_language_data): Remove la_exp_desc
4588 initializer.
4589 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4590 initializer.
4591 (opencl_language::expression_ops): New member function.
4592 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4593 * parse.c (operator_length): Update call to expression_ops.
4594 (exp_iterate): Likewise.
4595 * rust-lang.c (rust_language_data): Remove la_exp_desc
4596 initializer.
4597 (ruse_language::expression_ops): New member function.
4598
4599 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4600
4601 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4602 initializer.
4603 (ada_language::varobj_ops): New member function.
4604 * c-lang.c (c_language_data): Remove la_varobj_ops
4605 initializer.
4606 (cplus_language_data): Likewise.
4607 (cplus_language::varobj_ops): New member function.
4608 (asm_language_data): Remove la_varobj_ops initializer.
4609 (minimal_language_data): Likewise.
4610 * d-lang.c (d_language_data): Likewise.
4611 * f-lang.c (f_language_data): Likewise.
4612 * go-lang.c (go_language_data): Likewise.
4613 * language.c (language_defn::varobj_ops): New function.
4614 (unknown_language_data): Remove la_varobj_ops
4615 initializer.
4616 (auto_language_data): Likewise.
4617 * language.h (language_data): Remove la_varobj_ops field.
4618 (language_defn::varobj_ops): Declare new member function.
4619 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4620 * objc-lang.c (objc_language_data): Likewise.
4621 * opencl-lang.c (opencl_language_data): Likewise.
4622 * p-lang.c (pascal_language_data): Likewise.
4623 * rust-lang.c (rust_language_data): Likewise.
4624 * varobj.c (varobj_create): Update call to varobj_ops.
4625 * varobj.h (default_varobj_ops): Delete define.
4626
4627 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4630 initializer.
4631 * c-lang.c (c_language_data): Likewise.
4632 (c_language::macro_expansion): New member function.
4633 (cplus_language_data): Likewise.
4634 (cplus_language::macro_expansion): New member function.
4635 (asm_language_data): Likewise.
4636 (asm_language::macro_expansion): New member function.
4637 (minimal_language_data): Likewise.
4638 (minimal_language::macro_expansion): New member function.
4639 * d-lang.c (d_language_data): Remove la_macro_expansion
4640 initializer.
4641 * f-lang.c (f_language_data): Likewise.
4642 * go-lang.c (go_language_data): Likewise.
4643 * language.c (unknown_language_data): Likewise.
4644 (auto_language_data): Likewise.
4645 * language.h (language_data): Remove la_macro_expansion field.
4646 (language_defn::macro_expansion): New member function.
4647 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4648 initializer.
4649 * objc-lang.c (objc_language_data): Likewise.
4650 (objc_language::macro_expansion): New member function.
4651 * opencl-lang.c (opencl_language_data): Likewise.
4652 (opencl_language::macro_expansion): New member function.
4653 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4654 initializer.
4655 * rust-lang.c (rust_language_data): Likewise.
4656 * symtab.c (default_collect_symbol_completion_matches_break_on):
4657 Update call to macro_expansion.
4658
4659 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4660
4661 * ada-lang.c (ada_language_data): Remove la_array_ordering
4662 initializer.
4663 * c-lang.c (c_language_data): Likewise.
4664 (cplus_language_data): Likewise.
4665 (asm_language_data): Likewise.
4666 (minimal_language_data): Likewise.
4667 * d-lang.c (d_language_data): Likewise.
4668 * dwarf2/read.c (read_array_order): Update for call to
4669 array_ordering.
4670 * f-lang.c (f_language_data): Remove la_array_ordering
4671 initializer.
4672 (f_language::array_ordering): New member function.
4673 * go-lang.c (go_language_data): Remove la_array_ordering
4674 initializer.
4675 * language.c (unknown_language_data): Likewise.
4676 (auto_language_data): Likewise.
4677 * language.h (language_data): Delete la_array_ordering field.
4678 (language_defn::array_ordering): New member function.
4679 * m2-lang.c (m2_language_data): Remove la_array_ordering
4680 initializer.
4681 * objc-lang.c (objc_language_data): Likewise.
4682 * opencl-lang.c (opencl_language_data): Likewise.
4683 * p-lang.c (pascal_language_data): Likewise.
4684 * rust-lang.c (rust_language_data): Likewise.
4685
4686 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4687
4688 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4689 initializer.
4690 * c-lang.c (c_language_data): Likewise.
4691 (cplus_language_data): Likewise.
4692 (asm_language_data): Likewise.
4693 (minimal_language_data): Likewise.
4694 * d-lang.c (d_language_data): Likewise.
4695 * f-lang.c (f_language_data): Likewise.
4696 (f_language::case_sensitivity): New member function.
4697 * go-lang.c (go_language_data): Remove la_case_sensitivity
4698 initializer.
4699 * language.c (enum case_mode): Moved here from language.h.
4700 (case_mode): Make static.
4701 (show_case_command): Update for case_sensitivity being a method.
4702 (set_case_command): Likewise.
4703 (set_range_case): Likewise.
4704 (unknown_language_data): Remove la_case_sensitivity initializer.
4705 (auto_language_data): Likewise.
4706 * language.h (case_mode): Delete, move enum declaration to
4707 language.c.
4708 (language_data): Delete la_case_sensitivity field.
4709 (language_defn::case_sensitivity): New member function.
4710 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4711 initializer.
4712 * objc-lang.c (objc_language_data): Likewise.
4713 * opencl-lang.c (opencl_language_data): Likewise.
4714 * p-lang.c (pascal_language_data): Likewise.
4715 * rust-lang.c (rust_language_data): Likewise.
4716
4717 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4718
4719 * ada-lang.c (ada_language_data): Remove la_range_check
4720 initializer.
4721 * c-lang.c (c_language_data): Likewise.
4722 (cplus_language_data): Likewise.
4723 (asm_language_data): Likewise.
4724 (minimal_language_data): Likewise.
4725 * d-lang.c (d_language_data): Likewise.
4726 * f-lang.c (f_language_data): Likewise.
4727 (f_language::range_checking_on_by_default): New member function.
4728 * go-lang.c (go_language_data): Remove la_range_check initializer.
4729 * language.c (enum range_mode): Moved here from language.h.
4730 (range_mode): Made static.
4731 (show_range_command): Update to use
4732 range_checking_on_by_default.
4733 (set_range_command): Likewise.
4734 (set_range_case): Likewise.
4735 (unknown_language_data): Remove la_range_check initializer.
4736 (auto_language_data): Likewise.
4737 * language.h (range_mode): Delete. Enum definition moved to
4738 language.c.
4739 (language_data): Remove la_range_check field.
4740 (language_defn::range_checking_on_by_default): New member
4741 function.
4742 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4743 (m2_language::range_checking_on_by_default): New member function.
4744 * objc-lang.c (objc_language_data): Remove la_range_check
4745 initializer.
4746 * opencl-lang.c (opencl_language_data): Likewise.
4747 * p-lang.c (pascal_language_data): Likewise.
4748 (pascal_language::range_checking_on_by_default): New member
4749 function.
4750 * rust-lang.c (rust_language_data): Remove la_range_check
4751 initializer.
4752 (rust_language::range_checking_on_by_default): New member
4753 function.
4754
4755 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4756
4757 * dwarf2/read.c (dwarf2_physname): Remove special case for
4758 language_go.
4759 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4760 member function.
4761
4762 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4763
4764 * ada-lang.c (ada_language_data): Remove
4765 la_store_sym_names_in_linkage_form_p initializer.
4766 (ada_language::store_sym_names_in_linkage_form_p): New member
4767 function.
4768 * c-lang.c (c_language_data): Remove
4769 la_store_sym_names_in_linkage_form_p initializer.
4770 (c_language::store_sym_names_in_linkage_form_p): New member
4771 function.
4772 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4773 initializer.
4774 (asm_language_data): Likewise.
4775 (asm_language::store_sym_names_in_linkage_form_p): New member
4776 function.
4777 (minimal_language_data): Remove
4778 la_store_sym_names_in_linkage_form_p initializer.
4779 (minimal_language::store_sym_names_in_linkage_form_p): New member
4780 function.
4781 * d-lang.c (d_language_data): Remove
4782 la_store_sym_names_in_linkage_form_p initializer.
4783 * dwarf2/read.c (dwarf2_physname): Update call to
4784 store_sym_names_in_linkage_form_p.
4785 * f-lang.c (f_language_data): Remove
4786 la_store_sym_names_in_linkage_form_p initializer.
4787 * go-lang.c (go_language_data): Remove
4788 la_store_sym_names_in_linkage_form_p initializer.
4789 * language.c (unknown_language_data): Remove
4790 la_store_sym_names_in_linkage_form_p initializer.
4791 (unknown_language::store_sym_names_in_linkage_form_p): New member
4792 function.
4793 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4794 initializer.
4795 (auto_language::store_sym_names_in_linkage_form_p): New member
4796 function.
4797 * language.h (language_data): Remove
4798 la_store_sym_names_in_linkage_form_p member variable.
4799 (language_defn::store_sym_names_in_linkage_form_p): New member
4800 function.
4801 * m2-lang.c (m2_language_data): Remove
4802 la_store_sym_names_in_linkage_form_p initializer.
4803 * objc-lang.c (objc_language_data): Likewise.
4804 * opencl-lang.c (opencl_language_data): Likewise.
4805 * p-lang.c (pascal_language_data): Likewise.
4806 * rust-lang.c (rust_language_data): Likewise.
4807
4808 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4809
4810 * ada-lang.c (ada_language_data): Remove string_lower_bound
4811 initializer.
4812 * c-lang.c (c_language_data): Likewise.
4813 (cplus_language_data): Likewise.
4814 (asm_language_data): Likewise.
4815 (minimal_language_data): Likewise.
4816 * d-lang.c (d_language_data): Likewise.
4817 * f-lang.c (f_language_data): Likewise.
4818 * go-lang.c (go_language_data): Likewise.
4819 * language.c (unknown_language_data): Likewise.
4820 (auto_language_data): Likewise.
4821 * language.h (language_data): Remove string_lower_bound field.
4822 (language_defn::string_lower_bound): New member function.
4823 * m2-lang.c (m2_language_data): Remove string_lower_bound
4824 initializer.
4825 (m2_language::string_lower_bound): New member function.
4826 * objc-lang.c (objc_language_data): Remove string_lower_bound
4827 initializer.
4828 * opencl-lang.c (opencl_language_data): Likewise.
4829 * p-lang.c (pascal_language_data): Likewise.
4830 * rust-lang.c (rust_language_data): Likewise.
4831 * valops.c (value_cstring): Update call to string_lower_bound.
4832 (value_string): Likewise.
4833 * value.c (allocate_repeated_value): Likewise.
4834
4835 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4836
4837 * valops.c (value_repeat): Fix incorrect argument name in comment.
4838
4839 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4840
4841 * ada-lang.c (ada_language_data): Remove c_style_arrays
4842 initializer.
4843 (ada_language::c_style_arrays_p): New member fuction.
4844 * c-lang.c (c_language_data): Remove c_style_arrays
4845 initializer.
4846 (cplus_language_data): Likewise.
4847 (asm_language_data): Likewise.
4848 (minimal_language_data): Likewise.
4849 * d-lang.c (d_language_data): Likewise.
4850 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4851 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4852 (f_language::c_style_arrays_p): New member function.
4853 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4854 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4855 * language.c (unknown_language_data): Remove c_style_arrays
4856 initializer.
4857 (auto_language_data): Likewise.
4858 * language.h (language_data): Remove c_style_arrays field.
4859 (language_defn::c_style_arrays_p): New member function.
4860 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4861 (m2_language::c_style_arrays_p): New member function.
4862 * objc-lang.c (objc_language_data): Remove c_style_arrays
4863 initializer.
4864 * opencl-lang.c (opencl_language_data): Likewise.
4865 * p-lang.c (pascal_language_data): Likewise.
4866 * rust-lang.c (rust_language_data): Likewise.
4867 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4868 and update local variable to a bool.
4869 * valops.c (value_cast): Update call to c_style_arrays_p.
4870 (value_array): Likewise.
4871 * value.c (coerce_array): Likewise.
4872
4873 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * ada-lang.c (ada_language_data): Remove la_language initializer.
4876 * c-lang.c (c_language_data): Likewise.
4877 (cplus_language_data): Likewise.
4878 (asm_language_data): Likewise.
4879 (minimal_language_data): Likewise.
4880 * d-lang.c (d_language_data): Likewise.
4881 * f-lang.c (f_language_data): Likewise.
4882 * go-lang.c (go_language_data): Likewise.
4883 * language.c (unknown_language_data): Likewise.
4884 (auto_language_data): Likewise.
4885 * language.h (language_data): Remove la_language field.
4886 (language_defn::language_defn): Initialise la_language field.
4887 (language_defn::la_language): New member variable.
4888 * m2-lang.c (m2_language_data): Remove la_language field.
4889 * objc-lang.c (objc_language_data): Likewise.
4890 * opencl-lang.c (opencl_language_data): Likewise.
4891 * p-lang.c (pascal_language_data): Likewise.
4892 * rust-lang.c (rust_language_data): Likewise.
4893
4894 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4895
4896 * ada-lang.c (ada_extensions): Delete, moved into
4897 ada_language::filename_extensions.
4898 (ada_language_data): Remove la_filename_extensions initializer.
4899 (ada_language::filename_extensions): New member function.
4900 * c-lang.c (c_extensions): Delete, moved into
4901 c_language::filename_extensions.
4902 (c_language_data): Remove la_filename_extensions initializer.
4903 (c_language::filename_extensions): New member function.
4904 (cplus_extensions): Delete, moved into
4905 cplus_language::filename_extensions.
4906 (cplus_language_data): Remove la_filename_extensions initializer.
4907 (cplus_language::filename_extensions): New member function.
4908 (asm_extensions): Delete, moved into
4909 asm_language::filename_extensions.
4910 (asm_language_data): Remove la_filename_extensions initializer.
4911 (asm_language::filename_extensions): New member function.
4912 (minimal_language_data): Remove la_filename_extensions
4913 initializer.
4914 * d-lang.c (d_extensions): Delete, moved into
4915 d_language::filename_extensions.
4916 (d_language_data): Remove la_filename_extensions initializer.
4917 (d_language::filename_extensions): New member function.
4918 * f-lang.c (f_extensions): Delete, moved into
4919 f_language::filename_extensions.
4920 (f_language_data): Remove la_filename_extensions initializer.
4921 (f_language::filename_extensions): New member function.
4922 * go-lang.c (go_language_data): Remove la_filename_extensions
4923 initializer.
4924 * language.c (add_set_language_command): Update now that
4925 filename_extensions returns a vector.
4926 (unknown_language_data): Remove la_filename_extensions
4927 initializer.
4928 (auto_language_data): Likewise.
4929 * language.h (language_data): Remove la_filename_extensions field.
4930 (language_defn::filename_extensions): New member function.
4931 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4932 initializer.
4933 * objc-lang.c (objc_extensions): Delete, moved into
4934 objc_language::filename_extensions.
4935 (objc_language_data): Remove la_filename_extensions initializer.
4936 (objc_language::filename_extensions): New member function.
4937 * opencl-lang.c (opencl_language_data): Remove
4938 la_filename_extensions initializer.
4939 * p-lang.c (pascal_extensions): Delete, moved into
4940 pascal_language::filename_extensions.
4941 (pascal_language_data): Remove la_filename_extensions initializer.
4942 (pascal_language::filename_extensions): New member function.
4943 * rust-lang.c (rust_extensions): Delete, moved into
4944 rust_language::filename_extensions.
4945 (rust_language_data): Remove la_filename_extensions initializer.
4946 (rust_language::filename_extensions): New member function.
4947 * symfile.c (add_filename_language): Add new assert.
4948
4949 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4950
4951 * ada-lang.c (ada_language_data): Remove la_name and
4952 la_natural_name initializers.
4953 (ada_language::name): New member function.
4954 (ada_language::natural_name): New member function.
4955 * c-lang.c (c_language_data): Remove la_name and
4956 la_natural_name initializers.
4957 (c_language::name): New member function.
4958 (c_language::natural_name): New member function.
4959 (cplus_language_data): Remove la_name and
4960 la_natural_name initializers.
4961 (cplus_language::name): New member function.
4962 (cplus_language::natural_name): New member function.
4963 (asm_language_data): Remove la_name and
4964 la_natural_name initializers.
4965 (asm_language::name): New member function.
4966 (asm_language::natural_name): New member function.
4967 (minimal_language_data): Remove la_name and
4968 la_natural_name initializers.
4969 (minimal_language::name): New member function.
4970 (minimal_language::natural_name): New member function.
4971 * compile/compile.c (compile_to_object): Update call to
4972 lanugage_defn::name.
4973 * d-lang.c (d_language_data): Remove la_name and
4974 la_natural_name initializers.
4975 (d_language::name): New member function.
4976 (d_language::natural_name): New member function.
4977 * expprint.c (print_subexp_standard): Update call to
4978 language_defn::name.
4979 (dump_raw_expression): Likewise
4980 (dump_prefix_expression): Likewise.
4981 * f-lang.c (f_language_data): Remove la_name and
4982 la_natural_name initializers.
4983 (f_language::name): New member function.
4984 (f_language::natural_name): New member function.
4985 * go-lang.c (go_language_data): Remove la_name and
4986 la_natural_name initializers.
4987 (go_language::name): New member function.
4988 (go_language::natural_name): New member function.
4989 * language.c (show_language_command): Update call to
4990 language_defn::name.
4991 (set_language_command): Likewise.
4992 (language_enum): Likewise.
4993 (language_str): Likewise.
4994 (add_set_language_command): Likewise, use
4995 language_defn::natural_name in the doc string.
4996 (unknown_language_data): Remove la_name and
4997 la_natural_name initializers.
4998 (unknown_language::name): New member function.
4999 (unknown_language::natural_name): New member function.
5000 (auto_language_data): Remove la_name and
5001 la_natural_name initializers.
5002 (auto_language::name): New member function.
5003 (auto_language::natural_name): New member function.
5004 (language_lookup_primitive_type_as_symbol): Update call to
5005 language_defn::name.
5006 * language.h (language_data): Remove la_name and la_natural_name
5007 member variables.
5008 (language_defn::name): New member function.
5009 (language_defn::natural_name): New member function.
5010 * m2-lang.c (m2_language_data): Remove la_name and
5011 la_natural_name initializers.
5012 (m2_language::name): New member function.
5013 (m2_language::natural_name): New member function.
5014 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5015 language_defn::natural_name.
5016 * objc-lang.c (objc_language_data): Remove la_name and
5017 la_natural_name initializers.
5018 (objc_language::name): New member function.
5019 (objc_language::natural_name): New member function.
5020 * opencl-lang.c (opencl_language_data): Remove la_name and
5021 la_natural_name initializers.
5022 (opencl_language::name): New member function.
5023 (opencl_language::natural_name): New member function.
5024 * p-lang.c (pascal_language_data): Remove la_name and
5025 la_natural_name initializers.
5026 (pascal_language::name): New member function.
5027 (pascal_language::natural_name): New member function.
5028 * rust-lang.c (rust_language_data): Remove la_name and
5029 la_natural_name initializers.
5030 (rust_language::name): New member function.
5031 (rust_language::natural_name): New member function.
5032 * symtab.c (lookup_language_this): Update call to
5033 language_defn::name.
5034
5035 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5036
5037 * ada-lang.c (ada_language_data): Remove la_name_of_this
5038 initializer.
5039 * ax-gdb.c (gen_expr): Update call to name_of_this.
5040 * c-exp.y (classify_name): Likewise.
5041 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5042 (cplus_language_data): Likewise.
5043 (cplus_language::name_of_this): New member function.
5044 (asm_language_data): Remove la_name_of_this initializer.
5045 (minimal_language_data): Likewise.
5046 * d-lang.c (d_language_data): Likewise.
5047 (d_language::name_of_this): New member function.
5048 * expprint.c (print_subexp_standard): Update call to name_of_this.
5049 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5050 * go-lang.c (go_language_data): Likewise.
5051 * language.c (unknown_language_data): Likewise.
5052 (unknown_language::name_of_this): New member function.
5053 (auto_language_data): Remove la_name_of_this initializer.
5054 (auto_language::name_of_this): New member function.
5055 * language.h (language_data): Delete la_name_of_this member
5056 variable.
5057 (language_defn::name_of_this): New member function.
5058 * m2-lang.c (m2_language_data): Remove la_name_of_this
5059 initializer.
5060 * objc-lang.c (objc_language_data): Likewise.
5061 (objc_language::name_of_this): New member function.
5062 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5063 initializer.
5064 * p-lang.c (pascal_language_data): Likewise.
5065 (pascal_language::name_of_this): New member function.
5066 * rust-lang.c (rust_language_data): Remove la_name_of_this
5067 initializer.
5068 * symtab.c (lookup_language_this): Update call to name_of_this.
5069 (lookup_symbol_aux): Likewise.
5070 * valops.c (value_of_this): Likewise.
5071
5072 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5073
5074 * ada-lang.c (ada_language_data): Remove
5075 la_struct_too_deep_ellipsis initializer.
5076 (ada_language::struct_too_deep_ellipsis): New member function.
5077 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5078 initializer.
5079 (cplus_language_data): Likewise.
5080 (asm_language_data): Likewise.
5081 (minimal_language_data): Likewise.
5082 * cp-valprint.c (cp_print_value): Update call to
5083 struct_too_deep_ellipsis.
5084 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5085 initializer.
5086 * f-lang.c (f_language_data): Likewise.
5087 (f_language::struct_too_deep_ellipsis): New member function.
5088 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5089 initializer.
5090 * language.c (unknown_language_data): Likewise.
5091 (auto_language_data): Likewise.
5092 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5093 member variable.
5094 (language_defn::struct_too_deep_ellipsis): New member function.
5095 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5096 initializer.Q
5097 * objc-lang.c (objc_language_data): Likewise.
5098 * opencl-lang.c (opencl_language_data): Likewise.
5099 * p-lang.c (pascal_language_data): Likewise.
5100 * rust-lang.c (rust_language_data): Likewise.
5101 * valprint.c (val_print_check_max_depth): Update call to
5102 struct_too_deep_ellipsis.
5103
5104 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5105
5106 * MAINTAINERS (Write After Approval): Add myself.
5107
5108 2020-09-15 Tom Tromey <tom@tromey.com>
5109
5110 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5111 Remove.
5112
5113 2020-09-15 Tom Tromey <tom@tromey.com>
5114
5115 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5116 and TYPE_CODE_METHODPTR cases.
5117 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5118 (c_value_print_inner): Update.
5119 * valprint.c (generic_value_print_memberptr): New function, from
5120 c_value_print_memberptr.
5121 (generic_value_print): Use it. Call cplus_print_method_ptr.
5122
5123 2020-09-15 Tom Tromey <tromey@adacore.com>
5124
5125 * python/python-internal.h (PyInt_FromLong): Remove define.
5126 * python/py-value.c (convert_value_from_python): Use
5127 gdb_py_object_from_longest.
5128 * python/py-type.c (typy_get_code): Use
5129 gdb_py_object_from_longest.
5130 * python/py-symtab.c (salpy_get_line): Use
5131 gdb_py_object_from_longest.
5132 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5133 gdb_py_object_from_longest.
5134 * python/py-record.c (recpy_gap_reason_code): Use
5135 gdb_py_object_from_longest.
5136 * python/py-record-btrace.c (recpy_bt_insn_size)
5137 (recpy_bt_func_level, btpy_list_count): Use
5138 gdb_py_object_from_longest.
5139 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5140 gdb_py_object_from_longest. Fix error handling.
5141 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5142 gdb_py_object_from_longest.
5143 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5144 gdb_py_object_from_longest.
5145 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5146 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5147 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5148
5149 2020-09-15 Tom Tromey <tromey@adacore.com>
5150
5151 * python/python.c (gdbpy_parameter_value): Use
5152 gdb_py_object_from_ulongest.
5153
5154 2020-09-15 Tom Tromey <tromey@adacore.com>
5155
5156 * python/py-infevents.c (create_register_changed_event_object):
5157 Use gdb_py_object_from_longest.
5158 * python/py-exitedevent.c (create_exited_event_object): Use
5159 gdb_py_object_from_longest.
5160
5161 2020-09-15 Tom Tromey <tromey@adacore.com>
5162
5163 * python/python.c (gdbpy_parameter_value): Use
5164 gdb_py_object_from_longest.
5165 * python/py-type.c (convert_field, typy_range): Use
5166 gdb_py_object_from_longest.
5167 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5168 gdb_py_object_from_longest.
5169 * python/py-lazy-string.c (stpy_get_length): Use
5170 gdb_py_object_from_longest.
5171 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5172 gdb_py_object_from_longest.
5173 * python/py-infevents.c (create_memory_changed_event_object): Use
5174 gdb_py_object_from_longest.
5175 * python/py-inferior.c (infpy_get_num): Use
5176 gdb_py_object_from_longest.
5177 (infpy_get_pid): Likewise.
5178
5179 2020-09-15 Tom Tromey <tromey@adacore.com>
5180
5181 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5182 defines.
5183 * python/py-value.c (valpy_long): Use
5184 gdb_py_object_from_ulongest.
5185 * python/py-symtab.c (salpy_get_pc): Use
5186 gdb_py_object_from_ulongest.
5187 (salpy_get_last): Likewise.
5188 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5189 gdb_py_object_from_ulongest.
5190 * python/py-lazy-string.c (stpy_get_address): Use
5191 gdb_py_object_from_ulongest.
5192 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5193 * python/py-arch.c (archpy_disassemble): Use
5194 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5195 error handling.
5196
5197 2020-09-15 Tom Tromey <tromey@adacore.com>
5198
5199 * python/python-internal.h (gdb_py_long_from_longest): Remove
5200 defines.
5201 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5202 * python/py-type.c (convert_field, typy_get_sizeof): Use
5203 gdb_py_object_from_longest.
5204 * python/py-record-btrace.c (btpy_list_index): Use
5205 gdb_py_object_from_longest.
5206
5207 2020-09-15 Tom Tromey <tromey@adacore.com>
5208
5209 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5210 * python/py-record.c (recpy_element_number): Use
5211 gdb_py_object_from_longest.
5212 (recpy_gap_number): Likewise.
5213
5214 2020-09-15 Tom Tromey <tromey@adacore.com>
5215
5216 * top.c (ui::ui): Update.
5217 (highest_ui_num): Remove.
5218 * top.h (struct ui) <num>: Remove.
5219
5220 2020-09-15 Tom Tromey <tromey@adacore.com>
5221
5222 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5223 * ui-style.c (ansi_regex_text): Now array.
5224 * rust-exp.y (number_regex_text): Now array.
5225 * linespec.c (linespec_quote_characters): Now array.
5226 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5227 Now arrays.
5228
5229 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5230
5231 * debuginfod-support.c (debuginfod_client_deleter): New.
5232 (debuginfod_client_up): New.
5233 (debuginfod_init): Return debuginfod_client_up.
5234 (debuginfod_source_query): Adjust.
5235 (debuginfod_debuginfo_query): Adjust.
5236
5237 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5238
5239 * debuginfod-support.c (debuginfod_source_query): Use
5240 make_unique_xstrdup.
5241
5242 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5243
5244 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5245 with `type::instance_flags`.
5246
5247 2020-09-14 Michael Mullin <masmullin@gmail.com>
5248
5249 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5250 Remove baton parameter.
5251
5252 2020-09-14 Pedro Alves <pedro@palves.net>
5253
5254 * Makefile.in (SELFTESTS_SRCS): Add
5255 unittests/enum-flags-selftests.c.
5256 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5257 btrace_function_flags instead of enum btrace_function_flag.
5258 * compile/compile-c-types.c (convert_qualified): Use
5259 enum_flags::raw.
5260 * compile/compile-cplus-symbols.c (convert_one_symbol)
5261 (convert_symbol_bmsym):
5262 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5263 (compile_cplus_convert_struct_or_union_methods)
5264 (compile_cplus_instance::convert_qualified_base):
5265 * go-exp.y (parse_string_or_char): Add cast to int.
5266 * unittests/enum-flags-selftests.c: New file.
5267 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5268 type to btrace_thread_flags from btrace_thread_flag.
5269 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5270 local's type to btrace_thread_flags from btrace_thread_flag. Add
5271 cast in DEBUG call.
5272
5273 2020-09-14 Pedro Alves <pedro@palves.net>
5274
5275 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5276 * gdbtypes.c (address_space_name_to_int): Rename to ...
5277 (address_space_name_to_type_instance_flags): ... this.
5278 (address_space_int_to_name): Rename to ...
5279 (address_space_type_instance_flags_to_name): ... this.
5280 * gdbtypes.h (address_space_name_to_int): Rename to ...
5281 (address_space_name_to_type_instance_flags): ... this.
5282 (address_space_int_to_name): Rename to ...
5283 (address_space_type_instance_flags_to_name): ... this.
5284 * type-stack.c (type_stack::insert): Adjust to rename.
5285 * type-stack.h (type_stack::insert): Likewise.
5286
5287 2020-09-14 Pedro Alves <pedro@palves.net>
5288 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * avr-tdep.c (avr_address_class_type_flags): Return
5291 type_instance_flags.
5292 (avr_address_class_type_flags_to_name): Take a
5293 type_instance_flags.
5294 (avr_address_class_name_to_type_flags): Return bool and take a
5295 type_instance_flags.
5296 * d-lang.c (build_d_types): Use type::set_instance_flags.
5297 * ft32-tdep.c (ft32_address_class_type_flags): Return
5298 type_instance_flags.
5299 (ft32_address_class_type_flags_to_name): Take a
5300 type_instance_flags.
5301 (ft32_address_class_name_to_type_flags): Return bool and take a
5302 type_instance_flags.
5303 (ft32_gdbarch_init): Use type::set_instance_flags.
5304 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5305 * gdbarch.h, gdbarch.c: Regenerate.
5306 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5307 (address_class_name_to_type_flags): Use type_instance_flags and
5308 bool.
5309 * gdbtypes.c (address_space_name_to_int)
5310 (address_space_int_to_name, make_qualified_type): Use
5311 type_instance_flags.
5312 (make_qualified_type): Use type_instance_flags and
5313 type::set_instance_flags.
5314 (make_type_with_address_space, make_cv_type, make_vector_type)
5315 (check_typedef): Use type_instance_flags.
5316 (recursive_dump_type): Cast type_instance_flags to unsigned for
5317 printing.
5318 (copy_type_recursive): Use type::set_instance_flags.
5319 (gdbtypes_post_init): Use type::set_instance_flags.
5320 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5321 <m_instance_flags>: ... this.
5322 <instance_flags, set_instance_flags>: New methods.
5323 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5324 (SET_TYPE_INSTANCE_FLAGS): New.
5325 (address_space_name_to_int, address_space_int_to_name)
5326 (make_type_with_address_space): Pass flags using
5327 type_instance_flags instead of int.
5328 * stabsread.c (cleanup_undefined_types_noname): Use
5329 type::set_instance_flags.
5330 * s390-tdep.c (s390_address_class_type_flags): Return
5331 type_instance_flags.
5332 (s390_address_class_type_flags_to_name): Take a
5333 type_instance_flags.
5334 (s390_address_class_name_to_type_flags): Return bool and take a
5335 type_instance_flags.
5336 * type-stack.c (type_stack::follow_types): Use
5337 type_instance_flags.
5338 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5339
5340 2020-09-14 Tom Tromey <tromey@adacore.com>
5341
5342 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5343 * x86-tdep.c (x86_is_thunk_register_name)
5344 (x86_in_indirect_branch_thunk): Update.
5345 * sparc64-tdep.c (sparc64_fpu_register_names)
5346 (sparc64_cp0_register_names, sparc64_register_names)
5347 (sparc64_pseudo_register_names): Now const.
5348 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5349 cp0_registers_num>: Now const.
5350 * sparc-tdep.c (sparc_core_register_names)
5351 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5352 (sparc32_pseudo_register_names): Now const.
5353 (validate_tdesc_registers): Update.
5354 * rust-lang.c (rust_extensions): Now const.
5355 * p-lang.c (p_extensions): Now const.
5356 * objc-lang.c (objc_extensions): Now const.
5357 * nto-tdep.c (nto_thread_state_str): Now const.
5358 * moxie-tdep.c (moxie_register_names): Now const.
5359 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5360 Now const.
5361 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5362 (mips_linux_reg_names): Now const.
5363 (mips_gdbarch_init): Update.
5364 * microblaze-tdep.c (microblaze_register_names): Now const.
5365 * m68k-tdep.c (m68k_register_names): Now const.
5366 * m32r-tdep.c (m32r_register_names): Now const.
5367 * ia64-tdep.c (ia64_register_names): Now const.
5368 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5369 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5370 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5371 ymm_avx512_register_names, pkeys_register_names>: Now const.
5372 * i386-tdep.c (i386_register_names, i386_zmm_names)
5373 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5374 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5375 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5376 * f-lang.c (f_extensions): Now const.
5377 * d-lang.c (d_extensions): Now const.
5378 * csky-tdep.c (csky_register_names): Now const.
5379 * charset.c (default_charset_names, charset_enum): Now const.
5380 (_initialize_charset): Update.
5381 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5382 const.
5383 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5384 (bsd_uthread_solib_loaded): Update.
5385 (bsd_uthread_state): Now const.
5386 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5387 (amd64_ymm_avx512_names, amd64_ymmh_names)
5388 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5389 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5390 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5391 (amd64_dword_names): Now const.
5392 * agent.c (can_use_agent_enum): Now const.
5393 * ada-tasks.c (task_states, long_task_states): Now const.
5394 * ada-lang.c (known_runtime_file_name_patterns)
5395 (known_auxiliary_function_name_patterns, attribute_names)
5396 (standard_exc, ada_extensions): Now const.
5397
5398 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5399
5400 * bcache.h (struct bcache) <bcache>: Remove constructor.
5401 <m_hash_function, m_compare_function>: Remove.
5402 <~bcache>: Make virtual.
5403 <compare>: Remove static method, introduce virtual method.
5404 <default_hash>: Remove.
5405 <hash>: New virtual method.
5406 * bcache.c (bcache::expand_hash_table): Update.
5407 (bcache::insert): Update.
5408 (bcache::hash): New.
5409 (bcache::compare): Update comment and parameter names.
5410 * gdbtypes.c (types_deeply_equal): Update.
5411 * psymtab.h (struct psymbol_bcache): New struct.
5412 (class psymtab_storage) <psymtab_storage>: Make default.
5413 <psymbol_cache>: Change type to psymbol_bcache.
5414 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5415 (psymbol_hash): Change to...
5416 (psymbol_bcache::hash): ... this.
5417 (psymbol_compare): Change to...
5418 (psymbol_bcache::compare): ... this.
5419
5420 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5421
5422 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5423 checking for initial lwp.
5424
5425 2020-09-14 Tom Tromey <tromey@adacore.com>
5426
5427 * m68k-tdep.c (m68k_extract_return_value): Use
5428 pointer_result_regnum.
5429 (m68k_store_return_value): Likewise.
5430 (m68k_reg_struct_return_p): Handle vectors and arrays.
5431 (m68k_return_value): Handle arrays.
5432 (m68k_svr4_return_value): Fix single-element aggregate handling.
5433 Handle long double. Adjust for embedded ABI.
5434 (m68k_svr4_init_abi): Set pointer_result_regnum.
5435 (m68k_embedded_init_abi): New function.
5436 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5437 (m68k_osabi_sniffer): New function.
5438 (_initialize_m68k_tdep): Register osabi sniffer.
5439 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5440 member.
5441
5442 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5443
5444 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5445 with gdb::unique_xmalloc_ptr<char>.
5446
5447 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5448
5449 * xml-support.h (xml_fetch_another): Change type to be a
5450 function_view.
5451 (xml_process_xincludes): Remove baton parameter.
5452 (xml_fetch_content_from_file): Change baton parameter to
5453 dirname.
5454 * xml-support.c (struct xinclude_parsing_data)
5455 <xinclude_parsing_data>: Remove baton parameter.
5456 <fetcher_baton>: Remove.
5457 (xinclude_start_include): Adjust.
5458 (xml_process_xincludes): Adjust.
5459 (xml_fetch_content_from_file): Replace baton parameter with
5460 dirname.
5461 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5462 (xml_init_syscalls_info): Use a lambda.
5463 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5464 (file_read_description_xml): Use a lambda.
5465 (fetch_available_features_from_target): Change baton parameter
5466 to target_ops.
5467 (target_read_description_xml): Use a lambda.
5468 (target_fetch_description_xml): Use a lambda.
5469 (string_read_description_xml): Update.
5470
5471 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5472
5473 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5474 uses with type::endianity_is_not_default.
5475
5476 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5477
5478 * gdbtypes.h (struct type) <endianity_is_not_default,
5479 set_endianity_is_not_default>: New methods.
5480 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5481 type::endianity_is_not_default, change all write call sites to
5482 use type::set_endianity_is_not_default.
5483
5484 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5485
5486 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5487 uses with type::is_fixed_instance.
5488
5489 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5490
5491 * gdbtypes.h (struct type) <is_fixed_instance,
5492 set_is_fixed_instance>: New methods.
5493 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5494 write call sites to use type::set_is_fixed_instance.
5495
5496 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5497
5498 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5499 uses with type::is_gnu_ifunc.
5500
5501 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5502
5503 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5504 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5505 use type::set_is_gnu_ifunc.
5506
5507 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5508
5509 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5510 uses with type::stub_is_supported.
5511
5512 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5513
5514 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5515 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5516 use type::set_stub_is_supported.
5517
5518 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5519
5520 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5521 uses with type::is_vector.
5522
5523 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5524
5525 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5526 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5527 use type::set_is_vector.
5528
5529 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5530
5531 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5532 uses with type::has_varargs.
5533
5534 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5535
5536 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5537 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5538 use type::set_has_varargs.
5539
5540 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5541
5542 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5543 uses with type::is_prototyped.
5544
5545 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5548 New methods.
5549 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5550 call sites to use type::set_is_prototyped.
5551
5552 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5553
5554 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5555 uses with type::target_is_stub.
5556
5557 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5560 New methods.
5561 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5562 sites to use type::set_target_is_stub.
5563
5564 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5565
5566 * gdbtypes.h (TYPE_STUB): Remove, replace all
5567 uses with type::is_stub.
5568
5569 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5570
5571 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5572 (TYPE_STUB): Use type::is_stub, change all write call sites to
5573 use type::set_is_stub.
5574
5575 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5576
5577 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5578 type::has_no_signedness.
5579
5580 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5581
5582 * gdbtypes.h (struct type) <has_no_signedness,
5583 set_has_no_signedness>: New methods.
5584 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5585 call sites to use type::set_has_no_signedness.
5586
5587 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5588
5589 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5590 type::is_unsigned.
5591
5592 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5593
5594 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5595 methods.
5596 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5597 sites to use type::set_is_unsigned.
5598
5599 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5600 Adam Renquinha <arenquinha@cimeq.qc.ca>
5601
5602 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5603 pointer and stack frame offset when unwinding.
5604
5605 2020-09-13 Pedro Alves <pedro@palves.net>
5606
5607 * NEWS: Document "-break-insert --qualified".
5608 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5609
5610 2020-09-13 Pedro Alves <pedro@palves.net>
5611
5612 * linespec.c (classify_mtype, compare_msyms): Delete.
5613 (search_minsyms_for_name): Remove classification logic. Instead
5614 filter out trampoline symbols if we also found an external
5615 function of the same name.
5616
5617 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5618
5619 * NEWS: Create a new section for the next release branch.
5620 Rename the section of the current branch, now that it has
5621 been cut.
5622
5623 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5624
5625 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5626 * version.in: Bump version to 11.0.50.DATE-git.
5627
5628 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5629
5630 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5631
5632 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5633 Felix Willgerodt <Felix.Willgerodt@intel.com>
5634
5635 * gdbarch.sh: Added bfloat16 type.
5636 * gdbarch.c: Regenerated.
5637 * gdbarch.h: Regenerated.
5638 * gdbtypes.c (floatformats_bfloat16): New struct.
5639 (gdbtypes_post_init): Add builtin_bfloat16.
5640 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5641 (floatformats_bfloat16): New struct.
5642 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5643 (i386_ymm_type): Add field "v16_bfloat16"
5644 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5645 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5646 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5647 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5648 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5649 * features/i386/64bit-avx512.c: Regenerated.
5650 * features/i386/64bit-sse.xml: Add bfloat16 type.
5651 * features/i386/64bit-sse.c: Regenerated.
5652
5653 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5654
5655 * i386-tdep.c (i386_zmm_type): Fix field names.
5656 (i386_ymm_type): Fix field names.
5657
5658 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5659
5660 * breakpoint.c: Fix typo in the help message of the
5661 "set breakpoint condition-evaluation" command.
5662
5663 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5664
5665 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5666 * (nbsd_nat_target::pid_to_exec_file)
5667 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5668 (nbsd_nat_target::post_startup_inferior)
5669 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5670 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5671 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5672 * (nbsd_thread_lister): Remove.
5673
5674 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5675
5676 * fork-inferior.c (startup_inferior): Avoid double free.
5677
5678 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5679
5680 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5681 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5682
5683 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5684
5685 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5686 * netbsd-nat.c: Include <sys/ptrace.h>.
5687 * (netbsd_nat::enable_proc_events): Add.
5688
5689 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5690
5691 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5692 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5693 (netbsd_nat::for_each_thread): Add.
5694 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5695 "gdbsupport/common-debug.h".
5696 * (netbsd_nat::netbsd_thread_lister)
5697 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5698 (netbsd_nat::for_each_thread): Add.
5699
5700 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5701
5702 * netbsd-nat.h: Include <unistd.h>.
5703 * (netbsd_nat::pid_to_exec_file): Add.
5704 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5705 * (netbsd_nat::pid_to_exec_file) Add.
5706
5707 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5708
5709 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5710
5711 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5712
5713 * netbsd-nat.h: New file.
5714 * netbsd-nat.c: Likewise.
5715
5716 2020-09-09 Tom Tromey <tromey@adacore.com>
5717
5718 * ada-lang.c (remove_extra_symbols): Do not increment when
5719 removing an element
5720
5721 2020-09-08 Tom Tromey <tromey@adacore.com>
5722
5723 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5724
5725 2020-09-08 Tom Tromey <tromey@adacore.com>
5726
5727 PR win32/25302:
5728 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5729 (gdb_bfd_init_data): New function.
5730 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5731
5732 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5733
5734 * infrun.c (fetch_inferior_event): Use
5735 `switch_to_target_no_thread` to switch the target.
5736
5737 2020-09-06 Tom Tromey <tom@tromey.com>
5738
5739 * symfile.h (dwarf2_free_objfile): Don't declare.
5740
5741 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5742
5743 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5744 to match 16 byte real/complex type generated by Flang compiler.
5745
5746 2020-09-03 Tom de Vries <tdevries@suse.de>
5747
5748 PR breakpoint/26546
5749 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5750 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5751
5752 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5753
5754 * maint.c (index_digits): New function.
5755 (struct maint_print_section_data): Remove.
5756 (print_bfd_section_info): Remove print_data parameter, add arg
5757 and index_digits.
5758 (print_objfile_section_info): Likewise.
5759 (print_bfd_section_info_maybe_relocated): Likewise (plus
5760 objfile).
5761 (maintenance_info_sections): Adjust calls.
5762
5763 2020-09-02 Tom Tromey <tromey@adacore.com>
5764
5765 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5766 for null pointers.
5767 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5768
5769 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * bcache.h (struct bcache) <insert>: Change type of `added` to
5772 pointer to bool.
5773 * bcache.c (bcache::insert): Likewise.
5774 * gdbtypes.c (check_types_worklist): Adjust.
5775 * psymtab.c (add_psymbol_to_bcache): Adjust.
5776
5777 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5778
5779 * corelow.c (unordered_set): Include.
5780 (class core_target): Add field 'm_core_unavailable_mappings'.
5781 (core_target::build_file_mappings): Print only one warning
5782 per inaccessible file. Add unavailable/broken mappings
5783 to m_core_unavailable_mappings.
5784 (core_target::xfer_partial): Call...
5785 (core_target::xfer_memory_via_mappings): New method.
5786
5787 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5788
5789 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5790 type to bool.
5791
5792 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5793
5794 * dwarf2/read.c (struct field_info): Fix indentation.
5795
5796 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5797
5798 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5799 ordering in comment.
5800 * frame.c (frame_id_eq): Fix indentation.
5801
5802 2020-08-31 Scott Linder <scott@scottlinder.com>
5803 Simon Marchi <simon.marchi@efficios.com>
5804
5805 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5806 inline frame ids in outer frame.
5807
5808 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5811 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5812 (outer_frame_id): Use FID_STACK_OUTER instead of
5813 FID_STACK_INVALID.
5814 (frame_id_p): Don't check for outer_frame_id.
5815
5816 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5817
5818 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5819 regnum/frame in value. Call allocate_value_lazy.
5820 * frame.c (frame_unwind_register_value): Use
5821 val_print_not_saved.
5822
5823 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5824
5825 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5826
5827 2020-08-29 Pedro Alves <pedro@palves.net>
5828
5829 * progspace.c (print_program_space): Use all_inferiors. Switch to
5830 the inferior before calling target_pid_to_str.
5831
5832 2020-08-28 Tom Tromey <tom@tromey.com>
5833
5834 * xcoffread.c (xcoff_end_psymtab): Update comment.
5835 * dbxread.c (dbx_end_psymtab): Update comment.
5836
5837 2020-08-28 Tom de Vries <tdevries@suse.de>
5838
5839 PR breakpoint/26544
5840 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5841 event_location.
5842 (create_breakpoint): Same.
5843 (base_breakpoint_decode_location): Same.
5844 (bkpt_create_sals_from_location): Same.
5845 (bkpt_decode_location): Same.
5846 (bkpt_probe_create_sals_from_location): Same.
5847 (bkpt_probe_decode_location): Same.
5848 (tracepoint_create_sals_from_location): Same.
5849 (tracepoint_decode_location): Same.
5850 (tracepoint_probe_decode_location): Same.
5851 (strace_marker_create_sals_from_location): Same.
5852 (strace_marker_decode_location): Same.
5853 (create_sals_from_location_default): Same.
5854 (decode_location_default): Same.
5855 * breakpoint.h (struct breakpoint_ops): Same.
5856 (create_breakpoint): Same.
5857 * linespec.h (decode_line_full): Same.
5858 * linespec.c (decode_line_full): Same. Throw error if
5859 result.size () == 0.
5860
5861 2020-08-27 Pedro Alves <pedro@palves.net>
5862
5863 PR gdb/26524
5864 * breakpoint.c (until_break_fsm) <location_breakpoint,
5865 caller_breakpoint>: Delete fields.
5866 <breakpoints>: New field.
5867 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5868 two individual breakpoints.
5869 (until_break_fsm::should_stop): Loop over breakpoints in the
5870 breakpoint vector.
5871 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5872 vector.
5873 (until_break_command): Handle location expanding into multiple
5874 sals.
5875
5876 2020-08-27 Pedro Alves <pedro@palves.net>
5877
5878 PR gdb/26523
5879 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5880 bp_until breakpoints user-specified locations. Update intro
5881 comment.
5882
5883 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5884
5885 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5886 gdb_bfd_sections): New.
5887 * maint.c (print_bfd_section_info): Change param type to
5888 maint_print_section_data.
5889 (print_objfile_section_info): Likewise.
5890 (print_bfd_section_info_maybe_relocated): Likewise.
5891 (maintenance_info_sections): Use gdb_bfd_sections.
5892
5893 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5894
5895 * MAINTAINERS: Add ARC target and maintainer.
5896
5897 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5898
5899 * configure.tgt: ARC support for GNU/Linux.
5900 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5901 * arc-linux-tdep.c: New file.
5902 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5903 * arc-tdep.c (arc_write_pc): Use it.
5904
5905 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5906
5907 * arc-tdep.c (arc_check_for_hardware_loop): New.
5908 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5909
5910 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5911
5912 * arc-tdep.h: Include "gdbarch.h".
5913
5914 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5915
5916 * arch/arc.h
5917 (arc_gdbarch_features): New class to stir the selection of target XML.
5918 (arc_create_target_description): Use FEATURES to choose XML target.
5919 (arc_lookup_target_description): Use arc_create_target_description
5920 to create _new_ target descriptions or return the already created
5921 ones if the FEATURES is the same.
5922 * arch/arc.c: Implementation of prototypes described above.
5923 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5924 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5925 * arc-tdep.c (*_feature_name): Make feature names consistent.
5926 (arc_register_feature): A new struct to hold information about
5927 registers of a particular target/feature.
5928 (arc_check_tdesc_feature): Check if XML provides registers in
5929 compliance with ARC_REGISTER_FEATURE structs.
5930 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5931 (determine_*_reg_feature_set): Which feature name to look for.
5932 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5933 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5934 to expected ISA enums to be used in arc_gdbarch_features structs.
5935 * features/Makefile (FEATURE_XMLFILES): Add new files.
5936 * gdb/features/arc/v1-aux.c: New file.
5937 * gdb/features/arc/v1-aux.xml: Likewise.
5938 * gdb/features/arc/v1-core.c: Likewise.
5939 * gdb/features/arc/v1-core.xml: Likewise.
5940 * gdb/features/arc/v2-aux.c: Likewise.
5941 * gdb/features/arc/v2-aux.xml: Likewise.
5942 * gdb/features/arc/v2-core.c: Likewise.
5943 * gdb/features/arc/v2-core.xml: Likewise.
5944 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5945
5946 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5947 Andrew Burgess <andrew.burgess@embecosm.com>
5948
5949 PR m2/26372
5950 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5951 an assert. Remove single element array indexing pattern as the
5952 MULTI_SUBSCRIPT support will handle this case too.
5953
5954 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5955
5956 * value.h (valprint_check_validity): Move declaration from
5957 here...
5958 * valprint.h (valprint_check_validity): ... to here.
5959
5960 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5961
5962 * debug.h: New file.
5963 * debug.c (debug_prefixed_vprintf): New function.
5964 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5965 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5966
5967 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * infrun.h (infrun_debug_printf_1): New function declaration.
5970 (infrun_debug_printf): New macro.
5971 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5972 throughout.
5973 (infrun_debug_printf): New function.
5974 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5975 (handle_jit_event): Likewise.
5976
5977 2020-08-21 Mark Wielaard <mark@klomp.org>
5978
5979 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5980
5981 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5982
5983 * frame.c (enum class frame_id_status): New.
5984 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5985 (fprintf_frame): Update.
5986 (compute_frame_id): Set frame id status to "computing" on entry.
5987 Set it back to "not_computed" on failure and to "computed" on
5988 success.
5989 (get_frame_id): Assert the frame id is not being computed.
5990 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5991 (create_new_frame): Likewise.
5992 (frame_cleanup_after_sniffer): Update assert.
5993
5994 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * regcache.c (pid_ptid_regcache_map): New type.
5997 (target_ptid_regcache_map): Remove.
5998 (target_pid_ptid_regcache_map): New type.
5999 (regcaches): Change type to target_pid_ptid_regcache_map.
6000 (get_thread_arch_aspace_regcache): Update.
6001 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6002 case.
6003 (regcaches_size): Update.
6004 (regcache_count): Update.
6005 (registers_changed_ptid_target_pid_test): New.
6006 (_initialize_regcache): Register new test.
6007
6008 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6009
6010 * regcache.c (regcache_count): New.
6011 (struct regcache_test_data): New.
6012 (regcache_test_data_up): New.
6013 (populate_regcaches_for_test): New.
6014 (regcaches_test): Remove.
6015 (get_thread_arch_aspace_regcache_test): New.
6016 (registers_changed_ptid_all_test): New.
6017 (registers_changed_ptid_target_test): New.
6018 (registers_changed_ptid_target_ptid_test): New.
6019 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6020 (_initialize_regcache): Register new tests.
6021
6022 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6023
6024 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6025 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6026 gdbarch and aspace parameter. Use current inferior's aspace.
6027 Validate regcache's arch value.
6028 (regcaches_test): Update.
6029
6030 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6031
6032 * regcache.c (regcaches_test): Call registers_changed.
6033
6034 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6035
6036 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6037
6038 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6039
6040 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6041 to find the end of prologue for flang compiled binaries.
6042 * arm-tdep.c (arm_skip_prologue): Likewise.
6043 * i386-tdep.c (i386_skip_prologue): Likewise.
6044 * producer.c (producer_is_llvm): New function.
6045 (producer_parsing_tests): Added new tests for clang/flang.
6046 * producer.h (producer_is_llvm): New declaration.
6047
6048 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6049
6050 * linux-nat.c (linux_nat_debug_printf): New function.
6051 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6052
6053 2020-08-18 Aaron Merey <amerey@redhat.com>
6054
6055 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6056 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6057 (CLIBS): Add DEBUGINFOD_LIBS.
6058
6059 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6060
6061 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6062 'gdbarch_num_regs'.
6063
6064 2020-08-17 Tom Tromey <tromey@adacore.com>
6065
6066 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6067 ada_get_decoded_value returns NULL.
6068
6069 2020-08-17 Tom Tromey <tromey@adacore.com>
6070
6071 * python/py-inferior.c (infpy_search_memory): Use
6072 gdb_py_object_from_ulongest.
6073 * python/py-infevents.c (create_inferior_call_event_object)
6074 (create_memory_changed_event_object): Use
6075 gdb_py_object_from_ulongest.
6076 * python/py-linetable.c (ltpy_entry_get_pc): Use
6077 gdb_py_object_from_ulongest.
6078
6079 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6080
6081 * loc.c (class symbol_needs_eval_context): Fix indentation.
6082
6083 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6084
6085 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6086 bool.
6087
6088 2020-08-17 Tom de Vries <tdevries@suse.de>
6089
6090 PR gdb/26393
6091 * gdbtypes.c (dump_dynamic_prop): New function.
6092 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6093
6094 2020-08-15 Tom de Vries <tdevries@suse.de>
6095
6096 PR backtrace/26390
6097 * stack.c (print_frame_args): Temporarily set the selected
6098 frame to FRAME while printing the frame's arguments.
6099
6100 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6101
6102 PR breakpoints/26385
6103 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6104 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6105
6106 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6107
6108 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6109 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6110 and >= to check return value instead of == -1 and != -1.
6111
6112 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6113
6114 * utils.h (class gdb_argv) <as_array_view>: New method.
6115 * utils.c (gdb_argv_as_array_view_test): New.
6116 (_initialize_utils): Register selftest.
6117 * maint.c (maintenance_selftest): Use the new method.
6118
6119 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6120
6121 * target.h (supports_dumpcore, dumpcore): New
6122 function declarations.
6123 * target.c (supports_dumpcore, dumpcore): New
6124 functions.
6125 * target-delegates.c: Rebuild.
6126 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6127 and target_dumpcore ().
6128
6129 2020-08-13 Aaron Merey <amerey@redhat.com>
6130
6131 * debuginfod-support.c: Replace global variables with user_data.
6132
6133 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6134
6135 * maint.c (maintenance_selftest): Split args and pass array_view
6136 to run_tests.
6137
6138 2020-08-12 Luis Machado <luis.machado@linaro.org>
6139
6140 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6141 type's length.
6142 Use %s and pulongest to print the length.
6143
6144 2020-08-12 Pedro Alves <palves@redhat.com>
6145
6146 * NEWS: Move "Multi-target debugging support" item to the
6147 "Changes since GDB 9" section.
6148
6149 2020-08-12 Pedro Alves <palves@redhat.com>
6150
6151 PR gdb/26336
6152 * progspace.c (program_space::remove_objfile): Invalidate the
6153 frame cache.
6154
6155 2020-08-11 Tom de Vries <tdevries@suse.de>
6156
6157 * MAINTAINERS: Mark ms1 as deleted.
6158
6159 2020-08-10 Luis Machado <luis.machado@linaro.org>
6160
6161 PR gdb/26310
6162
6163 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6164 act accordingly.
6165 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6166 movz/str/stur/stp skipping behavior.
6167
6168 2020-08-10 Luis Machado <luis.machado@linaro.org>
6169
6170 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6171 struct user_sve_header instead of struct sve_context.
6172
6173 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6174
6175 * read.h (dwarf2_fetch_die_loc_sect_off,
6176 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6177 `void *` parameter with function_view.
6178 * read.c (dwarf2_fetch_die_loc_sect_off,
6179 dwarf2_fetch_die_loc_cu_off): Likewise.
6180 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6181 (per_cu_dwarf_call): Adjust.
6182 (get_frame_address_in_block_wrapper): Remove.
6183 (indirect_synthetic_pointer): Adjust.
6184 (get_ax_pc): Remove.
6185 (dwarf2_compile_expr_to_ax): Adjust.
6186
6187 2020-08-08 Tom de Vries <tdevries@suse.de>
6188
6189 PR build/26344
6190 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6191 constructor.
6192 * regcache.c (get_thread_arch_aspace_regcache): Same.
6193
6194 2020-08-07 Tom Tromey <tromey@adacore.com>
6195
6196 * ravenscar-thread.c
6197 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6198 New method.
6199 (ravenscar_thread_target::wait): Check
6200 runtime_initialized.
6201 (ravenscar_thread_target::prepare_to_store)
6202 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6203 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6204 (ravenscar_thread_target::stopped_by_watchpoint)
6205 (ravenscar_thread_target::stopped_data_address)
6206 (ravenscar_thread_target::core_of_thread): Use
6207 scoped_restore_current_thread and
6208 set_base_thread_from_ravenscar_task.
6209
6210 2020-08-07 Tom Tromey <tromey@adacore.com>
6211
6212 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6213
6214 2020-08-07 Tom Tromey <tromey@adacore.com>
6215
6216 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6217 update_inferior_ptid before update_thread_list.
6218 (temporarily_change_regcache_ptid): New class.
6219 (ravenscar_thread_target::fetch_registers)
6220 (ravenscar_thread_target::store_registers)
6221 (ravenscar_thread_target::prepare_to_store): Use base thread when
6222 forwarding operation.
6223
6224 2020-08-07 Tom Tromey <tromey@adacore.com>
6225
6226 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6227 "is_pid" case.
6228
6229 2020-08-07 Tom Tromey <tromey@adacore.com>
6230
6231 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6232 New methods.
6233 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6234 first.
6235 (ravenscar_thread_target::add_thread): Rename from
6236 ravenscar_add_thread.
6237 (ravenscar_thread_target::update_thread_list): Use a lambda.
6238 (ravenscar_thread_target::xfer_partial): New method.
6239
6240 2020-08-07 Tom Tromey <tromey@adacore.com>
6241
6242 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6243 gdb::function_view.
6244 (iterate_over_live_ada_tasks): Change type of argument.
6245 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6246 of argument.
6247
6248 2020-08-07 Tom Tromey <tromey@adacore.com>
6249
6250 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6251 Remove.
6252 (ravenscar_thread_target::extra_thread_info): Remove.
6253 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6254 defer to target beneath for non-Ravenscar threads.
6255
6256 2020-08-07 Tom Tromey <tromey@adacore.com>
6257
6258 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6259 get_base_thread_from_ravenscar_task>: Now methods.
6260 <m_cpu_map>: New member.
6261 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6262 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6263 (ravenscar_thread_target::task_is_currently_active): Update.
6264 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6265 Now a method.
6266 (ravenscar_thread_target::add_active_thread): Put initial thread
6267 into the m_cpu_map.
6268
6269 2020-08-07 Tom Tromey <tromey@adacore.com>
6270
6271 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6272 event_ptid.
6273
6274 2020-08-07 Tom Tromey <tromey@adacore.com>
6275
6276 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6277 runtime_initialized.
6278
6279 2020-08-07 Tom Tromey <tromey@adacore.com>
6280
6281 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6282 add_active_thread.
6283 (ravenscar_thread_target::add_active_thread): Now public.
6284 (ravenscar_inferior_created): Call add_active_thread after pushing
6285 the target.
6286
6287 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6288
6289 * regcache.c (ptid_regcache_map): New type.
6290 (target_ptid_regcache_map): New type.
6291 (regcaches): Change type to target_ptid_regcache_map.
6292 (get_thread_arch_aspace_regcache): Update to regcaches' new
6293 type.
6294 (regcache_thread_ptid_changed): Likewise.
6295 (registers_changed_ptid): Likewise.
6296 (regcaches_size): Likewise.
6297 (regcaches_test): Update.
6298 (regcache_thread_ptid_changed): Update.
6299 * regcache.h (regcache_up): New type.
6300 * gdbsupport/ptid.h (hash_ptid): New struct.
6301
6302 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6303
6304 * observable.h (thread_ptid_changed): Add parameter
6305 `process_stratum_target *`.
6306 * infrun.c (infrun_thread_ptid_changed): Add parameter
6307 `process_stratum_target *` and use it.
6308 (selftests): New namespace.
6309 (infrun_thread_ptid_changed): New function.
6310 (_initialize_infrun): Register selftest.
6311 * regcache.c (regcache_thread_ptid_changed): Add parameter
6312 `process_stratum_target *` and use it.
6313 (regcache_thread_ptid_changed): New function.
6314 (_initialize_regcache): Register selftest.
6315 * thread.c (thread_change_ptid): Pass target to
6316 thread_ptid_changed observable.
6317
6318 2020-08-06 Caroline Tice <cmtice@google.com>
6319
6320 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6321 (struct dwp_sections): Update field comments. Add loclists and
6322 rnglists fields.
6323 (struct virtual_v2_dwo_sections): Rename struct to
6324 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6325 size & offset fields for loclists and rnglists.
6326 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6327 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6328 skipping dummy type units.
6329 (create_dwp_hash_table): Update the large comment above the function to
6330 discuss Version 5 DWP files as well, with references. Update all the
6331 version checks in the function to check for version 5 as well. Add new
6332 section at the end to create dwp hash table for version 5.
6333 (create_dwp_v2_section): Rename function to
6334 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6335 Add V5 to error message text.
6336 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6337 into calls to create_dwp_v2_or_v5_section.
6338 (create_dwo_unit_in_dwp_v5): New function.
6339 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6340 check for version2; add else clause to handle version 5.
6341 (open_and_init_dwo_file): Add code to check dwarf version & only call
6342 create_debug_types_hash_table (with sections.types) if version is not 5;
6343 else call create_debug_type_hash_table, with sections.info.
6344 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6345 version 5.
6346 (dwarf2_locate_v5_dwp_sections): New function.
6347 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6348 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6349
6350 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6351
6352 * regcache.h (class regcache): Remove friend
6353 registers_changed_ptid.
6354 <regcache_thread_ptid_changed>: Remove.
6355 <regcaches>: Remove.
6356 * regcache.c (regcache::regcaches): Rename to...
6357 (regcaches): ... this. Make static.
6358 (get_thread_arch_aspace_regcache): Update.
6359 (regcache::regcache_thread_ptid_changed): Rename to...
6360 (regcache_thread_ptid_changed): ... this. Update.
6361 (class regcache_access): Remove.
6362 (regcaches_test): Update.
6363 (_initialize_regcache): Update.
6364 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6365 <forward_list>.
6366
6367 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6368
6369 * regcache.h (class regcache) <current_regcache>: Rename to...
6370 <regcaches>: ... this. Move doc here.
6371 * regcache.c (regcache::current_regcache) Rename to...
6372 (regcache::regcaches): ... this. Move doc to header.
6373 (get_thread_arch_aspace_regcache): Update.
6374 (regcache::regcache_thread_ptid_changed): Update.
6375 (registers_changed_ptid): Update.
6376 (class regcache_access) <current_regcache_size>: Rename to...
6377 <regcaches_size>: ... this.
6378 (current_regcache_test): Rename to...
6379 (regcaches_test): ... this.
6380 (_initialize_regcache): Update.
6381
6382 2020-08-06 Victor Collod <vcollod@nvidia.com>
6383
6384 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6385
6386 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6387
6388 * corelow.c (core_target::build_file_mappings): Don't output
6389 null pathname in warning.
6390
6391 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6392
6393 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6394 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6395 gdb.dwarf2/dw2-single-line-discriminators.exp,
6396 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6397
6398 2020-08-05 Tom Tromey <tromey@adacore.com>
6399
6400 PR rust/26197:
6401 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6402 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6403 Fix off-by-one and type size errors in ordinary case.
6404
6405 2020-08-05 Tom de Vries <tdevries@suse.de>
6406
6407 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6408 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6409
6410 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6411
6412 * frame.h (frame_id_p): Return bool.
6413 (frame_id_artificial_p): Return bool.
6414 (frame_id_eq): Return bool.
6415 (has_stack_frames): Return bool.
6416 (get_selected_frame): Fix typo in comment.
6417 (get_frame_pc_if_available): Return bool.
6418 (get_frame_address_in_block_if_available): Return bool.
6419 (get_frame_func_if_available): Return bool.
6420 (read_frame_register_unsigned): Return bool.
6421 (get_frame_register_bytes): Return bool.
6422 (safe_frame_unwind_memory): Return bool.
6423 (deprecated_frame_register_read): Return bool.
6424 (frame_unwinder_is): Return bool.
6425 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6426 bool.
6427 <this_id::p>: Likewise.
6428 <prev_p>: Likewise.
6429 (frame_stash_add): Return bool.
6430 (get_frame_id): Use bool.
6431 (frame_id_build_special) Use bool.
6432 (frame_id_build_unavailable_stack): Use bool.
6433 (frame_id_build): Use bool.
6434 (frame_id_p): Return bool, use true/false instead of 1/0.
6435 (frame_id_artificial_p): Likewise.
6436 (frame_id_eq): Likewise.
6437 (frame_id_inner): Likewise.
6438 (get_frame_func_if_available): Likewise.
6439 (read_frame_register_unsigned): Likewise.
6440 (deprecated_frame_register_read): Likewise.
6441 (get_frame_register_bytes): Likewise.
6442 (has_stack_frames): Likewise.
6443 (inside_main_func): Likewise.
6444 (inside_entry_func): Likewise.
6445 (get_frame_pc_if_available): Likewise.
6446 (get_frame_address_in_block_if_available): Likewise.
6447 (frame_unwinder_is): Likewise.
6448 (safe_frame_unwind_memory): Likewise.
6449 (frame_unwind_arch): Likewise.
6450
6451 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6452
6453 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6454 type to cached_copy_status.
6455 (fprintf_frame): Adjust.
6456 (get_frame_func_if_available): Adjust.
6457 (frame_cleanup_after_sniffer): Adjust.
6458
6459 2020-08-04 Mark Wielaard <mark@klomp.org>
6460
6461 * MAINTAINERS (Write After Approval): Update email address.
6462
6463 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6466 dynamic_prop::const_val.
6467
6468 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6469
6470 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6471 dynamic_prop::kind.
6472
6473 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6474
6475 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6476
6477 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6478
6479 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6480
6481 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6482 Jose E. Marchesi <jose.marchesi@oracle.com>
6483
6484 * configure.tgt: Add entry for bpf-*-*.
6485 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6486 (ALLDEPFILES): Add bpf-tdep.c.
6487 * bpf-tdep.c: New file.
6488 * MAINTAINERS: Add bpf target and maintainer.
6489 * NEWS: Mention the support for the new target.
6490
6491 2020-08-04 Tom de Vries <tdevries@suse.de>
6492
6493 PR symtab/23270
6494 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6495 Error.
6496
6497 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6498
6499 * syscalls/freebsd.xml: Regenerate.
6500
6501 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6502
6503 * syscalls/update-freebsd.sh: Fix usage and year range.
6504
6505 2020-08-03 Tom de Vries <tdevries@suse.de>
6506
6507 PR symtab/26333
6508 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6509 DW_LNE_lo_user/DW_LNE_hi_user range.
6510
6511 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6512
6513 PR ada/26318
6514 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6515 kind.
6516
6517 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6518
6519 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6520
6521 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6522
6523 * breakpoint.c (set_breakpoint_condition): Update the condition
6524 expressions after checking that the input condition string parses
6525 successfully and does not contain junk at the end.
6526
6527 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6528
6529 * breakpoint.c (set_breakpoint_condition): Update the
6530 condition string after parsing the new condition successfully.
6531
6532 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6533
6534 * proc-api.c (_STRUCTURED_PROC): Don't define.
6535 * proc-events.c: Likewise.
6536 * proc-flags.c: Likewise.
6537 * proc-why.c: Likewise.
6538 * procfs.c: Likewise.
6539
6540 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6541 * configure, config.in: Regenerate.
6542
6543 2020-07-30 Tom de Vries <tdevries@suse.de>
6544
6545 PR build/26320
6546 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6547 m_red/m_green/m_blue in a union.
6548
6549 2020-07-29 Tom de Vries <tdevries@suse.de>
6550
6551 PR tdep/26280
6552 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6553
6554 2020-07-28 Tom Tromey <tromey@adacore.com>
6555
6556 PR symtab/26270:
6557 * symtab.h (find_pc_partial_function_sym): Declare.
6558 * cli/cli-cmds.c (disassemble_command): Use
6559 find_pc_partial_function_sym. Check asm_demangle.
6560 * blockframe.c (cache_pc_function_sym): New global.
6561 (cache_pc_function_name): Remove.
6562 (clear_pc_function_cache): Update.
6563 (find_pc_partial_function_sym): New function, from
6564 find_pc_partial_function.
6565 (find_pc_partial_function): Rewrite using
6566 find_pc_partial_function_sym.
6567
6568 2020-07-28 Tom Tromey <tromey@adacore.com>
6569
6570 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6571 help. Add usage.
6572
6573 2020-07-28 Tom Tromey <tromey@adacore.com>
6574
6575 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6576 <DW_OP_GNU_variable_value>: Cast to address type.
6577
6578 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6579
6580 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6581 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6582 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6583 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6584 (nbsd_get_siginfo_type): New.
6585 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6586 (_initialize_nbsd_tdep): New.
6587
6588 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6589
6590 PR binutils/26301
6591 * configure: Regenerated.
6592
6593 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6594
6595 PR binutils/26301
6596 * configure: Regenerated.
6597
6598 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * python/py-frame.c: Remove 'user-regs.h' include.
6601 (frapy_read_register): Rewrite to make use of
6602 gdbpy_parse_register_id.
6603 * python/py-registers.c (gdbpy_parse_register_id): New function,
6604 moved here from python/py-unwind.c. Updated the return type, and
6605 also accepts register descriptor objects.
6606 * python/py-unwind.c: Remove 'user-regs.h' include.
6607 (pyuw_parse_register_id): Moved to python/py-registers.c.
6608 (unwind_infopy_add_saved_register): Update to use
6609 gdbpy_parse_register_id.
6610 (pending_framepy_read_register): Likewise.
6611 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6612
6613 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6614
6615 * python/py-registers.c: Add 'user-regs.h' include.
6616 (register_descriptor_iter_find): New function.
6617 (register_descriptor_iterator_object_methods): New static global
6618 methods array.
6619 (register_descriptor_iterator_object_type): Add pointer to methods
6620 array.
6621
6622 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6623
6624 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6625 for all architectures on FreeBSD 11.3 and later.
6626
6627 2020-07-27 Tom Tromey <tromey@adacore.com>
6628
6629 * gcore.h (load_corefile): Don't declare.
6630
6631 2020-07-27 Tom de Vries <tdevries@suse.de>
6632
6633 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6634 * config.in: Regenerate.
6635 * configure: Regenerate.
6636
6637 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6638
6639 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6640 ws2tcpip.h. When checking whether socklen_t type is defined, use
6641 ws2tcpip.h if it is available and sys/socket.h isn't.
6642 * configure: Regenerate.
6643 * config.in: Regenerate.
6644
6645 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6646
6647 PR fortran/23051
6648 PR fortran/26139
6649 * valops.c (value_ind): Pass address to
6650 readjust_indirect_value_type.
6651 * value.c (readjust_indirect_value_type): Make parameter
6652 non-const, and add extra address parameter. Resolve original type
6653 before using it.
6654 * value.h (readjust_indirect_value_type): Update function
6655 signature and comment.
6656
6657 2020-07-25 Tom de Vries <tdevries@suse.de>
6658
6659 PR symtab/26243
6660 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6661 entries.
6662
6663 2020-07-24 Aaron Merey <amerey@redhat.com>
6664
6665 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6666 * configure: Rebuild.
6667
6668 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6669
6670 PR corefiles/26294
6671 * corelow.c (_initialize_corelow): Add period to help text
6672 for "maintenance print core-file-backed-mappings".
6673
6674 2020-07-23 Pedro Alves <pedro@palves.net>
6675
6676 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6677 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6678 meanwhile.
6679 * frame.c (frame_cache_generation, get_frame_cache_generation):
6680 New.
6681 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6682 (get_prev_frame_if_no_cycle): On exception, don't touch
6683 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6684 * frame.h (get_frame_cache_generation): Declare.
6685
6686 2020-07-23 Tom de Vries <tdevries@suse.de>
6687
6688 PR tui/26282
6689 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6690 New default constructor.
6691
6692 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6695 exclude non-statement entries.
6696
6697 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6698
6699 * NEWS (New commands): Mention new command
6700 "maintenance print core-file-backed-mappings".
6701
6702 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6703
6704 * corelow.c (gdbcmd.h): Include.
6705 (core_target::info_proc_mappings): New method.
6706 (get_current_core_target): New function.
6707 (maintenance_print_core_file_backed_mappings): New function.
6708 (_initialize_corelow): Add core-file-backed-mappings to
6709 "maint print" commands.
6710
6711 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6712
6713 * linux-tdep.c (dump_note_entry_p): New function.
6714 (linux_dump_mapping_p_ftype): New typedef.
6715 (linux_find_memory_regions_full): Add new parameter,
6716 should_dump_mapping_p.
6717 (linux_find_memory_regions): Adjust call to
6718 linux_find_memory_regions_full.
6719 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6720 call to linux_find_memory_regions_full.
6721
6722 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6723
6724 * corelow.c (solist.h, unordered_map): Include.
6725 (class core_target): Add field m_core_file_mappings and
6726 method build_file_mappings.
6727 (core_target::core_target): Call build_file_mappings.
6728 (core_target::~core_target): Free memory associated with
6729 m_core_file_mappings.
6730 (core_target::build_file_mappings): New method.
6731 (core_target::xfer_partial): Use m_core_file_mappings
6732 for memory transfers.
6733 * linux-tdep.c (linux_read_core_file_mappings): New
6734 function.
6735 (linux_core_info_proc_mappings): Rewrite to use
6736 linux_read_core_file_mappings.
6737 (linux_init_abi): Register linux_read_core_file_mappings.
6738
6739 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6740
6741 * arch-utils.c (default_read_core_file_mappings): New function.
6742 * arch-utils.c (default_read_core_file_mappings): Declare.
6743 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6744 * gdbarch.h, gdbarch.c: Regenerate.
6745
6746 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6747
6748 PR corefiles/25631
6749 * corelow.c (core_target:xfer_partial): Revise
6750 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6751 case after first checking the stratum beneath the core
6752 target.
6753 (has_all_memory): Return true.
6754 * target.c (raw_memory_xfer_partial): Revise comment
6755 regarding use of has_all_memory.
6756
6757 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6758
6759 * exec.h (section_table_xfer_memory): Revise declaration,
6760 replacing section name parameter with an optional callback
6761 predicate.
6762 * exec.c (section_table_xfer_memory): Likewise.
6763 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6764 of section_table_xfer_memory.
6765
6766 2020-07-22 Tom Tromey <tromey@adacore.com>
6767
6768 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6769 lookup_symbol_search_name.
6770
6771 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6774 redundant local variable.
6775 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6776 reference, not pointer, update code accordingly.
6777
6778 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6779 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6780
6781 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6782 * jit.c (jit_breakpoint_re_set_internal): Use the
6783 `skip_jit_symbol_lookup` field.
6784
6785 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6786 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6787
6788 * jit.c (jit_read_descriptor): Define the descriptor address once,
6789 use twice.
6790 (jit_breakpoint_deleted): Move the declaration of the loop variable
6791 `iter` into the loop header.
6792 (jit_breakpoint_re_set_internal): Move the declaration of the local
6793 variable `objf_data` to the first point of definition.
6794 (jit_event_handler): Move the declaration of local variables
6795 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6796 Rename `objf` to `jited`.
6797
6798 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6799
6800 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6801 Remove.
6802 * jit.c (get_jiter_objfile_data): Update.
6803
6804 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6805 Simon Marchi <simon.marchi@polymtl.ca>
6806
6807 * jit.c (struct jit_program_space_data): Remove.
6808 (jit_program_space_key): Remove.
6809 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6810 stuff.
6811 (get_jit_program_space_data): Remove.
6812 (jit_breakpoint_deleted): Iterate on all of the program space's
6813 objfiles.
6814 (jit_inferior_init): Likewise.
6815 (jit_breakpoint_re_set_internal): Likewise. Also change return
6816 type to void.
6817 (jit_breakpoint_re_set): Pass current_program_space to
6818 jit_breakpoint_re_set_internal.
6819
6820 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6821
6822 * jit.h (struct jiter_objfile_data) <cached_code_address,
6823 jit_breakpoint>: Move to here from ...
6824 * jit.c (jit_program_space_data): ... here.
6825 (jiter_objfile_data::~jiter_objfile_data): Update.
6826 (jit_breakpoint_deleted): Update.
6827 (jit_breakpoint_re_set_internal): Update.
6828
6829 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6830
6831 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6832 checks.
6833 (jit_read_descriptor): Remove NULL check.
6834 (jit_event_handler): Add an assertion.
6835
6836 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6837
6838 * jit.h (struct jit_objfile_data): Split into...
6839 (struct jiter_objfile_data): ... this ...
6840 (struct jited_objfile_data): ... and this.
6841 * objfiles.h (struct objfile) <jit_data>: Remove.
6842 <jiter_data, jited_data>: New fields.
6843 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6844 (jiter_objfile_data::~jiter_objfile_data): ... this.
6845 (get_jit_objfile_data): Rename to ...
6846 (get_jiter_objfile_data): ... this.
6847 (add_objfile_entry): Update.
6848 (jit_read_descriptor): Use get_jiter_objfile_data.
6849 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6850 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6851 (jit_inferior_exit_hook): Use objfile's jited_data field.
6852
6853 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6854
6855 * jit.h: Forward-declare `struct minimal_symbol`.
6856 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6857 constructor, destructor, and an objfile* field.
6858 * jit.c (jit_objfile_data): Remove.
6859 (struct jit_objfile_data): Migrate from here to jit.h.
6860 (jit_objfile_data::~jit_objfile_data): New destructor
6861 implementation with code moved from free_objfile_data.
6862 (free_objfile_data): Delete.
6863 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6864 (jit_find_objf_with_entry_addr): Ditto.
6865 (jit_inferior_exit_hook): Ditto.
6866 (_initialize_jit): Remove the call to
6867 register_objfile_data_with_cleanup.
6868 * objfiles.h (struct objfile) <jit_data>: New field.
6869
6870 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6871
6872 * jit.h: Forward-declare `struct objfile`.
6873 (jit_event_handler): Add a second parameter, the JITer objfile.
6874 * jit.c (jit_read_descriptor): Change the signature to take the
6875 JITer objfile as an argument instead of the jit_program_space_data.
6876 (jit_inferior_init): Update the call to jit_read_descriptor.
6877 (jit_event_handler): Use the new JITer objfile argument when calling
6878 jit_read_descriptor.
6879 * breakpoint.c (handle_jit_event): Update the call to
6880 jit_event_handler to pass the JITer objfile.
6881
6882 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6883
6884 * gdbarch.c: Regenerate.
6885 * gdbarch.h: Regenerate.
6886 * gdbarch.sh (handle_segmentation_fault): Remove method.
6887 * infrun.c (handle_segmentation_fault): Remove.
6888 (print_signal_received_reason): Remove call to
6889 handle_segmentation_fault.
6890
6891 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6892
6893 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6894 Rename to sparc64_linux_report_signal_info and add siggnal
6895 argument.
6896 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6897 instead of sparc64_linux_handle_segmentation_fault.
6898
6899 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6900
6901 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6902 i386_linux_report_signal_info instead of
6903 i386_linux_handle_segmentation_fault.
6904 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6905 to i386_linux_report_signal_info and add siggnal argument.
6906 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6907 of i386_linux_handle_segmentation_fault.
6908 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6909 to i386_linux_report_signal_info and add siggnal argument.
6910
6911 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6912
6913 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6914 hook if present.
6915
6916 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6917
6918 * gdbarch.c: Regenerate.
6919 * gdbarch.h: Regenerate.
6920 * gdbarch.sh (report_signal_info): New method.
6921 * infrun.c (print_signal_received_reason): Invoke gdbarch
6922 report_signal_info hook if present.
6923
6924 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6925
6926 * python/py-registers.c : Add 'unordered_map' include.
6927 (gdbpy_new_reggroup): Renamed to...
6928 (gdbpy_get_reggroup): ...this. Update to only create register
6929 group descriptors when needed.
6930 (gdbpy_reggroup_iter_next): Update.
6931
6932 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 * python/py-registers.c (gdbpy_register_object_data): New static
6935 global.
6936 (gdbpy_register_object_data_init): New function.
6937 (gdbpy_new_register_descriptor): Renamed to...
6938 (gdbpy_get_register_descriptor): ...this, and update to reuse
6939 existing register descriptors where possible.
6940 (gdbpy_register_descriptor_iter_next): Update.
6941 (gdbpy_initialize_registers): Register new gdbarch data.
6942
6943 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * linux-nat.c (stopped_pids): Make static.
6946
6947 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6948
6949 PR ada/26235
6950 * gdbtypes.c (ada_discrete_type_low_bound,
6951 ada_discrete_type_high_bound): Handle undefined bounds.
6952
6953 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6954
6955 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6956 declaration.
6957 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6958 function.
6959
6960 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6961
6962 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6963 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6964 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6965 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6966 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6967 method.
6968
6969 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6970
6971 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6972 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6973 which are deprecated in Guile 3.0.
6974 * configure.ac (try_guile_versions): Add "guile-3.0".
6975 * configure (try_guile_versions): Regenerate.
6976 * NEWS: Update entry.
6977
6978 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6979 Doug Evans <dje@google.com>
6980
6981 PR gdb/21104
6982 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6983 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6984 USING_GUILE_BEFORE_2_2.
6985 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6986 Change type to 'scm_t_port_type *'.
6987 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6988 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6989 parameter and honor it. Update callers.
6990 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6991 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6992 functions.
6993 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6994 USING_GUILE_BEFORE_2_2.
6995 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6996 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6997 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6998 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6999 and 'SCM_PORT_TYPE'.
7000 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7001 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7002 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7003 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7004 [!USING_GUILE_BEFORE_2_2]: New functions.
7005 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7006 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7007 'gdbscm_memory_port_read'.
7008 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7009 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7010 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7011 function.
7012 (ioscm_init_memory_port): Remove.
7013 (ioscm_init_memory_port_stream): New function
7014 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7015 function.
7016 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7017 Return scm_from_uint (0).
7018 (gdbscm_set_memory_port_read_buffer_size_x)
7019 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7020 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7021 Return scm_from_uint (0).
7022 (gdbscm_set_memory_port_write_buffer_size_x)
7023 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7024 * configure.ac (try_guile_versions): Add "guile-2.2".
7025 * configure: Regenerate.
7026 * NEWS: Add entry.
7027
7028 2020-07-18 Tom Tromey <tom@tromey.com>
7029
7030 * linux-nat.c (linux_multi_process): Remove.
7031 (linux_nat_target::supports_multi_process): Return true.
7032
7033 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7034
7035 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7036 (riscv_lookup_target_description): Return pointer out of
7037 unique_ptr.
7038 * target-descriptions.c (allocate_target_description): Add
7039 comment.
7040 (target_desc_deleter::operator()): Likewise.
7041 * target-descriptions.h (struct target_desc_deleter): Moved to
7042 gdbsupport/tdesc.h.
7043 (target_desc_up): Likewise.
7044
7045 2020-07-17 Tom Tromey <tromey@adacore.com>
7046
7047 * linux-nat.c (linux_nat_target::supports_non_stop)
7048 (linux_nat_target::always_non_stop_p): Use "true".
7049 (linux_nat_target::supports_disable_randomization): Use "true" and
7050 "false".
7051
7052 2020-07-16 Caroline Tice <cmtice@google.com>
7053
7054 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7055 (RNGLIST_HEADER_SIZE64): New constant definition.
7056 (struct dwop_section_names): Add rnglists_dwo.
7057 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7058 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7059 (struct dwo_sections): Add rnglists field.
7060 (read_attribut_reprocess): Add tag parameter.
7061 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7062 (cu_debug_rnglists_section): New function (decl & definition).
7063 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7064 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7065 die whose range is being checked; get rnglist section from
7066 cu_debug_rnglists_section, to get from either objfile or dwo file as
7067 appropriate. Add cases for DW_RLE_base_addressx,
7068 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7069 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7070 test inside if-condition and updating complaint message.
7071 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7072 dwarf2_rnglists_process.
7073 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7074 dwarf2_ranges_process.
7075 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7076 need_ranges_base and update comment appropriately. Also pass die tag
7077 to dwarf2_ranges_read.
7078 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7079 need_ranges_base and update comment appropriately. Also pass die tag
7080 to dwarf2_ranges_process.
7081 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7082 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7083 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7084 need_ranges_base and update comment appropriately. Also pass die tag
7085 to read_attribute_reprocess and dwarf2_ranges_read.
7086 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7087 and update function comment appropriately.
7088 (read_loclist_index): Call read_loclists_rnglists_header instead of
7089 read_loclist_header.
7090 (read_rnglist_index): New function.
7091 (read_attribute_reprocess): Add tag parameter. Add code for
7092 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7093 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7094
7095 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7096
7097 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7098 being resolved.
7099
7100 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7101
7102 * arch-utils.c (show_architecture): Update formatting of messages.
7103
7104 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7105
7106 * gdbtypes.h (struct type) <bounds>: Handle array and string
7107 types.
7108 * ada-lang.c (assign_aggregate): Use type::bounds on
7109 array/string type.
7110 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7111 * c-varobj.c (c_number_of_children): Likewise.
7112 (c_describe_child): Likewise.
7113 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7114 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7115 (f_type_print_base): Likewise.
7116 * f-valprint.c (f77_array_offset_tbl): Likewise.
7117 (f77_get_upperbound): Likewise.
7118 (f77_print_array_1): Likewise.
7119 * guile/scm-type.c (gdbscm_type_range): Likewise.
7120 * m2-typeprint.c (m2_array): Likewise.
7121 (m2_is_long_set_of_type): Likewise.
7122 * m2-valprint.c (get_long_set_bounds): Likewise.
7123 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7124 * python/py-type.c (typy_range): Likewise.
7125 * rust-lang.c (rust_internal_print_type): Likewise.
7126 * type-stack.c (type_stack::follow_types): Likewise.
7127 * valarith.c (value_subscripted_rvalue): Likewise.
7128 * valops.c (value_cast): Likewise.
7129
7130 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7131
7132 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7133 callers to use the equivalent accessor methods.
7134
7135 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7136
7137 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7138 (struct type) <bit_stride>: New method.
7139 (TYPE_BIT_STRIDE): Remove.
7140 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7141
7142 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7143
7144 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7145 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7146 callers to use the equivalent accessor methods instead.
7147
7148 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7149
7150 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7151 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7152 callers to use the equivalent accessor methods instead.
7153
7154 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7157 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7158 to use dynamic_prop::kind.
7159
7160 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7161
7162 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7163 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7164 to get the bound property's kind and check against
7165 PROP_UNDEFINED.
7166
7167 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7168
7169 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7170 all callers to use type::range_bounds followed by
7171 dynamic_prop::{low,high}.
7172
7173 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7174
7175 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7176 const_val, set_const_val, baton, set_locexpr, set_loclist,
7177 set_addr_offset, variant_parts, set_variant_parts,
7178 original_type, set_original_type>: New methods.
7179 <kind>: Rename to...
7180 <m_kind>: ... this. Update all users to use the new methods
7181 instead.
7182 <data>: Rename to...
7183 <m_data>: ... this. Update all users to use the new methods
7184 instead.
7185
7186 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * gdbtypes.c (get_discrete_bounds): Return failure if
7189 the range type's bounds are not both defined and constant
7190 values.
7191 (get_array_bounds): Update comment. Remove undefined bound check.
7192
7193 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7196 the type::bounds method directly.
7197
7198 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7199
7200 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7201 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7202 are used to set the range type's bounds to use set_bounds.
7203
7204 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7205
7206 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7207
7208 2020-07-10 Pedro Alves <pedro@palves.net>
7209
7210 * gdbthread.h (inferior_ref): Define.
7211 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7212 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7213 * thread.c
7214 (scoped_restore_current_thread::restore):
7215 Adjust to gdb::ref_ptr.
7216 (scoped_restore_current_thread::~scoped_restore_current_thread):
7217 Remove manual decref handling.
7218 (scoped_restore_current_thread::scoped_restore_current_thread):
7219 Adjust to use
7220 inferior_ref::new_reference/thread_info_ref::new_reference.
7221 Incref the thread before calling get_frame_id instead of after.
7222 Let TARGET_CLOSE_ERROR propagate.
7223
7224 2020-07-10 Pedro Alves <pedro@palves.net>
7225
7226 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7227 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7228 NOT_AVAILABLE_ERROR.
7229 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7230 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7231
7232 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7233 Pedro Alves <pedro@palves.net>
7234
7235 PR gdb/26199
7236 * infrun.c (threads_are_resumed_pending_p): Delete.
7237 (do_target_wait): Remove threads_are_executing and
7238 threads_are_resumed_pending_p checks from the inferior_matches
7239 lambda. Update comments.
7240
7241 2020-07-10 Pedro Alves <pedro@palves.net>
7242
7243 PR gdb/26199
7244 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7245 executing threads.
7246
7247 2020-07-10 Pedro Alves <pedro@palves.net>
7248
7249 PR gdb/26199
7250 * infrun.c (handle_no_resumed): Handle multiple targets.
7251
7252 2020-07-10 Pedro Alves <pedro@palves.net>
7253
7254 PR gdb/26199
7255 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7256 target_is_async_p.
7257
7258 2020-07-10 Pedro Alves <pedro@palves.net>
7259
7260 PR gdb/26199
7261 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7262 threads, not all threads.
7263
7264 2020-07-10 Pedro Alves <pedro@palves.net>
7265
7266 PR gdb/26199
7267 * remote.c (remote_target::open_1): Pass remote target pointer as
7268 data to create_async_event_handler.
7269 (remote_async_inferior_event_handler): Mark async event handler
7270 before returning if the remote target still has either pending
7271 events or unacknowledged notifications.
7272
7273 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7274
7275 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7276 declaration.
7277 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7278 function.
7279
7280 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7281
7282 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7283 inferior_ptid.
7284
7285 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7286
7287 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7288 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7289 AT_FREEBSD_PS_STRINGS.
7290
7291 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7292
7293 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7294 of debugfile path on Windows.
7295
7296 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7297
7298 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7299 argument to 'data'.
7300
7301 2020-07-08 Tom Tromey <tromey@adacore.com>
7302
7303 * ada-lang.c (ada_exception_message_1): Use read_memory.
7304
7305 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7306
7307 PR python/22748
7308 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7309 special handling for inline frames.
7310 * findvar.c (value_of_register_lazy): Skip inline frames when
7311 creating lazy register values.
7312 * frame.c (frame_id_computed_p): Delete definition.
7313 * frame.h (frame_id_computed_p): Delete declaration.
7314
7315 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7316
7317 * NEWS: Mention additions to Python API.
7318 * python/py-arch.c (archpy_register_groups): New function.
7319 (arch_object_methods): Add 'register_groups' method.
7320 * python/py-registers.c (reggroup_iterator_object): New struct.
7321 (reggroup_object): New struct.
7322 (gdbpy_new_reggroup): New function.
7323 (gdbpy_reggroup_to_string): New function.
7324 (gdbpy_reggroup_name): New function.
7325 (gdbpy_reggroup_iter): New function.
7326 (gdbpy_reggroup_iter_next): New function.
7327 (gdbpy_new_reggroup_iterator): New function
7328 (gdbpy_initialize_registers): Register new types.
7329 (reggroup_iterator_object_type): Define new Python type.
7330 (gdbpy_reggroup_getset): New static global.
7331 (reggroup_object_type): Define new Python type.
7332 * python/python-internal.h
7333
7334 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7335
7336 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7337 * python/py-arch.c (archpy_registers): New function.
7338 (arch_object_methods): Add 'registers' method.
7339 * python/py-registers.c: New file.
7340 * python/python-internal.h
7341 (gdbpy_new_register_descriptor_iterator): Declare.
7342 (gdbpy_initialize_registers): Declare.
7343 * python/python.c (do_start_initialization): Call
7344 gdbpy_initialize_registers.
7345 * NEWS: Mention additions to the Python API.
7346
7347 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7348
7349 * NEWS: Mention new Python API method.
7350 * python/py-unwind.c (pending_framepy_architecture): New function.
7351 (pending_frame_object_methods): Add architecture method.
7352
7353 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7354
7355 * gdbarch.c: Regenerate.
7356 * gdbarch.h: Regenerate.
7357 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7358 (gdbarch_data): Use internal_error for the case where
7359 deprecated_set_gdbarch_data was originally needed.
7360 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7361 and use passed in obstack.
7362 (libunwind_frame_set_descr): Should no longer get back NULL from
7363 gdbarch_data.
7364 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7365 type.
7366 * user-regs.c (user_regs_init): Update parameters, and use passed
7367 in obstack.
7368 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7369 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7370
7371 2020-07-06 Tom de Vries <tdevries@suse.de>
7372
7373 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7374 End-Of-Sequence in lte_is_less_than.
7375 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7376 "gdb: Don't reorder line table entries too much when sorting".
7377
7378 2020-07-06 Tom de Vries <tdevries@suse.de>
7379
7380 PR tui/26205
7381 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7382
7383 2020-07-05 Tom de Vries <tdevries@suse.de>
7384
7385 PR build/26187
7386 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7387 std::uncaught_exceptions instead of deprecated
7388 std::uncaught_exception.
7389
7390 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7391
7392 * macroexp.h (macro_stringify): Return
7393 gdb::unique_xmalloc_ptr<char>.
7394 * macroexp.c (macro_stringify): Likewise.
7395 * macrotab.c (fixup_definition): Update.
7396
7397 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7398
7399 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7400 (lex_one_token): Update.
7401 * macroexp.c (struct macro_buffer) <release>: Return
7402 gdb::unique_xmalloc_ptr<char>.
7403 (macro_stringify): Update.
7404 (macro_expand): Update.
7405 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7406 * macroexp.h (macro_expand_next): Likewise.
7407
7408 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7409
7410 * macroexp.h (macro_lookup_ftype): Remove.
7411 (macro_expand, macro_expand_once, macro_expand_next): Remove
7412 lookup function parameters, add scope parameter.
7413 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7414 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7415 * macroscope.h (standard_macro_lookup): Change parameter type
7416 to macro_scope.
7417 * macroscope.c (standard_macro_lookup): Likewise.
7418 * c-exp.y (lex_one_token): Update.
7419 * macrocmd.c (macro_expand_command): Likewise.
7420 (macro_expand_once_command): Likewise.
7421
7422 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7423
7424 * inf-loop.c (inferior_event_handler): Remove client_data param.
7425 * inf-loop.h (inferior_event_handler): Likewise.
7426 * infcmd.c (step_1): Adjust.
7427 * infrun.c (proceed): Adjust.
7428 (fetch_inferior_event): Remove client_data param.
7429 (infrun_async_inferior_event_handler): Adjust.
7430 * infrun.h (fetch_inferior_event): Remove `void *` param.
7431 * linux-nat.c (handle_target_event): Adjust.
7432 * record-btrace.c (record_btrace_handle_async_inferior_event):
7433 Adjust.
7434 * record-full.c (record_full_async_inferior_event_handler):
7435 Adjust.
7436 * remote.c (remote_async_inferior_event_handler): Adjust.
7437
7438 2020-07-01 Tom Tromey <tom@tromey.com>
7439
7440 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7441 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7442
7443 2020-07-01 Tom Tromey <tom@tromey.com>
7444
7445 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7446 tui_gen_win_info.
7447 (tui_win_info::make_window): Merge with
7448 tui_gen_win_info::make_window.
7449 (tui_win_info::make_visible): Move from tui_gen_win_info.
7450 * tui/tui-win.c (tui_win_info::max_width): Move from
7451 tui_gen_win_info.
7452 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7453 type.
7454 <window_factory>: Likewise.
7455 * tui/tui-layout.c (tui_win_info::resize): Move from
7456 tui_gen_win_info.
7457 (make_standard_window): Change return type.
7458 (get_locator_window, tui_get_window_by_name): Likewise.
7459 (tui_layout_window::apply): Remove a cast.
7460 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7461 (struct tui_win_info): Merge with tui_gen_win_info.
7462 (struct tui_gen_win_info): Remove.
7463
7464 2020-07-01 Tom Tromey <tom@tromey.com>
7465
7466 * tui/tui-stack.h (struct tui_locator_window): Derive from
7467 tui_win_info.
7468 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7469 <can_box>: New method.
7470
7471 2020-07-01 Tom Tromey <tom@tromey.com>
7472
7473 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7474
7475 2020-07-01 Tom Tromey <tom@tromey.com>
7476
7477 * tui/tui-regs.c (tui_data_window::display_registers_from)
7478 (tui_data_window::display_registers_from)
7479 (tui_data_window::first_data_item_displayed)
7480 (tui_data_window::delete_data_content_windows): Update.
7481 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7482 Remove.
7483 (tui_data_window::check_register_values): Update.
7484 (tui_data_item_window::rerender): Add parameters. Update.
7485 (tui_data_item_window::refresh_window): Remove.
7486 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7487 virtual.
7488 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7489 tui_gen_win_info.
7490 <refresh_window, max_height, min_height>: Remove.
7491 <rerender>: Add parameters.
7492 <x, y, visible>: New members.
7493 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7494 <m_item_width>: New member.
7495
7496 2020-07-01 Tom Tromey <tom@tromey.com>
7497
7498 * tui/tui-regs.c (tui_data_window::show_register_group)
7499 (tui_data_window::check_register_values): Update.
7500 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7501 from item_no.
7502
7503 2020-07-01 Tom Tromey <tom@tromey.com>
7504
7505 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7506 useless "if".
7507
7508 2020-07-01 Tom Tromey <tom@tromey.com>
7509
7510 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7511 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7512
7513 2020-07-01 Tom Tromey <tom@tromey.com>
7514
7515 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7516 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7517 (struct tui_line_or_address): Move from tui-data.h.
7518 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7519 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7520 (tui_cmd_window, tui_source_window_base, tui_source_window)
7521 (tui_disasm_window): Don't declare.
7522 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7523 to tui-winsource.h.
7524 (SINGLE_KEY): Move to tui-stack.c.
7525
7526 2020-07-01 Tom Tromey <tom@tromey.com>
7527
7528 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7529 std::string.
7530 * tui/tui-regs.c (class tab_expansion_file): New.
7531 (tab_expansion_file::write): New method.
7532 (tui_register_format): Change return type. Use
7533 tab_expansion_file.
7534 (tui_get_register, tui_data_window::display_registers_from)
7535 (tui_data_item_window::rerender): Update.
7536 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7537 * tui/tui-io.c (tui_expand_tabs): Remove.
7538
7539 2020-07-01 Tom Tromey <tom@tromey.com>
7540
7541 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7542
7543 2020-07-01 Fangrui Song <maskray@google.com>
7544
7545 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7546
7547 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7548
7549 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7550 forms for DW_AT_associated and DW_AT_allocated attributes,
7551 which is already checked in function attr_to_dynamic_prop.
7552
7553 2020-06-30 Tom Tromey <tromey@adacore.com>
7554
7555 * dwarf2/read.c (quirk_rust_enum): Correctly call
7556 alloc_rust_variant for default-less enum.
7557
7558 2020-06-30 Tom Tromey <tromey@adacore.com>
7559
7560 PR build/26183:
7561 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7562 gdb::to_string.
7563
7564 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7565
7566 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7567 * gdbarch.h: Re-generate.
7568
7569 2020-06-28 Tom Tromey <tom@tromey.com>
7570
7571 * command.h (cmd_types): Remove.
7572 (cmd_type): Don't declare.
7573 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7574 typedef.
7575 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7576 * cli/cli-decode.c (cmd_type): Remove.
7577
7578 2020-06-27 Pedro Alves <palves@redhat.com>
7579
7580 * fork-child.c (prefork_hook): Adjust.
7581 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7582 Delete.
7583 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7584 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7585 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7586 Remove declarations.
7587 (struct inferior) <set_tty, tty>: New methods.
7588 (struct inferior) <terminal>: Rename to ...
7589 (struct inferior) <m_terminal>: ... this and make private.
7590 * main.c (captured_main_1): Adjust.
7591 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7592 (mi_cmd_inferior_tty_show): Adjust.
7593 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7594 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7595
7596 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7597
7598 * configure.ac: Add --enable-libctf: handle --disable-static
7599 properly.
7600 * acinclude.m4: sinclude ../config/enable.m4.
7601 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7602 (LIBCTF): Substitute in.
7603 (CTF_DEPS): New, likewise.
7604 (CLIBS): libctf needs symbols from libbfd: move earlier.
7605 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7606 flags.
7607 * ctfread.c: Surround in ENABLE_LIBCTF.
7608 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7609 * configure: Regenerate.
7610 * config.in: Likewise.
7611
7612 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7613
7614 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7615
7616 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7617
7618 * inferior.h (struct inferior) <terminal>: Change type to
7619 gdb::unique_xmalloc_ptr<char>.
7620 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7621 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7622 field, adjust to unique pointer.
7623 (get_inferior_io_terminal): Adjust to unique pointer.
7624
7625 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7626
7627 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7628 registers, not just the known core set of registers.
7629
7630 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7631
7632 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7633 fflags, frm, and fcsr registers.
7634 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7635 restore groups.
7636 (riscv_tdesc_unknown_reg): New function.
7637 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7638 tdesc_use_registers.
7639 * riscv-tdep.h (struct gdbarch_tdep): Add
7640 unknown_csrs_first_regnum, unknown_csrs_count,
7641 duplicate_fflags_regnum, duplicate_frm_regnum, and
7642 duplicate_fcsr_regnum fields.
7643
7644 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7645
7646 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7647 callback, use the callback (when not null) to help number unknown
7648 registers.
7649 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7650 (tdesc_use_registers): Add extra parameter to declaration.
7651
7652 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7653
7654 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7655 in the file.
7656 (class riscv_pending_register_alias): Likewise.
7657 (riscv_register_feature::register_info): Change 'required_p' field
7658 to 'required', and change its type. Add 'check' member function.
7659 (riscv_register_feature::register_info::check): Define new member
7660 function.
7661 (riscv_xreg_feature): Change initialisation of 'required' field.
7662 (riscv_freg_feature): Likewise.
7663 (riscv_virtual_feature): Likewise.
7664 (riscv_csr_feature): Likewise.
7665 (riscv_check_tdesc_feature): Take extra parameter, the csr
7666 tdesc_feature, rewrite the function to use the new
7667 riscv_register_feature::register_info::check function.
7668 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7669
7670 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7671
7672 * features/Makefile: Remove all references to the deleted files
7673 below.
7674 * features/riscv/32bit-csr.c: Deleted.
7675 * features/riscv/32bit-csr.xml: Deleted.
7676 * features/riscv/64bit-csr.c: Deleted.
7677 * features/riscv/64bit-csr.xml: Deleted.
7678 * features/riscv/rebuild-csr-xml.sh: Deleted.
7679
7680 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7681
7682 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7683 whitespace error for declaration of names member variable.
7684 (struct riscv_register_feature): Add new prefer_first_name member
7685 variable, and fix whitespace error in declaration of registers.
7686 (riscv_xreg_feature): Initialize prefer_first_name field.
7687 (riscv_freg_feature): Likewise.
7688 (riscv_virtual_feature): Likewise.
7689 (riscv_csr_feature): Likewise.
7690 (riscv_register_name): Expand on comments. Remove register name
7691 modifications for CSR and virtual registers.
7692
7693 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7694
7695 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7696 errors.
7697
7698 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7699
7700 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7701 riscv-opc.h.
7702 (class riscv_pending_register_alias): New class.
7703 (riscv_check_tdesc_feature): Take vector of pending aliases and
7704 populate it as appropriate.
7705 (riscv_setup_register_aliases): Delete.
7706 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7707 to riscv_check_tdesc_feature in all cases. Use the vector to
7708 create the register aliases.
7709
7710 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7711
7712 * sol2-tdep.c (sol2_static_transform_name): Remove.
7713 (sol2_init_abi): Don't register it.
7714 * gdbarch.sh (static_transform_name): Remove.
7715 * gdbarch.c, gdbarch.h: Regenerate.
7716
7717 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7718 gdbarch_static_transform_name.
7719 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7720 * stabsread.c (define_symbol) <'X'>: Remove.
7721 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7722 handling.
7723 <'V'>: Likewise.
7724 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7725 <'S'>: Remove call to gdbarch_static_transform_name.
7726
7727 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7728
7729 * procfs.c (procfs_pre_trace): New function.
7730 (procfs_target::create_inferior): Pass it to fork_inferior.
7731
7732 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7733
7734 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7735 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7736 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7737 sol2-tdep.o, sparc-sol2-tdep.o.
7738 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7739 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7740 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7741 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7742
7743 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7744
7745 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7746 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7747 Call sol2_init_abi.
7748 Remove calls to set_gdbarch_skip_solib_resolver,
7749 set_gdbarch_core_pid_to_str.
7750 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7751 (i386_sol2_static_transform_name): Remove.
7752 (i386_sol2_init_abi): Call sol2_init_abi.
7753 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7754 set_gdbarch_static_transform_name,
7755 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7756 Use sol2_sigtramp_p.
7757 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7758 (sol2_sigtramp_p): New function.
7759 (sol2_static_transform_name): New function.
7760 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7761 (sol2_init_abi): New function.
7762 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7763 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7764 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7765 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7766 (sparc_sol2_static_transform_name): Remove.
7767 (sparc32_sol2_init_abi): Call sol2_init_abi.
7768 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7769 set_gdbarch_static_transform_name,
7770 set_gdbarch_skip_solib_resolver,
7771 set_gdbarch_core_pid_to_str.
7772 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7773 (sparc_sol2_static_transform_name): Remove
7774 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7775 call sol2_sigtramp_p.
7776 (sparc64_sol2_init_abi): Call sol2_init_abi.
7777 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7778 set_gdbarch_static_transform_name,
7779 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7780
7781 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7782
7783 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7784 * exec.c (validate_exec_file): If from_tty, set both
7785 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7786 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7787 and from_tty, unconditionally ask a confirmation.
7788
7789 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * target-descriptions.c (tdesc_architecture_name): Protect against
7792 NULL pointer dereference.
7793 (maint_print_xml_tdesc_cmd): New function.
7794 (_initialize_target_descriptions): Register new 'maint print
7795 xml-tdesc' command and give it the filename completer.
7796 * NEWS: Mention new 'maint print xml-tdesc' command.
7797
7798 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7799
7800 * target-descriptions.c (class tdesc_compatible_info): New class.
7801 (struct target_desc): Change type of compatible vector.
7802 (tdesc_compatible_p): Update for change in type of
7803 target_desc::compatible.
7804 (tdesc_compatible_info_list): New function.
7805 (tdesc_compatible_info_arch_name): New function.
7806 (tdesc_add_compatible): Update for change in type of
7807 target_desc::compatible.
7808 (print_c_tdesc::visit_pre): Likewise.
7809
7810 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7813 whitespace to underscore.
7814 (maint_print_c_tdesc_cmd): Use fake filename for target
7815 descriptions that came from the target.
7816 (_initialize_target_descriptions): Add filename command completion
7817 for 'maint print c-tdesc'.
7818
7819 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7820
7821 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7822 lines.
7823
7824 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7825
7826 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7827 lines.
7828 (dwarf2_find_location_expression): Likewise.
7829 (call_site_parameter_matches): Likewise.
7830 (dwarf2_compile_expr_to_ax): Likewise.
7831 (disassemble_dwarf_expression): Likewise.
7832 (loclist_describe_location): Likewise.
7833
7834 2020-06-23 Pedro Alves <palves@redhat.com>
7835
7836 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7837 progspace-and-thread.h. Include scoped-mock-context.h instead.
7838 (register_to_value_test): Use scoped_mock_context.
7839 * regcache.c: Include "scoped-mock-context.h".
7840 (cooked_read_test): Don't error out if a target is already pushed.
7841 Use scoped_mock_context. Adjust.
7842 * scoped-mock-context.h: New file.
7843
7844 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7847 initializer.
7848 (ada_language::is_string_type_p): New member function.
7849 * c-lang.c (c_language_data): Delete la_is_string_type_p
7850 initializer.
7851 (cplus_language_data): Likewise.
7852 (asm_language_data): Likewise.
7853 (minimal_language_data): Likewise.
7854 * d-lang.c (d_language_data): Likewise.
7855 * f-lang.c (f_is_string_type_p): Delete function, implementation
7856 moved to f_language::is_string_type_p.
7857 (f_language_data): Delete la_is_string_type_p initializer.
7858 (f_language::is_string_type_p): New member function,
7859 implementation from f_is_string_type_p.
7860 * go-lang.c (go_is_string_type_p): Delete function, implementation
7861 moved to go_language::is_string_type_p.
7862 (go_language_data): Delete la_is_string_type_p initializer.
7863 (go_language::is_string_type_p): New member function,
7864 implementation from go_is_string_type_p.
7865 * language.c (language_defn::is_string_type_p): Define new member
7866 function.
7867 (default_is_string_type_p): Make static, add comment copied from
7868 header file.
7869 (unknown_language_data): Delete la_is_string_type_p initializer.
7870 (unknown_language::is_string_type_p): New member function.
7871 (auto_language_data): Delete la_is_string_type_p initializer.
7872 (auto_language::is_string_type_p): New member function.
7873 * language.h (language_data): Delete la_is_string_type_p field.
7874 (language_defn::is_string_type_p): Declare new function.
7875 (default_is_string_type_p): Delete desclaration, move comment to
7876 definition.
7877 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7878 moved to m2_language::is_string_type_p.
7879 (m2_language_data): Delete la_is_string_type_p initializer.
7880 (m2_language::is_string_type_p): New member function,
7881 implementation from m2_is_string_type_p.
7882 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7883 initializer.
7884 * opencl-lang.c (opencl_language_data): Likewise.
7885 * p-lang.c (pascal_is_string_type_p): Delete function,
7886 implementation moved to pascal_language::is_string_type_p.
7887 (pascal_language_data): Delete la_is_string_type_p initializer.
7888 (pascal_language::is_string_type_p): New member function,
7889 implementation from pascal_is_string_type_p.
7890 * rust-lang.c (rust_is_string_type_p): Delete function,
7891 implementation moved to rust_language::is_string_type_p.
7892 (rust_language_data): Delete la_is_string_type_p initializer.
7893 (rust_language::is_string_type_p): New member function,
7894 implementation from rust_is_string_type_p.
7895 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7896 is_string_type_p.
7897
7898 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7899
7900 * ada-lang.c (ada_language_data): Delete la_print_typedef
7901 initializer.
7902 (ada_language::print_typedef): New member function.
7903 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7904 (cplus_language_data): Likewise.
7905 (asm_language_data): Likewise.
7906 (minimal_language_data): Likewise.
7907 * d-lang.c (d_language_data): Likewise.
7908 * f-lang.c (f_language_data): Likewise.
7909 (f_language::print_typedef): New member function.
7910 * go-lang.c (go_language_data): Delete la_print_typedef
7911 initializer.
7912 * language.c (language_defn::print_typedef): Define member
7913 function.
7914 (unknown_language_data): Delete la_print_typedef initializer.
7915 (unknown_language::print_typedef): New member function.
7916 (auto_language_data): Delete la_print_typedef initializer.
7917 (auto_language::print_typedef): New member function.
7918 * language.h (language_data): Delete la_print_typedef field.
7919 (language_defn::print_typedef): Declare new member function.
7920 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7921 (default_print_typedef): Delete declaration.
7922 * m2-lang.c (m2_language_data): Delete la_print_typedef
7923 initializer.
7924 (m2_language::print_typedef): New member function.
7925 * objc-lang.c (objc_language_data): Delete la_print_typedef
7926 initializer.
7927 * opencl-lang.c (opencl_language_data): Likewise.
7928 * p-lang.c (pascal_language_data): Likewise.
7929 (pascal_language::print_typedef): New member function.
7930 * rust-lang.c (rust_print_typedef): Delete function,
7931 implementation moved to rust_language::print_typedef.
7932 (rust_language): Delete la_print_typedef initializer.
7933 (rust_language::print_typedef): New member function,
7934 implementation from rust_print_typedef.
7935 * typeprint.c (default_print_typedef): Delete.
7936
7937 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7938
7939 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7940 (ada_language::printstr): New member function.
7941 * c-lang.c (c_language_data): Delete la_printstr initializer.
7942 (cplus_language_data): Likewise.
7943 (asm_language_data): Likewise.
7944 (minimal_language_data): Likewise.
7945 * d-lang.c (d_language_data): Likewise.
7946 * f-lang.c (f_printstr): Rename to f_language::printstr.
7947 (f_language_data): Delete la_printstr initializer.
7948 (f_language::printstr): New member function, implementation from
7949 f_printstr.
7950 * go-lang.c (go_language_data): Delete la_printstr initializer.
7951 * language.c (language_defn::printstr): Define new member
7952 function.
7953 (unk_lang_printstr): Delete.
7954 (unknown_language_data): Delete la_printstr initializer.
7955 (unknown_language::printstr): New member function.
7956 (auto_language_data): Delete la_printstr initializer.
7957 (auto_language::printstr): New member function.
7958 * language.h (language_data): Delete la_printstr field.
7959 (language_defn::printstr): Declare new member function.
7960 (LA_PRINT_STRING): Update call to printstr.
7961 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7962 (m2_language_data): Delete la_printstr initializer.
7963 (m2_language::printstr): New member function, implementation from
7964 m2_printstr.
7965 * objc-lang.c (objc_language_data): Delete la_printstr
7966 initializer.
7967 * opencl-lang.c (opencl_language_data): Likewise.
7968 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7969 (pascal_language_data): Delete la_printstr initializer.
7970 (pascal_language::printstr): New member function, implementation
7971 from pascal_printstr.
7972 * p-lang.h (pascal_printstr): Delete declaration.
7973 * rust-lang.c (rust_printstr): Update header comment.
7974 (rust_language_data): Delete la_printstr initializer.
7975 (rust_language::printstr): New member function.
7976
7977 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7978
7979 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7980 (ada_language::printchar): New member function.
7981 * c-lang.c (c_language_data): Delete la_printchar initializer.
7982 (cplus_language_data): Likewise.
7983 (asm_language_data): Likewise.
7984 (minimal_language_data): Likewise.
7985 * d-lang.c (d_language_data): Likewise.
7986 * f-lang.c (f_printchar): Rename to f_language::printchar.
7987 (f_language_data): Delete la_printchar initializer.
7988 (f_language::printchar): New member function, implementation from
7989 f_printchar.
7990 * go-lang.c (go_language_data): Delete la_printchar initializer.
7991 * language.c (unk_lang_printchar): Delete.
7992 (language_defn::printchar): Define new member function.
7993 (unknown_language_data): Delete la_printchar initializer.
7994 (unknown_language::printchar): New member function.
7995 (auto_language_data): Delete la_printchar initializer.
7996 (auto_language::printchar): New member function.
7997 * language.h (language_data): Delete la_printchar field.
7998 (language_defn::printchar): Declare new member function.
7999 (LA_PRINT_CHAR): Update call to printchar.
8000 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8001 (m2_language::printchar): New member function.
8002 * objc-lang.c (objc_language_data): Delete la_printchar
8003 initializer.
8004 * opencl-lang.c (opencl_language_data): Likewise.
8005 * p-lang.c (pascal_language_data): Delete la_printchar
8006 initializer.
8007 (pascal_language::printchar): New member function.
8008 * rust-lang.c (rust_printchar): Rename to
8009 rust_language::printchar.
8010 (rust_language_data): Delete la_printchar initializer.
8011 (rust_language::printchar): New member function, implementation
8012 from rust_printchar.
8013
8014 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8015
8016 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8017 (ada_language_data): Delete la_emitchar initializer.
8018 (ada_language::emitchar): New member function, implementation from
8019 emit_char.
8020 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8021 (cplus_language_data): Likewise.
8022 (asm_language_data): Likewise.
8023 (minimal_language_data): Likewise.
8024 * d-lang.c (d_language_data): Likewise.
8025 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8026 (f_language_data): Delete la_emitchar initializer.
8027 (f_language::emitchar): New member function, implementation from
8028 f_emit_char.
8029 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8030 * language.c (unk_lang_emit_char): Delete.
8031 (language_defn::emitchar): New member function definition.
8032 (unknown_language_data): Delete la_emitchar initializer.
8033 (unknown_language::emitchar): New member function.
8034 (auto_language_data): Delete la_emitchar initializer.
8035 (auto_language::emitchar): New member function.
8036 * language.h (language_data): Delete la_emitchar field.
8037 (language_defn::emitchar): New member field declaration.
8038 (LA_EMIT_CHAR): Update call to emitchar.
8039 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8040 (m2_language_data): Delete la_emitchar initializer.
8041 (m2_language::emitchar): New member function, implementation from
8042 m2_emit_char.
8043 * objc-lang.c (objc_language_data): Delete la_emitchar
8044 initializer.
8045 * opencl-lang.c (opencl_language_data): Likewise.
8046 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8047 (pascal_language_data): Delete la_emitchar initializer.
8048 (pascal_language::emitchar): New member function, implementation
8049 from pascal_emit_char.
8050 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8051 (rust_language_data): Delete la_emitchar initializer.
8052 (rust_language::emitchar): New member function, implementation
8053 from rust_emitchar.
8054
8055 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8056
8057 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8058 (ada_language_data): Delete la_post_parser initializer.
8059 (ada_language::post_parser): New member function.
8060 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8061 (cplus_language_data): Likewise.
8062 (asm_language_data): Likewise.
8063 (minimal_language_data): Likewise.
8064 * d-lang.c (d_language_data): Likewise.
8065 * f-lang.c (f_language_data): Likewise.
8066 * go-lang.c (go_language_data): Likewise.
8067 * language.c (unknown_language_data): Likewise.
8068 (auto_language_data): Likewise.
8069 * language.h (language_data): Delete la_post_parser field.
8070 (language_defn::post_parser): New member function.
8071 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8072 * objc-lang.c (objc_language_data): Likewise.
8073 * opencl-lang.c (opencl_language_data): Likewise.
8074 * p-lang.c (pascal_language_data): Likewise.
8075 * parse.c (parse_exp_in_context): Update call to post_parser.
8076 (null_post_parser): Delete definition.
8077 * parser-defs.h (null_post_parser): Delete declaration.
8078 * rust-lang.c (rust_language_data): Delete la_post_parser
8079 initializer.
8080
8081 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8082
8083 * ada-lang.c (parse): Rename to ada_language::parser.
8084 (ada_language_data): Delete la_parser initializer.
8085 (ada_language::parser): New member function, implementation from
8086 parse.
8087 * c-lang.c (c_language_data): Delete la_parser initializer.
8088 (cplus_language_data): Likewise.
8089 (asm_language_data): Likewise.
8090 (minimal_language_data): Likewise.
8091 * d-lang.c (d_language_data): Likewise.
8092 (d_language::parser): New member function.
8093 * f-lang.c (f_language_data): Delete la_parser initializer.
8094 (f_language::parser): New member function.
8095 * go-lang.c (go_language_data): Delete la_parser initializer.
8096 (go_language::parser): New member function.
8097 * language.c (unk_lang_parser): Delete.
8098 (language_defn::parser): Define new member function.
8099 (unknown_language_data): Delete la_parser initializer.
8100 (unknown_language::parser): New member function.
8101 (auto_language_data): Delete la_parser initializer.
8102 (auto_language::parser): New member function.
8103 * language.h (language_data): Delete la_parser field.
8104 (language_defn::parser): Declare new member function.
8105 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8106 (m2_language::parser): New member function.
8107 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8108 * opencl-lang.c (opencl_language_data): Likewise.
8109 * p-lang.c (pascal_language_data): Likewise.
8110 (pascal_language::parser): New member function.
8111 * parse.c (parse_exp_in_context): Update call to parser.
8112 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8113 (rust_language::parser): New member function.
8114
8115 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8116
8117 * top.c (print_gdb_configuration): Print --with-python-libdir
8118 configuration value.
8119
8120 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8121
8122 * NEWS: Mention change to the alias command.
8123
8124 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8125
8126 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8127 (alias_command_completer)
8128 (make_alias_options_def_group): New functions.
8129 (alias_opts, alias_option_defs): New struct and array.
8130 (alias_usage_error): Update usage.
8131 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8132 Use option framework.
8133 (_initialize_cli_cmds): Update alias command help.
8134 Update aliases command help.
8135 (show_user):
8136 Add NULL for new default_args lookup_cmd argument.
8137 (valid_command_p): Rename to validate_aliased_command.
8138 Add NULL for new default_args lookup_cmd argument. Verify that the
8139 aliased_command has no default args.
8140 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8141 (lookup_cmd_1, lookup_cmd): New argument default_args.
8142 (add_alias_cmd):
8143 Add NULL for new default_args lookup_cmd argument.
8144 (print_help_for_command): Show default args under the layout
8145 alias some_alias = some_aliased_cmd some_alias_default_arg.
8146 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8147 xfree default_args in destructor.
8148 * cli/cli-script.c (process_next_line, do_define_command):
8149 Add NULL for new default_args lookup_cmd argument.
8150 * command.h: Declare new default_args argument in lookup_cmd
8151 and lookup_cmd_1.
8152 * completer.c (complete_line_internal_1):
8153 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8154 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8155 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8156 Likewise.
8157 * infcmd.c (_initialize_infcmd): Likewise.
8158 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8159 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8160 * python/py-param.c (add_setshow_generic): Likewise.
8161 * remote.c (_initialize_remote): Likewise.
8162 * top.c (execute_command): Prepend default_args if command has some.
8163 (set_verbose):
8164 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8165 * tracepoint.c (validate_actionline, encode_actions_1):
8166 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8167
8168 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8169
8170 * jit.c (jit_read_descriptor): Use bool as the return type.
8171 (jit_breakpoint_re_set_internal): Use bool as the return type.
8172 Invert the return value logic; return true if the jit breakpoint
8173 has been successfully initialized.
8174 (jit_inferior_init): Update the call to
8175 jit_breakpoint_re_set_internal.
8176
8177 2020-06-22 Pedro Alves <palves@redhat.com>
8178
8179 PR gdb/25939
8180 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8181 Use the current inferior instead. Don't return
8182 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8183 wait again.
8184 * sol-thread.c (sol_thread_target::wait): Don't reference
8185 inferior_ptid.
8186 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8187 (sol_update_thread_list_callback): Use the current inferior's pid
8188 instead of inferior_ptid.
8189
8190 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8191
8192 * procfs.c: Cleanup many comments.
8193
8194 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8195 (AFTER_WATCHFLAG): Replace by value.
8196
8197 (MAIN_PROC_NAME_FORMAT): Inline ...
8198 (create_procinfo): ... here.
8199
8200 (procfs_debug_inferior): Remove SYS_exec handling.
8201 (syscall_is_exec): Likewise.
8202 (procfs_set_exec_trap): Likewise.
8203
8204 (syscall_is_lwp_exit): Inline in callers.
8205 (syscall_is_exit): Likewise.
8206 (syscall_is_exec): Likewise.
8207 (syscall_is_lwp_create): Likewise.
8208
8209 (invalidate_cache): Remove #if 0 code.
8210
8211 (make_signal_thread_runnable): Remove.
8212 (procfs_target::resume): Remove #if 0 code.
8213
8214 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8215
8216 PR gdb/25939
8217 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8218 call ...
8219 (procfs_target::create_inferior): ... here.
8220
8221 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8222
8223 * exec.c (validate_exec_file): Ensure the build-id is up to
8224 date by calling reopen_exec_file (that checks file timestamp
8225 to decide to re-read the file).
8226
8227 2020-06-18 Pedro Alves <palves@redhat.com>
8228
8229 PR gdb/25412
8230 * gdbthread.h (delete_thread, delete_thread_silent)
8231 (find_thread_ptid): Update comments.
8232 * thread.c (current_thread_): New global.
8233 (is_current_thread): Move higher, and reimplement.
8234 (inferior_thread): Reimplement.
8235 (set_thread_exited): Use bool. Add assertions.
8236 (add_thread_silent): Simplify thread-reuse handling by always
8237 calling delete_thread.
8238 (delete_thread): Remove intro comment.
8239 (find_thread_ptid): Skip exited threads.
8240 (switch_to_thread_no_regs): Write to current_thread_.
8241 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8242 INFERIOR_PTID. Clear current_thread_.
8243
8244 2020-06-18 Pedro Alves <palves@redhat.com>
8245
8246 * aix-thread.c (pd_update): Use switch_to_thread.
8247
8248 2020-06-18 Pedro Alves <palves@redhat.com>
8249
8250 * ravenscar-thread.c (ravenscar_thread_target): Update.
8251 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8252 (ravenscar_thread_target::add_active_thread): ... this. Don't
8253 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8254 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8255
8256 2020-06-18 Pedro Alves <palves@redhat.com>
8257
8258 * nat/windows-nat.c (current_windows_thread): Remove.
8259 * nat/windows-nat.h (current_windows_thread): Remove.
8260 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8261 Adjust.
8262 (display_selectors): Adjust to fetch the current
8263 windows_thread_info based on inferior_ptid.
8264 (fake_create_process): No longer write to current_windows_thread.
8265 (windows_nat_target::get_windows_debug_event):
8266 Don't set inferior_ptid or current_windows_thread.
8267 (windows_nat_target::wait): Adjust to not rely on
8268 current_windows_thread.
8269 (do_initial_windows_stuff): Now a method of windows_nat_target.
8270 Switch to the last_ptid thread.
8271 (windows_nat_target::attach): Adjust.
8272 (windows_nat_target::detach): Use switch_to_no_thread instead of
8273 writing to inferior_ptid directly.
8274 (windows_nat_target::create_inferior): Adjust.
8275
8276 2020-06-18 Pedro Alves <palves@redhat.com>
8277
8278 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8279
8280 2020-06-18 Pedro Alves <palves@redhat.com>
8281
8282 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8283 after creating it, instead of writing to inferior_ptid. Don't
8284 write to inferior_ptid.
8285
8286 2020-06-18 Pedro Alves <palves@redhat.com>
8287
8288 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8289
8290 2020-06-18 Pedro Alves <palves@redhat.com>
8291
8292 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8293 it, instead of writing to inferior_ptid.
8294
8295 2020-06-18 Pedro Alves <palves@redhat.com>
8296
8297 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8298 to inferior_ptid.
8299
8300 2020-06-18 Pedro Alves <palves@redhat.com>
8301
8302 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8303 instead of writing to inferior_ptid directly.
8304
8305 2020-06-18 Pedro Alves <palves@redhat.com>
8306
8307 * corelow.c (core_target::close): Use switch_to_no_thread instead
8308 of writing to inferior_ptid directly.
8309 (add_to_thread_list, core_target_open): Use switch_to_thread
8310 instead of writing to inferior_ptid directly.
8311
8312 2020-06-18 Pedro Alves <palves@redhat.com>
8313
8314 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8315 inferior_ptid.
8316 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8317 inferior_ptid.
8318 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8319 inferior_ptid directly.
8320 (darwin_nat_target::init_thread_list): Switch to thread, instead
8321 of writing to inferior_ptid.
8322 (darwin_nat_target::attach): Don't write to inferior_ptid.
8323 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8324
8325 2020-06-18 Pedro Alves <palves@redhat.com>
8326
8327 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8328 thread.
8329 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8330 Instead use switch_to_thread.
8331 (gnu_nat_target::detach): Use switch_to_no_thread
8332 instead of writing to inferior_ptid directly. Used passed-in
8333 inferior instead of looking up the inferior by pid.
8334
8335 2020-06-18 Pedro Alves <palves@redhat.com>
8336
8337 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8338 inferior_ptid.
8339
8340 2020-06-18 Pedro Alves <palves@redhat.com>
8341
8342 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8343 inferior_ptid.
8344 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8345 thread.
8346 (nto_procfs_target::detach): Avoid referencing
8347 inferior_ptid. Use switch_to_no_thread instead of writing to
8348 inferior_ptid directly.
8349 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8350 instead of writing to inferior_ptid directly.
8351 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8352 to thread.
8353
8354 2020-06-18 Pedro Alves <palves@redhat.com>
8355
8356 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8357 after creating it, instead of writing to inferior_ptid.
8358 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8359 to inferior_ptid directly.
8360 (gdbsim_target::wait): Don't write to inferior_ptid.
8361
8362 2020-06-18 Pedro Alves <palves@redhat.com>
8363
8364 * remote.c (remote_target::remote_notice_new_inferior): Use
8365 switch_to_thread instead of writing to inferior_ptid directly.
8366 (remote_target::add_current_inferior_and_thread): Use
8367 switch_to_no_thread instead of writing to inferior_ptid directly.
8368 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8369 and switch_to_thread instead of using set_current_inferior or
8370 writing to inferior_ptid directly.
8371
8372 2020-06-18 Pedro Alves <palves@redhat.com>
8373
8374 * tracectf.c (ctf_target_open): Switch to added thread instead of
8375 writing to inferior_ptid directly.
8376 (ctf_target::close): Use switch_to_no_thread instead of writing to
8377 inferior_ptid directly.
8378
8379 2020-06-18 Pedro Alves <palves@redhat.com>
8380
8381 * tracefile-tfile.c (tfile_target_open): Don't write to
8382 inferior_ptid directly, instead switch to added thread.
8383 (tfile_target::close): Use switch_to_no_thread instead of writing
8384 to inferior_ptid directly.
8385
8386 2020-06-18 Pedro Alves <palves@redhat.com>
8387
8388 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8389 (procfs_target::detach): Use switch_to_no_thread
8390 instead of writing to inferior_ptid directly.
8391 (do_attach): Change return type to void. Switch to the added
8392 thread.
8393 (procfs_target::create_inferior): Switch to the added thread.
8394 (procfs_do_thread_registers): Don't write to inferior_ptid.
8395
8396 2020-06-18 Pedro Alves <palves@redhat.com>
8397
8398 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8399 of writing to inferior_ptid.
8400 (scoped_restore_exited_inferior): Delete.
8401 (handle_vfork_child_exec_or_exit): Simplify using
8402 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8403 instead of writing to inferior_ptid.
8404 (THREAD_STOPPED_BY): Delete.
8405 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8406 (thread_stopped_by_hw_breakpoint): Delete.
8407 (save_waitstatus): Use
8408 scoped_restore_current_thread+switch_to_thread, and call
8409 target_stopped_by_watchpoint instead of
8410 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8411 instead of thread_stopped_by_sw_breakpoint, and
8412 target_stopped_by_hw_breakpoint instead of
8413 thread_stopped_by_hw_breakpoint.
8414 (handle_inferior_event)
8415 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8416 inferior_ptid directly, nor
8417 set_current_inferior/set_current_program_space. Use
8418 switch_to_thread / switch_to_inferior_no_thread instead.
8419
8420 2020-06-18 Pedro Alves <palves@redhat.com>
8421
8422 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8423 instead of writing to inferior_ptid.
8424
8425 2020-06-18 Pedro Alves <palves@redhat.com>
8426
8427 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8428 added thread.
8429 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8430 to the added thread.
8431 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8432 instead of writing to inferior_ptid.
8433
8434 2020-06-18 Pedro Alves <palves@redhat.com>
8435
8436 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8437 (register_to_value_test): Mock a program_space too. Heap-allocate
8438 the address space. Don't write to inferior_ptid. Use
8439 switch_to_thread instead.
8440
8441 2020-06-18 Pedro Alves <palves@redhat.com>
8442
8443 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8444 Delete.
8445 (find_signalled_thread()): New, factored out from
8446 linux_make_corefile_notes and adjusted to handle exited threads.
8447 (linux_make_corefile_notes): Adjust to use the new
8448 find_signalled_thread.
8449
8450 2020-06-18 Pedro Alves <palves@redhat.com>
8451
8452 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8453 of saving/restoring inferior_ptid.
8454
8455 2020-06-17 Tom Tromey <tom@tromey.com>
8456
8457 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8458 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8459 declare.
8460 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8461
8462 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8463
8464 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8465 of partial symtabs.
8466
8467 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * regformats/reg-arm.dat: Remove.
8470 * regformats/reg-bfin.dat: Remove.
8471 * regformats/reg-cris.dat: Remove.
8472 * regformats/reg-crisv32.dat: Remove.
8473 * regformats/reg-m32r.dat: Remove.
8474 * regformats/reg-tilegx.dat: Remove.
8475 * regformats/reg-tilegx32.dat: Remove.
8476
8477 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8478
8479 * features/Makefile (WHICH): Remove arm files.
8480 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8481 * regformats/arm/arm-with-neon.dat: Remove.
8482 * regformats/arm/arm-with-vfpv2.dat: Remove.
8483 * regformats/arm/arm-with-vfpv3.dat: Remove.
8484
8485 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8486
8487 * features/Makefile (XMLTOC): Remove rx.xml.
8488
8489 2020-06-17 Pedro Alves <palves@redhat.com>
8490
8491 * gdbthread.h (thread_control_state) <trap_expected> Update
8492 comments.
8493
8494 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8495
8496 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8497 ada_language::lookup_symbol_nonlocal.
8498 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8499 (ada_language::lookup_symbol_nonlocal): New member function,
8500 implementation from ada_lookup_symbol_nonlocal.
8501 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8502 initializer.
8503 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8504 initializer.
8505 (cplus_language::lookup_symbol_nonlocal): New member function.
8506 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8507 (minimal_language_data) Likewise.
8508 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8509 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8510 initializer.
8511 (d_language::lookup_symbol_nonlocal): New member function.
8512 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8513 initializer.
8514 (f_language::lookup_symbol_nonlocal): New member function.
8515 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8516 initializer.
8517 * language.c (unknown_language_data): Likewise.
8518 (auto_language_data): Likewise.
8519 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8520 field.
8521 (language_defn::lookup_symbol_nonlocal): New member function.
8522 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8523 initializer.
8524 * objc-lang.c (objc_language_data): Likewise.
8525 * opencl-lang.c (opencl_language_data): Likewise.
8526 * p-lang.c (pascal_language_data): Likewise.
8527 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8528 rust_language::lookup_symbol_nonlocal.
8529 (rust_language_data): Delete la_lookup_symbol_nonlocal
8530 initializer.
8531 (rust_language::lookup_symbol_nonlocal): New member function,
8532 implementation from rust_lookup_symbol_nonlocal.
8533 * symtab.c (lookup_symbol_aux): Update call to
8534 lookup_symbol_nonlocal.
8535 (basic_lookup_symbol_nonlocal): Rename to...
8536 (language_defn::lookup_symbol_nonlocal): ...this, and update
8537 header comment. Remove language_defn parameter, and replace with
8538 uses of `this'.
8539 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8540
8541 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8542
8543 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8544 initializer.
8545 (ada_language::value_print_inner): New member function.
8546 * c-lang.c (c_language_data): Delete la_value_print_inner
8547 initializer.
8548 (cplus_language_data): Likewise.
8549 (asm_language_data): Likewise.
8550 (minimal_language_data): Likewise.
8551 * d-lang.c (d_language_data): Likewise.
8552 (d_language::value_print_inner): New member function.
8553 * f-lang.c (f_language_data): Delete la_value_print_inner
8554 initializer.
8555 (f_language::value_print_inner): New member function.
8556 * f-lang.h (f_value_print_innner): Rename to...
8557 (f_value_print_inner): ...this (note spelling of 'inner').
8558 * f-valprint.c (f_value_print_innner): Rename to...
8559 (f_value_print_inner): ...this (note spelling of 'inner').
8560 * go-lang.c (go_language_data): Delete la_value_print_inner
8561 initializer.
8562 (go_language::value_print_inner): New member function.
8563 * language.c (language_defn::value_print_inner): Define new member
8564 function.
8565 (unk_lang_value_print_inner): Delete.
8566 (unknown_language_data): Delete la_value_print_inner initializer.
8567 (unknown_language::value_print_inner): New member function.
8568 (auto_language_data): Delete la_value_print_inner initializer.
8569 (auto_language::value_print_inner): New member function.
8570 * language.h (language_data): Delete la_value_print_inner field.
8571 (language_defn::value_print_inner): Delcare new member function.
8572 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8573 initializer.
8574 (m2_language::value_print_inner): New member function.
8575 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8576 initializer.
8577 * opencl-lang.c (opencl_language_data): Likewise.
8578 * p-lang.c (pascal_language_data): Likewise.
8579 (pascal_language::value_print_inner): New member function.
8580 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8581 initializer.
8582 (rust_language::value_print_inner): New member function.
8583 * valprint.c (do_val_print): Update call to value_print_inner.
8584
8585 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * ada-lang.c (ada_language_data): Delete la_value_print
8588 initializer.
8589 (ada_language::value_print): New member function.
8590 * c-lang.c (c_language_data): Delete la_value_print initializer.
8591 (cplus_language_data): Likewise.
8592 (asm_language_data): Likewise.
8593 (minimal_language_data): Likewise.
8594 * d-lang.c (d_language_data): Likewise.
8595 * f-lang.c (f_language_data): Likewise.
8596 * go-lang.c (go_language_data): Likewise.
8597 * language.c (unk_lang_value_print): Delete.
8598 (language_defn::value_print): Define new member function.
8599 (unknown_language_data): Delete la_value_print initializer.
8600 (unknown_language::value_print): New member function.
8601 (auto_language_data): Delete la_value_print initializer.
8602 (auto_language::value_print): New member function.
8603 * language.h (language_data): Delete la_value_print field.
8604 (language_defn::value_print): Declare new member function.
8605 (LA_VALUE_PRINT): Update call to value_print.
8606 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8607 * objc-lang.c (objc_language_data): Likewise.
8608 * opencl-lang.c (opencl_language_data): Likewise.
8609 * p-lang.c (pascal_language_data): Likewise.
8610 (pascal_language::value_print): New member function.
8611 * rust-lang.c (rust_language_data): Delete la_value_print
8612 initializer.
8613
8614 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8615
8616 * ada-lang.c (ada_watch_location_expression): Rename to
8617 ada_language::watch_location_expression.
8618 (ada_language_data): Delete la_watch_location_expression
8619 initializer.
8620 (ada_language::watch_location_expression): New member function,
8621 implementation from ada_watch_location_expression.
8622 * breakpoint.c (watch_command_1): Update call to
8623 watch_location_expression.
8624 * c-lang.c (c_watch_location_expression): Rename to
8625 language_defn::watch_location_expression.
8626 (c_language_data): Delete la_watch_location_expression
8627 initializer.
8628 (cplus_language_data): Likewise.
8629 (asm_language_data): Likewise.
8630 (minimal_language_data): Likewise.
8631 * c-lang.h (c_watch_location_expression): Delete declaration.
8632 * d-lang.c (d_language_data): Delete la_watch_location_expression
8633 initializer.
8634 * f-lang.c (f_language_data): Likewise.
8635 * go-lang.c (go_language_data): Likewise.
8636 * language.c (language_defn::watch_location_expression): Member
8637 function implementation from c_watch_location_expression.
8638 (unknown_language_data): Delete la_watch_location_expression
8639 initializer.
8640 (auto_language_data): Likewise.
8641 * language.h (language_data): Delete la_watch_location_expression
8642 field.
8643 (language_defn::watch_location_expression): Declare new member
8644 function.
8645 * m2-lang.c (m2_language_data): Delete
8646 la_watch_location_expression initializer.
8647 * objc-lang.c (objc_language_data): Likewise.
8648 * opencl-lang.c (opencl_language_data): Likewise.
8649 * p-lang.c (pascal_language_data): Likewise.
8650 * rust-lang.c (rust_watch_location_expression): Rename to
8651 rust_language::watch_location_expression.
8652 (rust_language_data): Delete la_watch_location_expression
8653 initializer.
8654 (rust_language::watch_location_expression): New member function,
8655 implementation from rust_watch_location_expression.
8656
8657 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8660 ada_language::collect_symbol_completion_matches.
8661 (ada_language_data): Delete la_collect_symbol_completion_matches
8662 initializer.
8663 (ada_language::collect_symbol_completion_matches): New member
8664 function, implementation from
8665 ada_collect_symbol_completion_matches.
8666 * c-lang.c (c_language_data): Delete
8667 la_collect_symbol_completion_matches initializer.
8668 (cplus_language_data): Likewise.
8669 (asm_language_data): Likewise.
8670 (minimal_language_data): Likewise.
8671 * d-lang.c (d_language_data): Likewise.
8672 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8673 f_language::collect_symbol_completion_matches.
8674 (f_language_data): Delete la_collect_symbol_completion_matches
8675 initializer.
8676 (f_language::collect_symbol_completion_matches) New member
8677 function, implementation from f_collect_symbol_completion_matches.
8678 * go-lang.c (go_language_data): Delete
8679 la_collect_symbol_completion_matches initializer.
8680 * language.c (unknown_language_data): Likewise.
8681 (auto_language_data): Likewise.
8682 * language.h (language_data): Delete
8683 la_collect_symbol_completion_matches field.
8684 (language_defn::collect_symbol_completion_matches): New member
8685 function.
8686 * m2-lang.c (m2_language_data): Delete
8687 la_collect_symbol_completion_matches initializer.
8688 * objc-lang.c (objc_language_data): Likewise.
8689 * opencl-lang.c (opencl_language_data): Likewise.
8690 * p-lang.c (pascal_language_data): Likewise.
8691 * rust-lang.c (rust_language_data): Likewise.
8692 * symtab.c (default_collect_symbol_completion_matches): Delete.
8693 (collect_symbol_completion_matches): Update call to
8694 collect_symbol_completion_matches.
8695 (collect_symbol_completion_matches_type): Likewise.
8696 * symtab.h (default_collect_symbol_completion_matches): Delete
8697 declaration.
8698
8699 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8700
8701 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8702 (ada_language_data): Delete la_word_break_characters initializer.
8703 (ada_language::word_break_characters): New member function.
8704 * c-lang.c (c_language_data): Delete la_word_break_characters
8705 initializer.
8706 (cplus_language_data): Likewise.
8707 (asm_language_data): Likewise.
8708 (minimal_language_data): Likewise.
8709 * completer.c: Update global comment.
8710 (advance_to_expression_complete_word_point): Update call to
8711 word_break_characters.
8712 (complete_files_symbols): Likewise.
8713 (complete_line_internal_1): Likewise.
8714 (default_completer_handle_brkchars): Likewise.
8715 (skip_quoted_chars): Likewise.
8716 * d-lang.c (d_language_data): Delete la_word_break_characters
8717 initializer.
8718 * f-lang.c (f_word_break_characters): Delete.
8719 (f_language_data): Delete la_word_break_characters initializer.
8720 (f_language::word_break_characters): New member function.
8721 * go-lang.c (go_language_data): Delete la_word_break_characters
8722 initializer.
8723 * language.c (unknown_language_data): Likewise.
8724 (auto_language_data): Likewise.
8725 * language.h (default_word_break_characters): Move declaration to
8726 earlier in the file.
8727 (language_data): Delete la_word_break_characters field.
8728 (language_defn::word_break_characters): New member function.
8729 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8730 initializer.
8731 * objc-lang.c (objc_language_data): Likewise.
8732 * opencl-lang.c (opencl_language_data): Likewise.
8733 * p-lang.c (pascal_language_data): Likewise.
8734 * rust-lang.c (rust_language_data): Likewise.
8735
8736 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8737
8738 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8739 (ada_language_data): Delete la_get_symbol_name_matcher
8740 initializer.
8741 (language_defn::get_symbol_name_matcher_inner): New member
8742 function.
8743 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8744 initializer.
8745 (cplus_language_data): Likewise.
8746 (cplus_language::get_symbol_name_matcher_inner): New member
8747 function.
8748 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8749 (minimal_language_data): Likewise.
8750 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8751 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8752 initializer.
8753 * dictionary.c (iter_match_first_hashed): Update call to
8754 get_symbol_name_matcher.
8755 (iter_match_next_hashed): Likewise.
8756 (iter_match_next_linear): Likewise.
8757 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8758 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8759 initializer.
8760 (f_language::get_symbol_name_matcher_inner): New member function.
8761 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8762 initializer.
8763 * language.c (default_symbol_name_matcher): Update header comment,
8764 make static.
8765 (language_defn::get_symbol_name_matcher): New definition.
8766 (language_defn::get_symbol_name_matcher_inner): Likewise.
8767 (get_symbol_name_matcher): Delete.
8768 (unknown_language_data): Delete la_get_symbol_name_matcher
8769 initializer.
8770 (auto_language_data): Likewise.
8771 * language.h (language_data): Delete la_get_symbol_name_matcher
8772 field.
8773 (language_defn::get_symbol_name_matcher): New member function.
8774 (language_defn::get_symbol_name_matcher_inner): Likewise.
8775 (default_symbol_name_matcher): Delete declaration.
8776 * linespec.c (find_methods): Update call to
8777 get_symbol_name_matcher.
8778 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8779 initializer.
8780 * minsyms.c (lookup_minimal_symbol): Update call to
8781 get_symbol_name_matcher.
8782 (iterate_over_minimal_symbols): Likewise.
8783 * objc-lang.c (objc_language_data): Delete
8784 la_get_symbol_name_matcher initializer.
8785 * opencl-lang.c (opencl_language_data): Likewise.
8786 * p-lang.c (pascal_language_data): Likewise.
8787 * psymtab.c (psymbol_name_matches): Update call to
8788 get_symbol_name_matcher.
8789 * rust-lang.c (rust_language_data): Delete
8790 la_get_symbol_name_matcher initializer.
8791 * symtab.c (symbol_matches_search_name): Update call to
8792 get_symbol_name_matcher.
8793 (compare_symbol_name): Likewise.
8794
8795 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8796
8797 * ada-lang.c (ada_language_data): Delete la_compute_program
8798 initializer.
8799 * c-lang.c (c_language_data): Likewise.
8800 (c_language::compute_program): New member function.
8801 (cplus_language_data): Delete la_compute_program initializer.
8802 (cplus_language::compute_program): New member function.
8803 (asm_language_data): Delete la_compute_program initializer.
8804 (minimal_language_data): Likewise.
8805 * c-lang.h (c_compute_program): Update comment.
8806 (cplus_compute_program): Likewise.
8807 * compile/compile-c-support.c (c_compute_program): Likewise.
8808 (cplus_compute_program): Likewise.
8809 * compile/compile.c (compile_to_object): Update call to
8810 la_compute_program.
8811 * d-lang.c (d_language_data): Delete la_compute_program
8812 initializer.
8813 * f-lang.c (f_language_data): Likewise.
8814 * go-lang.c (go_language_data): Likewise.
8815 * language.c (unknown_language_data): Likewise.
8816 (auto_language_data): Likewise.
8817 * language.h (language_data): Delete la_compute_program field.
8818 (language_defn::compute_program): New member function.
8819 * m2-lang.c (m2_language_data): Delete la_compute_program
8820 initializer.
8821 * objc-lang.c (objc_language_data): Likewise.
8822 * opencl-lang.c (opencl_language_data): Likewise.
8823 * p-lang.c (pascal_language_data): Likewise.
8824 * rust-lang.c (rust_language_data): Likewise.
8825
8826 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8827
8828 * ada-lang.c (ada_language_data) Delete
8829 la_class_name_from_physname initializer.
8830 * c-lang.c (c_language_data): Likewise.
8831 (cplus_language_data): Likewise.
8832 (cplus_language::class_name_from_physname): New member function.
8833 (asm_language_data): Delete la_class_name_from_physname
8834 initializer.
8835 (minimal_language_data): Likewise.
8836 * d-lang.c (d_language_data): Likewise.
8837 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8838 method on language_defn class.
8839 (guess_full_die_structure_name): Likewise.
8840 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8841 initializer.
8842 * go-lang.c (go_language_data): Likewise.
8843 * language.c (language_class_name_from_physname): Delete.
8844 (unk_lang_class_name): Delete.
8845 (unknown_language_data): Delete la_class_name_from_physname
8846 initializer.
8847 (auto_language_data): Likewise.
8848 * language.h (language_data): Delete la_class_name_from_physname
8849 field.
8850 (language_defn::class_name_from_physname): New function.
8851 (language_class_name_from_physname): Delete declaration.
8852 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8853 initializer.
8854 * objc-lang.c (objc_language_data): Likewise.
8855 * opencl-lang.c (opencl_language_data): Likewise.
8856 * p-lang.c (pascal_language_data): Likewise.
8857 * rust-lang.c (rust_language_data): Likewise.
8858
8859 2020-06-16 Tom Tromey <tom@tromey.com>
8860
8861 * tui/tui-data.h (STATUS_NAME): New macro.
8862 * tui/tui-layout.c (tui_remove_some_windows)
8863 (initialize_known_windows, tui_register_window)
8864 (tui_layout_split::remove_windows, initialize_layouts)
8865 (tui_new_layout_command): Don't use hard-coded window names.
8866
8867 2020-06-16 Tom Tromey <tom@tromey.com>
8868
8869 PR tui/25348:
8870 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8871 tui_initialize_readline. Only run once. Call rl_initialize.
8872 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8873 tui_initialize_readline.
8874 * tui/tui-io.c (tui_setup_io): Call
8875 tui_ensure_readline_initialized.
8876 * tui/tui-interp.c (tui_interp::init): Update.
8877
8878 2020-06-16 Tom Tromey <tom@tromey.com>
8879
8880 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8881 Also preserve the status window.
8882
8883 2020-06-16 Tom Tromey <tom@tromey.com>
8884
8885 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8886 where m_window==nullptr.
8887
8888 2020-06-15 Tom Tromey <tromey@adacore.com>
8889
8890 * windows-nat.c (windows_nat::handle_output_debug_string):
8891 Update.
8892 (windows_nat::handle_ms_vc_exception): Update.
8893 * target.h (target_read_string): Change API.
8894 * target.c (target_read_string): Change API.
8895 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8896 Update.
8897 * solib-frv.c (frv_current_sos): Update.
8898 * solib-dsbt.c (dsbt_current_sos): Update.
8899 * solib-darwin.c (darwin_current_sos): Update.
8900 * linux-thread-db.c (inferior_has_bug): Update.
8901 * expprint.c (print_subexp_standard): Update.
8902 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8903 (ada_exception_message_1): Update.
8904
8905 2020-06-15 Tom Tromey <tromey@adacore.com>
8906
8907 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8908
8909 2020-06-15 Tom Tromey <tromey@adacore.com>
8910
8911 * valprint.c (read_string): Update comment.
8912 * target.c (MIN): Remove.
8913 (target_read_string): Rewrite.
8914
8915 2020-06-15 Tom Tromey <tromey@adacore.com>
8916
8917 * corefile.c (read_memory_string): Remove.
8918 * ada-valprint.c (ada_value_print_ptr): Update.
8919 * ada-lang.h (ada_tag_name): Change return type.
8920 * ada-lang.c (type_from_tag): Update.
8921 (ada_tag_name_from_tsd): Change return type. Use
8922 target_read_string.
8923 (ada_tag_name): Likewise.
8924 * gdbcore.h (read_memory_string): Don't declare.
8925
8926 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8927
8928 * symtab.c (rbreak_command): Ignore Windows drive colon.
8929
8930 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8931
8932 * NEWS: Mention removed GDBserver host support.
8933
8934 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8935
8936 * features/riscv/rebuild-csr-xml.sh: Updated.
8937
8938 2020-06-11 Tom Tromey <tom@tromey.com>
8939
8940 PR gdb/18318:
8941 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8942
8943 2020-06-09 Jonny Grant <jg@jguk.org>
8944 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8945
8946 * main.c (captured_main_1): Don't print new line after help.
8947 (print_gdb_help): add mailing list and IRC channel information
8948 to --help. Add new lines between items in the footer. Remove
8949 quotes around bug url.
8950
8951 2020-06-11 Keith Seitz <keiths@redhat.com>
8952
8953 PR gdb/21356
8954 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8955 Resolve typedefs for type length calculations.
8956
8957 2020-06-10 Tom de Vries <tdevries@suse.de>
8958
8959 PR ada/24713
8960 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8961 (write_psymbols): Enable .gdb_index for ada.
8962 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8963 ada.
8964
8965 2020-06-10 Tom de Vries <tdevries@suse.de>
8966
8967 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8968 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8969 namei" instead of "const char *name" argument.
8970 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8971 dw2_symtab_iter_init.
8972
8973 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8974
8975 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8976 to use type::field and field::type instead.
8977
8978 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8981 to use field::type instead.
8982
8983 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8984
8985 * gdbtypes.h (struct field) <type, set_type>: New methods.
8986 Rename `type` field to...
8987 <m_type>: ... this. Change references throughout to use type or
8988 set_type methods.
8989 (FIELD_TYPE): Use field::type. Change call sites that modify
8990 the field's type to use field::set_type instead.
8991
8992 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8993
8994 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8995 to use type::index_type instead.
8996
8997 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8998
8999 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9000 methods.
9001 (TYPE_INDEX_TYPE): Use type::index_type.
9002 * gdbtypes.c (create_array_type_with_stride): Likewise.
9003
9004 2020-06-07 Tom Tromey <tom@tromey.com>
9005
9006 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9007 parameter.
9008 (generic_value_print): Update.
9009
9010 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9011
9012 Revert commit 982a38f60b0.
9013 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9014
9015 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9016
9017 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9018 avoid use after free.
9019
9020 2020-06-05 Tom de Vries <tdevries@suse.de>
9021
9022 * NEWS: Fix typos.
9023
9024 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9025
9026 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9027 the per_bfd object.
9028 (dwarf2_read_debug_names): Likewise.
9029 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9030 object when re-using a per_bfd object with an index.
9031
9032 2020-06-03 Tom de Vries <tdevries@suse.de>
9033
9034 PR symtab/26046
9035 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9036 children for C++.
9037 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9038 DW_TAG_subprogram.
9039
9040 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9041
9042 * ada-lang.c (ada_language_data): Delete skip_trampoline
9043 initializer.
9044 * c-lang.c (c_language_data): Likewise.
9045 (cplus_language_data): Likewise.
9046 (cplus_language::skip_trampoline): New member function.
9047 (asm_language_data): Delete skip_trampoline initializer.
9048 (minimal_language_data): Likewise.
9049 * d-lang.c (d_language_data): Likewise.
9050 * f-lang.c (f_language_data): Likewise.
9051 * go-lang.c (go_language_data): Likewise.
9052 * language.c (unk_lang_trampoline): Delete function.
9053 (skip_language_trampoline): Update.
9054 (unknown_language_data): Delete skip_trampoline initializer.
9055 (auto_language_data): Likewise.
9056 * language.h (language_data): Delete skip_trampoline field.
9057 (language_defn::skip_trampoline): New function.
9058 * m2-lang.c (m2_language_data): Delete skip_trampoline
9059 initializer.
9060 * objc-lang.c (objc_skip_trampoline): Delete function, move
9061 implementation to objc_language::skip_trampoline.
9062 (objc_language_data): Delete skip_trampoline initializer.
9063 (objc_language::skip_trampoline): New member function with
9064 implementation from objc_skip_trampoline.
9065 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9066 initializer.
9067 * p-lang.c (pascal_language_data): Likewise.
9068 * rust-lang.c (rust_language_data): Likewise.
9069
9070 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9071
9072 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9073 (ada_language::demangle): New member function.
9074 * c-lang.c (c_language_data): Delete la_demangle initializer.
9075 (cplus_language_data): Delete la_demangle initializer.
9076 (cplus_language::demangle): New member function.
9077 (asm_language_data): Delete la_demangle initializer.
9078 (minimal_language_data): Delete la_demangle initializer.
9079 * d-lang.c (d_language_data): Delete la_demangle initializer.
9080 (d_language::demangle): New member function.
9081 * f-lang.c (f_language_data): Delete la_demangle initializer.
9082 (f_language::demangle): New member function.
9083 * go-lang.c (go_language_data): Delete la_demangle initializer.
9084 (go_language::demangle): New member function.
9085 * language.c (language_demangle): Update.
9086 (unk_lang_demangle): Delete.
9087 (unknown_language_data): Delete la_demangle initializer.
9088 (unknown_language::demangle): New member function.
9089 (auto_language_data): Delete la_demangle initializer.
9090 (auto_language::demangle): New member function.
9091 * language.h (language_data): Delete la_demangle field.
9092 (language_defn::demangle): New function.
9093 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9094 * objc-lang.c (objc_language_data): Delete la_demangle
9095 initializer.
9096 (objc_language::demangle): New member function.
9097 * opencl-lang.c (opencl_language_data): Delete la_demangle
9098 initializer.
9099 * p-lang.c (pascal_language_data): Likewise.
9100 * rust-lang.c (rust_language_data): Likewise.
9101 (rust_language::demangle): New member function.
9102
9103 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9104
9105 * ada-lang.c (ada_language_data): Delete la_print_type
9106 initializer.
9107 (ada_language::print_type): New member function.
9108 * c-lang.c (c_language_data): Delete la_print_type initializer.
9109 (c_language::print_type): New member function.
9110 (cplus_language_data): Delete la_print_type initializer.
9111 (cplus_language::print_type): New member function.
9112 (asm_language_data): Delete la_print_type initializer.
9113 (asm_language::print_type): New member function.
9114 (minimal_language_data): Delete la_print_type initializer.
9115 (minimal_language::print_type): New member function.
9116 * d-lang.c (d_language_data): Delete la_print_type initializer.
9117 (d_language::print_type): New member function.
9118 * f-lang.c (f_language_data): Delete la_print_type initializer.
9119 (f_language::print_type): New member function.
9120 * go-lang.c (go_language_data): Delete la_print_type initializer.
9121 (go_language::print_type): New member function.
9122 * language.c (unk_lang_print_type): Delete.
9123 (unknown_language_data): Delete la_print_type initializer.
9124 (unknown_language::print_type): New member function.
9125 (auto_language_data): Delete la_print_type initializer.
9126 (auto_language::print_type): New member function.
9127 * language.h (language_data): Delete la_print_type field.
9128 (language_defn::print_type): New function.
9129 (LA_PRINT_TYPE): Update.
9130 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9131 (m2_language::print_type): New member function.
9132 * objc-lang.c (objc_language_data): Delete la_print_type
9133 initializer.
9134 (objc_language::print_type): New member function.
9135 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9136 to opencl_language::print_type.
9137 (opencl_language_data): Delete la_print_type initializer.
9138 (opencl_language::print_type): New member function, implementation
9139 from opencl_print_type.
9140 * p-lang.c (pascal_language_data): Delete la_print_type
9141 initializer.
9142 (pascal_language::print_type): New member function.
9143 * rust-lang.c (rust_print_type): Delete, implementation moved to
9144 rust_language::print_type.
9145 (rust_language_data): Delete la_print_type initializer.
9146 (rust_language::print_type): New member function, implementation
9147 from rust_print_type.
9148
9149 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9150
9151 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9152 implementation moves to...
9153 (ada_language::sniff_from_mangled_name): ...here. Update return
9154 type.
9155 (ada_language_data): Delete la_sniff_from_mangled_name
9156 initializer.
9157 * c-lang.c (c_language_data): Likewise.
9158 (cplus_language_data): Likewise.
9159 (cplus_language::sniff_from_mangled_name): New member function,
9160 implementation taken from gdb_sniff_from_mangled_name.
9161 (asm_language_data): Delete la_sniff_from_mangled_name
9162 initializer.
9163 (minimal_language_data): Likewise.
9164 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9165 implementation moves to cplus_language::sniff_from_mangled_name.
9166 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9167 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9168 moves to...
9169 (d_language::sniff_from_mangled_name): ...here.
9170 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9171 * f-lang.c (f_language_data): Likewise.
9172 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9173 moves to...
9174 (go_language::sniff_from_mangled_name): ...here.
9175 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9176 * language.c (language_sniff_from_mangled_name): Delete.
9177 (unknown_language_data): Delete la_sniff_from_mangled_name
9178 initializer.
9179 (auto_language_data): Likewise.
9180 * language.h (language_data): Delete la_sniff_from_mangled_name
9181 field.
9182 (language_defn::sniff_from_mangled_name): New function.
9183 (language_sniff_from_mangled_name): Delete declaration.
9184 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9185 field.
9186 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9187 implementation moves to...
9188 (objc_language::sniff_from_mangled_name): ...here.
9189 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9190 * opencl-lang.c (opencl_language_data): Likewise.
9191 * p-lang.c (pascal_language_data): Likewise.
9192 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9193 implementation moves to...
9194 (rust_language::sniff_from_mangled_name): ...here.
9195 (rust_language_data): Delete la_sniff_from_mangled_name
9196 initializer.
9197 * symtab.c (symbol_find_demangled_name): Call
9198 sniff_from_mangled_name member function.
9199
9200 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9201
9202 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9203 initializer.
9204 * c-lang.c (c_language_data): Likewise.
9205 (cplus_language_data): Likewise.
9206 (cplus_language::search_name_hash): New member function.
9207 (asm_language_data): Delete la_search_name_hash initializer.
9208 (minimal_language_data): Likewise.
9209 * d-lang.c (d_language_data): Likewise.
9210 * dictionary.c (default_search_name_hash): Rename to...
9211 (language_defn::search_name_hash): ...this.
9212 * f-lang.c (f_language_data): Likewise.
9213 (f_language::search_name_hash): New member function.
9214 * go-lang.c (go_language_data): Delete la_search_name_hash
9215 initializer.
9216 * language.c (unknown_language_data): Likewise.
9217 (auto_language_data): Likewise.
9218 * language.h (struct language_data): Delete la_search_name_hash
9219 field.
9220 (language_defn::search_name_hash): Declare new member function.
9221 (default_search_name_hash): Delete declaration.
9222 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9223 initializer.
9224 * objc-lang.c (objc_language_data): Likewise.
9225 * opencl-lang.c (opencl_language_data): Likewise.
9226 * p-lang.c (pascal_language_data): Likewise.
9227 * rust-lang.c (rust_language_data): Likewise.
9228 * symtab.c (search_name_hash): Update call.
9229
9230 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9231
9232 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9233 initializer.
9234 * c-lang.c (class compile_instance): Declare.
9235 (c_language_data): Delete la_get_compile_instance initializer.
9236 (c_language::get_compile_instance): New member function.
9237 (cplus_language_data): Delete la_get_compile_instance initializer.
9238 (cplus_language::get_compile_instance): New member function.
9239 (asm_language_data): Delete la_get_compile_instance initializer.
9240 (minimal_language_data): Likewise.
9241 * c-lang.h (c_get_compile_context): Update comment.
9242 (cplus_get_compile_context): Update comment.
9243 * compile/compile.c (compile_to_object): Update calls, don't rely
9244 on function pointer being NULL.
9245 * d-lang.c (d_language_data): Delete la_get_compile_instance
9246 initializer.
9247 * f-lang.c (f_language_data): Likewise.
9248 * go-lang.c (go_language_data): Likewise.
9249 * language.c (unknown_language_data): Likewise.
9250 (auto_language_data): Likewise.
9251 * language.h (language_data): Delete la_get_compile_instance field.
9252 (language_defn::get_compile_instance): New member function.
9253 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9254 initializer.
9255 * objc-lang.c (objc_language_data): Likewise.
9256 * opencl-lang.c (opencl_language_data): Likewise.
9257 * p-lang.c (pascal_language_data): Likewise.
9258 * rust-lang.c (rust_language_data): Likewise.
9259
9260 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9261
9262 * ada-lang.c (ada_add_all_symbols): Update comment.
9263 (ada_iterate_over_symbols): Delete, move implementation to...
9264 (ada_language::iterate_over_symbols): ...here, a new member
9265 function, rewrite to use range based for loop.
9266 (ada_language_data): Delete la_iterate_over_symbols initializer.
9267 * c-lang.c (c_language_data): Likewise.
9268 (cplus_language_data): Likewise.
9269 (asm_language_data): Likewise.
9270 (minimal_language_data): Likewise.
9271 * d-lang.c (d_language_data): Likewise.
9272 * f-lang.c (f_language_data): Likewise.
9273 * go-lang.c (go_language_data): Likewise.
9274 * language.c (unknown_language_data): Likewise.
9275 (auto_language_data): Likewise.
9276 * language.h (language_data): Delete la_iterate_over_symbols field.
9277 (language_defn::iterate_over_symbols): New member function.
9278 (LA_ITERATE_OVER_SYMBOLS): Update.
9279 * linespec.c (iterate_over_all_matching_symtabs): Update.
9280 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9281 initializer.
9282 * objc-lang.c (objc_language_data): Likewise.
9283 * opencl-lang.c (opencl_language_data): Likewise.
9284 * p-lang.c (pascal_language_data): Likewise.
9285 * rust-lang.c (rust_language_data): Likewise.
9286
9287 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9288
9289 * ada-lang.c (ada_language_data): Delete
9290 la_lookup_transparent_type initializer.
9291 * c-lang.c (c_language_data): Likewise.
9292 (cplus_language_data): Likewise.
9293 (cplus_language::lookup_transparent_type): New member function.
9294 (asm_language_data): Delete la_lookup_transparent_type
9295 initializer.
9296 (minimal_language_data): Likewise.
9297 * d-lang.c (d_language_data): Likewise.
9298 * f-lang.c (f_language_data): Likewise.
9299 * go-lang.c (go_language_data): Likewise.
9300 * language.c (unknown_language_data): Likewise.
9301 (auto_language_data): Likewise.
9302 * language.h (struct language_data): Delete
9303 la_lookup_transparent_type field.
9304 (language_defn::lookup_transparent_type): New member function.
9305 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9306 initializer.
9307 * objc-lang.c (objc_language_data): Likewise.
9308 * opencl-lang.c (opencl_language_data): Likewise.
9309 * p-lang.c (pascal_language_data): Likewise.
9310 * rust-lang.c (rust_language_data): Likewise.
9311 * symtab.c (symbol_matches_domain): Update call.
9312
9313 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9314
9315 * ada-lang.c (ada_language_arch_info): Delete function, move
9316 implementation to...
9317 (ada_language::language_arch_info): ...here, a new member
9318 function.
9319 (ada_language_data): Delete la_language_arch_info.
9320 * c-lang.c (c_language_data): Likewise.
9321 (c_language::language_arch_info): New member function.
9322 (cplus_language_arch_info): Delete function, move
9323 implementation to...
9324 (cplus_language::language_arch_info): ...here, a new member
9325 function.
9326 (cplus_language_data): Delete la_language_arch_info.
9327 (asm_language_data): Likewise.
9328 (asm_language::language_arch_info): New member function.
9329 (minimal_language_data): Delete la_language_arch_info.
9330 (minimal_language::language_arch_info): New member function.
9331 * d-lang.c (d_language_arch_info): Delete function, move
9332 implementation to...
9333 (d_language::language_arch_info): ...here, a new member
9334 function.
9335 (d_language_data): Delete la_language_arch_info.
9336 * f-lang.c (f_language_arch_info): Delete function, move
9337 implementation to...
9338 (f_language::language_arch_info): ...here, a new member
9339 function.
9340 (f_language_data): Delete la_language_arch_info.
9341 * go-lang.c (go_language_arch_info): Delete function, move
9342 implementation to...
9343 (go_language::language_arch_info): ...here, a new member
9344 function.
9345 (go_language_data): Delete la_language_arch_info.
9346 * language.c (unknown_language_data): Likewise.
9347 (unknown_language::language_arch_info): New member function.
9348 (auto_language_data): Delete la_language_arch_info.
9349 (auto_language::language_arch_info): New member function.
9350 (language_gdbarch_post_init): Update call to
9351 la_language_arch_info.
9352 * language.h (language_data): Delete la_language_arch_info
9353 function pointer.
9354 (language_defn::language_arch_info): New function.
9355 * m2-lang.c (m2_language_arch_info): Delete function, move
9356 implementation to...
9357 (m2_language::language_arch_info): ...here, a new member
9358 function.
9359 (m2_language_data): Delete la_language_arch_info.
9360 * objc-lang.c (objc_language_arch_info): Delete function, move
9361 implementation to...
9362 (objc_language::language_arch_info): ...here, a new member
9363 function.
9364 (objc_language_data): Delete la_language_arch_info.
9365 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9366 implementation to...
9367 (opencl_language::language_arch_info): ...here, a new member
9368 function.
9369 (opencl_language_data): Delete la_language_arch_info.
9370 * p-lang.c (pascal_language_arch_info): Delete function, move
9371 implementation to...
9372 (pascal_language::language_arch_info): ...here, a new member
9373 function.
9374 (pascal_language_data): Delete la_language_arch_info.
9375 * rust-lang.c (rust_language_arch_info): Delete function, move
9376 implementation to...
9377 (rust_language::language_arch_info): ...here, a new member
9378 function.
9379 (rust_language_data): Delete la_language_arch_info.
9380
9381 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9382
9383 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9384 initializer.
9385 * c-lang.c (c_language_data): Likewise.
9386 (cplus_language_data): Likewise.
9387 (cplus_language::pass_by_reference_info): New method.
9388 (asm_language_data): Delete la_pass_by_reference initializer.
9389 (minimal_language_data): Likewise.
9390 * cp-abi.c (cp_pass_by_reference): Remove use of
9391 default_pass_by_reference.
9392 * d-lang.c (d_language_data): Likewise.
9393 * f-lang.c (f_language_data): Likewise.
9394 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9395 default_pass_by_reference.
9396 * go-lang.c (go_language_data): Likewise.
9397 * language.c (language_pass_by_reference): Update.
9398 (default_pass_by_reference): Delete.
9399 (unknown_language_data): Delete la_pass_by_reference
9400 initializer.
9401 (auto_language_data): Likewise.
9402 * language.h (struct language_data): Delete la_pass_by_reference
9403 field.
9404 (language_defn::pass_by_reference_info): New member function.
9405 (default_pass_by_reference): Delete declaration.
9406 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9407 initializer.
9408 * objc-lang.c (objc_language_data): Likewise.
9409 * opencl-lang.c (opencl_language_data): Likewise.
9410 * p-lang.c (pascal_language_data): Likewise.
9411 * rust-lang.c (rust_language_data): Likewise.
9412
9413 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9414
9415 * ada-lang.c (ada_read_var_value): Delete function, move
9416 implementation to...
9417 (ada_language::read_var_value): ...here.
9418 (ada_language_data): Delete la_read_var_value initializer.
9419 * c-lang.c (c_language_data): Likewise.
9420 (cplus_language_data): Likewise.
9421 (minimal_language_data): Likewise.
9422 * d-lang.c (d_language_data): Likewise.
9423 * f-lang.c (f_language_data): Likewise.
9424 * findvar.c (default_read_var_value): Rename to...
9425 (language_defn::read_var_value): ...this.
9426 * findvar.c (read_var_value): Update header comment, and change to
9427 call member function instead of function pointer.
9428 * go-lang.c (go_language_data): Likewise.
9429 * language.c (unknown_language_data): Delete la_read_var_value
9430 initializer.
9431 (auto_language_data): Likewise.
9432 * language.h (struct language_data): Delete la_read_var_value
9433 field.
9434 (language_defn::read_var_value): New member function.
9435 (default_read_var_value): Delete declaration.
9436 * m2-lang.c (m2_language_data): Delete la_read_var_value
9437 initializer.
9438 * objc-lang.c (objc_language_data): Likewise.
9439 * opencl-lang.c (opencl_language_data): Likewise.
9440 * p-lang.c (pascal_language_data): Likewise.
9441 * rust-lang.c (rust_language_data): Likewise.
9442 * value.h (default_read_var_value): Delete declaration.
9443
9444 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9445
9446 * ada-lang.c (ada_print_array_index): Delete function, move
9447 implementation to...
9448 (ada_language::print_array_index): ...here.
9449 (ada_language_data): Delete la_print_array_index initializer.
9450 * c-lang.c (c_language_data): Likewise.
9451 (cplus_language_data): Likewise.
9452 (minimal_language_data): Likewise.
9453 * d-lang.c (d_language_data): Likewise.
9454 * f-lang.c (f_language_data): Likewise.
9455 * go-lang.c (go_language_data): Likewise.
9456 * language.c (default_print_array_index): Delete function, move
9457 implementation to...
9458 (language_defn::print_array_index): ...here.
9459 (unknown_language_data): Delete la_print_array_index initializer.
9460 (auto_language_data): Likewise.
9461 * language.h (struct language_data): Delete la_print_array_index
9462 field.
9463 (language_defn::print_array_index): New member function.
9464 (LA_PRINT_ARRAY_INDEX): Update.
9465 (default_print_array_index): Delete declaration.
9466 * m2-lang.c (m2_language_data): Delete la_print_array_index
9467 initializer.
9468 * objc-lang.c (objc_language_data): Likewise.
9469 * opencl-lang.c (opencl_language_data): Likewise.
9470 * p-lang.c (pascal_language_data): Likewise.
9471 * rust-lang.c (rust_language_data): Likewise.
9472
9473 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9474
9475 * gdb/ada-lang.c (ada_language_defn): Convert to...
9476 (ada_language_data): ...this.
9477 (class ada_language): New class.
9478 (ada_language_defn): New static global.
9479 * gdb/c-lang.c (c_language_defn): Convert to...
9480 (c_language_data): ...this.
9481 (class c_language): New class.
9482 (c_language_defn): New static global.
9483 (cplus_language_defn): Convert to...
9484 (cplus_language_data): ...this.
9485 (class cplus_language): New class.
9486 (cplus_language_defn): New static global.
9487 (asm_language_defn): Convert to...
9488 (asm_language_data): ...this.
9489 (class asm_language): New class.
9490 (asm_language_defn): New static global.
9491 (minimal_language_defn): Convert to...
9492 (minimal_language_data): ...this.
9493 (class minimal_language): New class.
9494 (minimal_language_defn): New static global.
9495 * gdb/d-lang.c (d_language_defn): Convert to...
9496 (d_language_data): ...this.
9497 (class d_language): New class.
9498 (d_language_defn): New static global.
9499 * gdb/f-lang.c (f_language_defn): Convert to...
9500 (f_language_data): ...this.
9501 (class f_language): New class.
9502 (f_language_defn): New static global.
9503 * gdb/go-lang.c (go_language_defn): Convert to...
9504 (go_language_data): ...this.
9505 (class go_language): New class.
9506 (go_language_defn): New static global.
9507 * gdb/language.c (unknown_language_defn): Remove declaration.
9508 (current_language): Initialize to nullptr, real initialization is
9509 moved to _initialize_language.
9510 (languages): Delete global.
9511 (language_defn::languages): Define.
9512 (set_language_command): Use language_defn::languages.
9513 (set_language): Likewise.
9514 (range_error): Likewise.
9515 (language_enum): Likewise.
9516 (language_def): Likewise.
9517 (add_set_language_command): Use language_def::languages for the
9518 language list, and language_def to lookup language pointers.
9519 (skip_language_trampoline): Use language_defn::languages.
9520 (unknown_language_defn): Convert to...
9521 (unknown_language_data): ...this.
9522 (class unknown_language): New class.
9523 (unknown_language_defn): New static global.
9524 (auto_language_defn): Convert to...
9525 (auto_language_data): ...this.
9526 (class auto_language): New class.
9527 (auto_language_defn): New static global.
9528 (language_gdbarch_post_init): Use language_defn::languages.
9529 (_initialize_language): Initialize current_language.
9530 * gdb/language.h (struct language_defn): Rename to...
9531 (struct language_data): ...this.
9532 (struct language_defn): New.
9533 (auto_language_defn): Delete.
9534 (unknown_language_defn): Delete.
9535 (minimal_language_defn): Delete.
9536 (ada_language_defn): Delete.
9537 (asm_language_defn): Delete.
9538 (c_language_defn): Delete.
9539 (cplus_language_defn): Delete.
9540 (d_language_defn): Delete.
9541 (f_language_defn): Delete.
9542 (go_language_defn): Delete.
9543 (m2_language_defn): Delete.
9544 (objc_language_defn): Delete.
9545 (opencl_language_defn): Delete.
9546 (pascal_language_defn): Delete.
9547 (rust_language_defn): Delete.
9548 * gdb/m2-lang.c (m2_language_defn): Convert to...
9549 (m2_language_data): ...this.
9550 (class m2_language): New class.
9551 (m2_language_defn): New static global.
9552 * gdb/objc-lang.c (objc_language_defn): Convert to...
9553 (objc_language_data): ...this.
9554 (class objc_language): New class.
9555 (objc_language_defn): New static global.
9556 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9557 (opencl_language_data): ...this.
9558 (class opencl_language): New class.
9559 (opencl_language_defn): New static global.
9560 * gdb/p-lang.c (pascal_language_defn): Convert to...
9561 (pascal_language_data): ...this.
9562 (class pascal_language): New class.
9563 (pascal_language_defn): New static global.
9564 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9565 language pointer, update comment format.
9566 * gdb/rust-lang.c (rust_language_defn): Convert to...
9567 (rust_language_data): ...this.
9568 (class rust_language): New class.
9569 (rust_language_defn): New static global.
9570
9571 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9572
9573 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9574 member variable.
9575 <m_stmt_at_address>: New member variable.
9576 (lnp_state_machine::record_line): Don't record some lines, update
9577 tracking of is_stmt at the same address.
9578 (lnp_state_machine::lnp_state_machine): Initialise new member
9579 variables.
9580
9581 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9582
9583 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9584 "-include gnu-nat-mig.h".
9585 * gnu-nat-mig.h: New file.
9586 * gnu-nat.c: Include "gnu-nat-mig.h".
9587 (exc_server, msg_reply_server, notify_server,
9588 process_reply_server): Remove declarations.
9589
9590 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9591
9592 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9593 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9594 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9595 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9596 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9597 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9598 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9599 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9600 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9601 to gnu_nat_target class.
9602 * gnu-nat.c: Likewise.
9603 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9604 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9605 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9606 object.
9607 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9608 instead of `gnu_target'.
9609
9610 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9611
9612 * i386-gnu-tdep.c: Include "gdbcore.h"
9613 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9614 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9615 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9616 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9617 i386_gnu_sigcontext_addr): New functions
9618 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9619 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9620 tdep.
9621
9622 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9623
9624 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9625 before fork_inferior call. Avoid calling it if target_is_pushed returns
9626 true.
9627
9628 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9629
9630 * gnu-nat.h (gnu_target): New variable declaration.
9631 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9632 gnu_target.
9633 * gnu-nat.c (gnu_target): New variable.
9634 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9635 add_thread_silent, and add_thread calls.
9636 (gnu_nat_target::create_inferior): Pass gnu_target to
9637 add_thread_silent, thread_change_ptid call.
9638 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9639 call.
9640
9641 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9642
9643 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9644 (gnu_nat_target::find_memory_regions): Remove unused
9645 `old_address' variable.
9646
9647 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9648
9649 * gnu-nat.c: Include "gdbarch.h".
9650
9651 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9652
9653 * reply_mig_hack.awk (Error return): Cast function through
9654 void *, to bypass compiler function call check.
9655
9656 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9657
9658 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9659 $(srcdir)/reply_mig_hack.awk.
9660
9661 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9662
9663 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9664
9665 2020-05-30 Jonny Grant <jg@jguk.org>
9666
9667 * configure.ac (ACX_BUGURL): change bug URL to https.
9668
9669 2020-05-30 Pedro Alves <palves@redhat.com>
9670
9671 * cp-support.c (replace_typedefs_template): New.
9672 (replace_typedefs_qualified_name): Handle
9673 DEMANGLE_COMPONENT_TEMPLATE.
9674
9675 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9676
9677 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9678 dwarf2/index-cache.h, dwarf2/index-write.c,
9679 dwarf2/index-write.h, dwarf2/line-header.c,
9680 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9681 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9682 variables and fields from `dwarf2_per_objfile` to just
9683 `per_objfile` throughout.
9684
9685 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9686
9687 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9688 <push_dwarf_reg_entry_value>: Add comment.
9689
9690 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9691 Keith Seitz <keiths@redhat.com>
9692
9693 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9694 instead of PyEval_ReleaseLock.
9695 (class gdbpy_gil): Move to earlier in file.
9696 (finalize_python): Set gdb_python_initialized.
9697 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9698 when not initialized.
9699
9700 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9703 <push_dwarf_reg_entry_value>: Remove assert. Override
9704 per_objfile with caller_per_objfile.
9705
9706 2020-05-28 Tom de Vries <tdevries@suse.de>
9707
9708 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9709 PR gold/15646 workaround to symbol kind "type".
9710
9711 2020-05-27 Tom Tromey <tromey@adacore.com>
9712
9713 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9714
9715 2020-05-27 Tom Tromey <tromey@adacore.com>
9716
9717 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9718 Use htab_find_with_hash.
9719 <add_abbrev>: Remove "abbrev_number" parameter.
9720 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9721 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9722 (hash_abbrev): Add comment.
9723 (abbrev_table::lookup_abbrev): Move to header file.
9724 (abbrev_table::read): Update.
9725
9726 2020-05-27 Tom Tromey <tromey@adacore.com>
9727
9728 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9729 method.
9730 <canonical_name>: New member.
9731 <raw_name>: Rename from "name".
9732 (partial_die_info): Initialize canonical_name.
9733 (scan_partial_symbols): Check raw_name.
9734 (partial_die_parent_scope, partial_die_full_name)
9735 (add_partial_symbol, add_partial_subprogram)
9736 (add_partial_enumeration, load_partial_dies): Use "name" method.
9737 (partial_die_info::name): New method.
9738 (partial_die_info::read, guess_partial_die_structure_name)
9739 (partial_die_info::fixup): Update.
9740
9741 2020-05-27 Tom Tromey <tromey@adacore.com>
9742
9743 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9744 <get_ref_die_offset>: Inline.
9745 <get_ref_die_offset_complaint>: New method.
9746 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9747 (attribute::get_ref_die_offset_complaint): Rename from
9748 get_ref_die_offset. Just issue complaint.
9749
9750 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9751
9752 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9753
9754 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9755
9756 * exec.c (exec_file_attach): Use errno value of first openp failure.
9757
9758 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9759
9760 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9761 Don't close thread handle.
9762
9763 2020-05-27 Tom Tromey <tom@tromey.com>
9764 Simon Marchi <simon.marchi@efficios.com>
9765
9766 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9767 shared_ptr.
9768 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9769 member.
9770 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9771 dwarf2_per_bfd_objfile_data_key>: New globals.
9772 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9773 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9774 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9775 shared.
9776 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9777 short-circuit when sharing.
9778 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9779 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9780
9781 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9782
9783 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9784 to...
9785 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9786 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9787
9788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9789
9790 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9791 build_name_components, find_name_components_bounds>:
9792 Add per_objfile parameter.
9793 (struct mapped_index) <symbol_name_at>: Likewise.
9794 (struct mapped_debug_names): Remove constructor.
9795 <dwarf2_per_objfile>: Remove field.
9796 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9797 (mapped_index_base::find_name_components_bounds,
9798 mapped_index_base::build_name_components,
9799 dw2_expand_symtabs_matching_symbol): Likewise.
9800 (class mock_mapped_index) <symbol_name_at>: Likewise.
9801 (check_match): Likewise.
9802 (check_find_bounds_finds): Likewise.
9803 (test_mapped_index_find_name_component_bounds): Update.
9804 (CHECK_MATCH): Update.
9805 (dw2_expand_symtabs_matching): Update.
9806 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9807 per_objfile parameter.
9808 <find_vec_in_debug_names>: Likewise.
9809 <m_per_objfile>: New field.
9810 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9811 parameter.
9812 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9813 (dw2_debug_names_iterator::next): Update.
9814 (dw2_debug_names_lookup_symbol): Update.
9815 (dw2_debug_names_expand_symtabs_for_function): Update.
9816 (dw2_debug_names_map_matching_symbols): Update.
9817 (dw2_debug_names_expand_symtabs_matching): Update.
9818 (dwarf2_read_debug_names): Update.
9819
9820 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9821
9822 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9823 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9824 move to dwarf2_per_objfile.
9825 <read_in_chain>: Remove.
9826 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9827 remove_all_cus, age_comp_units>: New methods.
9828 <m_dwarf2_cus>: New member.
9829 (struct dwarf2_per_cu_data) <cu>: Remove.
9830 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9831 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9832 moved to methods of dwarf2_per_objfile.
9833 (dwarf2_clear_marks): Remove.
9834 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9835 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9836 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9837 (dwarf2_per_objfile::remove_all_cus): New.
9838 (class free_cached_comp_units) <~free_cached_comp_units>:
9839 Update.
9840 (load_cu): Update.
9841 (dw2_do_instantiate_symtab): Adjust.
9842 (fill_in_sig_entry_from_dwo_entry): Adjust.
9843 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9844 (cutu_reader::cutu_reader): Likewise.
9845 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9846 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9847 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9848 and dwarf2_per_objfile::age_comp_units.
9849 (load_partial_comp_unit): Update.
9850 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9851 (process_queue): Likewise.
9852 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9853 backlink.
9854 (dwarf2_read_addr_index): Likewise.
9855 (follow_die_offset): Likewise.
9856 (dwarf2_fetch_die_loc_sect_off): Likewise.
9857 (dwarf2_fetch_constant_bytes): Likewise.
9858 (dwarf2_fetch_die_type_sect_off): Likewise.
9859 (follow_die_sig_1): Likewise.
9860 (load_full_type_unit): Likewise.
9861 (read_signatured_type): Likewise.
9862 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9863 (dwarf2_cu::~dwarf2_cu): Remove.
9864 (dwarf2_per_objfile::get_cu): New.
9865 (dwarf2_per_objfile::set_cu): New.
9866 (age_cached_comp_units): Rename to...
9867 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9868 to std::unordered_map.
9869 (free_one_cached_comp_unit): Rename to...
9870 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9871 to std::unordered_map.
9872 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9873 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9874 a dwarf2_per_objfile in data.
9875 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9876 (dwarf2_clear_marks): Remove.
9877
9878 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9879
9880 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9881 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9882 (init_tu_and_read_dwo_dies): Likewise.
9883 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9884 (cutu_reader::cutu_reader): Likewise.
9885 (load_partial_comp_unit): Likewise.
9886 (process_psymtab_comp_unit): Update.
9887 (build_type_psymtabs_1): Update.
9888 (process_skeletonless_type_unit): Update.
9889 (load_full_comp_unit): Update.
9890 (find_partial_die): Update.
9891 (dwarf2_read_addr_index): Update.
9892 (read_signatured_type): Update.
9893
9894 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9895
9896 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9897 m_header_read_in>: New fields.
9898 <get_header>: New method.
9899 * dwarf2/read.c (per_cu_header_read_in): Remove.
9900 (dwarf2_per_cu_data::get_header): New.
9901 (dwarf2_per_cu_data::addr_size): Update.
9902 (dwarf2_per_cu_data::offset_size): Update.
9903 (dwarf2_per_cu_data::ref_addr_size): Update.
9904
9905 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9906
9907 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9908 (dw2_do_instantiate_symtab): Update.
9909 (queue_and_load_all_dwo_tus): Change parameter from
9910 dwarf2_per_cu_data to dwarf2_cu.
9911 (dwarf2_fetch_die_loc_sect_off): Update.
9912 (dwarf2_fetch_constant_bytes): Update.
9913 (dwarf2_fetch_die_type_sect_off): Update.
9914
9915 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9916
9917 * dwarf2/read.c (process_full_comp_unit,
9918 process_full_type_unit): Remove per_cu, per_objfile paramters.
9919 Add dwarf2_cu parameter.
9920 (process_queue): Update.
9921
9922 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9923
9924 * dwarf2/read.c (create_cu_from_index_list): Replace
9925 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9926 (create_cus_from_index_list): Likewise.
9927 (create_cus_from_index): Likewise.
9928 (create_signatured_type_table_from_index): Likewise.
9929 (create_cus_from_debug_names_list): Likewise.
9930 (create_cus_from_debug_names): Likewise.
9931 (dwarf2_read_gdb_index): Update.
9932 (dwarf2_read_debug_names): Update.
9933
9934 2020-05-27 Tom Tromey <tom@tromey.com>
9935 Simon Marchi <simon.marchi@efficios.com>
9936
9937 * dwarf2/read.h (struct dwarf2_per_objfile)
9938 <get_type_for_signatured_type, set_type_for_signatured_type>:
9939 New methods.
9940 <m_type_map>: New member.
9941 (struct signatured_type) <type>: Remove.
9942 * dwarf2/read.c
9943 (dwarf2_per_objfile::get_type_for_signatured_type,
9944 dwarf2_per_objfile::set_type_for_signatured_type): New.
9945 (get_signatured_type): Use new methods.
9946
9947 2020-05-27 Tom Tromey <tom@tromey.com>
9948 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9951 (struct dwarf2_per_objfile) <type_units>: New member.
9952 <get_type_unit_group_unshareable>: New method.
9953 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9954 num_symtabs, symtabs>: Remove; move to
9955 type_unit_group_unshareable.
9956 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9957 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9958 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9959
9960 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9961
9962 * dwarf2/read.h (struct dwarf2_per_cu_data):
9963 <dwarf2_per_objfile>: Remove.
9964 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9965 dwarf2_per_objfile.
9966 (create_signatured_type_table_from_index): Likewise.
9967 (create_signatured_type_table_from_debug_names): Likewise.
9968 (create_debug_type_hash_table): Likewise.
9969 (fill_in_sig_entry_from_dwo_entry): Likewise.
9970 (create_type_unit_group): Likewise.
9971 (read_comp_units_from_section): Likewise.
9972 (create_cus_hash_table): Likewise.
9973
9974 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9975
9976 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9977 dwarf2_per_cu_data::dwarf2_per_objfile.
9978 (compute_compunit_symtab_includes): Likewise.
9979 (dwarf2_cu::start_symtab): Likewise.
9980
9981 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9982
9983 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9984 parameter.
9985 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9986 (read_namespace_alias): Update.
9987 (lookup_die_type): Update.
9988 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9989 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9990 Update.
9991 (disassemble_dwarf_expression): Update.
9992
9993 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9994
9995 * dwarf2/read.h (struct dwarf2_queue_item): Add
9996 dwarf2_per_objfile parameter, assign new parameter.
9997 <per_objfile>: New field.
9998 * dwarf2/read.c (free_one_cached_comp_unit): Add
9999 dwarf2_per_objfile parameter.
10000 (queue_comp_unit): Likewise.
10001 (dw2_do_instantiate_symtab): Update.
10002 (process_psymtab_comp_unit): Update.
10003 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10004 (process_imported_unit_die): Update.
10005 (queue_and_load_dwo_tu): Update.
10006 (follow_die_offset): Update.
10007 (follow_die_sig_1): Update.
10008
10009 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10012 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10013 (read_call_site_scope): Assign per_objfile.
10014 (dwarf2_per_cu_data::objfile): Remove.
10015 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10016 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10017 dwarf2_per_objfile parameter.
10018 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10019 dwarf2_per_objfile parameter.
10020 (dwarf_expr_reg_to_entry_parameter): Add output
10021 dwarf2_per_objfile parameter.
10022 (locexpr_get_frame_base): Update.
10023 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10024 <push_dwarf_reg_entry_value>: Update.
10025 <call_site_to_target_addr>: Update.
10026 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10027 parameter.
10028 (value_of_dwarf_reg_entry): Update.
10029 (rw_pieced_value): Update.
10030 (indirect_synthetic_pointer): Update.
10031 (dwarf2_evaluate_property): Update.
10032 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10033 parameter.
10034 (locexpr_read_variable): Update.
10035 (locexpr_get_symbol_read_needs): Update.
10036 (loclist_read_variable): Update.
10037
10038 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10041 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10042 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10043 parameter.
10044 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10045 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10046 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10047 parameter.
10048 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10049 sect_variable_value): Add dwarf2_per_objfile parameter.
10050 (class dwarf_evaluate_loc_desc) <dwarf_call,
10051 dwarf_variable_value>: Update.
10052 (fetch_const_value_from_synthetic_pointer): Add
10053 dwarf2_per_objfile parameter.
10054 (fetch_const_value_from_synthetic_pointer): Update.
10055 (coerced_pieced_ref): Update.
10056 (class symbol_needs_eval_context) <dwarf_call,
10057 dwarf_variable_value>: Update.
10058 (dwarf2_compile_expr_to_ax): Update.
10059
10060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10063 parameter.
10064 (dwarf2_evaluate_loc_desc_full): Update.
10065
10066 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10067
10068 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10069 parameter.
10070 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10071 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10072 dwarf2_per_objfile parameter.
10073 (decode_debug_loc_dwo_addresses): Likewise.
10074 (dwarf2_find_location_expression): Update.
10075 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10076 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10077 parameter.
10078 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10079 parameter.
10080 (locexpr_describe_location_1): Likewise.
10081 (locexpr_describe_location): Update.
10082
10083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10084
10085 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10086 Remove.
10087 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10088 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10089 (dwarf2_compile_property_to_c): Update.
10090 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10091 use text offset from objfile.
10092 (locexpr_tracepoint_var_ref): Update.
10093 (locexpr_generate_c_location): Update.
10094 (loclist_describe_location): Update.
10095 (loclist_tracepoint_var_ref): Update.
10096 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10097 dwarf2_per_objfile parameter.
10098 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10099 use text offset from objfile.
10100 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10101
10102 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10103
10104 * dwarf2/expr.h (struct dwarf_expr_context)
10105 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10106 <offset>: Remove.
10107 <per_objfile>: New member.
10108 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10109 dwarf2_per_objfile parameter. Don't set offset, set
10110 per_objfile.
10111 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10112 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10113 a dwarf2_per_objfile object instead of an offset.
10114 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10115 constructor.
10116 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10117 to dwarf2_expr_executor constructor. Don't set offset.
10118 (dwarf2_fetch_cfa_info): Update.
10119 (struct dwarf2_frame_cache) <text_offset>: Remove.
10120 <per_objfile>: New field.
10121 (dwarf2_frame_cache): Update.
10122 (dwarf2_frame_prev_register): Update.
10123 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10124 <dwarf_evaluate_loc_desc>: Add constructor.
10125 (dwarf2_evaluate_loc_desc_full): Update.
10126 (dwarf2_locexpr_baton_eval): Update.
10127 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10128 Add constructor.
10129 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10130
10131 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10134 addr_sized_int_type>: Move to dwarf2_cu.
10135 <int_type>: Move to dwarf2_per_objfile.
10136 (struct dwarf2_per_objfile) <int_type>: Move here.
10137 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10138 addr_sized_int_type>: Move here.
10139 (read_func_scope): Update.
10140 (read_array_type): Update.
10141 (read_tag_string_type): Update.
10142 (attr_to_dynamic_prop): Update.
10143 (dwarf2_per_cu_data::int_type): Rename to...
10144 (dwarf2_per_objfile::int_type): ... this.
10145 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10146 (dwarf2_cu::addr_sized_int_type): ... this.
10147 (read_subrange_type): Update.
10148 (dwarf2_per_cu_data::addr_type): Rename to...
10149 (dwarf2_cu::addr_type): ... this.
10150 (set_die_type): Update.
10151
10152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10155 data through per_cu->cu.
10156
10157 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10158
10159 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10160 dwarf2_per_cu_data parameter fo dwarf2_cu.
10161 (lookup_dwo_type_unit): Likewise.
10162 (read_cutu_die_from_dwo): Likewise.
10163 (lookup_dwo_unit): Likewise.
10164 (open_and_init_dwo_file): Likewise.
10165 (lookup_dwo_cutu): Likewise.
10166 (lookup_dwo_comp_unit): Likewise.
10167 (lookup_dwo_type_unit): Likewise.
10168 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10169 (cutu_reader::cutu_reader): Update.
10170
10171 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10172
10173 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10174 parameter.
10175 (process_full_type_unit): Likewise.
10176 (process_queue): Update.
10177
10178 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10179
10180 * dwarf2/read.c (recursively_compute_inclusions): Add
10181 dwarf2_per_objfile parameter.
10182 (compute_compunit_symtab_includes): Likewise.
10183 (process_cu_includes): Update.
10184
10185 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10188 parameter.
10189 (create_type_unit_group): Update.
10190 (process_psymtab_comp_unit_reader): Update.
10191 (build_type_psymtabs_reader): Update.
10192
10193 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10194
10195 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10196 object through m_this_cu->cu.
10197
10198 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10199
10200 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10201 the info parameter.
10202 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10203
10204 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10205
10206 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10207 per_objfile parameter.
10208 (load_full_type_unit): Add per_objfile parameter.
10209 (read_signatured_type): Likewise.
10210 (load_full_comp_unit): Likewise.
10211 (load_cu): Likewise.
10212 (dw2_do_instantiate_symtab): Likewise.
10213 (dw2_get_file_names): Likewise.
10214 (dw2_map_symtabs_matching_filename): Update.
10215 (dw_expand_symtabs_matching_file_matcher): Update.
10216 (dw2_map_symbol_filenames): Update.
10217 (process_psymtab_comp_unit): Add per_objfile parameter.
10218 (build_type_psymtabs_1): Update.
10219 (process_skeletonless_type_unit): Update.
10220 (dwarf2_build_psymtabs_hard): Update.
10221 (load_partial_comp_unit): Add per_objfile parameter.
10222 (scan_partial_symbols): Update.
10223 (load_full_comp_unit): Add per_objfile parameter.
10224 (process_imported_unit_die): Update.
10225 (create_cus_hash_table): Update.
10226 (find_partial_die): Update.
10227 (dwarf2_read_addr_index): Update.
10228 (follow_die_offset): Update.
10229 (dwarf2_fetch_die_loc_sect_off): Update.
10230 (dwarf2_fetch_constant_bytes): Update.
10231 (dwarf2_fetch_die_type_sect_off): Update.
10232 (follow_die_sig_1): Update.
10233 (load_full_type_unit): Add per_objfile parameter.
10234 (read_signatured_type): Likewise.
10235
10236 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10237
10238 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10239 of objfile_name.
10240
10241 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10242
10243 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10244 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10245 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10246 field.
10247 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10248 (create_cus_from_index): Update.
10249 (dwarf2_read_gdb_index): Update.
10250 (create_cus_from_debug_names): Update.
10251 (dwarf2_read_debug_names): Update.
10252 (get_abbrev_section_for_cu): Update.
10253 (create_all_comp_units): Update.
10254 (read_attribute_value): Update.
10255 (get_debug_line_section): Update.
10256 * dwarf2/index-cache.c (index_cache::store): Update.
10257 * dwarf2/index-write.c (save_gdb_index_command): Update.
10258 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10259
10260 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10261
10262 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10263 member.
10264 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10265 dwarf2_per_cu_data::per_bfd.
10266 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10267 (create_type_unit_group): Likewise.
10268 (queue_comp_unit): Remove reference to
10269 per_cu->dwarf2_per_objfile.
10270 (maybe_queue_comp_unit): Likewise.
10271 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10272 (create_cus_hash_table): Assign new field.
10273
10274 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10275
10276 * dwarf2/read.c: Replace
10277 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10278 dwarf2_cu->per_objfile throughout.
10279
10280 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10281
10282 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10283 parameter, don't use per_cu->dwarf2_per_objfile.
10284 (dw2_instantiate_symtab): Likewise.
10285 (dw2_find_last_source_symtab): Update.
10286 (dw2_map_expand_apply): Update.
10287 (dw2_lookup_symbol): Update.
10288 (dw2_expand_symtabs_for_function): Update.
10289 (dw2_expand_all_symtabs): Update.
10290 (dw2_expand_symtabs_with_fullname): Update.
10291 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10292 don't use per_cu->dwarf2_per_objfile.
10293 (dw2_expand_marked_cus): Update.
10294 (dw2_find_pc_sect_compunit_symtab): Update.
10295 (dw2_debug_names_lookup_symbol): Update.
10296 (dw2_debug_names_expand_symtabs_for_function): Update.
10297 (dw2_debug_names_map_matching_symbols): Update.
10298 (dwarf2_psymtab::expand_psymtab): Update.
10299
10300 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10301
10302 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10303 <per_objfile>: New member.
10304 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10305 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10306 call to dwarf2_cu.
10307 (cutu_reader::cutu_reader): Update.
10308 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10309
10310 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10313 struct dwarf2_per_objfile.
10314 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10315 dwarf2_per_bfd.
10316 * dwarf2/read.c (set_die_type): Update.
10317 (get_die_type_at_offset): Update.
10318
10319 2020-05-27 Tom Tromey <tom@tromey.com>
10320 Simon Marchi <simon.marchi@efficios.com>
10321
10322 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10323 method.
10324 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10325 get_symtab, set_symtab>: New methods.
10326 <m_symtabs>: New field.
10327 (struct dwarf2_psymtab): Derive from partial_symtab.
10328 <readin_p, get_compunit_symtab>: Declare methods.
10329 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10330 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10331 New methods.
10332 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10333 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10334 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10335 (dw2_symtab_iter_next, dw2_print_stats)
10336 (dw2_expand_symtabs_with_fullname)
10337 (dw2_expand_symtabs_matching_one)
10338 (dw_expand_symtabs_matching_file_matcher)
10339 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10340 (dw2_debug_names_iterator::next)
10341 (dw2_debug_names_map_matching_symbols)
10342 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10343 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10344 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10345 New methods.
10346 (get_compunit_symtab, process_full_comp_unit)
10347 (process_full_type_unit): Update.
10348 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10349
10350 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10351
10352 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10353 then introduce a new dwarf2_per_objfile type.
10354 <read_line_string>: Move to the new dwarf2_per_objfile type.
10355 <objfile>: Likewise.
10356 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10357 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10358 dwarf2_per_objfile->per_bfd.
10359 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10360 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10361 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10362 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10363 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10364 (dwarf2_per_objfile::locate_sections): Rename to...
10365 (dwarf2_per_bfd::locate_sections): ... this.
10366 (dwarf2_per_objfile::get_cutu): Rename to...
10367 (dwarf2_per_bfd::get_cutu): ... this.
10368 (dwarf2_per_objfile::get_cu): Rename to...
10369 (dwarf2_per_bfd::get_cu): ... this.
10370 (dwarf2_per_objfile::get_tu): Rename to...
10371 (dwarf2_per_bfd::get_tu): ... this.
10372 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10373 (dwarf2_per_bfd::allocate_per_cu): ... this.
10374 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10375 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10376 (get_gdb_index_contents_ftype): Change parameter from
10377 dwarf2_per_objfile to dwarf2_per_bfd.
10378 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10379 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10380
10381 2020-05-27 Tom Tromey <tom@tromey.com>
10382 Simon Marchi <simon.marchi@efficios.com>
10383
10384 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10385 (allocate_piece_closure): Set "per_objfile" member.
10386 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10387 (locexpr_describe_location, loclist_describe_location): Use new
10388 member.
10389 * dwarf2/read.c (read_call_site_scope)
10390 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10391 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10392 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10393 handle_data_member_location): Set per_objfile member.
10394 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10395 member.
10396 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10397
10398 2020-05-27 Tom Tromey <tom@tromey.com>
10399
10400 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10401 allocate_signatured_type>: Declare new methods.
10402 <m_num_psymtabs>: New member.
10403 (struct dwarf2_per_cu_data) <index>: New member.
10404 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10405 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10406 (create_cu_from_index_list): Use allocate_per_cu.
10407 (create_signatured_type_table_from_index)
10408 (create_signatured_type_table_from_debug_names)
10409 (create_debug_type_hash_table, add_type_unit)
10410 (read_comp_units_from_section): Use allocate_signatured_type.
10411
10412 2020-05-27 Tom Tromey <tom@tromey.com>
10413
10414 * psymtab.c (partial_map_expand_apply)
10415 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10416 (psym_lookup_global_symbol_language)
10417 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10418 (psym_print_stats, psym_expand_symtabs_for_function)
10419 (psym_map_symbol_filenames, psym_map_matching_symbols)
10420 (psym_expand_symtabs_matching)
10421 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10422 (maintenance_check_psymtabs): Update.
10423 * psympriv.h (struct partial_symtab) <readin_p,
10424 get_compunit_symtab>: Add objfile parameter.
10425 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10426 Likewise.
10427 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10428 get_compunit_symtab>: Likewise.
10429 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10430
10431 2020-05-27 Tom Tromey <tom@tromey.com>
10432
10433 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10434 member.
10435 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10436 (create_cu_from_index_list)
10437 (create_signatured_type_table_from_index)
10438 (create_signatured_type_table_from_debug_names)
10439 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10440 (dwarf2_create_include_psymtab)
10441 (create_debug_type_hash_table, add_type_unit)
10442 (create_type_unit_group, read_comp_units_from_section)
10443 (dwarf2_compute_name, create_cus_hash_table)
10444 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10445 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10446 obstack.
10447 (dw2_get_real_path): Likewise. Change argument to
10448 dwarf2_per_objfile.
10449
10450 2020-05-27 Luis Machado <luis.machado@linaro.org>
10451
10452 PR tdep/26000
10453 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10454 for ldrd (immediate).
10455
10456 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10457
10458 * command.h: Add comment giving the name of class_tui.
10459 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10460 create the fake command for the help for class_tui.
10461
10462 2020-05-26 Tom Tromey <tromey@adacore.com>
10463
10464 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10465 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10466 (val_atr): New function.
10467 (value_val_atr): Use it.
10468 * ada-valprint.c (print_optional_low_bound): Change low bound
10469 handling for enums.
10470 (val_print_packed_array_elements): Don't call discrete_position.
10471 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10472 discrete_position for enum types.
10473 * language.c (default_print_array_index): Change type.
10474 * language.h (struct language_defn) <la_print_array_index>: Add
10475 index_type parameter, change type of index_value.
10476 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10477 (default_print_array_index): Update.
10478 * valprint.c (maybe_print_array_index): Don't call
10479 value_from_longest. Update.
10480 (value_print_array_elements): Don't call discrete_position.
10481
10482 2020-05-26 Tom Tromey <tromey@adacore.com>
10483
10484 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10485 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10486
10487 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10488
10489 PR gdb/13519
10490 * avr-tdep.c (avr_integer_to_address): Return data or code
10491 address accordingly to the second 'type' argument of the
10492 function.
10493
10494 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10495
10496 * infcmd.c, inferior.h: (construct_inferior_arguments):
10497 Moved function from here to gdbsupport/common-inferior.{h,cc}
10498
10499 2020-05-23 Tom Tromey <tom@tromey.com>
10500
10501 Revert commit eca1f90c:
10502 * NEWS: Remove entry for completion styling.
10503 * completer.c (_rl_completion_prefix_display_length): Move
10504 declaration later.
10505 (gdb_fnprint): Revert.
10506 (gdb_display_match_list_1): Likewise.
10507 * cli/cli-style.c (completion_prefix_style)
10508 (completion_difference_style, completion_suffix_style): Remove.
10509 (_initialize_cli_style): Revert.
10510 * cli/cli-style.h (completion_prefix_style)
10511 (completion_difference_style, completion_suffix_style): Don't
10512 declare.
10513
10514 2020-05-24 Pedro Alves <palves@redhat.com>
10515
10516 * symtab.c (completion_list_add_name): Return boolean indication
10517 of whether the symbol matched.
10518 (completion_list_add_symbol): Don't try to remove C++ aliases if
10519 the symbol didn't match in the first place.
10520 * symtab.h (completion_list_add_name): Return bool.
10521
10522 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10523
10524 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10525 type::field.
10526
10527 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10528
10529 GDB 9.2 released.
10530
10531 2020-05-23 Tom Tromey <tom@tromey.com>
10532
10533 * NEWS: Add entry for completion styling.
10534 * completer.c (_rl_completion_prefix_display_length): Move
10535 declaration earlier.
10536 (gdb_fnprint): Use completion_style.
10537 (gdb_display_match_list_1): Likewise.
10538 * cli/cli-style.c (completion_prefix_style)
10539 (completion_difference_style, completion_suffix_style): New
10540 globals.
10541 (_initialize_cli_style): Register new globals.
10542 * cli/cli-style.h (completion_prefix_style)
10543 (completion_difference_style, completion_suffix_style): Declare.
10544
10545 2020-05-23 Pedro Alves <palves@redhat.com>
10546
10547 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10548 (parse_escape): Use ISDIGIT instead of isdigit.
10549 (puts_debug): Use gdb_isprint instead of isprint.
10550 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10551 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10552 ISSPACE instead of isspace.
10553 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10554 instead of isspace.
10555 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10556 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10557 instead of isxdigit and ISDIGIT instead of isdigit.
10558
10559 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10560
10561 * gdbtypes.h (struct type) <field>: New method.
10562 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10563 or type::field.
10564
10565 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10566
10567 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10568 (TYPE_FIELDS): Use type::fields. Change all call sites that
10569 modify the propery to use type::set_fields instead.
10570
10571 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10572
10573 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10574 type::num_fields instead.
10575
10576 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10577
10578 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10579 methods.
10580 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10581 that modify the number of fields to use type::set_num_fields
10582 instead.
10583
10584 2020-05-22 Tom Tromey <tromey@adacore.com>
10585
10586 * compile/compile-object-load.h (munmap_list_free): Don't
10587 declare.
10588
10589 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10590
10591 * annotate.c (annotate_source_line): Update return type, add call
10592 to update current symtab and line.
10593 * annotate.h (annotate_source_line): Update return type, and
10594 extend header comment.
10595 * source.c (info_line_command): Check annotation_level before
10596 calling annotate_source_line.
10597 * stack.c (print_frame_info): If calling annotate_source_line
10598 returns true, then don't print any other source line information.
10599
10600 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10601
10602 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10603
10604 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10605
10606 * coffread.c (patch_type): Remove NULL check before xfree.
10607 * corefile.c (set_gnutarget): Likewise.
10608 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10609 * exec.c (build_section_table): Likewise.
10610 * remote.c (remote_target::pass_signals): Likewise.
10611 * utils.c (n_spaces): Likewise.
10612 * cli/cli-script.c (document_command): Likewise.
10613 * i386-windows-tdep.c (core_process_module_section): Likewise.
10614 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10615
10616 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10617
10618 * symfile.c (reread_symbols): Clear objfile's section_offsets
10619 vector and section indices, re-compute them by calling
10620 sym_offsets.
10621
10622 2020-05-20 Tom Tromey <tromey@adacore.com>
10623
10624 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10625 (desc_one_bound, desc_index_type): Compute field name.
10626
10627 2020-05-20 Tom de Vries <tdevries@suse.de>
10628
10629 PR symtab/25833
10630 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10631
10632 2020-05-20 Alan Modra <amodra@gmail.com>
10633
10634 PR 25993
10635 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10636 bfd_set_filename.
10637 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10638 passed to bfd_set_filename.
10639 * symfile-mem.c (add_vsyscall_page): Likewise for string
10640 passed to symbol_file_add_from_memory.
10641 (symbol_file_add_from_memory): Make name param a const char* and
10642 don't strdup.
10643
10644 2020-05-20 Alan Modra <amodra@gmail.com>
10645
10646 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10647 rather than accessing bfd->filename directly.
10648 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10649 and use bfd_section_name.
10650 * dwarf2/frame.c (decode_frame_entry): Likewise.
10651 * exec.c (exec_set_section_address): Likewise.
10652 * solib-aix.c (solib_aix_bfd_open): Likewise.
10653 * stap-probe.c (get_stap_base_address): Likewise.
10654 * symfile.c (reread_symbols): Likewise.
10655
10656 2020-05-19 Tom Tromey <tromey@adacore.com>
10657
10658 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10659
10660 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10661
10662 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10663
10664 2020-05-19 Pedro Alves <palves@redhat.com>
10665
10666 * NEWS (set exec-file-mismatch): Adjust entry.
10667 * exec.c: Include "build-id.h".
10668 (validate_exec_file): Try to match build IDs instead of filenames.
10669 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10670 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10671 and pass down 'warn_if_slow'.
10672 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10673 gdb_bfd_open_closure to pass it down.
10674 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10675
10676 2020-05-19 Pedro Alves <palves@redhat.com>
10677
10678 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10679 * target.c (target_fileio_open_1): Rename to target_fileio_open
10680 and make extern. Use bool.
10681 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10682 (target_fileio_read_alloc_1): Adjust.
10683 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10684 (target_fileio_open_warn_if_slow): Delete declaration.
10685
10686 2020-05-19 Pedro Alves <palves@redhat.com>
10687
10688 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10689 Adjust all callers.
10690
10691 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10692
10693 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10694 whether disp is negative.
10695
10696 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * symfile.h (struct symfile_segment_data)
10699 <~symfile_segment_data>: Remove.
10700 <segment_info>: Change to std::vector.
10701 * symfile.c (default_symfile_segments): Update.
10702 * elfread.c (elf_symfile_segments): Update.
10703
10704 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10705
10706 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10707 <segments>: New.
10708 <segment_bases, segment_sizes>: Remove.
10709 * symfile.c (default_symfile_segments): Update.
10710 * elfread.c (elf_symfile_segments): Update.
10711 * remote.c (remote_target::get_offsets): Update.
10712 * solib-target.c (solib_target_relocate_section_addresses):
10713 Update.
10714
10715 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10716
10717 * symfile.h (struct symfile_segment_data): Initialize fields.
10718 <~symfile_segment_data>: Add.
10719 (symfile_segment_data_up): New.
10720 (struct sym_fns) <sym_segments>: Return a
10721 symfile_segment_data_up.
10722 (default_symfile_segments): Return a symfile_segment_data_up.
10723 (free_symfile_segment_data): Remove.
10724 (get_symfile_segment_data): Return a symfile_segment_data_up.
10725 * symfile.c (default_symfile_segments): Likewise.
10726 (get_symfile_segment_data): Likewise.
10727 (free_symfile_segment_data): Remove.
10728 (symfile_find_segment_sections): Update.
10729 * elfread.c (elf_symfile_segments): Return a
10730 symfile_segment_data_up.
10731 * remote.c (remote_target::get_offsets): Update.
10732 * solib-target.c (solib_target_relocate_section_addresses):
10733 Update.
10734 * symfile-debug.c (debug_sym_segments): Return a
10735 symfile_segment_data_up.
10736
10737 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10738
10739 PR build/25981
10740 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10741 Hardcode register numbers.
10742
10743 PR build/25981
10744 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10745 procfs_find_LDT_entry): Remove.
10746 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10747 procfs_find_LDT_entry): Remove.
10748 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10749 Remove.
10750
10751 2020-05-17 Pedro Alves <palves@redhat.com>
10752 Andrew Burgess <andrew.burgess@embecosm.com>
10753 Keno Fischer <keno@juliacomputing.com>
10754
10755 PR gdb/25741
10756 * breakpoint.c (build_target_condition_list): Update comments.
10757 (build_target_command_list): Update comments and skip matching
10758 locations.
10759 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10760 a separate function. Simplify "set breakpoint auto-hw off"
10761 handling.
10762 (insert_breakpoints): Update comment.
10763 (tracepoint_locations_match): New parameter. For breakpoints,
10764 compare location types too, if the caller wants to.
10765 (handle_automatic_hardware_breakpoints): New functions.
10766 (bp_location_is_less_than): Also sort by location type and
10767 hardware breakpoint length.
10768 (update_global_location_list): Handle "set breakpoint auto-hw on"
10769 here.
10770 (update_breakpoint_locations): Ask breakpoint_locations_match to
10771 ignore location types.
10772
10773 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10774
10775 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10776 type::name instead.
10777
10778 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10779
10780 * gdbtypes.h (struct type) <name, set_name>: New methods.
10781 (TYPE_CODE): Use type::name. Change all call sites used to set
10782 the name to use type::set_name instead.
10783
10784 2020-05-16 Tom Tromey <tom@tromey.com>
10785
10786 * top.c (quit_force): Update.
10787 * infrun.c (handle_no_resumed): Update.
10788 * top.h (all_uis): New function.
10789 (ALL_UIS): Remove.
10790
10791 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10792
10793 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10794
10795 2020-05-16 Pedro Alves <palves@redhat.com>
10796
10797 * ia64-linux-nat.c
10798 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10799 Declare method.
10800 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10801
10802 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10803
10804 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10805 (sparc64_adi_info): Likewise.
10806
10807 2020-05-15 Tom Tromey <tom@tromey.com>
10808
10809 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10810 block_objfile.
10811 (lookup_objfile_from_block): Remove.
10812 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10813 (lookup_global_symbol): Use block_objfile.
10814 * symtab.h (lookup_objfile_from_block): Don't declare.
10815 * printcmd.c (clear_dangling_display_expressions): Use
10816 block_objfile.
10817 * parse.c (operator_check_standard): Use block_objfile.
10818
10819 2020-05-15 Tom Tromey <tom@tromey.com>
10820
10821 * language.c (language_alloc_type_symbol): Set
10822 SYMBOL_SECTION.
10823 * symtab.c (initialize_objfile_symbol): Remove.
10824 (allocate_symbol): Remove.
10825 (allocate_template_symbol): Remove.
10826 * dwarf2/read.c (fixup_go_packaging): Use "new".
10827 (new_symbol): Use "new".
10828 (read_variable): Don't call initialize_objfile_symbol. Use
10829 "new".
10830 (read_func_scope): Use "new".
10831 * xcoffread.c (process_xcoff_symbol): Don't call
10832 initialize_objfile_symbol.
10833 (SYMBOL_DUP): Remove.
10834 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10835 "new".
10836 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10837 (allocate_template_symbol): Don't declare.
10838 (struct symbol): Add copy constructor. Change defaults.
10839 * jit.c (finalize_symtab): Use "new".
10840 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10841 Use "new".
10842 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10843 (common_block_end): Use "new".
10844 * mdebugread.c (parse_symbol): Use "new".
10845 (new_symbol): Likewise.
10846
10847 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10848
10849 * NEWS: Mention changes to help and apropos.
10850
10851 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10852
10853 * command.h (enum command_class): Improve comments, document
10854 that class_alias is for user-defined aliases, give the class
10855 name for each class, remove unused class_xdb.
10856 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10857 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10858 by a precise class.
10859 * infcmd.c (_initialize_infcmd): Likewise.
10860 * reverse.c (_initialize_reverse): Likewise.
10861 * stack.c (_initialize_stack): Likewise.
10862 * symfile.c (_initialize_symfile): Likewise.
10863 * tracepoint.c (_initialize_tracepoint): Likewise.
10864
10865 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10866
10867 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10868 when their aliased command is traversed.
10869 (help_cmd): Add fput_command_names_styled call to
10870 output command name and aliases when command has an alias.
10871
10872 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10873
10874 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10875 * cli/cli-decode.c (help_cmd_list): Declare as static,
10876 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10877 a command together with the command.
10878 (fput_command_name_styled, fput_command_names_styled): New functions.
10879 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10880 fput_command_name_styled.
10881 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10882 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10883
10884 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10885
10886 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10887 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10888 * command.h (cmd_show_list): Likewise.
10889 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10890 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10891
10892 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10893
10894 * unittests/command-def-selftests.c (traverse_command_structure):
10895 Verify all commands of a list have the same prefix command and
10896 that only the top cmdlist commands have a null prefix.
10897
10898 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10899
10900 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10901 as prefix, not one of its aliases.
10902 (set_cmd_prefix): Remove.
10903 (do_add_cmd): Centralize the setting of the prefix of a command, when
10904 command is defined after its full chain of prefix commands.
10905 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10906 (add_setshow_cmd_full): Likewise.
10907 (update_prefix_field_of_prefixed_commands): New function.
10908 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10909 update_prefix_field_of_prefixed_commands.
10910 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10911 addresses of remote_set_cmdlist and remote_show_cmdlist given
10912 as argument, not the address of an argument.
10913 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10914 * gdb/remote.c (_initialize_remote): Likewise.
10915
10916 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10917
10918 * cli/cli-cmds.c (alias_command): Check for an existing alias
10919 using lookup_cmd_composition, as valid_command_p is too strict
10920 and forbids aliases that are the prefix of an existing alias
10921 or command.
10922 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10923 command is properly recognised as a valid command.
10924
10925 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10926
10927 * unittests/help-doc-selftests.c: Rename to
10928 unittests/command-def-selftests.c
10929 * unittests/command-def-selftests.c (help_doc_tests): Update some
10930 comments.
10931 (command_structure_tests, traverse_command_structure): New namespace
10932 and function.
10933 (command_structure_invariants_tests): New function.
10934 (_initialize_command_def_selftests) Renamed from
10935 _initialize_help_doc_selftests, register command_structure_invariants
10936 selftest.
10937
10938 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10939
10940 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10941 an alias of 'show'.
10942
10943 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10944
10945 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10946 ada_is_fixed_point_type. Update all callers.
10947 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10948 all callers.
10949 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10950 Update all callers.
10951 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10952 print_fixed_point_type. Update all callers.
10953 * ada-valprint.c (ada_value_print_num): Replace call to
10954 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10955
10956 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10957
10958 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10959 processors.
10960 (cpu_supports_bts): Add CV_AMD case.
10961
10962 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10963 Simon Marchi <simon.marchi@efficios.com>
10964
10965 * infrun.c (stop_all_threads): Collect multiple wait events at
10966 each pass.
10967
10968 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10969
10970 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10971 type::code instead.
10972
10973 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10974
10975 * gdbtypes.h (struct type) <code, set_code>: New methods.
10976 (TYPE_CODE): Use type::code. Change all call sites used to set
10977 the code to use type::set_code instead.
10978
10979 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10980 Tom de Vries <tdevries@suse.de>
10981 Pedro Alves <palves@redhat.com>
10982
10983 PR threads/25478
10984 * infrun.c (stop_all_threads): Do NOT ignore
10985 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10986 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10987 received.
10988 (handle_no_resumed): Remove code handling a live inferior with no
10989 threads.
10990 * remote.c (has_single_non_exited_thread): New.
10991 (remote_target::update_thread_list): Do not delete a thread if is
10992 the last thread of the process.
10993 * thread.c (thread_select): Call delete_exited_threads instead of
10994 prune_threads.
10995
10996 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10997
10998 * infrun.c (stop_all_threads): Enable/disable thread events of all
10999 targets. Move a debug message denoting the end of the function
11000 into the SCOPED_EXIT block.
11001
11002 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11003
11004 * process-stratum-target.h: Include <set>.
11005 (all_non_exited_process_targets, switch_to_target_no_thread): New
11006 function declarations.
11007 * process-stratum-target.c (all_non_exited_process_targets)
11008 (switch_to_target_no_thread): New function implementations.
11009
11010 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11011
11012 * infrun.c (handle_inferior_event): Extract out a piece of code
11013 into...
11014 (mark_non_executing_threads): ...this new function.
11015
11016 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11017
11018 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11019 use.
11020
11021 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11022
11023 * regcache.c (regcache_read_pc_protected): New function
11024 implementation that returns 0 if the PC cannot read via
11025 'regcache_read_pc'.
11026 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11027 instead of 'regcache_read_pc'.
11028 (keep_going_pass_signal): Ditto.
11029
11030 2020-05-13 Tom Tromey <tromey@adacore.com>
11031
11032 * ada-lang.c (align_value): Remove.
11033 (ada_template_to_fixed_record_type_1): Use align_up.
11034
11035 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11036
11037 * async-event.c: Update the copyright year.
11038 * async-event.h: Update the copyright year.
11039
11040 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11041
11042 * objfiles.h (is_addr_in_objfile,
11043 shared_objfile_contains_address_p): Return bool.
11044 * objfile.c (is_addr_in_objfile,
11045 shared_objfile_contains_address_p): Return bool.
11046
11047 2020-05-11 Tom Tromey <tromey@adacore.com>
11048
11049 * cli/cli-cmds.c (info_command): Restore.
11050 (_initialize_cli_cmds): Use add_prefix_command for "info".
11051 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11052
11053 2020-05-11 Tom Tromey <tromey@adacore.com>
11054
11055 * ada-lang.c (ada_value_primitive_field): Now public.
11056 * ada-lang.h (ada_value_primitive_field): Declare.
11057 * ada-valprint.c (print_field_values): Use
11058 ada_value_primitive_field for wrapper fields.
11059
11060 2020-05-11 Tom de Vries <tdevries@suse.de>
11061
11062 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11063 MODULE_DOMAIN.
11064
11065 2020-05-11 Tom de Vries <tdevries@suse.de>
11066
11067 PR symtab/25941
11068 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11069 with length 0, if not gdb-produced.
11070 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11071
11072 2020-05-09 Tom de Vries <tdevries@suse.de>
11073
11074 PR gdb/25955
11075 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11076 calculation.
11077
11078 2020-05-09 Tom Tromey <tom@tromey.com>
11079
11080 * top.c (server_command): Now bool.
11081 * top.h (server_command): Now bool.
11082
11083 2020-05-08 Tom Tromey <tromey@adacore.com>
11084
11085 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11086 already being processed.
11087
11088 2020-05-08 Tom Tromey <tom@tromey.com>
11089
11090 * printcmd.c (struct display) <next>: Remove.
11091 <display>: New constructor.
11092 <exp_string>: Now a std::string.
11093 <enabled_p>: Now a bool.
11094 (display_number): Move definition earlier.
11095 (displays): Rename from display_chain. Now a std::vector.
11096 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11097 (display_command): Update.
11098 (do_one_display, disable_display)
11099 (enable_disable_display_command, do_enable_disable_display):
11100 Update.
11101 (free_display): Remove.
11102 (clear_displays): Rewrite.
11103 (delete_display): Update.
11104 (map_display_numbers): Use function_view. Remove "data"
11105 parameter. Update.
11106 (do_delete_display): Remove.
11107 (undisplay_command): Update.
11108 (do_one_display, do_displays, disable_display)
11109 (info_display_command): Update.
11110 (do_enable_disable_display): Remove.
11111 (enable_disable_display_command)
11112 (clear_dangling_display_expressions): Update.
11113
11114 2020-05-08 Tom Tromey <tom@tromey.com>
11115
11116 * symtab.c (set_symbol_cache_size)
11117 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11118 (maintenance_print_symbol_cache_statistics): Update.
11119 * symmisc.c (print_symbol_bcache_statistics)
11120 (print_objfile_statistics, maintenance_print_objfiles)
11121 (maintenance_info_symtabs, maintenance_check_symtabs)
11122 (maintenance_expand_symtabs, maintenance_info_line_tables):
11123 Update.
11124 * symfile-debug.c (set_debug_symfile): Update.
11125 * source.c (forget_cached_source_info): Update.
11126 * python/python.c (gdbpy_progspaces): Update.
11127 * psymtab.c (maintenance_info_psymtabs): Update.
11128 * probe.c (parse_probes): Update.
11129 * linespec.c (iterate_over_all_matching_symtabs)
11130 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11131 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11132 * exec.c (exec_target::close): Update.
11133 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11134 * breakpoint.c (print_one_breakpoint_location)
11135 (create_longjmp_master_breakpoint)
11136 (create_std_terminate_master_breakpoint): Update.
11137 * progspace.c (program_spaces): Now a std::vector.
11138 (maybe_new_address_space): Update.
11139 (add_program_space): Remove.
11140 (program_space::program_space): Update.
11141 (remove_program_space): Update.
11142 (number_of_program_spaces): Remove.
11143 (print_program_space, update_address_spaces): Update.
11144 * progspace.h (program_spaces): Change type.
11145 (ALL_PSPACES): Remove.
11146 (number_of_program_spaces): Don't declare.
11147 (struct program_space) <next>: Remove.
11148
11149 2020-05-08 Tom Tromey <tom@tromey.com>
11150
11151 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11152 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11153 (enable_break): Update.
11154 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11155 (frv_fdpic_find_canonical_descriptor): Update.
11156 (frv_fetch_objfile_link_map): Update.
11157 * progspace.c (program_space::free_all_objfiles): Update.
11158 (program_space::solibs): New method.
11159 * progspace.h (struct program_space) <solibs>: New method.
11160 * solist.h (master_so_list): Don't declare.
11161 (ALL_SO_LIBS): Remove.
11162 * solib.h (so_list_head): Remove.
11163 (update_solib_list): Update comment.
11164 * solib.c (master_so_list): Remove.
11165 (solib_used, update_solib_list, solib_add)
11166 (info_sharedlibrary_command, clear_solib)
11167 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11168
11169 2020-05-08 Tom Tromey <tom@tromey.com>
11170
11171 * extension.c (extension_languages): Now a std::array.
11172 (ALL_EXTENSION_LANGUAGES): Remove.
11173 (get_ext_lang_defn, get_ext_lang_of_file)
11174 (eval_ext_lang_from_control_command): Update.
11175 (finish_ext_lang_initialization)
11176 (auto_load_ext_lang_scripts_for_objfile)
11177 (ext_lang_type_printers::ext_lang_type_printers)
11178 (apply_ext_lang_type_printers)
11179 (ext_lang_type_printers::~ext_lang_type_printers)
11180 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11181 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11182 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11183 (get_matching_xmethod_workers, ext_lang_colorize)
11184 (ext_lang_before_prompt): Update.
11185 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11186
11187 2020-05-08 Tom Tromey <tom@tromey.com>
11188
11189 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11190 overload.
11191 <swap_string, m_string>: Remove.
11192 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11193 Update.
11194 * stabsread.c (define_symbol, read_type): Update.
11195 * linespec.c (find_linespec_symbols): Update.
11196 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11197 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11198 * dbxread.c (read_dbx_symtab): Update.
11199 * cp-support.h (cp_canonicalize_string_full)
11200 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11201 Return unique_xmalloc_ptr.
11202 * cp-support.c (inspect_type): Update.
11203 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11204 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11205 Likewise.
11206 * c-typeprint.c (print_name_maybe_canonical): Update.
11207 * break-catch-throw.c (check_status_exception_catchpoint):
11208 Update.
11209
11210 2020-05-08 Tom de Vries <tdevries@suse.de>
11211
11212 * infrun.c (follow_fork): Copy current_line and current_symtab to
11213 child thread.
11214
11215 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11216
11217 * async-event.c (struct async_signal_handler, struct
11218 async_event_handler): Reformat, remove typedef.
11219
11220 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11221
11222 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11223 access thistype->main_type->dyn_prop_list directly.
11224
11225 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11226
11227 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11228 (remove_dyn_prop): Remove. Update all users to use
11229 type::remove_dyn_prop.
11230 * gdbtypes.c (remove_dyn_prop): Rename to...
11231 (type::remove_dyn_prop): ... this.
11232
11233 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11234
11235 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11236 (add_dyn_prop): Remove. Update all users to use
11237 type::add_dyn_prop.
11238 * gdbtypes.c (add_dyn_prop): Rename to...
11239 (type::add_dyn_prop): ... this.
11240
11241 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11242
11243 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11244 (get_dyn_prop): Remove. Update all users to use
11245 type::dyn_prop.
11246 * gdbtypes.c (get_dyn_prop): Rename to...
11247 (type::dyn_prop): ... this.
11248
11249 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11250
11251 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11252
11253 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11254
11255 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11256 instruction, skip it if it's there.
11257
11258 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11259
11260 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11261
11262 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11263
11264 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11265 * gdbtypes.c (recursive_dump_type): Remove use of
11266 TYPE_INCOMPLETE.
11267
11268 2020-05-03 Tom Tromey <tom@tromey.com>
11269
11270 * breakpoint.c (catch_command, tcatch_command): Remove.
11271 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11272 add_show_prefix_cmd.
11273 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11274 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11275 Remove.
11276 (add_internal_problem_command): Use add_basic_prefix_cmd,
11277 add_show_prefix_cmd.
11278 * mips-tdep.c (set_mipsfpu_command): Remove.
11279 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11280 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11281 (_initialize_index_cache): Use add_basic_prefix_cmd.
11282 * memattr.c (dummy_cmd): Remove.
11283 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11284 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11285 (_initialize_tui_win): Use add_basic_prefix_cmd,
11286 add_show_prefix_cmd.
11287 * cli/cli-logging.c (set_logging_command): Remove.
11288 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11289 add_show_prefix_cmd.
11290 (show_logging_command): Remove.
11291 * target.c (target_command): Remove.
11292 (add_target): Use add_basic_prefix_cmd.
11293
11294 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11295
11296 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11297
11298 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11299
11300 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11301 info_command.
11302
11303 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11304
11305 * nbsd-nat.c (nbsd_enable_proc_events)
11306 (nbsd_nat_target::post_startup_inferior): Add.
11307 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11308 (nbsd_nat_target::update_thread_list): Rewrite.
11309 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11310 "PTRACE_LWP_CREATE".
11311 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11312
11313 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11314
11315 * stack.c (_initialize_stack): Remove duplicated creation
11316 of "frame" command and "f" alias.
11317
11318 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11319
11320 PR gdb/18706
11321 * gdbtypes.c (check_typedef): Calculate size of array of
11322 stubbed type.
11323
11324 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11325
11326 PR gdb/15559
11327 * i386-tdep.c (i386_push_dummy_call): Call
11328 i386_thiscall_push_dummy_call.
11329 (i386_thiscall_push_dummy_call): New function.
11330 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11331 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11332 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11333
11334 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11335
11336 * gdbarch.sh (do_read): Add shellcheck disable directive for
11337 warning SC2162.
11338
11339 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11340
11341 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11342 "referenced but not assigned" warning.
11343
11344 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11345
11346 * gdbarch.sh: Remove code that sets fallbackdefault.
11347
11348 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11349
11350 * gdbarch.sh: Use shell operators && and || instead of
11351 -a and -o.
11352
11353 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * gdbarch.sh: Use $(...) instead of `...`.
11356
11357 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11358
11359 * gdbarch.sh: Use double quotes around variables.
11360
11361 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11362
11363 * gdbarch.sh: Use %s with printf, instead of variables in the
11364 format string.
11365
11366 2020-04-29 Tom Tromey <tromey@adacore.com>
11367
11368 PR ada/25875:
11369 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11370 type fields here.
11371 (read_enumeration_type): Call
11372 update_enumeration_type_from_children later. Update comments.
11373 (process_enumeration_scope): Don't create type fields.
11374
11375 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11376
11377 * nbsd-tdep.c: Include "xml-syscall.h".
11378 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11379
11380 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11381
11382 * nbsd-nat.c: Include "sys/wait.h".
11383 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11384 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11385 (nbsd_nat_target::remove_exec_catchpoint)
11386 (nbsd_nat_target::set_syscall_catchpoint): Add.
11387 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11388 (nbsd_nat_target::insert_exec_catchpoint)
11389 (nbsd_nat_target::remove_exec_catchpoint)
11390 (nbsd_nat_target::set_syscall_catchpoint): Add.
11391 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11392 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11393 `nbsd_get_syscall_number'.
11394
11395 2020-04-29 Tom Tromey <tom@tromey.com>
11396
11397 * stack.c (print_block_frame_labels): Remove.
11398
11399 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11400
11401 PR gdb/17320
11402 * ada-valprint.c (val_print_packed_array_elements): Move array
11403 end bracket to new line.
11404 (ada_val_print_string): Remove extra spaces before first array
11405 element.
11406 * c-valprint.c (c_value_print_array): Likewise.
11407 * m2-valprint.c (m2_print_array_contents): Likewise.
11408 (m2_value_print_inner): Likewise.
11409 * p-valprint.c (pascal_value_print_inner): Likewise.
11410 * valprint.c (generic_val_print_array): Likewise.
11411 (value_print_array_elements): Move first array element and array
11412 end bracket to new line.
11413
11414 2020-04-29 Tom de Vries <tdevries@suse.de>
11415
11416 PR symtab/25889
11417 * linespec.c (find_method): Fix ix calculation.
11418
11419 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11420
11421 * syscalls/update-netbsd.sh: New file.
11422 * syscalls/netbsd.xml: Regenerate.
11423 * data-directory/Makefile.in: Register `netbsd.xml' in
11424 `SYSCALLS_FILES'.
11425
11426 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11427
11428 * syscalls/update-freebsd.sh: Add double quotes.
11429
11430 2020-04-28 Tom Tromey <tom@tromey.com>
11431
11432 * NEWS: Update.
11433 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11434 (cmdpy_init): Allow class_tui.
11435
11436 2020-04-28 Mark Williams <mark@myosotissp.com>
11437
11438 PR gdb/24480
11439 * dwarf2read.c: Add missing assingments to list_in_scope when
11440 start_symtab was already called.
11441
11442 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11443
11444 PR gdb/25881
11445 * dwarf2/read.c (offset_map_type): Use
11446 gdb:hash_enum<sect_offset> as hash function.
11447
11448 2020-04-28 Tom de Vries <tdevries@suse.de>
11449
11450 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11451 with DW_AT_signature.
11452
11453 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11454
11455 * configure.ac: Remove check for fs_base/gs_base in
11456 user_regs_struct.
11457 * configure: Re-generate.
11458 * config.in: Re-generate.
11459 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11460 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11461 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11462
11463 2020-04-27 Luis Machado <luis.machado@linaro.org>
11464
11465 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11466 problematic inline frame unwinding situation.
11467 * frame.c (frame_id_computed_p): New function.
11468 * frame.h (frame_id_computed_p): New prototype.
11469
11470 2020-04-26 Tom Tromey <tom@tromey.com>
11471
11472 * command.h (enum command_class) <class_pseudo>: Remove.
11473
11474 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11475
11476 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11477 and whitespace.
11478
11479 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11480
11481 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11482 `PT_GET_PROCESS_STATE' block.
11483
11484 2020-04-24 Tom Tromey <tom@tromey.com>
11485
11486 * symtab.h (symbol_get_demangled_name): Don't declare.
11487 * symtab.c (symbol_get_demangled_name): Remove.
11488 (general_symbol_info::natural_name)
11489 (general_symbol_info::demangled_name): Update.
11490
11491 2020-04-24 Tom Tromey <tom@tromey.com>
11492
11493 PR rust/25025:
11494 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11495
11496 2020-04-24 Tom Tromey <tom@tromey.com>
11497
11498 PR symtab/12707:
11499 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11500 exists.
11501 (new_symbol): Likewise.
11502 * compile/compile-object-load.c (get_out_value_type): Use
11503 symbol_matches_search_name.
11504
11505 2020-04-24 Tom Tromey <tom@tromey.com>
11506
11507 * dwarf2/read.c (add_partial_symbol): Do not call
11508 compute_and_set_names.
11509
11510 2020-04-24 Tom Tromey <tom@tromey.com>
11511
11512 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11513 overload.
11514
11515 2020-04-24 Tom Tromey <tom@tromey.com>
11516
11517 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11518 (add_psymbol_to_list): New overload. Make old overload call new
11519 one.
11520 * psympriv.h (add_psymbol_to_list): New overload.
11521
11522 2020-04-24 Tom Tromey <tom@tromey.com>
11523
11524 * dwarf2/read.c (partial_die_info::read) <case
11525 DW_AT_linkage_name>: Use value_as_string.
11526 (dwarf2_string_attr): Use value_as_string.
11527 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11528 method.
11529 * dwarf2/attribute.c (attribute::value_as_string): New method.
11530
11531 2020-04-24 Tom Tromey <tom@tromey.com>
11532
11533 * symtab.c (general_symbol_info::natural_name)
11534 (general_symbol_info::demangled_name): Check for language_rust.
11535
11536 2020-04-24 Tom Tromey <tom@tromey.com>
11537
11538 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11539 (dwarf2_physname): ... from here.
11540 (partial_die_info::read): Add Rust "{" hack.
11541
11542 2020-04-24 Tom Tromey <tom@tromey.com>
11543
11544 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11545 method.
11546 (symbol_set_demangled_name): Don't declare.
11547 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11548 symbol_set_demangled_name.
11549 (general_symbol_info::set_language)
11550 (general_symbol_info::compute_and_set_names): Update.
11551 * minsyms.c (minimal_symbol_reader::install): Update.
11552 * dwarf2/read.c (new_symbol): Update.
11553
11554 2020-04-24 Tom Tromey <tromey@adacore.com>
11555
11556 PR python/23662:
11557 * python/py-type.c (convert_field): Handle
11558 FIELD_LOC_KIND_DWARF_BLOCK.
11559 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11560 (typy_get_dynamic): Nw function.
11561 (type_object_getset): Add "dynamic".
11562 * NEWS: Add entry.
11563
11564 2020-04-24 Tom Tromey <tromey@adacore.com>
11565
11566 * ada-typeprint.c (print_choices, print_variant_part)
11567 (print_record_field_types_dynamic): New functions.
11568 (print_record_field_types): Use print_record_field_types_dynamic.
11569
11570 2020-04-24 Tom Tromey <tromey@adacore.com>
11571
11572 * dwarf2/read.c (handle_data_member_location): New overload.
11573 (dwarf2_add_field): Use it.
11574 (decode_locdesc): Add "computed" parameter. Update comment.
11575 * gdbtypes.c (is_dynamic_type_internal): Also look for
11576 FIELD_LOC_KIND_DWARF_BLOCK.
11577 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11578 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11579 virtual base classes.
11580 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11581 FIELD_LOC_KIND_DWARF_BLOCK.
11582
11583 2020-04-24 Tom Tromey <tromey@adacore.com>
11584
11585 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11586 * gdbtypes.c (is_dynamic_type_internal): Check
11587 TYPE_HAS_DYNAMIC_LENGTH.
11588 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11589 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11590 New macros.
11591 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11592 constant.
11593
11594 2020-04-24 Tom Tromey <tromey@adacore.com>
11595
11596 * dwarf2/read.c (struct variant_field): Rewrite.
11597 (struct variant_part_builder): New.
11598 (struct nextfield): Remove "variant" field. Add "offset".
11599 (struct field_info): Add "current_variant_part" and
11600 "variant_parts".
11601 (alloc_discriminant_info): Remove.
11602 (alloc_rust_variant): New function.
11603 (quirk_rust_enum): Update.
11604 (dwarf2_add_field): Set "offset" member. Don't handle
11605 DW_TAG_variant_part.
11606 (offset_map_type): New typedef.
11607 (convert_variant_range, create_one_variant)
11608 (create_one_variant_part, create_variant_parts)
11609 (add_variant_property): New functions.
11610 (dwarf2_attach_fields_to_type): Call add_variant_property.
11611 (read_structure_type): Don't handle DW_TAG_variant_part.
11612 (handle_variant_part, handle_variant): New functions.
11613 (handle_struct_member_die): Use them.
11614 (process_structure_scope): Don't handle variant parts.
11615 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11616 (struct discriminant_info): Remove.
11617 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11618 (struct main_type) <flag_discriminated_union>: Remove.
11619 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11620 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11621 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11622 Update.
11623 * valops.c (value_union_variant): Remove.
11624 * value.h (value_union_variant): Don't declare.
11625
11626 2020-04-24 Tom Tromey <tromey@adacore.com>
11627
11628 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11629 (ada_value_primitive_packed_val): Update.
11630 * ada-valprint.c (ada_value_print_1): Update.
11631 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11632 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11633 just an address. Use evaluate_for_locexpr_baton.
11634 (dwarf2_evaluate_property): Update.
11635 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11636 array_view.
11637 * findvar.c (default_read_var_value): Update.
11638 * gdbtypes.c (compute_variant_fields_inner)
11639 (resolve_dynamic_type_internal): Update.
11640 (resolve_dynamic_type): Change type of valaddr parameter.
11641 * gdbtypes.h (resolve_dynamic_type): Update.
11642 * valarith.c (value_subscripted_rvalue): Update.
11643 * value.c (value_from_contents_and_address): Update.
11644
11645 2020-04-24 Tom Tromey <tromey@adacore.com>
11646
11647 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11648 "push_initial_value" parameter.
11649 (dwarf2_evaluate_property): Likewise.
11650 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11651
11652 2020-04-24 Tom Tromey <tromey@adacore.com>
11653
11654 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11655 (variant::matches, compute_variant_fields_recurse)
11656 (compute_variant_fields_inner, compute_variant_fields): New
11657 functions.
11658 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11659 Use resolved_type after type is made.
11660 (operator==): Add new cases.
11661 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11662 (struct discriminant_range, struct variant, struct variant_part):
11663 New.
11664 (union dynamic_prop_data) <variant_parts, original_type>: New
11665 members.
11666 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11667 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11668 constants.
11669 * value.c (unpack_bits_as_long): Now public.
11670 * value.h (unpack_bits_as_long): Declare.
11671
11672 2020-04-24 Tom Tromey <tromey@adacore.com>
11673
11674 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11675 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11676
11677 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11678
11679 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11680
11681 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11682
11683 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11684 (remove_fork_catchpoint, post_startup_inferior)
11685 (post_attach): Move...
11686 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11687 (remove_fork_catchpoint, post_startup_inferior)
11688 (post_attach): ...here.
11689 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11690 (remove_fork_catchpoint, post_startup_inferior)
11691 (post_attach): Move...
11692 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11693 (remove_fork_catchpoint, post_startup_inferior)
11694 (post_attach): ...here.
11695
11696 2020-04-24 Tom Tromey <tromey@adacore.com>
11697
11698 * nat/windows-nat.h (struct windows_thread_info)
11699 <pc_adjusted>: New member.
11700 * windows-nat.c (windows_fetch_one_register): Check
11701 pc_adjusted.
11702 (windows_nat_target::get_windows_debug_event)
11703 (windows_nat_target::wait): Set pc_adjusted.
11704
11705 2020-04-24 Tom de Vries <tdevries@suse.de>
11706
11707 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11708 Run gdb-add-index inside temp dir.
11709
11710 2020-04-23 Tom Tromey <tromey@adacore.com>
11711
11712 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11713 in loop.
11714
11715 2020-04-23 Luis Machado <luis.machado@linaro.org>
11716
11717 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11718 get_frame_register instead of gdbarch_unwind_pc.
11719
11720 2020-04-23 Tom de Vries <tdevries@suse.de>
11721
11722 * symtab.c (lookup_global_symbol): Prefer def over decl.
11723
11724 2020-04-23 Tom de Vries <tdevries@suse.de>
11725
11726 PR symtab/25807
11727 * block.c (best_symbol, better_symbol): Promote to external.
11728 * block.h (best_symbol, better_symbol): Declare.
11729 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11730 decl.
11731
11732 2020-04-23 Tom Tromey <tromey@adacore.com>
11733
11734 PR ada/25837:
11735 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11736 "const char *", not a "const std::string &".
11737 <name_and_matcher::operator==>: Update.
11738 * unittests/lookup_name_info-selftests.c: Change type of
11739 "result".
11740
11741 2020-04-23 Tom Tromey <tom@tromey.com>
11742
11743 * inferior.h (iterate_over_inferiors): Don't declare.
11744 * inferior.c (iterate_over_inferiors): Remove.
11745 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11746 Remove.
11747 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11748 use iterate_over_inferiors.
11749 (darwin_resume_inferior_it)
11750 (struct resume_inferior_threads_param)
11751 (darwin_resume_inferior_threads_it): Remove.
11752 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11753
11754 2020-04-23 Tom de Vries <tdevries@suse.de>
11755
11756 * blockframe.c (find_pc_partial_function): Use
11757 find_pc_sect_compunit_symtab rather than
11758 objfile->sf->qf->find_pc_sect_compunit_symtab.
11759
11760 2020-04-22 Tom de Vries <tdevries@suse.de>
11761
11762 PR symtab/25764
11763 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11764 in psymtabs.
11765
11766 2020-04-22 Tom de Vries <tdevries@suse.de>
11767
11768 PR symtab/25801
11769 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11770 symtabs.
11771
11772 2020-04-22 Tom de Vries <tdevries@suse.de>
11773
11774 PR symtab/25700
11775 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11776 CU if already created.
11777
11778 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11779
11780 * infrun.c (displaced_step_fixup): Switch to the event_thread
11781 before calling displaced_step_restore, not after.
11782
11783 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11784
11785 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11786 its inferior is not recorded by us.
11787 (record_btrace_target_open): Replace call to
11788 all_non_exited_threads () with call to current_inferior
11789 ()->non_exited_threads ().
11790 (record_btrace_target::stop_recording): Likewise.
11791 (record_btrace_target::close): Likewise.
11792 (record_btrace_target::wait): Likewise.
11793 (record_btrace_target::record_stop_replaying): Likewise.
11794
11795 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11796
11797 * btrace.c (btrace_enable): Throw an error on double enables and
11798 when enabling recording fails.
11799 (btrace_disable): Throw an error if the thread is not recorded.
11800
11801 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11802
11803 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11804 request if we do not have a thread_info.
11805
11806 2020-04-21 Tom de Vries <tdevries@suse.de>
11807
11808 PR gdb/25471
11809 * thread.c
11810 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11811 exception in get_frame_id.
11812
11813 2020-04-20 Tom Tromey <tromey@adacore.com>
11814
11815 * python/python.c (struct gdbpy_event): Mark move constructor as
11816 noexcept.
11817 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11818 constructor as noexcept.
11819 * completer.h (struct completion_result): Mark move constructor as
11820 noexcept.
11821 * completer.c (completion_result::completion_result): Use
11822 initialization style. Don't call reset_match_list.
11823
11824 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11825
11826 * MAINTAINERS (Write After Approval): Add myself.
11827
11828 2020-04-18 Tom Tromey <tom@tromey.com>
11829
11830 * windows-tdep.c (init_w32_command_list)
11831 (w32_prefix_command_valid): Restore.
11832 (_initialize_windows_tdep): Call init_w32_command_list.
11833
11834 2020-04-18 Tom Tromey <tom@tromey.com>
11835
11836 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11837 * value.c (value_fn_field): Update.
11838 * valops.c (find_function_in_inferior)
11839 (value_allocate_space_in_inferior): Update.
11840 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11841 Update.
11842 * tui/tui-source.c (tui_source_window::set_contents): Update.
11843 * symtab.c (lookup_global_or_static_symbol)
11844 (find_function_start_sal_1, skip_prologue_sal)
11845 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11846 * symmisc.c (dump_msymbols, dump_symtab_1)
11847 (maintenance_print_one_line_table): Update.
11848 * symfile.c (init_entry_point_info, section_is_mapped)
11849 (list_overlays_command, simple_read_overlay_table)
11850 (simple_overlay_update_1): Update.
11851 * stap-probe.c (handle_stap_probe): Update.
11852 * stabsread.c (dbx_init_float_type, define_symbol)
11853 (read_one_struct_field, read_enum_type, read_range_type): Update.
11854 * source.c (info_line_command): Update.
11855 * python/python.c (gdbpy_source_objfile_script)
11856 (gdbpy_execute_objfile_script): Update.
11857 * python/py-type.c (save_objfile_types): Update.
11858 * python/py-objfile.c (py_free_objfile): Update.
11859 * python/py-inferior.c (python_new_objfile): Update.
11860 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11861 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11862 (maintenance_check_psymtabs): Update.
11863 * printcmd.c (info_address_command): Update.
11864 * objfiles.h (struct objfile) <arch>: New method, from
11865 get_objfile_arch.
11866 (get_objfile_arch): Don't declare.
11867 * objfiles.c (get_objfile_arch): Remove.
11868 (filter_overlapping_sections): Update.
11869 * minsyms.c (msymbol_is_function): Update.
11870 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11871 (output_nondebug_symbol): Update.
11872 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11873 (mdebug_expand_psymtab): Update.
11874 * machoread.c (macho_add_oso_symfile): Update.
11875 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11876 Update.
11877 * linux-fork.c (checkpoint_command): Update.
11878 * linespec.c (convert_linespec_to_sals): Update.
11879 * jit.c (finalize_symtab): Update.
11880 * infrun.c (insert_exception_resume_from_probe): Update.
11881 * ia64-tdep.c (ia64_find_unwind_table): Update.
11882 * hppa-tdep.c (internalize_unwinds): Update.
11883 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11884 Update.
11885 * gcore.c (call_target_sbrk): Update.
11886 * elfread.c (record_minimal_symbol, elf_symtab_read)
11887 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11888 (elf_gnu_ifunc_resolve_by_got): Update.
11889 * dwarf2/read.c (create_addrmap_from_index)
11890 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11891 (read_debug_names_from_section)
11892 (process_psymtab_comp_unit_reader, add_partial_symbol)
11893 (add_partial_subprogram, process_full_comp_unit)
11894 (read_file_scope, read_func_scope, read_lexical_block_scope)
11895 (read_call_site_scope, dwarf2_ranges_read)
11896 (dwarf2_record_block_ranges, dwarf2_add_field)
11897 (mark_common_block_symbol_computed, read_tag_pointer_type)
11898 (read_tag_string_type, dwarf2_init_float_type)
11899 (dwarf2_init_complex_target_type, read_base_type)
11900 (partial_die_info::read, partial_die_info::read)
11901 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11902 (dwarf2_fetch_die_loc_sect_off): Update.
11903 * dwarf2/loc.c (dwarf2_find_location_expression)
11904 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11905 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11906 (dwarf2_loc_desc_get_symbol_read_needs)
11907 (locexpr_describe_location_piece, locexpr_describe_location_1)
11908 (loclist_describe_location): Update.
11909 * dwarf2/index-write.c (write_debug_names): Update.
11910 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11911 * dtrace-probe.c (dtrace_process_dof): Update.
11912 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11913 (process_one_symbol): Update.
11914 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11915 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11916 (coff_read_enum_type): Update.
11917 * cli/cli-cmds.c (edit_command, list_command): Update.
11918 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11919 * breakpoint.c (create_overlay_event_breakpoint)
11920 (create_longjmp_master_breakpoint)
11921 (create_std_terminate_master_breakpoint)
11922 (create_exception_master_breakpoint, get_sal_arch): Update.
11923 * block.c (block_gdbarch): Update.
11924 * annotate.c (annotate_source_line): Update.
11925
11926 2020-04-17 Tom Tromey <tromey@adacore.com>
11927
11928 * auto-load.c (show_auto_load_cmd): Remove.
11929 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11930 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11931 (maintenance_print_arc_command): Remove.
11932 * tui/tui-win.c (tui_command): Remove.
11933 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11934 * tui/tui-layout.c (tui_layout_command): Remove.
11935 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11936 * python/python.c (user_set_python, user_show_python): Remove.
11937 (_initialize_python): Use add_basic_prefix_cmd,
11938 add_show_prefix_cmd.
11939 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11940 (install_gdb_commands): Use add_basic_prefix_cmd,
11941 add_show_prefix_cmd.
11942 (info_guile_command): Remove.
11943 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11944 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11945 add_show_prefix_cmd.
11946 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11947 Remove do_set and do_show parameters.
11948 * cli/cli-style.c (set_style, show_style): Remove.
11949 (_initialize_cli_style): Use add_basic_prefix_cmd,
11950 add_show_prefix_cmd.
11951 (cli_style_option::add_setshow_commands): Remove do_set and
11952 do_show parameters.
11953 (cli_style_option::add_setshow_commands): Use
11954 add_basic_prefix_cmd, add_show_prefix_cmd.
11955 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11956 (set_style_name): Remove.
11957 * cli/cli-dump.c (dump_command, append_command): Remove.
11958 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11959 (tekhex_dump_command, binary_dump_command)
11960 (binary_append_command): Remove.
11961 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11962 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11963 (init_w32_command_list): Remove; move into ...
11964 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11965 * valprint.c (set_print, show_print, set_print_raw)
11966 (show_print_raw): Remove.
11967 (_initialize_valprint): Use add_basic_prefix_cmd,
11968 add_show_prefix_cmd.
11969 * typeprint.c (set_print_type, show_print_type): Remove.
11970 (_initialize_typeprint): Use add_basic_prefix_cmd,
11971 add_show_prefix_cmd.
11972 * record.c (set_record_command, show_record_command): Remove.
11973 (_initialize_record): Use add_basic_prefix_cmd,
11974 add_show_prefix_cmd.
11975 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11976 add_show_prefix_cmd.
11977 (info_command, show_command, set_debug, show_debug): Remove.
11978 * top.h (set_history, show_history): Don't declare.
11979 * top.c (set_history, show_history): Remove.
11980 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11981 (unset_tdesc_cmd): Remove.
11982 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11983 add_show_prefix_cmd.
11984 * symtab.c (info_module_command): Remove.
11985 (_initialize_symtab): Use add_basic_prefix_cmd.
11986 * symfile.c (overlay_command): Remove.
11987 (_initialize_symfile): Use add_basic_prefix_cmd.
11988 * sparc64-tdep.c (info_adi_command): Remove.
11989 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11990 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11991 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11992 add_show_prefix_cmd.
11993 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11994 (_initialize_serial): Use add_basic_prefix_cmd,
11995 add_show_prefix_cmd.
11996 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11997 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11998 add_show_prefix_cmd.
11999 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12000 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12001 add_show_prefix_cmd.
12002 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12003 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12004 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12005 add_show_prefix_cmd.
12006 * remote.c (remote_command, set_remote_cmd): Remove.
12007 (_initialize_remote): Use add_basic_prefix_cmd.
12008 * record-full.c (set_record_full_command)
12009 (show_record_full_command): Remove.
12010 (_initialize_record_full): Use add_basic_prefix_cmd,
12011 add_show_prefix_cmd.
12012 * record-btrace.c (cmd_set_record_btrace)
12013 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12014 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12015 (cmd_show_record_btrace_pt): Remove.
12016 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12017 add_show_prefix_cmd.
12018 * ravenscar-thread.c (set_ravenscar_command)
12019 (show_ravenscar_command): Remove.
12020 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12021 add_show_prefix_cmd.
12022 * mips-tdep.c (show_mips_command, set_mips_command)
12023 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12024 add_show_prefix_cmd.
12025 * maint.c (maintenance_command, maintenance_info_command)
12026 (maintenance_check_command, maintenance_print_command)
12027 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12028 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12029 add_show_prefix_cmd.
12030 (show_per_command_cmd): Remove.
12031 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12032 Remove.
12033 (maintenance_show_test_settings_cmd): Remove.
12034 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12035 add_show_prefix_cmd.
12036 * maint-test-options.c (maintenance_test_options_command):
12037 Remove.
12038 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12039 * macrocmd.c (macro_command): Remove
12040 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12041 * language.c (set_check, show_check): Remove.
12042 (_initialize_language): Use add_basic_prefix_cmd,
12043 add_show_prefix_cmd.
12044 * infcmd.c (unset_command): Remove.
12045 (_initialize_infcmd): Use add_basic_prefix_cmd.
12046 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12047 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12048 add_show_prefix_cmd.
12049 * go32-nat.c (go32_info_dos_command): Remove.
12050 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12051 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12052 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12053 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12054 (_initialize_frame): Use add_basic_prefix_cmd,
12055 add_show_prefix_cmd.
12056 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12057 (_initialize_dcache): Use add_basic_prefix_cmd,
12058 add_show_prefix_cmd.
12059 * cp-support.c (maint_cplus_command): Remove.
12060 (_initialize_cp_support): Use add_basic_prefix_cmd.
12061 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12062 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12063 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12064 add_basic_prefix_cmd, add_show_prefix_cmd.
12065 * breakpoint.c (save_command): Remove.
12066 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12067 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12068 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12069 add_show_prefix_cmd.
12070 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12071 (set_ada_command, show_ada_command): Remove.
12072 (_initialize_ada_language): Use add_basic_prefix_cmd,
12073 add_show_prefix_cmd.
12074 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12075
12076 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12077
12078 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12079 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12080
12081 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12082
12083 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12084 warning messages.
12085
12086 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12087
12088 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12089 import table is not at beginning of .idata section.
12090
12091 2020-04-16 Pedro Alves <palves@redhat.com>
12092
12093 * inferior.c (delete_inferior): Use delete operator directly
12094 instead of delete_program_space.
12095 * progspace.c (add_program_space): New, factored out from
12096 program_space::program_space.
12097 (remove_program_space): New, factored out from
12098 delete_program_space.
12099 (program_space::program_space): Remove intro comment. Rewrite.
12100 (program_space::~program_space): Remove intro comment. Call
12101 remove_program_space.
12102 (delete_program_space): Delete.
12103 * progspace.h (program_space::program_space): Make explicit. Move
12104 intro comment here, adjusted.
12105 (program_space::~program_space): Move intro comment here,
12106 adjusted.
12107 (delete_program_space): Remove.
12108
12109 2020-04-16 Tom Tromey <tromey@adacore.com>
12110
12111 * windows-nat.c (windows_nat::handle_access_violation): New
12112 function.
12113 * nat/windows-nat.h (handle_access_violation): Declare.
12114 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12115 windows-nat.c. Call handle_access_violation.
12116
12117 2020-04-16 Tom de Vries <tdevries@suse.de>
12118
12119 PR symtab/25791
12120 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12121 CUs without psymtab.
12122
12123 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12124
12125 * python/python.c (do_start_initialization): Don't call
12126 PyEval_InitThreads for Python 3.9 and beyond.
12127
12128 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12129
12130 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12131 thread functions.
12132 (obsd_nat_target::wait): Likewise.
12133
12134 2020-04-15 Tom Tromey <tromey@adacore.com>
12135
12136 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12137 (DEBUG_EXCEPT): Use debug_printf.
12138
12139 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12140
12141 * completer.c (class completion_tracker::completion_hash_entry)
12142 <hash_name>: New member function.
12143 (completion_tracker::discard_completions): New callback to hash a
12144 completion_hash_entry, pass this to htab_create_alloc.
12145
12146 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12147
12148 * windows-nat.c (windows_make_so): Warn rather than stopping with
12149 an error if realpath() fails.
12150
12151 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12152
12153 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12154 (nbsd_nat_target::info_proc): Add do_status.
12155
12156 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12157 Tom de Vries <tdevries@suse.de>
12158
12159 PR symtab/25718
12160 * psympriv.h (struct partial_symtab::read_symtab)
12161 (struct partial_symtab::expand_psymtab)
12162 (struct partial_symtab::read_dependencies): Update comments.
12163 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12164 read_symtab for includer.
12165 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12166 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12167 (struct dwarf2_include_psymtab::m_readin): Remove.
12168 (struct dwarf2_include_psymtab::includer): New member function.
12169 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12170
12171 2020-04-14 Tom de Vries <tdevries@suse.de>
12172
12173 PR symtab/25720
12174 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12175 with NULL symbol_matcher and lookup_name.
12176 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12177 and lookup_name.
12178 * dwarf2/read.c (dw2_expand_symtabs_matching)
12179 (dw2_debug_names_expand_symtabs_matching): Same.
12180 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12181 Make lookup_name a pointer. Update comment.
12182 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12183 lookup_name being a pointer.
12184 * symfile.c (expand_symtabs_matching): Same.
12185 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12186 * linespec.c (iterate_over_all_matching_symtabs): Same.
12187
12188 2020-04-13 Tom Tromey <tom@tromey.com>
12189
12190 * run-on-main-thread.c: Update include.
12191 * unittests/main-thread-selftests.c: Update include.
12192 * tui/tui-win.c: Update include.
12193 * tui/tui-io.c: Update include.
12194 * tui/tui-interp.c: Update include.
12195 * tui/tui-hooks.c: Update include.
12196 * top.h: Update include.
12197 * top.c: Update include.
12198 * ser-base.c: Update include.
12199 * remote.c: Update include.
12200 * remote-notif.c: Update include.
12201 * remote-fileio.c: Update include.
12202 * record-full.c: Update include.
12203 * record-btrace.c: Update include.
12204 * python/python.c: Update include.
12205 * posix-hdep.c: Update include.
12206 * mingw-hdep.c: Update include.
12207 * mi/mi-main.c: Update include.
12208 * mi/mi-interp.c: Update include.
12209 * main.c: Update include.
12210 * linux-nat.c: Update include.
12211 * interps.c: Update include.
12212 * infrun.c: Update include.
12213 * inf-loop.c: Update include.
12214 * event-top.c: Update include.
12215 * event-loop.c: Move to ../gdbsupport/.
12216 * event-loop.h: Move to ../gdbsupport/.
12217 * async-event.h: Update include.
12218 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12219
12220 2020-04-13 Tom Tromey <tom@tromey.com>
12221
12222 * tui/tui-win.c: Include async-event.h.
12223 * remote.c: Include async-event.h.
12224 * remote-notif.c: Include async-event.h.
12225 * record-full.c: Include async-event.h.
12226 * record-btrace.c: Include async-event.h.
12227 * infrun.c: Include async-event.h.
12228 * event-top.c: Include async-event.h.
12229 * event-loop.h: Move some declarations to async-event.h.
12230 * event-loop.c: Don't include ser-event.h or top.h. Move some
12231 code to async-event.c.
12232 * async-event.h: New file.
12233 * async-event.c: New file.
12234 * Makefile.in (COMMON_SFILES): Add async-event.c.
12235 (HFILES_NO_SRCDIR): Add async-event.h.
12236
12237 2020-04-13 Tom Tromey <tom@tromey.com>
12238
12239 * utils.c (flush_streams): New function.
12240 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12241
12242 2020-04-13 Tom Tromey <tom@tromey.com>
12243
12244 * event-loop.c (handle_file_event): Use warning, not
12245 printf_unfiltered.
12246
12247 2020-04-13 Tom Tromey <tom@tromey.com>
12248
12249 * event-loop.c: Include <chrono>.
12250
12251 2020-04-13 Tom Tromey <tom@tromey.com>
12252
12253 * gdb_select.h: Move to ../gdbsupport/.
12254 * event-loop.c: Update include path.
12255 * top.c: Update include path.
12256 * ser-base.c: Update include path.
12257 * ui-file.c: Update include path.
12258 * ser-tcp.c: Update include path.
12259 * guile/scm-ports.c: Update include path.
12260 * posix-hdep.c: Update include path.
12261 * ser-unix.c: Update include path.
12262 * gdb_usleep.c: Update include path.
12263 * mingw-hdep.c: Update include path.
12264 * inflow.c: Update include path.
12265 * infrun.c: Update include path.
12266 * event-top.c: Update include path.
12267
12268 2020-04-13 Tom Tromey <tom@tromey.com>
12269
12270 * configure: Rebuild.
12271 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12272
12273 2020-04-13 Tom Tromey <tom@tromey.com>
12274
12275 * event-loop.h (start_event_loop): Don't declare.
12276 * event-loop.c (start_event_loop): Move...
12277 * main.c (start_event_loop): ...here. Now static.
12278
12279 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12280
12281 * MAINTAINERS: Update my email address.
12282
12283 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12284
12285 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12286 IP_ALL.
12287
12288 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12289
12290 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12291 (nbsd_nat_target::info_proc): Add do_cmdline.
12292
12293 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12294
12295 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12296 (nbsd_nat_target::info_proc): Add do_cwd.
12297
12298 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12299
12300 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12301
12302 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12303
12304 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12305 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12306 (nbsd_nat_target::info_proc): New functions.
12307 * nbsd-nat.c (kinfo_get_vmmap): New function.
12308 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12309 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12310 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12311 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12312 functions.
12313 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12314 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12315 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12316 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12317 (KINFO_VME_FLAG_GROWS_DOWN): New.
12318
12319 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12320
12321 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12322 bit shift.
12323
12324 2020-04-10 Tom Tromey <tromey@adacore.com>
12325
12326 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12327
12328 2020-04-10 Tom Tromey <tromey@adacore.com>
12329
12330 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12331 separate debug files.
12332
12333 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12334
12335 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12336 Move to...
12337 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12338 ... here.
12339 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12340 Check for STATUS_WX86_BREAKPOINT.
12341 (windows_nat_target::wait): Same.
12342
12343 2020-04-10 Tom de Vries <tdevries@suse.de>
12344
12345 PR cli/25808
12346 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12347
12348 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12349
12350 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12351 (Write After Approval): Remove Tom de Vries.
12352
12353 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12354
12355 revert partially:
12356 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12357
12358 * buildsym.c (record_line): Fix undefined behavior and preserve
12359 lines at eof.
12360
12361 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12362
12363 * auxv.h (svr4_auxv_parse): New.
12364 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12365 and generic_auxv_parse.
12366 (svr4_auxv_parse): Add.
12367 * obsd-tdep.c: Include "auxv.h".
12368 (obsd_auxv_parse): Remove.
12369 (obsd_init_abi): Remove comment.
12370 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12371 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12372 * nbsd-tdep.c: Include "auxv.h".
12373 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12374
12375 2020-04-08 Tom Tromey <tromey@adacore.com>
12376
12377 * nat/windows-nat.h (last_wait_event): Don't declare.
12378 (wait_for_debug_event): Update comment.
12379 * nat/windows-nat.c (last_wait_event): Now static.
12380
12381 2020-04-08 Tom Tromey <tromey@adacore.com>
12382
12383 * windows-nat.c (wait_for_debug_event): Move to
12384 nat/windows-nat.c.
12385 * nat/windows-nat.h (wait_for_debug_event): Declare.
12386 * nat/windows-nat.c (wait_for_debug_event): Move from
12387 windows-nat.c. No longer static.
12388
12389 2020-04-08 Tom Tromey <tromey@adacore.com>
12390
12391 * windows-nat.c (get_windows_debug_event): Use
12392 fetch_pending_stop.
12393 * nat/windows-nat.h (fetch_pending_stop): Declare.
12394 * nat/windows-nat.c (fetch_pending_stop): New function.
12395
12396 2020-04-08 Tom Tromey <tromey@adacore.com>
12397
12398 * windows-nat.c (windows_continue): Use matching_pending_stop and
12399 continue_last_debug_event.
12400 * nat/windows-nat.h (matching_pending_stop)
12401 (continue_last_debug_event): Declare.
12402 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12403 (matching_pending_stop, continue_last_debug_event): New
12404 functions.
12405
12406 2020-04-08 Tom Tromey <tromey@adacore.com>
12407
12408 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12409 (handle_exception_result): Move to nat/windows-nat.h.
12410 (DEBUG_EXCEPTION_SIMPLE): Remove.
12411 (windows_nat::handle_ms_vc_exception): New function.
12412 (handle_exception): Move to nat/windows-nat.c.
12413 (get_windows_debug_event): Update.
12414 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12415 nat/windows-nat.c.
12416 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12417 (handle_exception_result): Move from windows-nat.c.
12418 (handle_exception): Declare.
12419 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12420 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12421 windows-nat.c.
12422
12423 2020-04-08 Tom Tromey <tromey@adacore.com>
12424
12425 * windows-nat.c (exception_count, event_count): Remove.
12426 (handle_exception, get_windows_debug_event)
12427 (do_initial_windows_stuff): Update.
12428
12429 2020-04-08 Tom Tromey <tromey@adacore.com>
12430
12431 * windows-nat.c (windows_nat::handle_load_dll)
12432 (windows_nat::handle_unload_dll): Rename. No longer static.
12433 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12434 Declare.
12435
12436 2020-04-08 Tom Tromey <tromey@adacore.com>
12437
12438 * complaints.h (stop_whining): Declare at top-level.
12439 (complaint): Don't declare stop_whining.
12440
12441 2020-04-08 Tom Tromey <tromey@adacore.com>
12442
12443 * windows-nat.c (windows_nat::handle_output_debug_string):
12444 Rename. No longer static.
12445 * nat/windows-nat.h (handle_output_debug_string): Declare.
12446
12447 2020-04-08 Tom Tromey <tromey@adacore.com>
12448
12449 * windows-nat.c (current_process_handle, current_process_id)
12450 (main_thread_id, last_sig, current_event, last_wait_event)
12451 (current_windows_thread, desired_stop_thread_id, pending_stops)
12452 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12453 (display_selectors, fake_create_process)
12454 (get_windows_debug_event): Update.
12455 * nat/windows-nat.h (current_process_handle, current_process_id)
12456 (main_thread_id, last_sig, current_event, last_wait_event)
12457 (current_windows_thread, desired_stop_thread_id, pending_stops)
12458 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12459 * nat/windows-nat.c (current_process_handle, current_process_id)
12460 (main_thread_id, last_sig, current_event, last_wait_event)
12461 (current_windows_thread, desired_stop_thread_id, pending_stops)
12462 (siginfo_er): New globals. Move from windows-nat.c.
12463
12464 2020-04-08 Tom Tromey <tromey@adacore.com>
12465
12466 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12467 (handle_load_dll): Update.
12468 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12469
12470 2020-04-08 Tom Tromey <tromey@adacore.com>
12471
12472 * windows-nat.c (enum thread_disposition_type): Move to
12473 nat/windows-nat.h.
12474 (windows_nat::thread_rec): Rename from thread_rec. No longer
12475 static.
12476 (windows_add_thread, windows_nat_target::fetch_registers)
12477 (windows_nat_target::store_registers, handle_exception)
12478 (windows_nat_target::resume, get_windows_debug_event)
12479 (windows_nat_target::get_tib_address)
12480 (windows_nat_target::thread_name)
12481 (windows_nat_target::thread_alive): Update.
12482 * nat/windows-nat.h (enum thread_disposition_type): Move from
12483 windows-nat.c.
12484 (thread_rec): Declare.
12485
12486 2020-04-08 Tom Tromey <tromey@adacore.com>
12487
12488 * windows-nat.c: Add "using namespace".
12489 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12490 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12491
12492 2020-04-08 Tom Tromey <tromey@adacore.com>
12493
12494 * nat/windows-nat.h (struct windows_thread_info): Declare
12495 destructor.
12496 * nat/windows-nat.c (~windows_thread_info): New.
12497
12498 2020-04-08 Tom Tromey <tromey@adacore.com>
12499
12500 PR gdb/22992
12501 * windows-nat.c (current_event): Update comment.
12502 (last_wait_event, desired_stop_thread_id): New globals.
12503 (struct pending_stop): New.
12504 (pending_stops): New global.
12505 (windows_nat_target) <stopped_by_sw_breakpoint>
12506 <supports_stopped_by_sw_breakpoint>: New methods.
12507 (windows_fetch_one_register): Add assertions. Adjust PC.
12508 (windows_continue): Handle pending stops. Suspend other threads
12509 when stepping. Use last_wait_event
12510 (wait_for_debug_event): New function.
12511 (get_windows_debug_event): Use wait_for_debug_event. Handle
12512 pending stops. Queue spurious stops.
12513 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12514 (windows_nat_target::kill): Use wait_for_debug_event.
12515 * nat/windows-nat.h (struct windows_thread_info)
12516 <stopped_at_software_breakpoint>: New field.
12517 * nat/windows-nat.c (windows_thread_info::resume): Clear
12518 stopped_at_software_breakpoint.
12519
12520 2020-04-08 Tom Tromey <tromey@adacore.com>
12521
12522 * windows-nat.c (enum thread_disposition_type): New.
12523 (thread_rec): Replace "get_context" parameter with "disposition";
12524 change type.
12525 (windows_add_thread, windows_nat_target::fetch_registers)
12526 (windows_nat_target::store_registers, handle_exception)
12527 (windows_nat_target::resume, get_windows_debug_event)
12528 (windows_nat_target::get_tib_address)
12529 (windows_nat_target::thread_name)
12530 (windows_nat_target::thread_alive): Update.
12531
12532 2020-04-08 Tom Tromey <tromey@adacore.com>
12533
12534 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12535 (windows_continue): Use windows_continue::resume.
12536 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12537 resume>: Declare new methods.
12538 * nat/windows-nat.c: New file.
12539 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12540
12541 2020-04-08 Tom Tromey <tromey@adacore.com>
12542
12543 * windows-nat.c (windows_add_thread, windows_delete_thread)
12544 (windows_nat_target::fetch_registers)
12545 (windows_nat_target::store_registers, fake_create_process)
12546 (windows_nat_target::resume, windows_nat_target::resume)
12547 (get_windows_debug_event, windows_nat_target::wait)
12548 (windows_nat_target::pid_to_str)
12549 (windows_nat_target::get_tib_address)
12550 (windows_nat_target::get_ada_task_ptid)
12551 (windows_nat_target::thread_name)
12552 (windows_nat_target::thread_alive): Use lwp, not tid.
12553
12554 2020-04-08 Tom Tromey <tromey@adacore.com>
12555
12556 * windows-nat.c (handle_exception)
12557 (windows_nat_target::thread_name): Update.
12558 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12559 <name>: Now unique_xmalloc_ptr.
12560
12561 2020-04-08 Tom Tromey <tromey@adacore.com>
12562
12563 * windows-nat.c (thread_rec)
12564 (windows_nat_target::fetch_registers): Update.
12565 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12566 Update comment.
12567 <debug_registers_changed, reload_context>: Now bool.
12568
12569 2020-04-08 Tom Tromey <tromey@adacore.com>
12570
12571 * windows-nat.c (windows_add_thread): Use new.
12572 (windows_init_thread_list, windows_delete_thread): Use delete.
12573 (get_windows_debug_event): Update.
12574 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12575 destructor, and initializers.
12576
12577 2020-04-08 Tom Tromey <tromey@adacore.com>
12578
12579 * windows-nat.c (struct windows_thread_info): Remove.
12580 * nat/windows-nat.h: New file.
12581
12582 2020-04-08 Tom Tromey <tromey@adacore.com>
12583
12584 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12585 (thread_rec, windows_add_thread, windows_delete_thread)
12586 (windows_continue): Update.
12587
12588 2020-04-08 Tom Tromey <tromey@adacore.com>
12589
12590 * windows-nat.c (struct windows_thread_info): Remove typedef.
12591 (thread_head): Remove.
12592 (thread_list): New global.
12593 (thread_rec, windows_add_thread, windows_init_thread_list)
12594 (windows_delete_thread, windows_continue): Update.
12595
12596 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12597
12598 * windows-tdep.h (windows_init_abi): Add comment.
12599 (cygwin_init_abi): New declaration.
12600 * windows-tdep.c: Split signal enumeration in two, one for
12601 Windows and one for Cygwin.
12602 (windows_gdb_signal_to_target): Only deal with signal of the
12603 Windows OS ABI.
12604 (cygwin_gdb_signal_to_target): New function.
12605 (windows_init_abi): Rename to windows_init_abi_common, don't set
12606 gdb_signal_to_target gdbarch method. Add new new function with
12607 this name.
12608 (cygwin_init_abi): New function.
12609 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12610 comment. Don't call windows_init_abi.
12611 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12612 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12613 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12614 i386_windows_init_abi_common, don't call windows_init_abi. Add
12615 a new function of this name.
12616 (i386_cygwin_init_abi): New function.
12617 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12618 OS ABI Cygwin.
12619
12620 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12621
12622 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12623 parameter.c.
12624 (dwarf2_read_gdb_index): Update.
12625
12626 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12627
12628 * nbsd-tdep.c: Include "objfiles.h".
12629 (nbsd_skip_solib_resolver): New.
12630 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12631
12632 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12633
12634 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12635 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12636 with DW_LLE_base_addressx are being emitted in DWARFv5.
12637 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12638 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12639 unsigned integer.
12640
12641 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12642
12643 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12644 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12645 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12646 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12647 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12648 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12649 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12650
12651
12652 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12653
12654 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12655 (read_loclist_index): New function definition.
12656 (lookup_loclist_base): New function definition.
12657 (read_loclist_header): New function definition.
12658 (dwarf2_cu): Add loclist_base and loclist_header field.
12659 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12660 (read_full_die_1): Read the value of DW_AT_loclists_base.
12661 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12662 (read_attribute_value): Handle DW_FORM_loclistx.
12663 (skip_one_die): Handle DW_FORM_loclistx.
12664 (loclist_header): New structure declaration.
12665 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12666
12667 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12668
12669 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12670 constructor. Remove `addr` parameter from other constructor and
12671 add `per_cu` parameter.
12672 * dwarf2/read.c (create_partial_symtab): Update.
12673
12674 2020-04-07 Tom de Vries <tdevries@suse.de>
12675
12676 PR symtab/25796
12677 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12678 (partial_die_info::fixup): Inherit has_const_value.
12679
12680 2020-04-07 Tom de Vries <tdevries@suse.de>
12681
12682 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12683 symbols without address.
12684
12685 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12686
12687 * nbsd-nat.h (struct thread_info): Add forward declaration.
12688 (nbsd_nat_target::thread_alive): Add.
12689 (nbsd_nat_target::thread_name): Likewise.
12690 (nbsd_nat_target::update_thread_list): Likewise.
12691 (update_thread_list::post_attach): Likewise.
12692 (post_attach::pid_to_str): Likewise.
12693 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12694 (nbsd_thread_lister): Add.
12695 (nbsd_nat_target::thread_alive): Likewise.
12696 (nbsd_nat_target::thread_name): Likewise.
12697 (nbsd_add_threads): Likewise.
12698 (update_thread_list::post_attach): Likewise.
12699 (nbsd_nat_target::update_thread_list): Likewise.
12700 (post_attach::pid_to_str): Likewise.
12701
12702 2020-04-06 Tom Tromey <tromey@adacore.com>
12703
12704 * ada-valprint.c (print_variant_part): Extract the variant field.
12705 (print_field_values): Use the field as the outer value when
12706 recursing.
12707
12708 2020-04-06 Tom Tromey <tromey@adacore.com>
12709
12710 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12711 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12712 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12713 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12714 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12715
12716 2020-04-06 Tom Tromey <tromey@adacore.com>
12717
12718 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12719 TYPE_CODE_ERROR.
12720
12721 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12722
12723 * nbsd-tdep.c: Include "gdbarch.h".
12724 Define enum with NetBSD signal numbers.
12725 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12726 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12727 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12728 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12729 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12730 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12731 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12732 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12733 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12734 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12735 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12736 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12737
12738 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12739
12740 PR gdb/25325
12741 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12742
12743 2020-04-03 Tom Tromey <tromey@adacore.com>
12744
12745 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12746 Read constant block.
12747
12748 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12749
12750 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12751 (gdb_bfd_get_full_section_contents): New declaration.
12752 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12753 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12754 gdb_bfd_get_full_section_contents.
12755
12756 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12757
12758 * exec.c (build_section_table): Replace internal_error with
12759 gdb_assert.
12760 (section_table_xfer_memory_partial): Likewise.
12761 * mdebugread.c (parse_partial_symbols): Likewise.
12762 * psymtab.c (lookup_partial_symbol): Likewise.
12763 * utils.c (wrap_here): Likewise.
12764
12765 2020-04-02 Tom Tromey <tromey@adacore.com>
12766
12767 * f-lang.c (build_fortran_types): Use arch_type to initialize
12768 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12769
12770 2020-04-02 Tom Tromey <tromey@adacore.com>
12771
12772 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12773 of attributes.
12774
12775 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12776 Bernd Edlinger <bernd.edlinger@hotmail.de>
12777 Tom Tromey <tromey@adacore.com>
12778
12779 * buildsym.c (buildsym_compunit::record_line): Remove
12780 deduplication code.
12781
12782 2020-04-02 Tom de Vries <tdevries@suse.de>
12783
12784 PR ada/24671
12785 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12786
12787 2020-04-02 Tom de Vries <tdevries@suse.de>
12788
12789 * dwarf2/read.c (dwarf2_gdb_index_functions,
12790 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12791 NULL.
12792 * psymtab.c (psym_lookup_global_symbol_language): New function.
12793 (psym_functions): Init psym_lookup_global_symbol_language with
12794 psym_lookup_global_symbol_language.
12795 * symfile-debug.c (debug_sym_quick_functions): Init
12796 lookup_global_symbol_language with NULL.
12797 * symfile.c (set_initial_language): Remove fixme comment.
12798 * symfile.h (struct quick_symbol_functions): Add
12799 lookup_global_symbol_language.
12800 * symtab.c (find_quick_global_symbol_language): New function.
12801 (find_main_name): Use find_quick_global_symbol_language.
12802
12803 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12804
12805 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12806
12807 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12808
12809 * buildsym.c (record_line): Fix undefined behavior and preserve
12810 lines at eof.
12811
12812 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12813
12814 * buildsym.c (record_line): Fix the resizing condition.
12815
12816 2020-04-01 Tom Tromey <tom@tromey.com>
12817
12818 * value.h (value_literal_complex): Add comment.
12819 * valops.c (value_literal_complex): Refer to value.h.
12820
12821 2020-04-01 Tom Tromey <tom@tromey.com>
12822
12823 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12824 (scalar_type): New rule, from typebase.
12825 (typebase): Use scalar_type. Recognize complex types.
12826 (field_name): Handle FLOAT_KEYWORD.
12827 (ident_tokens): Add _Complex and __complex__.
12828
12829 2020-04-01 Tom Tromey <tom@tromey.com>
12830
12831 PR exp/25299:
12832 * valarith.c (promotion_type, complex_binop): New functions.
12833 (scalar_binop): Handle complex numbers. Use promotion_type.
12834 (value_pos, value_neg, value_complement): Handle complex numbers.
12835
12836 2020-04-01 Tom Tromey <tom@tromey.com>
12837
12838 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12839 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12840 (parse_number): Handle complex numbers.
12841
12842 2020-04-01 Tom Tromey <tom@tromey.com>
12843
12844 * c-valprint.c (c_decorations): Change complex suffix to "i".
12845
12846 2020-04-01 Tom Tromey <tom@tromey.com>
12847
12848 * valprint.c (generic_value_print_complex): Use accessors.
12849 * value.h (value_real_part, value_imaginary_part): Declare.
12850 * valops.c (value_real_part, value_imaginary_part): New
12851 functions.
12852 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12853
12854 2020-04-01 Tom Tromey <tom@tromey.com>
12855
12856 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12857 (read_range_type): Update.
12858 * mdebugread.c (basic_type): Update.
12859 * go-lang.c (build_go_types): Use init_complex_type.
12860 * gdbtypes.h (struct main_type) <complex_type>: New member.
12861 (init_complex_type): Update.
12862 (arch_complex_type): Don't declare.
12863 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12864 Make name if none given. Use alloc_type_copy. Look for cached
12865 complex type.
12866 (arch_complex_type): Remove.
12867 (gdbtypes_post_init): Use init_complex_type.
12868 * f-lang.c (build_fortran_types): Use init_complex_type.
12869 * dwarf2/read.c (read_base_type): Update.
12870 * d-lang.c (build_d_types): Use init_complex_type.
12871 * ctfread.c (read_base_type): Update.
12872
12873 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12874
12875 * infrun.c (stop_all_threads): Update assertion, plus when
12876 stopping threads, take into account that we might be trying
12877 to stop an all-stop target.
12878 (stop_waiting): Call 'stop_all_threads' if there exists a
12879 non-stop target.
12880
12881 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12882
12883 * target.h (exists_non_stop_target): New function declaration.
12884 * target.c (exists_non_stop_target): New function.
12885
12886 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12887
12888 PR gdb/24789
12889 * eval.c (is_integral_or_integral_reference): New function.
12890 (evaluate_subexp_standard): Allow integer references in
12891 pointer arithmetic.
12892
12893 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12894
12895 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12896 check for no ptid in the stop reply when the target is non-stop.
12897
12898 2020-04-01 Tom Tromey <tromey@adacore.com>
12899
12900 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12901 "name" parameter to rvalue reference. Initialize m_name_holder.
12902 <lookup_name_info>: New overloads.
12903 <name>: Return gdb::string_view.
12904 <c_str>: New method.
12905 <make_ignore_params>: Update.
12906 <search_name_hash>: Update.
12907 <language_lookup_name>: Return const char *.
12908 <m_name>: Change type.
12909 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12910 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12911 (lookup_name_info::match_any): Update.
12912 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12913 Update.
12914 * minsyms.c (linkage_name_str): Update.
12915 * language.c (default_symbol_name_matcher): Update.
12916 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12917 Update.
12918 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12919 (ada_lookup_name_info::ada_lookup_name_info): Update.
12920 (literal_symbol_name_matcher): Update.
12921
12922 2020-04-01 Tom Tromey <tromey@adacore.com>
12923
12924 * psymtab.c (psymtab_search_name): Remove function.
12925 (psym_lookup_symbol): Create search name and lookup name here.
12926 (lookup_partial_symbol): Remove "name" parameter; add
12927 lookup_name.
12928 (psym_expand_symtabs_for_function): Update.
12929
12930 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12931
12932 PR tui/25597:
12933 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12934
12935 2020-03-31 Tom Tromey <tromey@adacore.com>
12936
12937 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12938 memcpy.
12939
12940 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12941
12942 * features/riscv/32bit-csr.xml: Regenerated.
12943 * features/riscv/64bit-csr.xml: Regenerated.
12944
12945 2020-03-30 Tom Tromey <tromey@adacore.com>
12946
12947 * ada-valprint.c (print_variant_part): Update.
12948 * ada-lang.h (ada_which_variant_applies): Update.
12949 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12950 outer_valaddr parameters; replace with "outer" value parameter.
12951 (to_fixed_variant_branch_type): Update.
12952
12953 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12954
12955 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12956 <list>. Remove inclusion of observable.h.
12957 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12958 (struct arch_lwp_info): New struct.
12959 (class ppc_linux_dreg_interface): New class.
12960 (struct ppc_linux_process_info): New struct.
12961 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12962 <low_new_clone, low_forget_process, low_prepare_to_resume>
12963 <copy_thread_dreg_state, mark_thread_stale>
12964 <mark_debug_registers_changed, register_hw_breakpoint>
12965 <clear_hw_breakpoint, register_wp, clear_wp>
12966 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12967 <num_memory_accesses, get_trigger_type>
12968 <create_watchpoint_request, hwdebug_point_cmp>
12969 <init_arch_lwp_info, get_arch_lwp_info>
12970 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12971 methods.
12972 <struct ptid_hash>: New inner struct.
12973 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12974 members.
12975 (saved_dabr_value, hwdebug_info, max_slots_number)
12976 (struct hw_break_tuple, struct thread_points, ppc_threads)
12977 (have_ptrace_hwdebug_interface)
12978 (hwdebug_find_thread_points_by_tid)
12979 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12980 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12981 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12982 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12983 use m_dreg_interface.
12984 (hwdebug_point_cmp): Change to...
12985 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12986 reference arguments instead of pointers.
12987 (ppc_linux_nat_target::ranged_break_num_registers): Use
12988 m_dreg_interface.
12989 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12990 m_dreg_interface. Call register_hw_breakpoint.
12991 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12992 m_dreg_interface. Call clear_hw_breakpoint.
12993 (get_trigger_type): Change to...
12994 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12995 comment.
12996 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12997 use m_dreg_interface. Call register_hw_breakpoint.
12998 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12999 use m_dreg_interface. Call clear_hw_breakpoint.
13000 (can_use_watchpoint_cond_accel): Change to...
13001 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13002 method. Update comment, use m_dreg_interface and
13003 m_process_info.
13004 (calculate_dvc): Change to...
13005 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13006 m_dreg_interface.
13007 (num_memory_accesses): Change to...
13008 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13009 (check_condition): Change to...
13010 (ppc_linux_nat_target::check_condition): ...this method.
13011 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13012 comment, use m_dreg_interface.
13013 (create_watchpoint_request): Change to...
13014 (ppc_linux_nat_target::create_watchpoint_request): ...this
13015 method. Use m_dreg_interface.
13016 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13017 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13018 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13019 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13020 (ppc_linux_nat_target::low_forget_process)
13021 (ppc_linux_nat_target::low_new_fork)
13022 (ppc_linux_nat_target::low_new_clone)
13023 (ppc_linux_nat_target::low_delete_thread)
13024 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13025 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13026 only call mark_thread_stale.
13027 (ppc_linux_thread_exit): Remove.
13028 (ppc_linux_nat_target::stopped_data_address): Change to...
13029 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13030 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13031 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13032 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13033 comment. Call low_stopped_data_address.
13034 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13035 m_dreg_interface.
13036 (ppc_linux_nat_target::masked_watch_num_registers): Use
13037 m_dreg_interface.
13038 (ppc_linux_nat_target::copy_thread_dreg_state)
13039 (ppc_linux_nat_target::mark_thread_stale)
13040 (ppc_linux_nat_target::mark_debug_registers_changed)
13041 (ppc_linux_nat_target::register_hw_breakpoint)
13042 (ppc_linux_nat_target::clear_hw_breakpoint)
13043 (ppc_linux_nat_target::register_wp)
13044 (ppc_linux_nat_target::clear_wp)
13045 (ppc_linux_nat_target::init_arch_lwp_info)
13046 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13047 (_initialize_ppc_linux_nat): Remove observer callback.
13048
13049 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13050
13051 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13052 (ppc_linux_nat_target::auxv_parse)
13053 (ppc_linux_nat_target::read_description)
13054 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13055 Move up.
13056
13057 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13058
13059 * linux-nat.h (low_new_clone): New method.
13060 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13061
13062 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13063
13064 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13065 (dbx_expand_psymtab): ... this.
13066 (start_psymtab): Update.
13067 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13068 (mdebug_expand_psymtab): ... this.
13069 (parse_partial_symbols): Update.
13070 (new_psymtab): Update.
13071 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13072 (xcoff_expand_psymtab): ... this.
13073 (xcoff_start_psymtab): Update.
13074
13075 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13076
13077 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13078 <expand_dependencies>: ... this.
13079 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13080 (partial_symtab::expand_dependencies): ... this.
13081 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13082 Update.
13083 (dwarf2_psymtab::expand_psymtab): Update.
13084 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13085 * mdebugread.c (psymtab_to_symtab_1): Update.
13086 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13087
13088 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13089
13090 * psympriv.h (discard_psymtab): Remove.
13091 * dbxread.c (dbx_end_psymtab): Update.
13092 * xcoffread.c (xcoff_end_psymtab): Update.
13093
13094 2020-03-28 Tom Tromey <tom@tromey.com>
13095
13096 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13097 comment.
13098
13099 2020-03-28 Tom Tromey <tom@tromey.com>
13100
13101 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13102
13103 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13104
13105 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13106
13107 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13108
13109 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13110
13111 2020-03-26 Tom Tromey <tom@tromey.com>
13112
13113 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13114 (mark_common_block_symbol_computed, read_tag_string_type)
13115 (attr_to_dynamic_prop, read_subrange_type): Update.
13116 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13117 to be methods on struct attribute.
13118 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13119 (read_call_site_scope, partial_die_info::read)
13120 (partial_die_info::read, lookup_die_type, follow_die_ref):
13121 Update.
13122 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13123 from dwarf2_get_ref_die_offset.
13124 (attribute::constant_value): New method, from
13125 dwarf2_get_attr_constant_value.
13126 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13127 Declare method.
13128 <constant_value>: New method.
13129
13130 2020-03-26 Tom Tromey <tom@tromey.com>
13131
13132 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13133 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13134 (dwarf_type_encoding_name): Move to stringify.c.
13135 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13136 * dwarf2/stringify.c: New file.
13137 * dwarf2/stringify.h: New file.
13138
13139 2020-03-26 Tom Tromey <tom@tromey.com>
13140
13141 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13142 Rewrite.
13143
13144 2020-03-26 Tom Tromey <tom@tromey.com>
13145
13146 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13147 methods.
13148 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13149 (lookup_ranges_base): Likewise.
13150 (read_cutu_die_from_dwo, read_full_die_1): Update.
13151
13152 2020-03-26 Tom Tromey <tom@tromey.com>
13153
13154 * dwarf2/read.c (read_import_statement, read_file_scope)
13155 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13156 (read_lexical_block_scope, read_call_site_scope)
13157 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13158 (handle_struct_member_die, process_structure_scope)
13159 (update_enumeration_type_from_children)
13160 (process_enumeration_scope, read_array_type, read_common_block)
13161 (read_namespace, read_module, read_subroutine_type): Update.
13162 (sibling_die): Remove.
13163
13164 2020-03-26 Tom Tromey <tom@tromey.com>
13165
13166 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13167 (build_type_psymtabs_reader, read_structure_type)
13168 (read_enumeration_type, read_full_die_1): Update.
13169 (dwarf2_attr_no_follow): Move to die.h.
13170 * dwarf2/die.h (struct die_info) <attr>: New method.
13171
13172 2020-03-26 Tom Tromey <tom@tromey.com>
13173
13174 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13175 <base_address>: Now an optional.
13176 (dwarf2_find_base_address, dwarf2_rnglists_process)
13177 (dwarf2_ranges_process, fill_in_loclist_baton)
13178 (dwarf2_symbol_mark_computed): Update.
13179
13180 2020-03-26 Tom Tromey <tom@tromey.com>
13181
13182 * dwarf2/read.c (struct die_info): Move to die.h.
13183 * dwarf2/die.h: New file.
13184
13185 2020-03-26 Tom Tromey <tom@tromey.com>
13186
13187 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13188 * dwarf2/read.c
13189 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13190 Move to line-header.c.
13191 (read_checked_initial_length_and_offset, read_formatted_entries):
13192 Likewise.
13193 (dwarf_decode_line_header): Split into two.
13194 * dwarf2/line-header.c
13195 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13196 Move from read.c.
13197 (read_checked_initial_length_and_offset, read_formatted_entries):
13198 Likewise.
13199 (dwarf_decode_line_header): New function, split from read.c.
13200
13201 2020-03-26 Tom Tromey <tom@tromey.com>
13202
13203 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13204 Declare method.
13205 * dwarf2/read.c (read_attribute_value): Update.
13206 (dwarf2_per_objfile::read_line_string): Rename from
13207 read_indirect_line_string.
13208 (read_formatted_entries): Update.
13209
13210 2020-03-26 Tom Tromey <tom@tromey.com>
13211
13212 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13213 variable.
13214
13215 2020-03-26 Tom Tromey <tom@tromey.com>
13216
13217 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13218 const.
13219 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13220 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13221 parameter const.
13222
13223 2020-03-26 Tom Tromey <tom@tromey.com>
13224
13225 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13226 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13227 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13228 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13229
13230 2020-03-26 Tom Tromey <tom@tromey.com>
13231
13232 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13233 file_names_size, file_full_name, file_file_name>: Use const.
13234 <file_name_at, file_names>: Add const overload.
13235 * dwarf2/line-header.c (line_header::file_file_name)
13236 (line_header::file_full_name): Update.
13237
13238 2020-03-26 Tom Tromey <tom@tromey.com>
13239
13240 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13241 (macro_start_file, consume_improper_spaces)
13242 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13243 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13244 (dwarf_decode_macros): Move to macro.c.
13245 * dwarf2/macro.c: New file.
13246 * dwarf2/macro.h: New file.
13247 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13248
13249 2020-03-26 Tom Tromey <tom@tromey.com>
13250
13251 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13252 method.
13253 * dwarf2/section.c: New method. From
13254 read_indirect_string_at_offset_from.
13255 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13256 (read_indirect_string_at_offset_from): Move to section.c.
13257 (read_indirect_string_at_offset): Rewrite.
13258 (read_indirect_line_string_at_offset): Remove.
13259 (read_indirect_string, read_indirect_line_string)
13260 (dwarf_decode_macro_bytes): Update.
13261
13262 2020-03-26 Tom Tromey <tom@tromey.com>
13263
13264 * dwarf2/section.h (struct dwarf2_section_info)
13265 <overload_complaint>: Declare.
13266 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13267 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13268 Rename from dwarf2_section_buffer_overflow_complaint.
13269 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13270 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13271
13272 2020-03-26 Tom Tromey <tom@tromey.com>
13273
13274 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13275 Declare.
13276 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13277 Move from read.c.
13278 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13279 to section.c.
13280
13281 2020-03-26 Tom Tromey <tom@tromey.com>
13282
13283 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13284
13285 2020-03-26 Tom Tromey <tom@tromey.com>
13286
13287 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13288 "builder".
13289 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13290 parameter.
13291 (dwarf_decode_macros): Update.
13292
13293 2020-03-26 Tom Tromey <tom@tromey.com>
13294
13295 * dwarf2/read.c (read_attribute_value): Update.
13296 (read_indirect_string_from_dwz): Move to dwz.c; change into
13297 method.
13298 (dwarf_decode_macro_bytes): Update.
13299 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13300 * dwarf2/dwz.c: New file.
13301 * Makefile.in (COMMON_SFILES): Add dwz.c.
13302
13303 2020-03-26 Tom Tromey <tom@tromey.com>
13304
13305 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13306 * dwarf2/read.c: Add include.
13307 * dwarf2/index-write.c: Add include.
13308 * dwarf2/index-cache.c: Add include.
13309 * dwarf2/dwz.h: New file.
13310
13311 2020-03-25 Tom Tromey <tom@tromey.com>
13312
13313 * compile/compile-object-load.c (get_out_value_type): Mention
13314 correct symbol name in error message.
13315
13316 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13317
13318 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13319
13320 2020-03-25 Tom de Vries <tdevries@suse.de>
13321
13322 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13323 * symmisc.c (dump_symtab_1): Print user and includes fields.
13324 (maintenance_info_symtabs): Same.
13325
13326 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13327
13328 PR gdb/25534
13329 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13330 (riscv_regcache_cooked_write): New function.
13331 (riscv_push_dummy_call): Use new function.
13332 (riscv_return_value): Likewise.
13333
13334 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13335
13336 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13337 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13338 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13339 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13340 * infrun.c (follow_fork): Likewise.
13341 (follow_fork_inferior): Likewise.
13342 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13343 * linux-nat.h (class linux_nat_target): Likewise.
13344 * remote.c (class remote_target) <follow_fork>: Likewise.
13345 (remote_target::follow_fork): Likewise.
13346 * target-delegates.c: Re-generate.
13347 * target.c (default_follow_fork): Likewise.
13348 (target_follow_fork): Likewise.
13349 * target.h (struct target_ops) <follow_fork>: Likewise.
13350 (target_follow_fork): Likewise.
13351
13352 2020-03-24 Tom de Vries <tdevries@suse.de>
13353
13354 * psymtab.c (maintenance_info_psymtabs): Print user field.
13355
13356 2020-03-20 Tom Tromey <tromey@adacore.com>
13357
13358 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13359 const.
13360 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13361 const.
13362
13363 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13364
13365 * ptrace.m4: Don't check for ptrace declaration.
13366 * config.in: Re-generate.
13367 * configure: Re-generate.
13368 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13369 not defined.
13370
13371 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13372
13373 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13374 `PTRACE_TYPE_RET'.
13375 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13376 * sparc-nat.c (gdb_ptrace): Likewise.
13377 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13378
13379 2020-03-20 Tom Tromey <tromey@adacore.com>
13380
13381 * c-exp.y (lex_one_token): Fix assert.
13382
13383 2020-03-20 Tom Tromey <tromey@adacore.com>
13384
13385 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13386 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13387 strncpy call.
13388
13389 2020-03-20 Tom Tromey <tromey@adacore.com>
13390
13391 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13392
13393 2020-03-20 Tom Tromey <tromey@adacore.com>
13394
13395 * ada-valprint.c (print_variant_part): Remove parameters; switch
13396 to value-based API.
13397 (print_field_values): Likewise.
13398 (ada_val_print_struct_union): Likewise.
13399 (ada_value_print_1): Update.
13400
13401 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13402
13403 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13404 nbsd_nat_target instead of inf_ptrace_target.
13405 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13406 nbsd_nat_target.
13407
13408 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13409
13410 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13411 it to the ptrace call.
13412 * (store_registers): Likewise.
13413
13414 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13415
13416 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13417 it to the ptrace call.
13418 * (store_registers): Likewise.
13419
13420 2020-03-19 Luis Machado <luis.machado@linaro.org>
13421
13422 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13423 valid, fetch vg value from ptrace.
13424
13425 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13426 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13427 * inf-ptrace.c: Likewise.
13428 * (gdb_ptrace): Add.
13429 * (inf_ptrace_target::resume): Update.
13430 * (inf_ptrace_target::xfer_partial): Likewise.
13431 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13432 * (inf_ptrace_peek_poke): Update.
13433
13434 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13435
13436 * x86-bsd-nat.c (gdb_ptrace): New.
13437 * (x86bsd_dr_set): Add new argument `ptid'.
13438 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13439 x86bsd_dr_set_addr): Update.
13440
13441 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13442
13443 * remote.c (remote_target::process_stop_reply): Handle events for
13444 all threads differently.
13445
13446 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13447
13448 * completer.c (completion_tracker::remove_completion): Define new
13449 function.
13450 * completer.h (completion_tracker::remove_completion): Declare new
13451 function.
13452 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13453 when adding a C++ function symbol.
13454
13455 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13456
13457 * completer.c (completion_tracker::completion_hash_entry): Define
13458 new class.
13459 (advance_to_filename_complete_word_point): Call
13460 recompute_lowest_common_denominator.
13461 (completion_tracker::completion_tracker): Call discard_completions
13462 to setup the hash table.
13463 (completion_tracker::discard_completions): Allow for being called
13464 from the constructor, pass new equal function, and element deleter
13465 when constructing the hash table. Initialise new class member
13466 variables.
13467 (completion_tracker::maybe_add_completion): Remove use of
13468 m_entries_vec, and store more information into m_entries_hash.
13469 (completion_tracker::recompute_lcd_visitor): New function, most
13470 content taken from...
13471 (completion_tracker::recompute_lowest_common_denominator):
13472 ...here, this now just visits each item in the hash calling the
13473 above visitor.
13474 (completion_tracker::build_completion_result): Remove use of
13475 m_entries_vec, call recompute_lowest_common_denominator.
13476 * completer.h (completion_tracker::have_completions): Remove use
13477 of m_entries_vec.
13478 (completion_tracker::completion_hash_entry): Declare new class.
13479 (completion_tracker::recompute_lowest_common_denominator): Change
13480 function signature.
13481 (completion_tracker::recompute_lcd_visitor): Declare new function.
13482 (completion_tracker::m_entries_vec): Delete.
13483 (completion_tracker::m_entries_hash): Initialize to NULL.
13484 (completion_tracker::m_lowest_common_denominator_valid): New
13485 member variable.
13486 (completion_tracker::m_lowest_common_denominator_max_length): New
13487 member variable.
13488
13489 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13490
13491 * regformats/regdef.h: Put reg in gdb namespace.
13492
13493 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13494
13495 * i386-bsd-nat.c (gdb_ptrace): New.
13496 * (i386bsd_fetch_inferior_registers,
13497 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13498 * (i386bsd_fetch_inferior_registers,
13499 i386bsd_store_inferior_registers) Use gdb_ptrace.
13500
13501 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13502
13503 * amd64-bsd-nat.c (gdb_ptrace): New.
13504 * (amd64bsd_fetch_inferior_registers,
13505 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13506 * (amd64bsd_fetch_inferior_registers,
13507 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13508
13509 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13510
13511 * user-regs.c (user_reg::read): Rename to...
13512 (user_reg::xread): ...this.
13513 * (append_user_reg): Rename argument `read' to `xread'.
13514 * (user_reg_add_builtin): Likewise.
13515 * (user_reg_add): Likewise.
13516 * (value_of_user_reg): Likewise.
13517
13518 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13519
13520 * sparc-nat.c (gdb_ptrace): New.
13521 * sparc-nat.c (sparc_fetch_inferior_registers)
13522 (sparc_store_inferior_registers) Remove obsolete comment.
13523 * sparc-nat.c (sparc_fetch_inferior_registers)
13524 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13525 * sparc-nat.c (sparc_fetch_inferior_registers)
13526 (sparc_store_inferior_registers) Use gdb_ptrace.
13527
13528 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13529
13530 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13531 it to the ptrace call.
13532 * sh-nbsd-nat.c (store_registers): Likewise.
13533
13534 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13535
13536 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13537 nbsd_nat_target instead of inf_ptrace_target.
13538 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13539 nbsd_nat_target.
13540
13541 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13542
13543 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13544
13545 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13546
13547 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13548 <sys/sysctl.h>.
13549 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13550
13551 2020-03-17 Tom de Vries <tdevries@suse.de>
13552
13553 PR gdb/23710
13554 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13555 fields.
13556 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13557 fields.
13558 (process_imported_unit_die): Skip import of c++ CUs.
13559
13560 2020-03-16 Tom Tromey <tom@tromey.com>
13561
13562 * p-valprint.c (pascal_object_print_value): Initialize
13563 base_value.
13564
13565 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13566 Shahab Vahedi <shahab@synopsys.com>
13567
13568 * Makefile.in: Add arch/arc.o
13569 * configure.tgt: Likewise.
13570 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13571 (_initialize_arc_tdep): Don't initialize old target descriptions.
13572 (arc_read_description): New function to cache target descriptions.
13573 * arc-tdep.h (arc_read_description): Add proto type.
13574 * arch/arc.c: New file.
13575 * arch/arc.h: Likewise.
13576 * features/Makefile: Replace old target descriptions with new.
13577 * features/arc-arcompact.c: Remove.
13578 * features/arc-arcompact.xml: Likewise.
13579 * features/arc-v2.c: Likewise
13580 * features/arc-v2.xml: Likewise
13581 * features/arc/aux-arcompact.xml: New file.
13582 * features/arc/aux-v2.xml: Likewise.
13583 * features/arc/core-arcompact.xml: Likewise.
13584 * features/arc/core-v2.xml: Likewise.
13585 * features/arc/aux-arcompact.c: Generate.
13586 * features/arc/aux-v2.c: Likewise.
13587 * features/arc/core-arcompact.c: Likewise.
13588 * features/arc/core-v2.c: Likewise.
13589 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13590
13591 2020-03-16 Tom Tromey <tromey@adacore.com>
13592
13593 PR gdb/25663:
13594 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13595 putting value into bcache.
13596
13597 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13598
13599 PR gdb/21500
13600 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13601 to...
13602 (amd64_windows_init_abi_common): ... this. Don't set size of
13603 long type.
13604 (amd64_windows_init_abi): New function.
13605 (amd64_cygwin_init_abi): New function.
13606 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13607 the Cygwin OS ABI.
13608 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13609 comment.
13610
13611 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13612
13613 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13614 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13615 (pe_import_directory_entry): New struct type.
13616 (is_linked_with_cygwin_dll): New function.
13617 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13618 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13619 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13620
13621 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13622
13623 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13624 i386_cygwin_core_osabi_sniffer.
13625
13626 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13627
13628 * i386-cygwin-tdep.c: Rename to...
13629 * i386-windows-tdep.c: ... this.
13630 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13631 i386-windows-tdep.c.
13632 * configure.tgt: Likewise.
13633
13634 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13635
13636 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13637 * osabi.c (gdb_osabi_names): Add "Windows".
13638 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13639 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13640 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13641 i386_cygwin_osabi_sniffer.
13642 (_initialize_i386_cygwin_tdep): Register OS ABI
13643 GDB_OSABI_WINDOWS for i386.
13644 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13645 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13646 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13647 for x86-64.
13648 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13649 when the target matches '*-*-mingw*'.
13650
13651 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13652
13653 * defs.h (enum gdb_osabi): Move to...
13654 * osabi.h (enum gdb_osabi): ... here.
13655 * gdbarch.sh: Include osabi.h in gdbarch.h.
13656 * gdbarch.h: Re-generate.
13657
13658 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13659
13660 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13661 function.
13662 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13663
13664 2020-03-14 Tom Tromey <tom@tromey.com>
13665
13666 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13667 for C++.
13668 (c_type_print_modifier): Likewise. Add "language" parameter.
13669 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13670 (c_type_print_base_1): Update.
13671 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13672 constants.
13673 * type-stack.c (type_stack::insert): Handle tp_atomic and
13674 tp_restrict.
13675 (type_stack::follow_type_instance_flags): Likewise.
13676 (type_stack::follow_types): Likewise. Merge type-following code.
13677 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13678 (space_identifier, cv_with_space_id)
13679 (const_or_volatile_or_space_identifier_noopt)
13680 (const_or_volatile_or_space_identifier): Remove.
13681 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13682 rules.
13683 (ptr_operator, typebase): Update.
13684 (enum token_flag) <FLAG_C>: New constant.
13685 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13686 "_Atomic".
13687 (lex_one_token): Handle FLAG_C.
13688
13689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13690
13691 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13692 it to the ptrace call.
13693 * m68k-bsd-nat.c (store_registers): Likewise.
13694
13695 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13696
13697 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13698 gdb_byte *.
13699 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13700 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13701 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13702
13703 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13704
13705 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13706 nbsd_nat_target instead of inf_ptrace_target.
13707 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13708 nbsd_nat_target.
13709
13710 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13711
13712 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13713 register_t.
13714
13715 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13716
13717 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13718 it to the ptrace call.
13719 * alpha-bsd-nat.c (store_registers): Likewise.
13720
13721 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13722
13723 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13724 includes.
13725 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13726 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13727 fill_fpregset): Likewise.
13728
13729 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13730
13731 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13732 nbsd_nat_target instead of inf_ptrace_target.
13733 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13734 nbsd_nat_target.
13735
13736 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13737
13738 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13739 register_t.
13740
13741 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13742
13743 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13744 it to the ptrace call.
13745 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13746 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13747 * arm-nbsd-nat.c (store_register): Likewise.
13748 * arm-nbsd-nat.c (store_regs): Likewise.
13749 * arm-nbsd-nat.c (store_fp_register): Likewise.
13750 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13751
13752 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13753
13754 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13755 nbsd_nat_target instead of inf_ptrace_target.
13756 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13757 nbsd_nat_target.
13758
13759 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13760
13761 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13762 it to the ptrace call.
13763 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13764
13765 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13766
13767 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13768 it to the ptrace call.
13769 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13770
13771 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13772
13773 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13774 gdb_byte *.
13775 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13776
13777 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13778
13779 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13780 instead of inf_ptrace_target.
13781 * vax-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 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13787 register_t.
13788
13789 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13790
13791 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13792 register_t.
13793
13794 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13795
13796 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13797 register_t.
13798
13799 2020-03-13 Tom Tromey <tom@tromey.com>
13800
13801 * value.h (val_print): Don't declare.
13802 * valprint.h (val_print_array_elements)
13803 (val_print_scalar_formatted, generic_val_print): Don't declare.
13804 * valprint.c (generic_val_print_array): Take a struct value.
13805 (generic_val_print_ptr, generic_val_print_memberptr)
13806 (generic_val_print_bool, generic_val_print_int)
13807 (generic_val_print_char, generic_val_print_complex)
13808 (generic_val_print): Remove.
13809 (generic_value_print): Update.
13810 (do_val_print): Remove unused parameters. Don't call
13811 la_val_print.
13812 (val_print): Remove.
13813 (common_val_print): Update. Don't call value_check_printable.
13814 (val_print_scalar_formatted, val_print_array_elements): Remove.
13815 * rust-lang.c (rust_val_print): Remove.
13816 (rust_language_defn): Update.
13817 * p-valprint.c (pascal_val_print): Remove.
13818 (pascal_value_print_inner): Update.
13819 (pascal_object_print_val_fields, pascal_object_print_val):
13820 Remove.
13821 (pascal_object_print_static_field): Update.
13822 * p-lang.h (pascal_val_print): Don't declare.
13823 * p-lang.c (pascal_language_defn): Update.
13824 * opencl-lang.c (opencl_language_defn): Update.
13825 * objc-lang.c (objc_language_defn): Update.
13826 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13827 * m2-lang.h (m2_val_print): Don't declare.
13828 * m2-lang.c (m2_language_defn): Update.
13829 * language.h (struct language_defn) <la_val_print>: Remove.
13830 * language.c (unk_lang_value_print_inner): Rename. Change
13831 argument types.
13832 (unknown_language_defn, auto_language_defn): Update.
13833 * go-valprint.c (go_val_print): Remove.
13834 * go-lang.h (go_val_print): Don't declare.
13835 * go-lang.c (go_language_defn): Update.
13836 * f-valprint.c (f_val_print): Remove.
13837 * f-lang.h (f_value_print): Don't declare.
13838 * f-lang.c (f_language_defn): Update.
13839 * d-valprint.c (d_val_print): Remove.
13840 * d-lang.h (d_value_print): Don't declare.
13841 * d-lang.c (d_language_defn): Update.
13842 * cp-valprint.c (cp_print_value_fields)
13843 (cp_print_value_fields_rtti, cp_print_value): Remove.
13844 (cp_print_static_field): Update.
13845 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13846 (c_val_print_struct, c_val_print_union, c_val_print_int)
13847 (c_val_print_memberptr, c_val_print): Remove.
13848 * c-lang.h (c_val_print_array, cp_print_value_fields)
13849 (cp_print_value_fields_rtti): Don't declare.
13850 * c-lang.c (c_language_defn, cplus_language_defn)
13851 (asm_language_defn, minimal_language_defn): Update.
13852 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13853 (ada_val_print_enum): Take a struct value.
13854 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13855 (ada_val_print): Remove.
13856 (ada_value_print_1): Update.
13857 (printable_val_type): Remove.
13858 * ada-lang.h (ada_val_print): Don't declare.
13859 * ada-lang.c (ada_language_defn): Update.
13860
13861 2020-03-13 Tom Tromey <tom@tromey.com>
13862
13863 * valprint.c (do_val_print): Update.
13864 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13865 a struct value.
13866 (value_to_value_object_no_release): Declare.
13867 * python/py-value.c (value_to_value_object_no_release): New
13868 function.
13869 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13870 struct value.
13871 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13872 function.
13873 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13874 a struct value.
13875 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13876 Declare.
13877 (gdbscm_apply_val_pretty_printer): Take a struct value.
13878 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13879 value.
13880 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13881 value.
13882 * extension-priv.h (struct extension_language_ops)
13883 <apply_val_pretty_printer>: Take a struct value.
13884 * cp-valprint.c (cp_print_value): Create a struct value.
13885 (cp_print_value): Update.
13886
13887 2020-03-13 Tom Tromey <tom@tromey.com>
13888
13889 * ada-valprint.c (print_field_values): Call common_val_print.
13890
13891 2020-03-13 Tom Tromey <tom@tromey.com>
13892
13893 * ada-valprint.c (val_print_packed_array_elements): Remove
13894 bitoffset and val parameters. Call common_val_print.
13895 (ada_val_print_string): Remove offset, address, and original_value
13896 parameters.
13897 (ada_val_print_array): Update.
13898 (ada_value_print_array): New function.
13899 (ada_value_print_1): Call it.
13900
13901 2020-03-13 Tom Tromey <tom@tromey.com>
13902
13903 * ada-valprint.c (ada_value_print): Use common_val_print.
13904
13905 2020-03-13 Tom Tromey <tom@tromey.com>
13906
13907 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13908
13909 2020-03-13 Tom Tromey <tom@tromey.com>
13910
13911 * ada-valprint.c (ada_value_print_num): New function.
13912 (ada_value_print_1): Use it.
13913
13914 2020-03-13 Tom Tromey <tom@tromey.com>
13915
13916 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13917
13918 2020-03-13 Tom Tromey <tom@tromey.com>
13919
13920 * ada-valprint.c (ada_value_print_ptr): New function.
13921 (ada_value_print_1): Use it.
13922
13923 2020-03-13 Tom Tromey <tom@tromey.com>
13924
13925 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13926 call common_val_print.
13927 (ada_val_print_1): Update.
13928 (ada_value_print_1): New function.
13929 (ada_value_print_inner): Rewrite.
13930
13931 2020-03-13 Tom Tromey <tom@tromey.com>
13932
13933 * cp-valprint.c (cp_print_value_fields): Update.
13934 (cp_print_value): New function.
13935
13936 2020-03-13 Tom Tromey <tom@tromey.com>
13937
13938 * m2-valprint.c (m2_value_print_inner): Use
13939 cp_print_value_fields.
13940 * cp-valprint.c (cp_print_value_fields): New function.
13941 * c-valprint.c (c_value_print_struct): New function.
13942 (c_value_print_inner): Use c_value_print_struct.
13943 * c-lang.h (cp_print_value_fields): Declare.
13944
13945 2020-03-13 Tom Tromey <tom@tromey.com>
13946
13947 * c-valprint.c (c_value_print_array): New function.
13948 (c_value_print_inner): Use it.
13949
13950 2020-03-13 Tom Tromey <tom@tromey.com>
13951
13952 * c-valprint.c (c_value_print_memberptr): New function.
13953 (c_value_print_inner): Use it.
13954
13955 2020-03-13 Tom Tromey <tom@tromey.com>
13956
13957 * c-valprint.c (c_value_print_int): New function.
13958 (c_value_print_inner): Use it.
13959
13960 2020-03-13 Tom Tromey <tom@tromey.com>
13961
13962 * c-valprint.c (c_value_print_ptr): New function.
13963 (c_value_print_inner): Use it.
13964
13965 2020-03-13 Tom Tromey <tom@tromey.com>
13966
13967 * c-valprint.c (c_value_print_inner): Rewrite.
13968
13969 2020-03-13 Tom Tromey <tom@tromey.com>
13970
13971 * valprint.c (generic_value_print_complex): New function.
13972 (generic_value_print): Use it.
13973
13974 2020-03-13 Tom Tromey <tom@tromey.com>
13975
13976 * valprint.c (generic_val_print_float): Don't call
13977 val_print_scalar_formatted.
13978 (generic_val_print, generic_value_print): Update.
13979
13980 2020-03-13 Tom Tromey <tom@tromey.com>
13981
13982 * valprint.c (generic_value_print_char): New function
13983 (generic_value_print): Use it.
13984
13985 2020-03-13 Tom Tromey <tom@tromey.com>
13986
13987 * valprint.c (generic_value_print_int): New function.
13988 (generic_value_print): Use it.
13989
13990 2020-03-13 Tom Tromey <tom@tromey.com>
13991
13992 * valprint.c (generic_value_print_bool): New function.
13993 (generic_value_print): Use it.
13994
13995 2020-03-13 Tom Tromey <tom@tromey.com>
13996
13997 * valprint.c (generic_val_print_func): Simplify.
13998 (generic_val_print, generic_value_print): Update.
13999
14000 2020-03-13 Tom Tromey <tom@tromey.com>
14001
14002 * valprint.c (generic_val_print_flags): Remove.
14003 (generic_val_print, generic_value_print): Update.
14004 (val_print_type_code_flags): Add original_value parameter.
14005
14006 2020-03-13 Tom Tromey <tom@tromey.com>
14007
14008 * valprint.c (generic_val_print): Update.
14009 (generic_value_print): Update.
14010 * valprint.c (generic_val_print_enum): Don't call
14011 val_print_scalar_formatted.
14012
14013 2020-03-13 Tom Tromey <tom@tromey.com>
14014
14015 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14016 * valprint.c (generic_value_print_ptr): New function.
14017
14018 2020-03-13 Tom Tromey <tom@tromey.com>
14019
14020 * valprint.c (generic_value_print): Rewrite.
14021
14022 2020-03-13 Tom Tromey <tom@tromey.com>
14023
14024 * p-valprint.c (pascal_object_print_value_fields)
14025 (pascal_object_print_value): New functions.
14026
14027 2020-03-13 Tom Tromey <tom@tromey.com>
14028
14029 * p-valprint.c (pascal_value_print_inner): Rewrite.
14030
14031 2020-03-13 Tom Tromey <tom@tromey.com>
14032
14033 * f-valprint.c (f_value_print_innner): Rewrite.
14034
14035 2020-03-13 Tom Tromey <tom@tromey.com>
14036
14037 * m2-valprint.c (m2_print_unbounded_array): New overload.
14038 (m2_print_unbounded_array): Update.
14039 (m2_print_array_contents): Take a struct value.
14040 (m2_value_print_inner): Rewrite.
14041
14042 2020-03-13 Tom Tromey <tom@tromey.com>
14043
14044 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14045 (d_value_print_inner): New function.
14046 * d-lang.h (d_value_print_inner): Declare.
14047 * d-lang.c (d_language_defn): Use d_value_print_inner.
14048
14049 2020-03-13 Tom Tromey <tom@tromey.com>
14050
14051 * go-valprint.c (go_value_print_inner): New function.
14052 * go-lang.h (go_value_print_inner): Declare.
14053 * go-lang.c (go_language_defn): Use go_value_print_inner.
14054
14055 2020-03-13 Tom Tromey <tom@tromey.com>
14056
14057 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14058 API.
14059 (rust_val_print): Rewrite.
14060 (rust_value_print_inner): New function, from rust_val_print.
14061 (rust_language_defn): Use rust_value_print_inner.
14062
14063 2020-03-13 Tom Tromey <tom@tromey.com>
14064
14065 * ada-valprint.c (ada_value_print_inner): New function.
14066 * ada-lang.h (ada_value_print_inner): Declare.
14067 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14068
14069 2020-03-13 Tom Tromey <tom@tromey.com>
14070
14071 * f-valprint.c (f_value_print_innner): New function.
14072 * f-lang.h (f_value_print_innner): Declare.
14073 * f-lang.c (f_language_defn): Use f_value_print_innner.
14074
14075 2020-03-13 Tom Tromey <tom@tromey.com>
14076
14077 * p-valprint.c (pascal_value_print_inner): New function.
14078 * p-lang.h (pascal_value_print_inner): Declare.
14079 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14080
14081 2020-03-13 Tom Tromey <tom@tromey.com>
14082
14083 * m2-valprint.c (m2_value_print_inner): New function.
14084 * m2-lang.h (m2_value_print_inner): Declare.
14085 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14086
14087 2020-03-13 Tom Tromey <tom@tromey.com>
14088
14089 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14090 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14091 * c-valprint.c (c_value_print_inner): New function.
14092 * c-lang.h (c_value_print_inner): Declare.
14093 * c-lang.c (c_language_defn, cplus_language_defn)
14094 (asm_language_defn, minimal_language_defn): Use
14095 c_value_print_inner.
14096
14097 2020-03-13 Tom Tromey <tom@tromey.com>
14098
14099 * p-valprint.c (pascal_object_print_value_fields): Now static.
14100 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14101
14102 2020-03-13 Tom Tromey <tom@tromey.com>
14103
14104 * c-valprint.c (c_val_print_array): Simplify.
14105
14106 2020-03-13 Tom Tromey <tom@tromey.com>
14107
14108 * valprint.c (value_print_array_elements): New function.
14109 * valprint.h (value_print_array_elements): Declare.
14110
14111 2020-03-13 Tom Tromey <tom@tromey.com>
14112
14113 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14114 * mips-tdep.c (mips_print_register): Use
14115 value_print_scalar_formatted.
14116
14117 2020-03-13 Tom Tromey <tom@tromey.com>
14118
14119 * valprint.h (value_print_scalar_formatted): Declare.
14120 * valprint.c (value_print_scalar_formatted): New function.
14121
14122 2020-03-13 Tom Tromey <tom@tromey.com>
14123
14124 * valprint.h (generic_value_print): Declare.
14125 * valprint.c (generic_value_print): New function.
14126
14127 2020-03-13 Tom Tromey <tom@tromey.com>
14128
14129 * valprint.c (do_val_print): Call la_value_print_inner, if
14130 available.
14131 * rust-lang.c (rust_language_defn): Update.
14132 * p-lang.c (pascal_language_defn): Update.
14133 * opencl-lang.c (opencl_language_defn): Update.
14134 * objc-lang.c (objc_language_defn): Update.
14135 * m2-lang.c (m2_language_defn): Update.
14136 * language.h (struct language_defn) <la_value_print_inner>: New
14137 member.
14138 * language.c (unknown_language_defn, auto_language_defn): Update.
14139 * go-lang.c (go_language_defn): Update.
14140 * f-lang.c (f_language_defn): Update.
14141 * d-lang.c (d_language_defn): Update.
14142 * c-lang.c (c_language_defn, cplus_language_defn)
14143 (asm_language_defn, minimal_language_defn): Update.
14144 * ada-lang.c (ada_language_defn): Update.
14145
14146 2020-03-13 Tom Tromey <tom@tromey.com>
14147
14148 * c-valprint.c (c_value_print): Use common_val_print.
14149
14150 2020-03-13 Tom Tromey <tom@tromey.com>
14151
14152 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14153
14154 2020-03-13 Tom Tromey <tom@tromey.com>
14155
14156 * f-valprint.c (f77_print_array_1, f_val_print): Use
14157 common_val_print.
14158
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14160
14161 * riscv-tdep.c (riscv_print_one_register_info): Use
14162 common_val_print.
14163
14164 2020-03-13 Tom Tromey <tom@tromey.com>
14165
14166 * mi/mi-main.c (output_register): Use common_val_print.
14167
14168 2020-03-13 Tom Tromey <tom@tromey.com>
14169
14170 * infcmd.c (default_print_one_register_info): Use
14171 common_val_print.
14172
14173 2020-03-13 Tom Tromey <tom@tromey.com>
14174
14175 * valprint.h (common_val_print_checked): Declare.
14176 * valprint.c (common_val_print_checked): New function.
14177 * stack.c (print_frame_arg): Use common_val_print_checked.
14178
14179 2020-03-13 Tom Tromey <tom@tromey.com>
14180
14181 * valprint.c (do_val_print): New function, from val_print.
14182 (val_print): Use do_val_print.
14183 (common_val_print): Use do_val_print.
14184
14185 2020-03-13 Tom Tromey <tom@tromey.com>
14186
14187 * valprint.c (value_print): Use scoped_value_mark.
14188
14189 2020-03-13 Tom de Vries <tdevries@suse.de>
14190
14191 PR symtab/25646
14192 * psymtab.c (partial_symtab::partial_symtab): Don't set
14193 globals_offset and statics_offset. Push element onto
14194 current_global_psymbols and current_static_psymbols stacks.
14195 (concat): New function.
14196 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14197 element from current_global_psymbols and current_static_psymbols
14198 stacks. Concat popped elements to global_psymbols and
14199 static_symbols.
14200 (add_psymbol_to_list): Use current_global_psymbols and
14201 current_static_psymbols stacks.
14202 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14203 current_static_psymbols fields.
14204
14205 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14206
14207 * corelow.c (sniff_core_bfd): Remove.
14208 (class core_target) <m_core_vec>: Remove.
14209 (core_target::core_target): Update.
14210 (core_file_fns): Remove.
14211 (deprecated_add_core_fns): Remove.
14212 (default_core_sniffer): Remove.
14213 (sniff_core_bfd): Remove.
14214 (default_check_format): Remove.
14215 (gdb_check_format): Remove.
14216 (core_target_open): Update.
14217 (core_target::get_core_register_section): Update.
14218 (get_core_registers_cb): Update.
14219 (core_target::fetch_registers): Update.
14220 * gdbcore.h (struct core_fns): Remove.
14221 (deprecated_add_core_fns): Remove.
14222 (default_core_sniffer): Remove.
14223 (default_check_format): Remove.
14224
14225 2020-03-12 Tom Tromey <tom@tromey.com>
14226
14227 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14228 CORE_ADDR.
14229 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14230
14231 2020-03-12 Tom Tromey <tom@tromey.com>
14232
14233 * remote.c (remote_target::download_tracepoint)
14234 (remote_target::enable_tracepoint)
14235 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14236 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14237 sprintf_vma.
14238
14239 2020-03-12 Tom Tromey <tom@tromey.com>
14240
14241 * symfile-mem.c: Update CORE_ADDR size assert.
14242
14243 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14244
14245 * selftest.m4: Move to gdbsupport/.
14246 * acinclude.m4: Update path to selftest.m4.
14247
14248 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14249
14250 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14251 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14252 gdbarch-selfselftests.c and selftest-arch.c.
14253 (SUBDIR_UNITTESTS_OBS): Rename to...
14254 (SELFTESTS_OBS): ... this.
14255 (COMMON_SFILES): Remove disasm-selftests.c and
14256 gdbarch-selftests.c.
14257 * configure.ac: Don't add selftest-arch.{c,o} to
14258 CONFIG_{SRCS,OBS}.
14259 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14260 preprocessor conditions.
14261
14262 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14263
14264 * configure.ac: Don't source bfd/development.sh.
14265 * selftest.m4: Modify comment.
14266 * configure: Re-generate.
14267
14268 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14269
14270 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14271 not "true" or "false".
14272 * configure: Re-generate.
14273
14274 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14275
14276 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14277 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14278 renamed to arm_nbsd_supply_gregset.
14279 (fetch_register): Update to call arm_nbsd_supply_gregset.
14280 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14281 (arm_netbsd_nat_target::fetch_registers): Update.
14282 (fetch_elfcore_registers): Removed.
14283 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14284 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14285 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14286 not require NetBSD system headers.
14287 (arm_nbsd_regset): New struct.
14288 (arm_nbsd_iterate_over_regset_sections): New function.
14289 (arm_netbsd_init_abi_common): Updated to call
14290 set_gdbarch_iterate_over_regset_sections.
14291 * arm-nbsd-tdep.h: New file.
14292
14293 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14294
14295 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14296 recursion.
14297
14298 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14299
14300 * configure: Re-generate.
14301
14302 2020-03-11 Tom Tromey <tromey@adacore.com>
14303
14304 * ada-typeprint.c (print_choices): Fix comment.
14305
14306 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14307
14308 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14309 previous item in the list, when the list has no items.
14310
14311 2020-03-11 Tom de Vries <tdevries@suse.de>
14312
14313 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14314 PROP_LOCLIST handling code.
14315
14316 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14317
14318 * buildsym-legacy.c (record_line): Pass extra parameter to
14319 record_line.
14320 * buildsym.c (buildsym_compunit::record_line): Take an extra
14321 parameter, reduce duplication in the line table, and record the
14322 is_stmt flag in the line table.
14323 * buildsym.h (buildsym_compunit::record_line): Add extra
14324 parameter.
14325 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14326 non-statement lines.
14327 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14328 this to the symtab builder.
14329 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14330 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14331 through to dwarf_record_line_1.
14332 * infrun.c (process_event_stop_test): When stepping, don't stop at
14333 a non-statement instruction, and only refresh the step info when
14334 we land in the middle of a line's range. Also add an extra
14335 comment.
14336 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14337 field.
14338 * record-btrace.c (btrace_find_line_range): Only record lines
14339 marked as is-statement.
14340 * stack.c (frame_show_address): Show the frame address if we are
14341 in a non-statement sal.
14342 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14343 (maintenance_print_one_line_table): Print a header for the is_stmt
14344 column, and include is_stmt information in the output.
14345 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14346 preference to non-statements.
14347 (find_pcs_for_symtab_line): Prefer is-statement entries.
14348 (find_line_common): Likewise.
14349 * symtab.h (struct linetable_entry): Add is_stmt field.
14350 (struct symtab_and_line): Likewise.
14351 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14352 arranging the line table.
14353
14354 2020-03-07 Tom de Vries <tdevries@suse.de>
14355
14356 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14357 DIE.
14358
14359 2020-03-07 Tom Tromey <tom@tromey.com>
14360
14361 * valops.c (value_literal_complex): Remove obsolete comment.
14362 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14363 comment.
14364
14365 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14366
14367 * infrun.h: Forward-declare thread_info.
14368 (set_step_info): Add thread_info parameter, add doc.
14369 * infrun.c (set_step_info): Add thread_info parameter, move doc
14370 to header.
14371 * infrun.c (process_event_stop_test): Pass thread to
14372 set_step_info call.
14373 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14374 set_step_info.
14375 (prepare_one_step): Add thread_info parameter, pass it to
14376 set_step_frame and prepare_one_step (recursive) call.
14377 (step_1): Pass thread to prepare_one_step call.
14378 (step_command_fsm::should_stop): Pass thread to
14379 prepare_one_step.
14380 (until_next_fsm): Pass thread to set_step_frame call.
14381 (finish_command): Pass thread to set_step_info call.
14382
14383 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14384
14385 * windows-tdep.c (windows_solib_create_inferior_hook):
14386 Check if inferior is running.
14387
14388 2020-03-06 Tom de Vries <tdevries@suse.de>
14389
14390 * NEWS: Fix "the the".
14391 * ctfread.c: Same.
14392
14393 2020-03-06 Tom de Vries <tdevries@suse.de>
14394
14395 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14396
14397 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14398
14399 * .dir-locals.el: Add a comment referencing the other copies of
14400 this file.
14401
14402 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14403
14404 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14405 psargs.
14406
14407 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14408
14409 * .gitattributes: New file.
14410
14411 2020-03-04 Tom Tromey <tom@tromey.com>
14412
14413 * symmisc.c (print_symbol_bcache_statistics)
14414 (print_objfile_statistics): Update.
14415 * symfile.c (allocate_symtab): Use intern.
14416 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14417 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14418 macro_cache>: Remove.
14419 <string_cache>: New member.
14420 (struct objfile) <intern>: New methods.
14421 * elfread.c (elf_symtab_read): Use intern.
14422 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14423 (dwarf2_compute_name, dwarf2_physname)
14424 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14425 names.
14426 (guess_partial_die_structure_name): Update.
14427 (partial_die_info::fixup): Intern name.
14428 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14429 name.
14430 (dwarf2_name): Intern name. Update.
14431 * buildsym.c (buildsym_compunit::get_macro_table): Use
14432 string_cache.
14433
14434 2020-03-04 Tom Tromey <tom@tromey.com>
14435
14436 * jit.c (bfd_open_from_target_memory): Make "target" const.
14437 * corefile.c (gnutarget): Now const.
14438 * gdbcore.h (gnutarget): Now const.
14439
14440 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14441
14442 * NEWS: Mention support for WOW64 processes.
14443 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14444 (amd64_windows_segment_register_p): Remove static.
14445 (_initialize_amd64_windows_nat): Update.
14446 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14447 * i386-windows-nat.c (context_offset): Update.
14448 (i386_mappings): Rename and remove static.
14449 (i386_windows_segment_register_p): Remove static.
14450 (_initialize_i386_windows_nat): Update.
14451 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14452 (STATUS_WX86_SINGLE_STEP): New macro.
14453 (EnumProcessModulesEx): New macro.
14454 (Wow64SuspendThread): New macro.
14455 (Wow64GetThreadContext): New macro.
14456 (Wow64SetThreadContext): New macro.
14457 (Wow64GetThreadSelectorEntry): New macro.
14458 (windows_set_context_register_offsets): Add static.
14459 (windows_set_segment_register_p): Likewise.
14460 (windows_add_thread): Adapt for WOW64 processes.
14461 (windows_fetch_one_register): Likewise.
14462 (windows_nat_target::fetch_registers): Likewise.
14463 (windows_store_one_register): Likewise.
14464 (display_selector): Likewise.
14465 (display_selectors): Likewise.
14466 (handle_exception): Likewise.
14467 (windows_continue): Likewise.
14468 (windows_nat_target::resume): Likewise.
14469 (windows_add_all_dlls): Likewise.
14470 (do_initial_windows_stuff): Likewise.
14471 (windows_nat_target::attach): Likewise.
14472 (windows_get_exec_module_filename): Likewise.
14473 (windows_nat_target::create_inferior): Likewise.
14474 (windows_xfer_siginfo): Likewise.
14475 (_initialize_loadable): Initialize Wow64SuspendThread,
14476 Wow64GetThreadContext, Wow64SetThreadContext,
14477 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14478 * windows-nat.h (windows_set_context_register_offsets):
14479 Remove declaration.
14480 (windows_set_segment_register_p): Likewise.
14481 (i386_windows_segment_register_p): Add declaration.
14482 (amd64_windows_segment_register_p): Likewise.
14483
14484 2020-03-04 Luis Machado <luis.machado@linaro.org>
14485
14486 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14487 in "info registers" for AArch64/ARM.
14488
14489 The change caused "info registers" to not print GPR's.
14490
14491 gdb/ChangeLog:
14492
14493 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14494
14495 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14496 when reg->group is empty and reggroup is not.
14497
14498 2020-03-03 Tom Tromey <tromey@adacore.com>
14499
14500 * dwarf2/frame.c (struct dwarf2_frame_cache)
14501 <checked_tailcall_bottom, entry_cfa_sp_offset,
14502 entry_cfa_sp_offset_p>: Remove members.
14503 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14504 (dwarf2_frame_prev_register): Don't call
14505 dwarf2_tailcall_sniffer_first.
14506 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14507 * frame-unwind.c (add_unwinder): New fuction.
14508 (frame_unwind_init): Use it. Add tailcall unwinder.
14509
14510 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14511 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14512
14513 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14514 value should be printed as true.
14515
14516 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14517
14518 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14519 (windows_init_abi): Set and use windows_so_ops.
14520
14521 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14522
14523 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14524 when verifying if dealing with a convenience variable.
14525
14526 2020-03-03 Luis Machado <luis.machado@linaro.org>
14527
14528 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14529
14530 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14531
14532 * infrun.c (gdbarch_supports_displaced_stepping): New.
14533 (use_displaced_stepping): Break up conditions in smaller pieces.
14534 Use gdbarch_supports_displaced_stepping.
14535 (displaced_step_prepare_throw): Use
14536 gdbarch_supports_displaced_stepping.
14537
14538 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14539
14540 * NEWS: Mention new behaviour of the history filename.
14541 * top.c (write_history_p): Add comment.
14542 (show_write_history_p): Add header comment, give a different
14543 message when history writing is on, but the history filename is
14544 empty.
14545 (history_filename): Add comment.
14546 (history_filename_empty): New function.
14547 (show_history_filename): Add header comment, give a different
14548 message when the filename is empty.
14549 (init_history): Compare history_filename against nullptr, and only
14550 read history if the filename is not empty.
14551 (set_history_filename): Add header comment, and only make
14552 non-empty filenames absolute.
14553 (init_main): Make the filename argument to 'set history filename'
14554 optional.
14555
14556 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14557
14558 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14559 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14560 (fetch_fp_register): Update.
14561 (fetch_fp_regs): Update.
14562 (store_fp_register): Update.
14563 (store_fp_regs): Update.
14564 (arm_netbsd_nat_target::read_description): New function.
14565 (fetch_elfcore_registers): Update.
14566
14567 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14568
14569 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14570 general_thread if the stop reply is missing a thread-id.
14571 (remote_target::process_stop_reply): Use the first non-exited
14572 thread if the target didn't pass a thread-id.
14573 * infrun.c (do_target_wait): Move call to
14574 switch_to_inferior_no_thread to ....
14575 (do_target_wait_1): ... here.
14576
14577 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14578
14579 * debuginfod-support.c: Include defs.h first.
14580
14581 2020-02-28 Tom de Vries <tdevries@suse.de>
14582
14583 * symfile.c (set_initial_language): Use default language for lookup.
14584
14585 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14586
14587 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14588 reader variable, pass `this` to read_cutu_die_from_dwo.
14589
14590 2020-02-27 Aaron Merey <amerey@redhat.com>
14591
14592 * source.c (open_source_file): Check for nullptr when computing
14593 srcpath.
14594
14595 2020-02-27 Tom Tromey <tromey@adacore.com>
14596
14597 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14598 member.
14599 (dwarf2_add_field): Don't update nfields.
14600 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14601
14602 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14603
14604 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14605 abs.
14606
14607 2020-02-26 Tom Tromey <tom@tromey.com>
14608
14609 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14610 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14611 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14612 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14613 per_cu_data.
14614
14615 2020-02-26 Tom Tromey <tom@tromey.com>
14616
14617 * dwarf2/index-write.c (psym_index_map): Change type.
14618 (add_address_entry_worker, write_one_signatured_type)
14619 (recursively_count_psymbols, recursively_write_psymbols)
14620 (class debug_names, psyms_seen_size, write_gdbindex)
14621 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14622
14623 2020-02-26 Aaron Merey <amerey@redhat.com>
14624
14625 * Makefile.in: Handle optional debuginfod support.
14626 * NEWS: Update.
14627 * README: Add --with-debuginfod summary.
14628 * config.in: Regenerate.
14629 * configure: Regenerate.
14630 * configure.ac: Handle optional debuginfod support.
14631 * debuginfod-support.c: debuginfod helper functions.
14632 * debuginfod-support.h: Ditto.
14633 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14634 summary.
14635 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14636 when a dwz file cannot be found.
14637 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14638 debuginfo file cannot be found.
14639 * source.c (open_source_file): Query debuginfod servers when a
14640 source file cannot be found.
14641 * top.c (print_gdb_configuration): Include
14642 --{with,without}-debuginfod in the output.
14643
14644 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14645
14646 * thread.c (thr_try_catch_cmd): Print thread name.
14647
14648 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14649
14650 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14651 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14652 dwarf2_fetch_die_type_sect_off): Move to...
14653 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14654 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14655 dwarf2_fetch_die_type_sect_off): ... here.
14656 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14657 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14658 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14659
14660 2020-02-26 Tom de Vries <tdevries@suse.de>
14661
14662 PR gdb/25603
14663 * symfile.c (set_initial_language): Exit-early if
14664 language_mode == language_mode_manual.
14665
14666 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14667
14668 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14669 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14670 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14671
14672 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14673
14674 * gdbtypes.c (create_array_type_with_stride): Handle negative
14675 array strides.
14676 * valarith.c (value_subscripted_rvalue): Likewise.
14677
14678 2020-02-25 Luis Machado <luis.machado@linaro.org>
14679
14680 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14681
14682 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14683
14684 * loc.h (dwarf2_get_die_type): Move to...
14685 * read.h (dwarf2_get_die_type): ... here.
14686 * read.c (dwarf2_get_die_type): Move doc to header.
14687
14688 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14689
14690 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14691 'gnulib/Makefile.in' to the list.
14692
14693 2020-02-24 Tom Tromey <tom@tromey.com>
14694
14695 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14696 Remove.
14697 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14698 XOBNEWVEC.
14699
14700 2020-02-24 Tom Tromey <tom@tromey.com>
14701
14702 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14703 New method.
14704 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14705 (dw2_do_instantiate_symtab, dw2_get_file_names)
14706 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14707
14708 2020-02-24 Tom Tromey <tom@tromey.com>
14709
14710 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14711 make_scoped_restore.
14712 (dwarf2_psymtab::read_symtab): Don't clear
14713 reading_partial_symbols.
14714
14715 2020-02-24 Tom de Vries <tdevries@suse.de>
14716
14717 PR gdb/25592
14718 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14719
14720 2020-02-24 Tom de Vries <tdevries@suse.de>
14721
14722 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14723 commands layout next/prev/regs.
14724
14725 2020-02-22 Tom Tromey <tom@tromey.com>
14726
14727 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14728 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14729
14730 2020-02-22 Tom Tromey <tom@tromey.com>
14731
14732 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14733
14734 2020-02-22 Tom Tromey <tom@tromey.com>
14735
14736 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14737 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14738 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14739 * tui/tui.c (_initialize_tui): Add usage text.
14740
14741 2020-02-22 Tom Tromey <tom@tromey.com>
14742
14743 * tui/tui-win.c (tui_set_focus_command)
14744 (tui_set_win_height_command): Use error_no_arg.
14745 (_initialize_tui_win): Update help text.
14746 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14747
14748 2020-02-22 Tom Tromey <tom@tromey.com>
14749
14750 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14751 * tui/tui-disasm.h (struct tui_disasm_window)
14752 <display_start_addr>: Declare.
14753 * tui/tui-source.h (struct tui_source_window)
14754 <display_start_addr>: Declare.
14755 * tui/tui-winsource.h (struct tui_source_window_base)
14756 <show_source_line, display_start_addr>: New methods.
14757 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14758 Rename and move to protected section.
14759 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14760 (tui_source_window_base::do_erase_source_content): Update.
14761 (tui_source_window_base::show_source_line): Now a method.
14762 (tui_source_window_base::show_source_content)
14763 (tui_source_window_base::tui_source_window_base)
14764 (tui_source_window_base::rerender)
14765 (tui_source_window_base::refill)
14766 (tui_source_window_base::do_scroll_horizontal)
14767 (tui_source_window_base::set_is_exec_point_at)
14768 (tui_source_window_base::update_breakpoint_info)
14769 (tui_source_window_base::update_exec_info): Update.
14770 * tui/tui-source.c (tui_source_window::set_contents)
14771 (tui_source_window::showing_source_p)
14772 (tui_source_window::do_scroll_vertical)
14773 (tui_source_window::location_matches_p)
14774 (tui_source_window::line_is_displayed): Update.
14775 (tui_source_window::display_start_addr): New method.
14776 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14777 (tui_disasm_window::do_scroll_vertical)
14778 (tui_disasm_window::location_matches_p): Update.
14779 (tui_disasm_window::display_start_addr): New method.
14780
14781 2020-02-22 Tom Tromey <tom@tromey.com>
14782
14783 * NEWS: Add entry for gdb.register_window_type.
14784 * tui/tui-layout.h (window_factory): New typedef.
14785 (tui_register_window): Declare.
14786 * tui/tui-layout.c (saved_tui_windows): New global.
14787 (tui_apply_current_layout): Use it.
14788 (tui_register_window): New function.
14789 * python/python.c (do_start_initialization): Call
14790 gdbpy_initialize_tui.
14791 (python_GdbMethods): Add "register_window_type" function.
14792 * python/python-internal.h (gdbpy_register_tui_window)
14793 (gdbpy_initialize_tui): Declare.
14794 * python/py-tui.c: New file.
14795 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14796
14797 2020-02-22 Tom Tromey <tom@tromey.com>
14798
14799 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14800
14801 2020-02-22 Tom Tromey <tom@tromey.com>
14802
14803 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14804 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14805 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14806 (tui_set_win_focus_to): Move from tui-win.c.
14807
14808 2020-02-22 Tom Tromey <tom@tromey.com>
14809
14810 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14811 functions.
14812 (known_window_types): New global.
14813 (tui_get_window_by_name): Reimplement.
14814 (initialize_known_windows): New function.
14815 (validate_window_name): Rewrite.
14816 (_initialize_tui_layout): Call initialize_known_windows.
14817
14818 2020-02-22 Tom Tromey <tom@tromey.com>
14819
14820 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14821 Remove constants.
14822 * tui/tui-winsource.h (struct tui_source_window_base)
14823 <tui_source_window_base>: Remove parameter.
14824 * tui/tui-winsource.c
14825 (tui_source_window_base::tui_source_window_base): Remove
14826 parameter.
14827 (tui_source_window_base::refill): Update.
14828 * tui/tui-stack.h (struct tui_locator_window)
14829 <tui_locator_window>: Update.
14830 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14831 Default the constructor.
14832 * tui/tui-regs.h (struct tui_data_item_window)
14833 <tui_data_item_window>: Default the constructor.
14834 (struct tui_data_window) <tui_data_window>: Likewise.
14835 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14836 Default the constructor.
14837 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14838 Default the constructor.
14839 <type>: Remove.
14840 (struct tui_win_info) <tui_win_info>: Default the constructor.
14841 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14842 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14843 Default the constructor.
14844
14845 2020-02-22 Tom Tromey <tom@tromey.com>
14846
14847 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14848 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14849 * tui/tui-win.c (tui_resize_all): Don't call
14850 tui_delete_invisible_windows.
14851 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14852 done.
14853 (tui_set_layout): Update.
14854 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14855 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14856 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14857
14858 2020-02-22 Tom Tromey <tom@tromey.com>
14859
14860 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14861 correctly.
14862
14863 2020-02-22 Tom Tromey <tom@tromey.com>
14864
14865 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14866
14867 2020-02-22 Tom Tromey <tom@tromey.com>
14868
14869 * tui/tui-winsource.h (struct tui_source_window_iterator)
14870 <inner_iterator>: New etytypedef.
14871 <tui_source_window_iterator>: Take "end" parameter.
14872 <tui_source_window_iterator>: Take iterator.
14873 <operator*, advance>: Update.
14874 <m_iter>: Change type.
14875 <m_end>: New field.
14876 (struct tui_source_windows) <begin, end>: Update.
14877 * tui/tui-layout.c (tui_windows): New global.
14878 (tui_apply_current_layout): Clear tui_windows.
14879 (tui_layout_window::apply): Update tui_windows.
14880 * tui/tui-data.h (tui_windows): Declare.
14881 (all_tui_windows): Now inline function.
14882 (class tui_window_iterator, struct all_tui_windows): Remove.
14883
14884 2020-02-22 Tom Tromey <tom@tromey.com>
14885
14886 PR tui/17850:
14887 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14888 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14889 "height" argument.
14890 (class tui_layout_window) <get_sizes>: Likewise.
14891 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14892 argument.
14893 <get_sizes>: Add "height" argument.
14894 <m_vertical>: New field.
14895 * tui/tui-layout.c (tui_layout_split::clone): Update.
14896 (tui_layout_split::get_sizes): Add "height" argument.
14897 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14898 (tui_new_layout_command): Parse "-horizontal".
14899 (_initialize_tui_layout): Update help string.
14900 (tui_layout_split::specification): Add "-horizontal" when needed.
14901 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14902 argument.
14903 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14904 New methods.
14905
14906 2020-02-22 Tom Tromey <tom@tromey.com>
14907
14908 * tui/tui-layout.h (enum tui_adjust_result): New.
14909 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14910 (class tui_layout_window) <adjust_size>: Return
14911 tui_adjust_result. Rewrite.
14912 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14913 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14914
14915 2020-02-22 Tom Tromey <tom@tromey.com>
14916
14917 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14918 parameter and return types.
14919 (class tui_layout_base) <specification>: Add "depth".
14920 (class tui_layout_window) <specification>: Add "depth".
14921 (class tui_layout_split) <specification>: Add "depth".
14922 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14923 and return types.
14924 (tui_new_layout_command): Parse sub-layouts.
14925 (_initialize_tui_layout): Update help string.
14926 (tui_layout_window::specification): Add "depth".
14927 (add_layout_command): Update.
14928
14929 2020-02-22 Tom Tromey <tom@tromey.com>
14930
14931 * NEWS: Add "tui new-layout" item.
14932 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14933 Add new-layout command to help text.
14934 (validate_window_name): New function.
14935 (tui_new_layout_command): New function.
14936 (_initialize_tui_layout): Register "new-layout".
14937 (tui_layout_window::specification): New method.
14938 (tui_layout_window::specification): New method.
14939 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14940 method.
14941 (class tui_layout_window) <specification>: New method.
14942 (class tui_layout_split) <specification>: New method.
14943
14944 2020-02-22 Tom Tromey <tom@tromey.com>
14945
14946 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14947 * tui/tui-win.c (window_name_completer): Update comment.
14948 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14949 Declare method.
14950 (class tui_layout_window) <replace_window>: Likewise.
14951 (class tui_layout_split) <replace_window>: Likewise.
14952 (tui_set_layout): Don't declare.
14953 (tui_set_initial_layout): Declare function.
14954 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14955 (asm_regs_layout): New globals.
14956 (tui_current_layout, show_layout): Remove.
14957 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14958 (find_layout, tui_apply_layout): New function.
14959 (layout_completer): Remove.
14960 (tui_next_layout): Reimplement.
14961 (tui_next_layout_command): New function.
14962 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14963 (tui_regs_layout): Reimplement.
14964 (tui_regs_layout_command): New function.
14965 (extract_display_start_addr): Rewrite.
14966 (next_layout, prev_layout): Remove.
14967 (tui_layout_window::replace_window): New method.
14968 (tui_layout_split::replace_window): New method.
14969 (destroy_layout): New function.
14970 (layout_list): New global.
14971 (add_layout_command): New function.
14972 (initialize_layouts): Update.
14973 (tui_layout_command): New function.
14974 (_initialize_tui_layout): Install "layout" commands.
14975 * tui/tui-data.h (enum tui_layout_type): Remove.
14976 (tui_current_layout): Don't declare.
14977
14978 2020-02-22 Tom Tromey <tom@tromey.com>
14979
14980 * tui/tui-regs.c (tui_reg_layout): Remove.
14981 (tui_reg_command): Use tui_regs_layout.
14982 * tui/tui-layout.h (tui_reg_command): Declare.
14983 * tui/tui-layout.c (tui_reg_command): New function.
14984
14985 2020-02-22 Tom Tromey <tom@tromey.com>
14986
14987 * tui/tui.c (tui_rl_delete_other_windows): Call
14988 tui_remove_some_windows.
14989 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14990 Declare method.
14991 (class tui_layout_window) <remove_windows>: New method.
14992 (class tui_layout_split) <remove_windows>: Declare.
14993 (tui_remove_some_windows): Declare.
14994 * tui/tui-layout.c (tui_remove_some_windows): New function.
14995 (tui_layout_split::remove_windows): New method.
14996
14997 2020-02-22 Tom Tromey <tom@tromey.com>
14998
14999 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15000 * tui/tui-layout.h (tui_next_layout): Declare.
15001 * tui/tui-layout.c (tui_next_layout): New function.
15002
15003 2020-02-22 Tom Tromey <tom@tromey.com>
15004
15005 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15006 correct coordinates.
15007
15008 2020-02-22 Tom Tromey <tom@tromey.com>
15009
15010 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15011 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15012 DATA_WIN case.
15013
15014 2020-02-22 Tom Tromey <tom@tromey.com>
15015
15016 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15017 TUI_DISASM_WIN, not tui_win_list.
15018
15019 2020-02-22 Tom Tromey <tom@tromey.com>
15020
15021 * valprint.c (generic_val_print_enum_1)
15022 (val_print_type_code_flags): Style member names.
15023 * rust-lang.c (val_print_struct, rust_print_enum)
15024 (rust_print_struct_def, rust_internal_print_type): Style member
15025 names.
15026 * p-valprint.c (pascal_object_print_value_fields): Style member
15027 names. Only call fprintf_symbol_filtered for static members.
15028 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15029 * f-valprint.c (f_val_print): Style member names.
15030 * f-typeprint.c (f_type_print_base): Style member names.
15031 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15032 call fprintf_symbol_filtered for static members.
15033 (cp_print_class_member): Style member names.
15034 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15035 member names.
15036 * ada-valprint.c (ada_print_scalar): Style enum names.
15037 (ada_val_print_enum): Likewise.
15038 * ada-typeprint.c (print_enum_type): Style enum names.
15039
15040 2020-02-21 Tom Tromey <tom@tromey.com>
15041
15042 * psympriv.h (struct partial_symtab): Update comment.
15043
15044 2020-02-21 Tom Tromey <tromey@adacore.com>
15045
15046 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15047 type is CORE_ADDR.
15048
15049 2020-02-21 Tom de Vries <tdevries@suse.de>
15050
15051 PR gdb/25534
15052 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15053 if dependencies[i]->user != NULL.
15054
15055 2020-02-21 Ali Tamur <tamur@google.com>
15056
15057 * dwarf2/read.c (dwarf2_name): Add null check.
15058
15059 2020-02-20 Tom Tromey <tom@tromey.com>
15060
15061 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15062 ">=", in binary search.
15063 (dwarf2_find_containing_comp_unit): New overload.
15064 (run_test): New self-test.
15065 (_initialize_dwarf2_read): Register new test.
15066
15067 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15068
15069 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15070 * riscv-tdep.h: Likewise.
15071 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15072 rv32-only CSR.
15073 * features/riscv/64bit-csr.xml: Regenerated.
15074
15075 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15076 Tom Tromey <tom@tromey.com>
15077
15078 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15079 of 'fputc_unfiltered'.
15080 (putchar_unfiltered): Call 'fputc_unfiltered'.
15081 (fputc_unfiltered): Call 'fputs_unfiltered'.
15082
15083 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15084
15085 * config.in: Regenerate.
15086 * configure: Regenerate.
15087 * configure.ac: Add --with-python-libdir option.
15088 * main.c: Use WITH_PYTHON_LIBDIR.
15089
15090 2020-02-19 Tom Tromey <tom@tromey.com>
15091
15092 * symtab.c (general_symbol_info::compute_and_set_names): Use
15093 obstack_strndup. Simplify call to symbol_set_demangled_name.
15094
15095 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15096
15097 * dwarf2/read.c (allocate_signatured_type_table,
15098 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15099 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15100 Remove objfile parameter, update all callers.
15101
15102 2020-02-19 Doug Evans <dje@google.com>
15103
15104 PR rust/25535
15105 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15106 rust_enum_variant calculation.
15107
15108 2020-02-19 Tom Tromey <tromey@adacore.com>
15109
15110 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15111
15112 2020-02-19 Tom Tromey <tromey@adacore.com>
15113
15114 * ada-lang.c (cache_symbol): Use obstack_strdup.
15115
15116 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15117
15118 * configure: Regenerate.
15119
15120 2020-02-19 Tom Tromey <tromey@adacore.com>
15121
15122 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15123 NULL check.
15124
15125 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15126
15127 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15128
15129 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15130
15131 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15132 if GDBSERVER is not defined.
15133 (riscv_tdesc_cache): Likewise, also store const target_desc.
15134 (STATIC_IN_GDB): Define.
15135 (riscv_create_target_description): Update declaration with
15136 STATIC_IN_GDB.
15137 (riscv_lookup_target_description): New function, only define if
15138 GDBSERVER is not defined.
15139 * arch/riscv.h (riscv_create_target_description): Declare only
15140 when GDBSERVER is defined.
15141 (riscv_lookup_target_description): New declaration when GDBSERVER
15142 is not defined.
15143 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15144 (riscv_linux_read_features): ...this, and return
15145 riscv_gdbarch_features instead of target_desc.
15146 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15147 (riscv_linux_read_description): Rename to...
15148 (riscv_linux_read_features): ...this.
15149 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15150 Update to use riscv_gdbarch_features and
15151 riscv_lookup_target_description.
15152 * riscv-tdep.c (riscv_find_default_target_description): Use
15153 riscv_lookup_target_description instead of
15154 riscv_create_target_description.
15155
15156 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15157
15158 * valprint.c (generic_val_print_enum_1): When printing a flag
15159 enum with value 0 and there is no enumerator with value 0, print
15160 just "0" instead of "(unknown: 0x0)".
15161
15162 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15163
15164 * valprint.c (generic_val_print_enum_1): Print unknown part of
15165 flag enum in hex.
15166
15167 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15168
15169 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15170 flag enums to contain duplicate enumerators.
15171 * valprint.c (generic_val_print_enum_1): Update comment.
15172
15173 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15174
15175 * dwarf2/read.c: Include "count-one-bits.h".
15176 (update_enumeration_type_from_children): If an enumerator has
15177 multiple bits set, don't treat the enumeration as a "flag enum".
15178 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15179 of flag enums have 0 or 1 bit set.
15180
15181 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15182
15183 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15184 conversion.
15185 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15186 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15187 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15188 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15189 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15190
15191 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15192
15193 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15194
15195 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15196
15197 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15198 displaced_step_closure_up.
15199 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15200 (struct displaced_step_closure_up):
15201 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15202 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15203 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15204 Likewise.
15205 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15206 * gdbarch.c, gdbarch.h: Re-generate.
15207 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15208 displaced_step_closure_up.
15209 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15210 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15211 * infrun.h (displaced_step_closure_up): New type alias.
15212 (struct displaced_step_inferior_state) <step_closure>: Change
15213 type to displaced_step_closure_up.
15214 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15215 displaced_step_closure_up.
15216 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15217
15218 2020-02-14 Tom Tromey <tom@tromey.com>
15219
15220 * minidebug.c (gnu_debug_key): New global.
15221 (find_separate_debug_file_in_section): Use it.
15222
15223 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15224
15225 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15226 std::unique_ptr.
15227 * gdbarch.c: Re-generate.
15228 * gdbarch.h: Re-generate.
15229 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15230 change.
15231 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15232 type to std::unique_ptr.
15233 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15234 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15235 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15236 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15237 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15238 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15239 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15240 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15241 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15242
15243 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15244
15245 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15246 std::unique_ptr.
15247 (displaced_step_clear): Rename to...
15248 (displaced_step_reset): ... this. Just call displaced->reset ().
15249 (displaced_step_clear_cleanup): Rename to...
15250 (displaced_step_reset_cleanup): ... this.
15251 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15252 (displaced_step_fixup): Likewise.
15253 (resume_1): Likewise.
15254 (handle_inferior_event): Restore child's memory before calling
15255 displaced_step_fixup on the parent.
15256 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15257 to std::unique_ptr.
15258 <step_closure>: Change type to std::unique_ptr.
15259
15260 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15261
15262 * arm-tdep.c: Include count-one-bits.h.
15263 (cleanup_block_store_pc): Use count_one_bits.
15264 (cleanup_block_load_pc): Use count_one_bits.
15265 (arm_copy_block_xfer): Use count_one_bits.
15266 (thumb2_copy_block_xfer): Use count_one_bits.
15267 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15268 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15269 (thumb_get_next_pcs_raw): Use count_one_bits.
15270 (arm_get_next_pcs_raw): Use count_one_bits_l.
15271 * arch/arm.c (bitcount): Remove.
15272 * arch/arm.h (bitcount): Remove.
15273
15274 2020-02-14 Tom Tromey <tromey@adacore.com>
15275
15276 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15277 Update.
15278 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15279 * dwarf2/loc.c (call_site_find_chain_1): Return
15280 unique_xmalloc_ptr.
15281 (call_site_find_chain): Likewise.
15282
15283 2020-02-14 Richard Biener <rguenther@suse.de>
15284
15285 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15286 on expression with division operators.
15287
15288 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15289
15290 * MAINTAINERS (Write After Approval): Adding myself.
15291
15292 2020-02-12 Tom Tromey <tom@tromey.com>
15293
15294 * event-loop.c (event_data, gdb_event, event_handler_func):
15295 Remove.
15296
15297 2020-02-12 Tom Tromey <tom@tromey.com>
15298
15299 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15300 (dwarf2_frame_objfile_data): Add comment.
15301 (find_comp_unit, set_comp_unit): New functions.
15302 (dwarf2_frame_find_fde): Use find_comp_unit.
15303 (dwarf2_build_frame_info): Use set_comp_unit.
15304
15305 2020-02-12 Tom Tromey <tom@tromey.com>
15306
15307 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15308 (comp_unit): Don't initialize objfile.
15309 (execute_cfa_program): Add text_offset parameter.
15310 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15311 (dwarf2_frame_cache): Update.
15312 (dwarf2_build_frame_info): Don't set "objfile" member.
15313
15314 2020-02-12 Tom Tromey <tom@tromey.com>
15315
15316 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15317 (decode_frame_entry): Likewise.
15318 (dwarf2_build_frame_info): Update.
15319
15320 2020-02-12 Tom Tromey <tom@tromey.com>
15321
15322 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15323 (decode_frame_entry_1): Use the comp_unit obstack.
15324
15325 2020-02-12 Tom Tromey <tom@tromey.com>
15326
15327 * dwarf2/frame.c (struct comp_unit): Add initializers and
15328 constructor.
15329 (dwarf2_frame_objfile_data): Store a comp_unit.
15330 (dwarf2_frame_find_fde): Update.
15331 (dwarf2_build_frame_info): Use "new".
15332
15333 2020-02-12 Tom Tromey <tom@tromey.com>
15334
15335 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15336 (dwarf2_fde_table): Typedef for std::vector.
15337 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15338 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15339 (decode_frame_entry): Update.
15340 (dwarf2_build_frame_info): Use "new".
15341
15342 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15343
15344 * arm-tdep.c (arm_gdbarch_init): Update.
15345 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15346 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15347 have_neon, is_m>: Change to bool.
15348
15349 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15350
15351 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15352
15353 2020-02-12 Tom Tromey <tom@tromey.com>
15354
15355 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15356
15357 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15358
15359 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15360 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15361
15362 2020-02-11 Tom Tromey <tom@tromey.com>
15363
15364 * psymtab.h: Update comment.
15365
15366 2020-02-11 Tom Tromey <tom@tromey.com>
15367
15368 * gdb_obstack.h (struct auto_obstack): Use
15369 DISABLE_COPY_AND_ASSIGN.
15370
15371 2020-02-11 Tom Tromey <tom@tromey.com>
15372
15373 * dwarf2/frame.h (struct objfile): Don't forward declare.
15374
15375 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15376
15377 * cris-tdep.c (cris_supply_gregset): Change signature to match
15378 what struct regset expects.
15379 (cris_regset): New struct.
15380 (fetch_core_registers): Remove.
15381 (cris_iterate_over_regset_sections): New function.
15382 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15383 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15384
15385 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15386
15387 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15388 registers.
15389
15390 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15391
15392 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15393
15394 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15395
15396 * configure: Re-generate.
15397
15398 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15399
15400 * configure: Re-generate.
15401
15402 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15403
15404 * acinclude: Update warning.m4 path.
15405 * warning.m4: Move to gdbsupport.
15406
15407 2020-02-11 Tom Tromey <tromey@adacore.com>
15408
15409 * remote.c (remote_console_output): Update.
15410 * printcmd.c (printf_command): Update.
15411 * event-loop.c (gdb_wait_for_event): Update.
15412 * linux-nat.c (sigchld_handler): Update.
15413 * remote-sim.c (gdb_os_write_stdout): Update.
15414 (gdb_os_flush_stdout): Update.
15415 (gdb_os_flush_stderr): Update.
15416 (gdb_os_write_stderr): Update.
15417 * exceptions.c (print_exception): Update.
15418 * remote-fileio.c (remote_fileio_func_read): Update.
15419 (remote_fileio_func_write): Update.
15420 * tui/tui.c (tui_enable): Update.
15421 * tui/tui-interp.c (tui_interp::init): Update.
15422 * utils.c (init_page_info): Update.
15423 (putchar_unfiltered, fputc_unfiltered): Update.
15424 (gdb_flush): Update.
15425 (emit_style_escape): Update.
15426 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15427 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15428 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15429 (stderr_file::write): Update.
15430 (stderr_file::puts): Update.
15431 * ui-file.h (ui_file_isatty, ui_file_write)
15432 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15433 (ui_file_puts): Don't declare.
15434
15435 2020-02-10 Tom de Vries <tdevries@suse.de>
15436
15437 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15438 sentinel to char *.
15439
15440 2020-02-09 Tom de Vries <tdevries@suse.de>
15441
15442 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15443 filename if it matches "<artificial>".
15444
15445 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15446
15447 * windows-tdep.c (struct enum_value_name): New struct.
15448 (create_enum): New function.
15449 (windows_get_siginfo_type): Create and use enum types.
15450
15451 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15452
15453 * NEWS: Mention $_siginfo support for Windows.
15454 * windows-nat.c (handle_exception): Set siginfo_er.
15455 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15456 (windows_xfer_siginfo): New function.
15457 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15458 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15459 (init_windows_gdbarch_data): New function.
15460 (get_windows_gdbarch_data): New function.
15461 (windows_get_siginfo_type): New function.
15462 (windows_init_abi): Register windows_get_siginfo_type.
15463 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15464
15465 2020-02-08 Tom Tromey <tom@tromey.com>
15466
15467 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15468 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15469 <keep>: Declare method.
15470 <m_keep>: Remove member.
15471 <~cutu_reader>: Remove.
15472 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15473 (cutu_reader::cutu_reader): Update.
15474 (cutu_reader::keep): Rename from ~cutu_reader.
15475 (process_psymtab_comp_unit, build_type_psymtabs_1)
15476 (process_skeletonless_type_unit, load_partial_comp_unit)
15477 (load_full_comp_unit, dwarf2_read_addr_index)
15478 (read_signatured_type): Update.
15479
15480 2020-02-08 Tom Tromey <tom@tromey.com>
15481
15482 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15483 "want_partial_unit" parameter.
15484 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15485 Inline check for DW_TAG_partial_unit.
15486 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15487
15488 2020-02-08 Tom Tromey <tom@tromey.com>
15489
15490 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15491 read.c.
15492 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15493 read.c.
15494
15495 2020-02-08 Tom Tromey <tom@tromey.com>
15496
15497 * dwarf2/read.c (read_address): Move to comp-unit.c.
15498 (dwarf2_rnglists_process, dwarf2_ranges_process)
15499 (read_attribute_value, dwarf_decode_lines_1)
15500 (var_decode_location, decode_locdesc): Update.
15501 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15502 read.c. Remove "cu" parameter.
15503 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15504 method.
15505
15506 2020-02-08 Tom Tromey <tom@tromey.com>
15507
15508 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15509 (read_indirect_line_string): Update.
15510 * dwarf2/comp-unit.c (read_offset): Remove.
15511 (read_comp_unit_head): Update.
15512 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15513 method.
15514 (read_offset): Don't declare.
15515
15516 2020-02-08 Tom Tromey <tom@tromey.com>
15517
15518 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15519 * dwarf2/read.c (struct comp_unit_head): Move to
15520 dwarf2/comp-unit.h.
15521 (enum class rcuh_kind): Move to comp-unit.h.
15522 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15523 (read_comp_unit_head, error_check_comp_unit_head)
15524 (read_and_check_comp_unit_head): Move to comp-unit.c.
15525 (read_offset, dwarf_unit_type_name): Likewise.
15526 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15527 (cutu_reader::cutu_reader, read_call_site_scope)
15528 (find_partial_die, follow_die_offset): Update.
15529 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15530
15531 2020-02-08 Tom Tromey <tom@tromey.com>
15532
15533 * dwarf2/read.c (read_offset_1): Move to leb.c.
15534 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15535 (dwarf_decode_macro_bytes): Update.
15536 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15537 * dwarf2/leb.h (read_offset): Declare.
15538
15539 2020-02-08 Tom Tromey <tom@tromey.com>
15540
15541 * dwarf2/read.c (dwarf2_section_size): Remove.
15542 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15543 Update.
15544 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15545
15546 2020-02-08 Tom Tromey <tom@tromey.com>
15547
15548 * dwarf2/read.c (read_initial_length): Move to leb.c.
15549 * dwarf2/leb.h (read_initial_length): Declare.
15550 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15551 handle_nonstd parameter.
15552 * dwarf2/frame.c (read_initial_length): Remove.
15553 (decode_frame_entry_1): Update.
15554
15555 2020-02-08 Tom Tromey <tom@tromey.com>
15556
15557 * dwarf2/loc.c (dwarf2_find_location_expression)
15558 (dwarf_evaluate_loc_desc::get_tls_address)
15559 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15560 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15561 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15562 (dwarf2_compile_property_to_c)
15563 (dwarf2_loc_desc_get_symbol_read_needs)
15564 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15565 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15566 (loclist_describe_location, loclist_tracepoint_var_ref)
15567 (loclist_generate_c_location): Update.
15568 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15569 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15570 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15571 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15572 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15573 (dwarf2_per_cu_data::addr_size)
15574 (dwarf2_per_cu_data::ref_addr_size)
15575 (dwarf2_per_cu_data::text_offset)
15576 (dwarf2_per_cu_data::addr_type): Now methods.
15577 (per_cu_header_read_in): Make per_cu "const".
15578 (dwarf2_version): Remove.
15579 (dwarf2_per_cu_data::int_type): Now a method.
15580 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15581 (set_die_type, read_array_type, read_subrange_index_type)
15582 (read_tag_string_type, read_subrange_type): Update.
15583 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15584 offset_size, ref_addr_size, text_offset, addr_type, version,
15585 objfile, int_type, addr_sized_int_type>: Declare methods.
15586
15587 2020-02-08 Tom Tromey <tom@tromey.com>
15588
15589 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15590 Move earlier.
15591
15592 2020-02-08 Tom Tromey <tom@tromey.com>
15593
15594 * dwarf2/read.h (dwarf_line_debug): Declare.
15595 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15596 * dwarf2/read.c: Move line_header code to new files.
15597 (dwarf_line_debug): No longer static.
15598 * dwarf2/line-header.c: New file.
15599 * dwarf2/line-header.h: New file.
15600
15601 2020-02-08 Tom Tromey <tom@tromey.com>
15602
15603 * dwarf2/read.c (struct line_header) <file_full_name,
15604 file_file_name>: Return unique_xmalloc_ptr.
15605 (line_header::file_file_name): Update.
15606 (line_header::file_full_name): Update.
15607 (dw2_get_file_names_reader): Update.
15608 (macro_start_file): Update.
15609
15610 2020-02-08 Tom Tromey <tom@tromey.com>
15611
15612 * dwarf2/read.c (struct line_header) <file_full_name,
15613 file_file_name>: Declare methods.
15614 (dw2_get_file_names_reader): Update.
15615 (file_file_name): Now a method.
15616 (file_full_name): Likewise.
15617 (macro_start_file): Update.
15618
15619 2020-02-08 Tom Tromey <tom@tromey.com>
15620
15621 * dwarf2/read.c (dwarf_always_disassemble)
15622 (show_dwarf_always_disassemble): Move to loc.c.
15623 (_initialize_dwarf2_read): Move "always-disassemble" registration
15624 to loc.c.
15625 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15626 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15627 static.
15628 (show_dwarf_always_disassemble): Move from read.c.
15629 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15630
15631 2020-02-08 Tom Tromey <tom@tromey.com>
15632
15633 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15634 (create_quick_file_names_table): Return htab_up.
15635 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15636 Update.
15637 * dwarf2/read.h (struct dwarf2_per_objfile)
15638 <quick_file_names_table>: Now htab_up.
15639
15640 2020-02-08 Tom Tromey <tom@tromey.com>
15641
15642 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15643
15644 2020-02-08 Tom Tromey <tom@tromey.com>
15645
15646 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15647 Rewrite.
15648 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15649 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15650 (abbrev_table::abbrev_table): No longer inline.
15651 (ABBREV_HASH_SIZE): Remove.
15652 (abbrev_table::m_abbrevs): Now an htab_up.
15653
15654 2020-02-08 Tom Tromey <tom@tromey.com>
15655
15656 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15657 (cutu_reader): Update.
15658 (build_type_psymtabs_1): Update.
15659 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15660 (abbrev_table::alloc_abbrev): Update.
15661 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15662 (abbrev_table::read): New static method, renamed from
15663 abbrev_table_read_table.
15664 (abbrev_table::alloc_abbrev)
15665 (abbrev_table::add_abbrev): Now private.
15666 (abbrev_table::abbrev_table): Now private.
15667 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15668
15669 2020-02-08 Tom Tromey <tom@tromey.com>
15670
15671 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15672 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15673 htab_up.
15674
15675 2020-02-08 Tom Tromey <tom@tromey.com>
15676
15677 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15678 htab_up.
15679 (lookup_dwo_unit_in_dwp): Update.
15680 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15681 on obstack.
15682
15683 2020-02-08 Tom Tromey <tom@tromey.com>
15684
15685 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15686 obstack.
15687
15688 2020-02-08 Tom Tromey <tom@tromey.com>
15689
15690 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15691 line_header_hash.
15692 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15693 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15694 Change type to htab_up.
15695
15696 2020-02-08 Tom Tromey <tom@tromey.com>
15697
15698 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15699 htab_up. Don't allocate on obstack.
15700 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15701 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15702 Change type to htab_up.
15703
15704 2020-02-08 Tom Tromey <tom@tromey.com>
15705
15706 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15707 Change type to htab_up.
15708 * dwarf2/read.c (create_signatured_type_table_from_index)
15709 (create_signatured_type_table_from_debug_names)
15710 (create_all_type_units, add_type_unit)
15711 (lookup_dwo_signatured_type, lookup_signatured_type)
15712 (process_skeletonless_type_unit): Update.
15713 (create_debug_type_hash_table, create_debug_types_hash_table):
15714 Change type of types_htab.
15715 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15716 htab_up. Don't allocate on obstack.
15717 (create_cus_hash_table): Change type of cus_htab parameter.
15718 (struct dwo_file) <cus, tus>: Now htab_up.
15719 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15720 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15721 (queue_and_load_all_dwo_tus): Update.
15722 * dwarf2/index-write.c (write_gdbindex): Update.
15723 (write_debug_names): Update.
15724
15725 2020-02-08 Tom Tromey <tom@tromey.com>
15726
15727 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15728 dwarf2/read.c. Remove "next" member. Add constructor ntad
15729 destructor.
15730 (struct dwarf2_per_objfile) <queue>: New member.
15731 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15732 dwarf2/read.h.
15733 (dwarf2_queue, dwarf2_queue_tail): Remove.
15734 (class dwarf2_queue_guard): Add parameter to constructor. Use
15735 DISABLE_COPY_AND_ASSIGN.
15736 <m_per_objfile>: New member.
15737 <~dwarf2_queue_guard>: Rewrite.
15738 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15739 Update.
15740 (~dwarf2_queue_item): New.
15741
15742 2020-02-08 Tom Tromey <tom@tromey.com>
15743
15744 * dwarf2/read.c (struct die_info) <has_children>: New member.
15745 (dw2_get_file_names_reader): Remove has_children.
15746 (dw2_get_file_names): Update.
15747 (read_cutu_die_from_dwo): Remove has_children.
15748 (cutu_reader::init_tu_and_read_dwo_dies)
15749 (cutu_reader::cutu_reader): Update.
15750 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15751 Remove has_children.
15752 (build_type_psymtabs_1, process_skeletonless_type_unit)
15753 (load_partial_comp_unit, load_full_comp_unit): Update.
15754 (create_dwo_cu_reader): Remove has_children.
15755 (create_cus_hash_table, read_die_and_children): Update.
15756 (read_full_die_1,read_full_die): Remove has_children.
15757 (read_signatured_type): Update.
15758 (class cutu_reader) <has_children>: Remove.
15759
15760 2020-02-08 Tom Tromey <tom@tromey.com>
15761
15762 * dwarf2/expr.c: Rename from dwarf2expr.c.
15763 * dwarf2/expr.h: Rename from dwarf2expr.h.
15764 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15765 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15766 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15767 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15768 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15769 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15770 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15771 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15772 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15773 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15774 * dwarf2/loc.c: Rename from dwarf2loc.c.
15775 * dwarf2/loc.h: Rename from dwarf2loc.h.
15776 * dwarf2/read.c: Rename from dwarf2read.c.
15777 * dwarf2/read.h: Rename from dwarf2read.h.
15778 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15779 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15780 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15781 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15782 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15783 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15784 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15785 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15786 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15787 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15788 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15789 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15790 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15791 Update.
15792 * Makefile.in (COMMON_SFILES): Update.
15793 (HFILES_NO_SRCDIR): Update.
15794
15795 2020-02-08 Tom Tromey <tom@tromey.com>
15796
15797 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15798 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15799
15800 2020-02-08 Tom Tromey <tom@tromey.com>
15801
15802 * dwarf2read.h (struct die_info): Don't declare.
15803
15804 2020-02-08 Tom Tromey <tom@tromey.com>
15805
15806 * dwarf2read.h (die_info_ptr): Remove typedef.
15807
15808 2020-02-08 Tom Tromey <tom@tromey.com>
15809
15810 * dwarf2read.c (read_call_site_scope)
15811 (handle_data_member_location, dwarf2_add_member_fn)
15812 (mark_common_block_symbol_computed, read_common_block)
15813 (attr_to_dynamic_prop, partial_die_info::read)
15814 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15815 (dwarf2_symbol_mark_computed, set_die_type): Update.
15816 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15817 method.
15818 (attr_form_is_block): Don't declare.
15819 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15820
15821 2020-02-08 Tom Tromey <tom@tromey.com>
15822
15823 * dwarf2read.c (dwarf2_find_base_address, )
15824 (read_call_site_scope, rust_containing_type)
15825 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15826 (handle_data_member_location, dwarf2_add_member_fn)
15827 (get_alignment, read_structure_type, process_structure_scope)
15828 (mark_common_block_symbol_computed, read_common_block)
15829 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15830 (partial_die_info::read, read_attribute_value, new_symbol)
15831 (lookup_die_type, dwarf2_get_ref_die_offset)
15832 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15833 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15834 (dwarf2_symbol_mark_computed): Update.
15835 * dwarf2/attribute.h (struct attribute) <value_as_address,
15836 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15837 methods.
15838 (value_as_address, attr_form_is_section_offset)
15839 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15840 * dwarf2/attribute.c (attribute::value_as_address)
15841 (attribute::form_is_section_offset, attribute::form_is_constant)
15842 (attribute::form_is_ref): Now methods.
15843
15844 2020-02-08 Tom Tromey <tom@tromey.com>
15845
15846 * dwarf2read.c (struct attribute, DW_STRING)
15847 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15848 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15849 (attr_form_is_block, attr_form_is_section_offset)
15850 (attr_form_is_constant, attr_form_is_ref): Move.
15851 * dwarf2/attribute.h: New file.
15852 * dwarf2/attribute.c: New file, from dwarf2read.c.
15853 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15854
15855 2020-02-08 Tom Tromey <tom@tromey.com>
15856
15857 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15858 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15859 Move.
15860 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15861 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15862 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15863 abbrev.c.
15864 * dwarf2/abbrev.h: New file.
15865 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15866 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15867
15868 2020-02-08 Tom Tromey <tom@tromey.com>
15869
15870 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15871 (dwarf2_section_size, dwarf2_get_section_info)
15872 (create_signatured_type_table_from_debug_names)
15873 (create_addrmap_from_aranges, read_debug_names_from_section)
15874 (get_gdb_index_contents_from_section, read_comp_unit_head)
15875 (error_check_comp_unit_head, read_abbrev_offset)
15876 (create_debug_type_hash_table, init_cu_die_reader)
15877 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15878 (read_comp_units_from_section, create_cus_hash_table)
15879 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15880 (create_dwp_v2_section, dwarf2_rnglists_process)
15881 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15882 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15883 (read_indirect_string_from_dwz, read_addr_index_1)
15884 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15885 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15886 (fill_in_loclist_baton): Update.
15887 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15888 get_containing_section, get_bfd_owner, get_bfd_section,
15889 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15890 (dwarf2_read_section, get_section_name, get_section_file_name)
15891 (get_containing_section, get_section_bfd_owner)
15892 (get_section_bfd_section, get_section_name, get_section_file_name)
15893 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15894 declare.
15895 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15896 (dwarf2_section_info::get_bfd_owner)
15897 (dwarf2_section_info::get_bfd_section)
15898 (dwarf2_section_info::get_name)
15899 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15900 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15901 (dwarf2_section_info::read): Now methods.
15902 * dwarf-index-write.c (class debug_names): Update.
15903
15904 2020-02-08 Tom Tromey <tom@tromey.com>
15905
15906 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15907 Move to dwarf2/section.h.
15908 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15909 (get_section_bfd_section, get_section_name)
15910 (get_section_file_name, get_section_id, get_section_flags)
15911 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15912 dwarf2/section.c.
15913 * dwarf2/section.h: New file.
15914 * dwarf2/section.c: New file, from dwarf2read.c.
15915 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15916
15917 2020-02-08 Tom Tromey <tom@tromey.com>
15918
15919 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15920 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15921 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15922 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15923 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15924 * dwarf2/leb.h: New file, from dwarf2read.c.
15925 * dwarf2/leb.c: New file, from dwarf2read.c.
15926 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15927 Remove.
15928 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15929 (COMMON_SFILES): Add dwarf2/leb.c.
15930
15931 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15932
15933 GDB 9.1 released.
15934
15935 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15936
15937 PR gdb/25190:
15938 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15939 * gdb/remote.c (remote_console_output): Update.
15940 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15941 (ui_file_puts): ...this.
15942 * gdb/ui-file.h (ui_file_puts): Add declaration.
15943 * gdb/utils.c (emit_style_escape): Update.
15944 (flush_wrap_buffer): Update.
15945 (fputs_maybe_filtered): Update.
15946 (fputs_unfiltered): Add function.
15947
15948 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15949
15950 * gdb/event-loop.c (gdb_wait_for_event): Update.
15951 * gdb/printcmd.c (printf_command): Update.
15952 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15953 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15954 (gdb_os_flush_stderr): Update.
15955 * gdb/remote.c (remote_console_output): Update.
15956 * gdb/ui-file.c (gdb_flush): Rename to...
15957 (ui_file_flush): ...this.
15958 (stderr_file::write): Update.
15959 (stderr_file::puts): Update.
15960 * gdb/ui-file.h (gdb_flush): Rename to...
15961 (ui_file_flush): ...this.
15962 * gdb/utils.c (gdb_flush): Add function.
15963 * gdb/utils.h (gdb_flush): Add declaration.
15964
15965 2020-02-07 Tom Tromey <tromey@adacore.com>
15966
15967 PR breakpoints/24915:
15968 * source.c (find_and_open_source): Do not check basenames_may_differ.
15969
15970 2020-02-07 Tom Tromey <tom@tromey.com>
15971
15972 * README: Update gdbserver documentation.
15973 * gdbserver: Move to top level.
15974 * configure.tgt (build_gdbserver): Remove.
15975 * configure.ac: Remove --enable-gdbserver.
15976 * configure: Rebuild.
15977 * Makefile.in (distclean): Don't mention gdbserver.
15978
15979 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15980
15981 * source-cache.c (source_cache::ensure): Surround
15982 get_plain_source_lines with a try/catch.
15983 (source_cache::get_line_charpos): Get rid of try/catch
15984 and only check for the return value of "ensure".
15985 * tui/tui-source.c (tui_source_window::set_contents):
15986 Simplify "nlines" calculation.
15987
15988 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15989
15990 * MAINTAINERS (Write After Approval): Add myself.
15991
15992 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15993
15994 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15995 function call.
15996
15997 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15998
15999 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16000
16001 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16002
16003 * nat/riscv-linux-tdesc.h: New file.
16004 * nat/riscv-linux-tdesc.c: New file, taking code from...
16005 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16006 ... here.
16007 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16008 NATDEPFILES.
16009
16010 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16011
16012 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16013 we don't set the fake simulator ptid to the null_ptid.
16014
16015 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16016
16017 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16018 * gdbthread.h (class thread_info) <resumed>: Likewise.
16019 * infrun.c (resume_1): Likewise.
16020 (proceed): Likewise.
16021 (infrun_thread_stop_requested): Likewise.
16022 (stop_all_threads): Likewise.
16023 (handle_inferior_event): Likewise.
16024 (restart_threads): Likewise.
16025 (finish_step_over): Likewise.
16026 (keep_going_stepped_thread): Likewise.
16027 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16028 (linux_handle_extended_wait): Likewise.
16029 * record-btrace.c (get_thread_current_frame_id): Likewise.
16030 * record-full.c (record_full_wait_1): Likewise.
16031 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16032 * target.c (target_resume): Likewise.
16033 * thread.c (set_running_thread): Likewise.
16034
16035 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16036
16037 * f-valprint.c (f77_print_array_1): Changed datatype of index
16038 variable to LONGEST from int to enable it to contain bound
16039 values correctly.
16040
16041 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16042
16043 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16044 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16045 offsets according to FLEN determined.
16046 (riscv_linux_nat_target::read_description): Determine FLEN
16047 dynamically.
16048 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16049 according to FLEN determined.
16050 (riscv_linux_nat_target::store_registers): Likewise.
16051
16052 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16053
16054 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16055 when reg->group is empty and reggroup is not.
16056
16057 2020-01-31 Tom Tromey <tromey@adacore.com>
16058
16059 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16060 Call beneath target's mourn_inferior after unpushing.
16061
16062 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16063
16064 PR tui/9765
16065 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16066 have enough lines to fill the screen, still return the lowest
16067 address we found.
16068
16069 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16070
16071 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16072 '-', '<', and '>' commands.
16073
16074 2020-01-29 Pedro Alves <palves@redhat.com>
16075 Sergio Durigan Junior <sergiodj@redhat.com>
16076
16077 * infcmd.c (construct_inferior_arguments): Assert that
16078 'argc' is greater than 0.
16079
16080 2020-01-29 Luis Machado <luis.machado@linaro.org>
16081
16082 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16083 (BRK_INSN_MASK): Define to 0xd4200000.
16084 (aarch64_program_breakpoint_here_p): New function.
16085 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16086 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16087 breakpoint.c.
16088 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16089 breakpoint.h
16090 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16091 call gdbarch_program_breakpoint_here_p.
16092 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16093 default_program_breakpoint_here_p, changed return type to bool and
16094 simplified.
16095 * breakpoint.h (program_breakpoint_here): Moved prototype to
16096 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16097 return type to bool.
16098 * gdbarch.c: Regenerate.
16099 * gdbarch.h: Regenerate.
16100 * gdbarch.sh (program_breakpoint_here_p): New method.
16101 * infrun.c (handle_signal_stop): Call
16102 gdbarch_program_breakpoint_here_p.
16103
16104 2020-01-26 Tom Tromey <tom@tromey.com>
16105
16106 * ctfread.c (struct ctf_fp_info): Reindent.
16107 (_initialize_ctfread): Remove.
16108
16109 2020-01-26 Tom Tromey <tom@tromey.com>
16110
16111 * psymtab.c (partial_map_expand_apply)
16112 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16113 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16114 (psym_print_stats, psym_expand_symtabs_for_function)
16115 (psym_map_symbol_filenames, psym_map_matching_symbols)
16116 (psym_expand_symtabs_matching)
16117 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16118 (maintenance_check_psymtabs): Use new methods.
16119 * psympriv.h (struct partial_symtab) <readin_p,
16120 get_compunit_symtab>: New methods.
16121 <readin, compunit_symtab>: Remove members.
16122 (struct standard_psymtab): New.
16123 (struct legacy_psymtab): Derive from standard_psymtab.
16124 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16125 standard_psymtab.
16126 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16127
16128 2020-01-26 Tom Tromey <tom@tromey.com>
16129
16130 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16131 read_dependencies. Add assert.
16132 * psymtab.c (partial_symtab::read_dependencies): New method.
16133 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16134 method.
16135 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16136 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16137 read_dependencies.
16138 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16139 Add assert.
16140
16141 2020-01-26 Tom Tromey <tom@tromey.com>
16142
16143 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16144 Call expand_psymtab.
16145 (xcoff_read_symtab): Call expand_psymtab.
16146 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16147 legacy_expand_psymtab.
16148 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16149 method.
16150 (struct legacy_psymtab) <expand_psymtab>: Implement.
16151 <legacy_expand_psymtab>: New member.
16152 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16153 (parse_partial_symbols): Set legacy_expand_psymtab.
16154 (psymtab_to_symtab_1): Change argument order. Call
16155 expand_psymtab.
16156 (new_psymtab): Set legacy_expand_psymtab.
16157 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16158 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16159 expand_psymtab.
16160 (dwarf2_psymtab::expand_psymtab): Rename from
16161 psymtab_to_symtab_1. Call expand_psymtab.
16162 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16163 (dbx_end_psymtab): Likewise.
16164 (dbx_psymtab_to_symtab_1): Change argument order. Call
16165 expand_psymtab.
16166 (dbx_read_symtab): Call expand_psymtab.
16167 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16168 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16169 (ctf_psymtab::read_symtab): Call expand_psymtab.
16170
16171 2020-01-26 Tom Tromey <tom@tromey.com>
16172
16173 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16174 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16175 messages.
16176 * mdebugread.c (mdebug_read_symtab): Remove prints.
16177 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16178 assert.
16179 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16180
16181 2020-01-26 Tom Tromey <tom@tromey.com>
16182
16183 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16184 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16185 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16186 legacy_symtab.
16187 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16188 * psymtab.c (psymtab_to_symtab): Call method.
16189 (dump_psymtab): Update.
16190 * psympriv.h (struct partial_symtab): Add virtual destructor.
16191 <read_symtab>: New method.
16192 (struct legacy_symtab): New.
16193 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16194 (struct pst_map) <pst>: Now a legacy_psymtab.
16195 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16196 (new_psymtab): Use legacy_psymtab.
16197 * dwarf2read.h (struct dwarf2_psymtab): New.
16198 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16199 * dwarf2read.c (dwarf2_create_include_psymtab)
16200 (dwarf2_build_include_psymtabs, create_type_unit_group)
16201 (create_partial_symtab, process_psymtab_comp_unit_reader)
16202 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16203 (set_partial_user): Use dwarf2_psymtab.
16204 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16205 (psymtab_to_symtab_1, process_full_comp_unit)
16206 (process_full_type_unit, dwarf2_ranges_read)
16207 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16208 (dwarf_decode_lines): Use dwarf2_psymtab.
16209 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16210 (add_address_entry_worker, write_one_signatured_type)
16211 (recursively_count_psymbols, recursively_write_psymbols)
16212 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16213 (write_debug_names): Likewise.
16214 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16215 <pst>: Now a legacy_psymtab.
16216 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16217 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16218 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16219 * ctfread.c (struct ctf_psymtab): New.
16220 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16221 ctf_psymtab.
16222 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16223 (create_partial_symtab): Return a ctf_psymtab.
16224 (scan_partial_symbols): Update.
16225
16226 2020-01-26 Tom Tromey <tom@tromey.com>
16227
16228 * xcoffread.c (xcoff_start_psymtab): Use new.
16229 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16230 renamed from start_psymtab_common.
16231 * psympriv.h (struct partial_symtab): Add new constructor.
16232 (start_psymtab_common): Don't declare.
16233 * mdebugread.c (parse_partial_symbols): Use new.
16234 * dwarf2read.c (create_partial_symtab): Use new.
16235 * dbxread.c (start_psymtab): Use new.
16236 * ctfread.c (create_partial_symtab): Use new.
16237
16238 2020-01-26 Tom Tromey <tom@tromey.com>
16239
16240 * xcoffread.c (xcoff_end_psymtab): Use new.
16241 * psymtab.c (start_psymtab_common): Use new.
16242 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16243 Update.
16244 * psympriv.h (struct partial_symtab): Add parameters to
16245 constructor. Don't inline.
16246 (allocate_psymtab): Don't declare.
16247 * mdebugread.c (new_psymtab): Use new.
16248 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16249 * dbxread.c (dbx_end_psymtab): Use new.
16250
16251 2020-01-26 Tom Tromey <tom@tromey.com>
16252
16253 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16254 allocate_psymtab. Update documentation.
16255 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16256 allocate_psymtab. Do not use new.
16257 (allocate_psymtab): Use new. Update.
16258
16259 2020-01-26 Tom Tromey <tom@tromey.com>
16260
16261 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16262 * psymtab.c (psym_print_stats): Update.
16263 * psympriv.h (struct partial_symtab) <readin,
16264 psymtabs_addrmap_supported, anonymous>: Now bool.
16265 * mdebugread.c (psymtab_to_symtab_1): Update.
16266 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16267 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16268 (process_full_comp_unit, process_full_type_unit): Update.
16269 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16270 * ctfread.c (psymtab_to_symtab): Update.
16271
16272 2020-01-26 Tom Tromey <tom@tromey.com>
16273
16274 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16275 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16276 * psymtab.c (psymtab_storage): Delete psymtabs.
16277 (psymtab_storage::allocate_psymtab): Use new.
16278 (psymtab_storage::discard_psymtab): Use delete.
16279 * psympriv.h (struct partial_symtab): Add constructor and
16280 initializers.
16281
16282 2020-01-26 Tom Tromey <tom@tromey.com>
16283
16284 * machoread.c: Do not include psympriv.h.
16285
16286 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16287
16288 * NEWS: Mention the new option and the set/show commands.
16289
16290 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16291
16292 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16293 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16294 (validate_exec_file): New variables, enums, functions.
16295 (exec_file_locate_attach, print_section_info): Style the filenames.
16296 (_initialize_exec): Install show_exec_file_mismatch_command and
16297 set_exec_file_mismatch_command.
16298 * gdbcore.h (validate_exec_file): Declare.
16299 * infcmd.c (attach_command): Call validate_exec_file.
16300 * remote.c ( remote_target::remote_add_inferior): Likewise.
16301
16302 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16303
16304 * frame.c (find_frame_sal): Move call to get_next_frame into more
16305 inner scope.
16306 * inline-frame.c (inilne_state) <inline_state>: Update argument
16307 types.
16308 (inilne_state) <skipped_symbol>: Rename to...
16309 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16310 (skip_inline_frames): Build vector of skipped symbols and use this
16311 to reate the inline_state.
16312 (inline_skipped_symbol): Add a comment and some assertions, fetch
16313 skipped symbol from the list.
16314
16315 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16316
16317 * buildsym.c (lte_is_less_than): Delete.
16318 (buildsym_compunit::end_symtab_with_blockvector): Create local
16319 lambda function to sort line table entries, and use
16320 std::stable_sort instead of std::sort.
16321 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16322 markers when looking for a previous line.
16323
16324 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16325
16326 * dwarf2read.c (lnp_state_machine::record_line): Include
16327 end_sequence parameter in debug print out. Record the line if we
16328 are at an end_sequence marker even if it's not the start of a
16329 statement.
16330 * symmisc.c (maintenance_print_one_line_table): Print end of
16331 sequence markers with 'END' not '0'.
16332
16333 2020-01-24 Pedro Alves <palves@redhat.com>
16334
16335 PR gdb/25410
16336 * thread.c (scoped_restore_current_thread::restore): Use
16337 switch_to_inferior_no_thread.
16338 * exec.c: Include "progspace-and-thread.h".
16339 (add_target_sections, remove_target_sections):
16340 scoped_restore_current_pspace_and_thread instead of
16341 scoped_restore_current_thread.
16342 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16343 and aspace to the inferior before calling clone_program_space.
16344 Remove stale comment.
16345
16346 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16347
16348 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16349 (arm_netbsd_nat_target::fetch_registers): ...this.
16350 (arm_nbsd_nat_target::store_registers): Rename to...
16351 (arm_netbsd_nat_target::store_registers): ...this.
16352
16353 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16354
16355 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16356 register_t.
16357
16358 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16359
16360 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16361 Update comment.
16362 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16363 Likewise.
16364 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16365 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16366 the correct replacement (iterate_over_regset_sections).
16367 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16368 Update comment.
16369
16370 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16371
16372 PR gdb/23718
16373 * gdb/python/python.c (execute_gdb_command): Call
16374 async_enable_stdin in catch block.
16375
16376 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16377
16378 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16379 SWITCH_THRU_ALL_UIS.
16380
16381 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16382
16383 PR tui/9765
16384 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16385 comment, add extra parameter, and update to store previous symbol
16386 when appropriate.
16387 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16388 add extra parameter.
16389 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16390 remove unneeded parameter, add try/catch around gdb_print_insn,
16391 rewrite to add items to asm_lines vector.
16392 (tui_find_backward_disassembly_start_address): New function.
16393 (tui_find_disassembly_address): Updated throughout.
16394 (tui_disasm_window::set_contents): Update for changes to
16395 tui_disassemble.
16396 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16397 number of lines to scroll.
16398
16399 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16400
16401 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16402 (SECT_OFF_DATA): Likewise.
16403 (SECT_OFF_RODATA): Likewise.
16404 (SECT_OFF_TEXT): Likewise.
16405 (SECT_OFF_BSS): Likewise.
16406 (struct objfile) <text_section_offset, data_section_offset>: New
16407 methods.
16408 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16409 objfile::text_section_offset.
16410 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16411 * coffread.c (coff_symtab_read): Likewise.
16412 (enter_linenos): Likewise.
16413 (process_coff_symbol): Likewise.
16414 * ctfread.c (get_objfile_text_range): Likewise.
16415 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16416 Use objfile::data_section_offset.
16417 * dwarf2-frame.c (execute_cfa_program): Use
16418 objfile::text_section_offset.
16419 (dwarf2_frame_find_fde): Likewise.
16420 * dwarf2read.c (create_addrmap_from_index): Likewise.
16421 (create_addrmap_from_aranges): Likewise.
16422 (dw2_find_pc_sect_compunit_symtab): Likewise.
16423 (process_psymtab_comp_unit_reader): Likewise.
16424 (add_partial_symbol): Likewise.
16425 (add_partial_subprogram): Likewise.
16426 (process_full_comp_unit): Likewise.
16427 (read_file_scope): Likewise.
16428 (read_func_scope): Likewise.
16429 (read_lexical_block_scope): Likewise.
16430 (read_call_site_scope): Likewise.
16431 (dwarf2_rnglists_process): Likewise.
16432 (dwarf2_ranges_process): Likewise.
16433 (dwarf2_ranges_read): Likewise.
16434 (dwarf_decode_lines_1): Likewise.
16435 (new_symbol): Likewise.
16436 (dwarf2_fetch_die_loc_sect_off): Likewise.
16437 (dwarf2_per_cu_text_offset): Likewise.
16438 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16439 * hppa-tdep.c (read_unwind_info): Likewise.
16440 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16441 * psympriv.h (struct partial_symtab): Likewise.
16442 * psymtab.c (find_pc_sect_psymtab): Likewise.
16443 * solib-svr4.c (enable_break): Likewise.
16444 * stap-probe.c (relocate_address): Use
16445 objfile::data_section_offset.
16446 * xcoffread.c (enter_line_range): Use
16447 objfile::text_section_offset.
16448 (read_xcoff_symtab): Likewise.
16449
16450 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16451
16452 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16453 declaration to narrower scopes.
16454
16455 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16456
16457 * darwin-nat.h (struct darwin_exception_msg, enum
16458 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16459 Move up.
16460 (class darwin_nat_target) <wait_1, check_new_threads,
16461 decode_exception_message, decode_message, stop_inferior,
16462 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16463 * darwin-nat.c (darwin_check_new_threads): Rename to...
16464 (darwin_nat_target::check_new_threads): ... this.
16465 (darwin_suspend_inferior_it): Remove.
16466 (darwin_decode_exception_message): Rename to...
16467 (darwin_nat_target::decode_exception_message): ... this.
16468 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16469 (darwin_decode_message): Rename to...
16470 (darwin_nat_target::decode_message): ... this.
16471 (cancel_breakpoint): Rename to...
16472 (darwin_nat_target::cancel_breakpoint): ... this.
16473 (darwin_wait): Rename to...
16474 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16475 instead of iterate_over_inferiors.
16476 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16477 (darwin_stop_inferior): Rename to...
16478 (darwin_nat_target::stop_inferior): ... this.
16479 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16480 (darwin_init_thread_list): Rename to...
16481 (darwin_nat_target::init_thread_list): ... this.
16482 (darwin_ptrace_him): Rename to...
16483 (darwin_nat_target::ptrace_him): ... this.
16484 (darwin_nat_target::create_inferior): Pass lambda function to
16485 fork_inferior.
16486 (darwin_nat_target::detach): Call stop_inferior instead of
16487 darwin_stop_inferior.
16488 * fork-inferior.h (fork_inferior): Change init_trace_fun
16489 parameter to gdb::function_view.
16490 * fork-inferior.c (fork_inferior): Likewise.
16491
16492 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16493
16494 * i386-cygwin-tdep.c (core_process_module_section): Update.
16495 * windows-nat.c (struct lm_info_windows): Add text_offset.
16496 (windows_xfer_shared_libraries): Update.
16497 * windows-tdep.c (windows_xfer_shared_library):
16498 Add text_offset_cached argument.
16499 * windows-tdep.h (windows_xfer_shared_library): Update.
16500
16501 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16502
16503 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16504
16505 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16506
16507 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16508 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16509 replace with range-based for.
16510 (gdbsim_interrupt_inferior): Remove.
16511 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16512 with a range-based for. Inline code from
16513 gdbsim_interrupt_inferior.
16514
16515 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16516
16517 * infrun.c (proceed): Fix indentation.
16518
16519 2020-01-21 Tom Tromey <tromey@adacore.com>
16520
16521 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16522 * python/python.c (python_extension_ops): Update.
16523 (gdbpy_colorize): New function.
16524 * python/lib/gdb/__init__.py (colorize): New function.
16525 * extension.h (ext_lang_colorize): Declare.
16526 * extension.c (ext_lang_colorize): New function.
16527 * extension-priv.h (struct extension_language_ops) <colorize>: New
16528 member.
16529 * cli/cli-style.c (_initialize_cli_style): Update help text.
16530
16531 2020-01-21 Luis Machado <luis.machado@linaro.org>
16532
16533 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16534 <cond>: Change type to bool.
16535 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16536 (aarch64_displaced_step_cb): Likewise.
16537 (aarch64_displaced_step_tb): Likewise.
16538
16539 2020-01-21 Luis Machado <luis.machado@linaro.org>
16540
16541 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16542 output.
16543
16544 2020-01-21 Luis Machado <luis.machado@linaro.org>
16545
16546 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16547 <pc_adjust>: Adjust the documentation.
16548 (aarch64_displaced_step_fixup): Check if PC really moved before
16549 adjusting it.
16550
16551 2020-01-19 Tom Tromey <tom@tromey.com>
16552
16553 * disasm.c (~gdb_disassembler): New destructor.
16554 (gdb_buffered_insn_length): Call disassemble_free_target.
16555 * disasm.h (class gdb_disassembler): Declare destructor. Use
16556 DISABLE_COPY_AND_ASSIGN.
16557
16558 2020-01-19 Tom Tromey <tom@tromey.com>
16559
16560 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16561 (die_reader_func_ftype): Remove.
16562 (cutu_reader): New class.
16563 (dw2_get_file_names_reader): Remove "data" parameter.
16564 (dw2_get_file_names): Use cutu_reader.
16565 (create_debug_type_hash_table): Update.
16566 (read_cutu_die_from_dwo): Update comment.
16567 (lookup_dwo_unit): Add dwo_name parameter.
16568 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16569 die_reader_func_ftype and data parameters.
16570 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16571 Remove die_reader_func_ftype and data parameters.
16572 (~cutu_reader): New; from init_cutu_and_read_dies.
16573 (cutu_reader::cutu_reader): Rename from
16574 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16575 and data parameters.
16576 (init_cutu_and_read_dies_simple): Remove.
16577 (struct process_psymtab_comp_unit_data): Remove.
16578 (process_psymtab_comp_unit_reader): Remove data parameter; add
16579 want_partial_unit and pretend_language parameters.
16580 (process_psymtab_comp_unit): Use cutu_reader.
16581 (build_type_psymtabs_reader): Remove data parameter.
16582 (build_type_psymtabs_1): Use cutu_reader.
16583 (process_skeletonless_type_unit): Likewise.
16584 (load_partial_comp_unit_reader): Remove.
16585 (load_partial_comp_unit): Use cutu_reader.
16586 (load_full_comp_unit_reader): Remove.
16587 (load_full_comp_unit): Use cutu_reader.
16588 (struct create_dwo_cu_data): Remove.
16589 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16590 dwo_unit parameters.
16591 (create_cus_hash_table): Use cutu_reader.
16592 (struct dwarf2_read_addr_index_data): Remove.
16593 (dwarf2_read_addr_index_reader): Remove.
16594 (dwarf2_read_addr_index): Use cutu_reader.
16595 (read_signatured_type_reader): Remove.
16596 (read_signatured_type): Use cutu_reader.
16597
16598 2020-01-19 Tom Tromey <tom@tromey.com>
16599
16600 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16601 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16602 (tui_wrefresh): Declare.
16603 * tui/tui-wingeneral.c (suppress_output): New global.
16604 (tui_suppress_output, ~tui_suppress_output): New constructor and
16605 destructor.
16606 (tui_wrefresh): New function.
16607 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16608 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16609 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16610 method.
16611 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16612 tui_wrefresh.
16613 (tui_data_window::no_refresh): New method.
16614 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16615 (tui_reg_command): Use tui_suppress_output
16616 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16617 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16618 method.
16619 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16620
16621 2020-01-19 Tom Tromey <tom@tromey.com>
16622
16623 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16624 Handle case where symtab is null.
16625
16626 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16627
16628 * linux-fork.c (one_fork_p): Simplify.
16629
16630 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16631
16632 * top.c (struct qt_args): Remove.
16633 (kill_or_detach): Change return type to void, replace `void *`
16634 parameter with a proper one.
16635 (print_inferior_quit_action): Likewise.
16636 (quit_confirm): Use range-based for loop to iterate over inferiors.
16637 (quit_force): Likewise.
16638
16639 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16640
16641 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16642 `void *` parameter with proper parameters.
16643 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16644 (print_one_inferior): Change return type to void, replace `void *`
16645 parameter with proper parameters.
16646 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16647 inferiors.
16648 (get_other_inferior): Remove.
16649 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16650 inferiors.
16651
16652 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16653
16654 * mi/mi-interp.c (report_initial_inferior): Remove.
16655 (mi_interp::init): Use range-based for to iterate over inferiors.
16656
16657 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16658
16659 * python/py-inferior.c (build_inferior_list): Remove.
16660 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16661
16662 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16663
16664 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16665 (btrace_stitch_trace): Likewise.
16666 * charset.c (intermediate_encoding): Likewise (vaild).
16667 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16668 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16669 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16670
16671 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16672
16673 * windows-tdep.c (windows_get_tlb_type):
16674 Add rtl_user_process_parameters type.
16675
16676 2020-01-16 Pedro Alves <palves@redhat.com>
16677 Norbert Lange <nolange79@gmail.com>
16678
16679 PR build/24805
16680 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16681 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16682 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16683 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16684 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16685 (ps_plog): Redeclare exported functions with default visibility.
16686
16687 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16688
16689 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16690 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16691
16692 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16693
16694 * infcmd.c (post_create_inferior): Use get_thread_regcache
16695 instead of get_current_regcache.
16696
16697 2020-01-14 Tom Tromey <tom@tromey.com>
16698
16699 PR symtab/12535:
16700 * python/python.c (gdbpy_decode_line): Treat empty string the same
16701 as no argument.
16702
16703 2020-01-14 Tom Tromey <tom@tromey.com>
16704
16705 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16706
16707 2020-01-14 Tom Tromey <tom@tromey.com>
16708
16709 * nat/linux-btrace.c: Don't include <config.h>.
16710 * nat/linux-ptrace.c: Don't include <config.h>.
16711 * nat/x86-linux-dregs.c: Don't include <config.h>.
16712
16713 2020-01-14 Tom Tromey <tom@tromey.com>
16714
16715 * configure: Rebuild.
16716 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16717
16718 2020-01-14 Tom Tromey <tom@tromey.com>
16719
16720 * nat/x86-linux-dregs.c: Include configh.h.
16721 * nat/linux-ptrace.c: Include configh.h.
16722 * nat/linux-btrace.c: Include configh.h.
16723 * defs.h: Include config.h, bfd.h.
16724 * configure.ac: Don't source common.host.
16725 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16726 * configure: Rebuild.
16727 * acinclude.m4: Update path.
16728 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16729 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16730 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16731 (CLIBS): Add LIBSUPPORT.
16732 (CDEPS): Likewise.
16733 (COMMON_SFILES): Remove gdbsupport files.
16734 (HFILES_NO_SRCDIR): Likewise.
16735 (stamp-version): Update path to create-version.sh.
16736 (ALLDEPFILES): Remove gdbsupport files.
16737
16738 2020-01-14 Tom Tromey <tom@tromey.com>
16739
16740 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16741 USE_WIN32API when needed.
16742 * configure.ac (USE_WIN32API): Don't define.
16743 (WIN32LIBS): Use WIN32APILIBS.
16744 * configure: Rebuild.
16745
16746 2020-01-14 Tom Tromey <tom@tromey.com>
16747
16748 * configure: Rebuild.
16749 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16750
16751 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16752
16753 * skip.c (skip_function_command): Make skip w/o arguments use the
16754 name of the inlined function if pc is inside any inlined function.
16755
16756 2020-01-14 Luis Machado <luis.machado@linaro.org>
16757
16758 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16759 * infrun.c (resume_1): Likewise.
16760 (handle_inferior_event): Remove stale comment.
16761 * linux-nat.c (linux_nat_target::resume): Update comments.
16762 (save_stop_reason): Likewise.
16763 (linux_nat_filter_event): Likewise.
16764 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16765
16766 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16767
16768 * elfread.c (record_minimal_symbol): Set section index to 0 for
16769 non-allocatable sections.
16770
16771
16772 2020-01-13 Ali Tamur <tamur@google.com>
16773
16774 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16775 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16776 to gdb::optional. Update comments.
16777 (dwo_file): Update comments.
16778 (read_attribute): Update API to take an additional out parameter,
16779 need_reprocess. This is used to mark attributes that need other
16780 attributes (e.g. str_offsets_base) for correct computation which may not
16781 have been read yet.
16782 (read_attribute_reprocess): New function declaration.
16783 (read_addr_index): Likewise.
16784 (read_dwo_str_index): Likewise.
16785 (read_stub_str_index): Likewise.
16786 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16787 (lookup_addr_base): New function definition.
16788 (lookup_ranges_base): Likewise.
16789 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16790 lookup_ranges_base.
16791 (init_cutu_and_read_dies): Update comments.
16792 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16793 unit. This is used to inherit parent's str_offsets_base and addr_base.
16794 Update comments.
16795 (init_cutu_and_read_dies_simple): Reflect API changes.
16796 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16797 (create_cus_hash_table): Change API to take parent compile unit.
16798 Reflect API changes.
16799 (open_and_init_dwo_file): Reflect API changes.
16800 (dwarf2_get_pc_bounds): Update comments.
16801 (dwarf2_record_block_ranges): Likewise.
16802 (read_full_die_1): Change implementation to reprocess attributes that
16803 need str_offsets_base and addr_base.
16804 (partial_die_info::read): Likewise.
16805 (read_attribute_reprocess): New function definition.
16806 (read_attribute_value): Change API to take an additional out parameter,
16807 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16808 when a non-dwo compile unit has index based attributes.
16809 (read_attribute): Reflect API changes.
16810 (read_addr_index_1): Reflect API changes. Update comments.
16811 (dwarf2_read_addr_index_data): Reflect API changes.
16812 (dwarf2_read_addr_index): Likewise.
16813 (read_str_index): Change API and implementation. This becomes a helper
16814 to be used by the new string index related methods. Update error
16815 message and comments.
16816 (read_dwo_str_index): New function definition.
16817 (read_stub_str_index): Likewise.
16818 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16819 * symfile.h (dwarf2_debug_sections): Likewise.
16820 * xcoffread.c (dwarf2_debug_sections): Likewise.
16821
16822 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16823
16824 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16825 core_reg_sect type to gdb_byte *.
16826 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16827 * cris-tdep.c (fetch_core_registers): Likewise.
16828 * corelow.c (core_target::get_core_register_section): Change
16829 type of `contents` to gdb::byte_vector.
16830
16831 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16832
16833 * tui/tui-wingeneral.c (box_win): Position the title in the center
16834 of the border.
16835
16836 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16837
16838 * corelow.c (core_target::get_core_register_section): Use
16839 std::vector instead of alloca.
16840
16841 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16842
16843 * warning.m4: Add -Wmissing-declarations to build_warnings.
16844 * configure: Re-generate.
16845
16846 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16847
16848 * python/python.c (init__gdb_module): Add declaration.
16849
16850 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16851
16852 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16853 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16854 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16855 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16856 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16857 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16858 * ada-exp.y (_initialize_ada_exp): Add declaration.
16859 * ada-lang.c (_initialize_ada_language): Add declaration.
16860 * ada-tasks.c (_initialize_tasks): Add declaration.
16861 * agent.c (_initialize_agent): Add declaration.
16862 * aix-thread.c (_initialize_aix_thread): Add declaration.
16863 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16864 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16865 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16866 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16867 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16868 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16869 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16870 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16871 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16872 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16873 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16874 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16875 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16876 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16877 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16878 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16879 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16880 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16881 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16882 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16883 * annotate.c (_initialize_annotate): Add declaration.
16884 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16885 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16886 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16887 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16888 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16889 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16890 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16891 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16892 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16893 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16894 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16895 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16896 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16897 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16898 * auto-load.c (_initialize_auto_load): Add declaration.
16899 * auxv.c (_initialize_auxv): Add declaration.
16900 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16901 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16902 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16903 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16904 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16905 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16906 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16907 * breakpoint.c (_initialize_breakpoint): Add declaration.
16908 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16909 * btrace.c (_initialize_btrace): Add declaration.
16910 * charset.c (_initialize_charset): Add declaration.
16911 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16912 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16913 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16914 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16915 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16916 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16917 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16918 * coffread.c (_initialize_coffread): Add declaration.
16919 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16920 * compile/compile.c (_initialize_compile): Add declaration.
16921 * complaints.c (_initialize_complaints): Add declaration.
16922 * completer.c (_initialize_completer): Add declaration.
16923 * copying.c (_initialize_copying): Add declaration.
16924 * corefile.c (_initialize_core): Add declaration.
16925 * corelow.c (_initialize_corelow): Add declaration.
16926 * cp-abi.c (_initialize_cp_abi): Add declaration.
16927 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16928 * cp-support.c (_initialize_cp_support): Add declaration.
16929 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16930 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16931 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16932 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16933 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16934 * ctfread.c (_initialize_ctfread): Add declaration.
16935 * d-lang.c (_initialize_d_language): Add declaration.
16936 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16937 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16938 * dbxread.c (_initialize_dbxread): Add declaration.
16939 * dcache.c (_initialize_dcache): Add declaration.
16940 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16941 * disasm.c (_initialize_disasm): Add declaration.
16942 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16943 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16944 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16945 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16946 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16947 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16948 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16949 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16950 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16951 * elfread.c (_initialize_elfread): Add declaration.
16952 * exec.c (_initialize_exec): Add declaration.
16953 * extension.c (_initialize_extension): Add declaration.
16954 * f-lang.c (_initialize_f_language): Add declaration.
16955 * f-valprint.c (_initialize_f_valprint): Add declaration.
16956 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16957 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16958 * filesystem.c (_initialize_filesystem): Add declaration.
16959 * findcmd.c (_initialize_mem_search): Add declaration.
16960 * findvar.c (_initialize_findvar): Add declaration.
16961 * fork-child.c (_initialize_fork_child): Add declaration.
16962 * frame-base.c (_initialize_frame_base): Add declaration.
16963 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16964 * frame.c (_initialize_frame): Add declaration.
16965 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16966 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16967 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16968 * gcore.c (_initialize_gcore): Add declaration.
16969 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16970 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16971 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16972 * gdbarch.c (_initialize_gdbarch): Add declaration.
16973 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16974 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16975 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16976 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16977 * go-lang.c (_initialize_go_language): Add declaration.
16978 * go32-nat.c (_initialize_go32_nat): Add declaration.
16979 * guile/guile.c (_initialize_guile): Add declaration.
16980 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16981 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16982 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16983 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16984 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16985 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16986 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16987 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16988 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16989 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16990 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16991 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16992 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16993 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16994 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16995 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16996 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16997 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16998 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16999 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17000 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17001 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17002 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17003 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17004 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17005 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17006 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17007 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17008 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17009 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17010 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17011 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17012 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17013 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17014 * infcall.c (_initialize_infcall): Add declaration.
17015 * infcmd.c (_initialize_infcmd): Add declaration.
17016 * inflow.c (_initialize_inflow): Add declaration.
17017 * infrun.c (_initialize_infrun): Add declaration.
17018 * interps.c (_initialize_interpreter): Add declaration.
17019 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17020 * jit.c (_initialize_jit): Add declaration.
17021 * language.c (_initialize_language): Add declaration.
17022 * linux-fork.c (_initialize_linux_fork): Add declaration.
17023 * linux-nat.c (_initialize_linux_nat): Add declaration.
17024 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17025 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17026 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17027 * m2-lang.c (_initialize_m2_language): Add declaration.
17028 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17029 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17030 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17031 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17032 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17033 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17034 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17035 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17036 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17037 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17038 * machoread.c (_initialize_machoread): Add declaration.
17039 * macrocmd.c (_initialize_macrocmd): Add declaration.
17040 * macroscope.c (_initialize_macroscope): Add declaration.
17041 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17042 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17043 * maint.c (_initialize_maint_cmds): Add declaration.
17044 * mdebugread.c (_initialize_mdebugread): Add declaration.
17045 * memattr.c (_initialize_mem): Add declaration.
17046 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17047 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17048 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17049 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17050 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17051 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17052 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17053 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17054 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17055 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17056 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17057 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17058 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17059 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17060 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17061 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17062 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17063 * mipsread.c (_initialize_mipsread): Add declaration.
17064 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17065 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17066 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17067 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17068 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17069 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17070 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17071 * nto-procfs.c (_initialize_procfs): Add declaration.
17072 * objc-lang.c (_initialize_objc_language): Add declaration.
17073 * observable.c (_initialize_observer): Add declaration.
17074 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17075 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17076 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17077 * osabi.c (_initialize_gdb_osabi): Add declaration.
17078 * osdata.c (_initialize_osdata): Add declaration.
17079 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17080 * parse.c (_initialize_parse): Add declaration.
17081 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17082 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17083 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17084 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17085 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17086 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17087 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17088 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17089 * printcmd.c (_initialize_printcmd): Add declaration.
17090 * probe.c (_initialize_probe): Add declaration.
17091 * proc-api.c (_initialize_proc_api): Add declaration.
17092 * proc-events.c (_initialize_proc_events): Add declaration.
17093 * proc-service.c (_initialize_proc_service): Add declaration.
17094 * procfs.c (_initialize_procfs): Add declaration.
17095 * producer.c (_initialize_producer): Add declaration.
17096 * psymtab.c (_initialize_psymtab): Add declaration.
17097 * python/python.c (_initialize_python): Add declaration.
17098 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17099 * record-btrace.c (_initialize_record_btrace): Add declaration.
17100 * record-full.c (_initialize_record_full): Add declaration.
17101 * record.c (_initialize_record): Add declaration.
17102 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17103 * regcache.c (_initialize_regcache): Add declaration.
17104 * reggroups.c (_initialize_reggroup): Add declaration.
17105 * remote-notif.c (_initialize_notif): Add declaration.
17106 * remote-sim.c (_initialize_remote_sim): Add declaration.
17107 * remote.c (_initialize_remote): Add declaration.
17108 * reverse.c (_initialize_reverse): Add declaration.
17109 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17110 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17111 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17112 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17113 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17114 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17115 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17116 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17117 Add declaration.
17118 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17119 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17120 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17121 * rust-exp.y (_initialize_rust_exp): Add declaration.
17122 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17123 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17124 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17125 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17126 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17127 * score-tdep.c (_initialize_score_tdep): Add declaration.
17128 * ser-go32.c (_initialize_ser_dos): Add declaration.
17129 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17130 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17131 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17132 * ser-uds.c (_initialize_ser_socket): Add declaration.
17133 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17134 * serial.c (_initialize_serial): Add declaration.
17135 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17136 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17137 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17138 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17139 * skip.c (_initialize_step_skip): Add declaration.
17140 * sol-thread.c (_initialize_sol_thread): Add declaration.
17141 * solib-aix.c (_initialize_solib_aix): Add declaration.
17142 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17143 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17144 * solib-frv.c (_initialize_frv_solib): Add declaration.
17145 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17146 * solib-target.c (_initialize_solib_target): Add declaration.
17147 * solib.c (_initialize_solib): Add declaration.
17148 * source-cache.c (_initialize_source_cache): Add declaration.
17149 * source.c (_initialize_source): Add declaration.
17150 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17151 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17152 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17153 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17154 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17155 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17156 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17157 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17158 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17159 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17160 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17161 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17162 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17163 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17164 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17165 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17166 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17167 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17168 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17169 * stabsread.c (_initialize_stabsread): Add declaration.
17170 * stack.c (_initialize_stack): Add declaration.
17171 * stap-probe.c (_initialize_stap_probe): Add declaration.
17172 * std-regs.c (_initialize_frame_reg): Add declaration.
17173 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17174 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17175 * symfile.c (_initialize_symfile): Add declaration.
17176 * symmisc.c (_initialize_symmisc): Add declaration.
17177 * symtab.c (_initialize_symtab): Add declaration.
17178 * target.c (_initialize_target): Add declaration.
17179 * target-connection.c (_initialize_target_connection): Add
17180 declaration.
17181 * target-dcache.c (_initialize_target_dcache): Add declaration.
17182 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17183 * thread.c (_initialize_thread): Add declaration.
17184 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17185 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17186 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17187 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17188 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17189 * tracectf.c (_initialize_ctf): Add declaration.
17190 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17191 * tracefile.c (_initialize_tracefile): Add declaration.
17192 * tracepoint.c (_initialize_tracepoint): Add declaration.
17193 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17194 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17195 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17196 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17197 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17198 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17199 * tui/tui.c (_initialize_tui): Add declaration.
17200 * typeprint.c (_initialize_typeprint): Add declaration.
17201 * ui-style.c (_initialize_ui_style): Add declaration.
17202 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17203 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17204 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17205 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17206 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17207 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17208 * unittests/filtered_iterator-selftests.c
17209 (_initialize_filtered_iterator_selftests): Add declaration.
17210 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17211 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17212 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17213 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17214 * unittests/main-thread-selftests.c
17215 (_initialize_main_thread_selftests): Add declaration.
17216 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17217 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17218 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17219 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17220 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17221 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17222 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17223 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17224 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17225 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17226 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17227 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17228 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17229 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17230 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17231 declaration.
17232 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17233 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17234 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17235 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17236 * user-regs.c (_initialize_user_regs): Add declaration.
17237 * utils.c (_initialize_utils): Add declaration.
17238 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17239 * valops.c (_initialize_valops): Add declaration.
17240 * valprint.c (_initialize_valprint): Add declaration.
17241 * value.c (_initialize_values): Add declaration.
17242 * varobj.c (_initialize_varobj): Add declaration.
17243 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17244 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17245 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17246 * windows-nat.c (_initialize_windows_nat): Add declaration.
17247 (_initialize_check_for_gdb_ini): Add declaration.
17248 (_initialize_loadable): Add declaration.
17249 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17250 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17251 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17252 * xcoffread.c (_initialize_xcoffread): Add declaration.
17253 * xml-support.c (_initialize_xml_support): Add declaration.
17254 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17255 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17256 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17257 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17258
17259 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17260
17261 * regformats/regdat.sh: Generate declaration for init function.
17262
17263 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17264
17265 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17266 up.
17267 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17268 close_one_inferior>: New methods.
17269 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17270 pass down target to find_inferior_pid.
17271 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17272 Pass down target to find_inferior_ptid.
17273 (gdbsim_target::create_inferior): Pass down target to
17274 add_thread_silent.
17275 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17276 target down to find_inferior_ptid and switch_to_thread.
17277 (gdbsim_target::close): Update to call close_one_inferior.
17278 (struct resume_data): Remove.
17279 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17280 directly, rather than through a void pointer.
17281 (gdbsim_target::resume): Update to call resume_one_inferior.
17282
17283 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17284
17285 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17286
17287 2020-01-12 Pedro Alves <palves@redhat.com>
17288
17289 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17290 directly for the current inferior instead of
17291 discard_all_inferiors.
17292 (discard_all_inferiors): Delete.
17293
17294 2020-01-11 Tom Tromey <tom@tromey.com>
17295
17296 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17297 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17298 deprecated_safe_get_selected_frame.
17299
17300 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17301
17302 * inferior.c (print_inferior): Switch inferior before printing it.
17303
17304 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17305 Pedro Alves <palves@redhat.com>
17306
17307 * progspace-and-thread.c (switch_to_program_space_and_thread):
17308 Assert there's an inferior for PSPACE. Use
17309 switch_to_inferior_no_thread to switch the inferior too.
17310 * progspace.c (program_space::~program_space): Call
17311 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17312 (program_space::free_all_objfiles): Don't call clear_symtab_users
17313 here.
17314 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17315
17316 2020-01-10 Pedro Alves <palves@redhat.com>
17317
17318 * NEWS: Mention multi-target debugging, "info connections", and
17319 "add-inferior -no-connection".
17320
17321 2020-01-10 Pedro Alves <palves@redhat.com>
17322
17323 * infrun.c: Include "target-connection.h".
17324 (check_multi_target_resumption): New.
17325 (proceed): Call it.
17326 * target-connection.c (make_target_connection_string): Make
17327 extern.
17328 * target-connection.h (make_target_connection_string): Declare.
17329
17330 2020-01-10 Pedro Alves <palves@redhat.com>
17331
17332 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17333 * inferior.c (uiout_field_connection): New function.
17334 (print_inferior): Add new "connection-id" column.
17335 (add_inferior_command): Show connection number/string of added
17336 inferior.
17337 * process-stratum-target.h
17338 (process_stratum_target::connection_string): New virtual method.
17339 (process_stratum_target::connection_number): New field.
17340 * remote.c (remote_target::connection_string): New override.
17341 * target-connection.c: New file.
17342 * target-connection.h: New file.
17343 * target.c (decref_target): Remove process_stratum targets from
17344 the connection list.
17345 (target_stack::push): Add process_stratum targets to the
17346 connection list.
17347
17348 2020-01-10 Pedro Alves <palves@redhat.com>
17349
17350 Revert:
17351 2016-04-12 Pedro Alves <palves@redhat.com>
17352 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17353 Remove references to name.
17354 * serial.h (struct serial) <name>: Delete.
17355
17356 2020-01-10 Pedro Alves <palves@redhat.com>
17357
17358 * gdbarch-selftests.c (register_to_value_test): Remove "target
17359 already pushed" check.
17360
17361 2020-01-10 Pedro Alves <palves@redhat.com>
17362 John Baldwin <jhb@FreeBSD.org>
17363
17364 * aarch64-linux-nat.c
17365 (aarch64_linux_nat_target::thread_architecture): Adjust.
17366 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17367 (task_command_1): Likewise.
17368 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17369 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17370 (aix_thread_target::store_registers)
17371 (aix_thread_target::thread_alive): Adjust.
17372 * amd64-fbsd-tdep.c: Include "inferior.h".
17373 (amd64fbsd_get_thread_local_address): Pass down target.
17374 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17375 thread's gdbarch instead of target_gdbarch.
17376 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17377 get_last_target_status.
17378 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17379 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17380 inferiors.
17381 (update_inserted_breakpoint_locations): Skip if inferiors with no
17382 execution.
17383 (update_global_location_list): When handling moribund locations,
17384 find representative inferior for location's pspace, and use thread
17385 count of its process_stratum target.
17386 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17387 * bsd-uthread.c (bsd_uthread_target::wait): Use
17388 as_process_stratum_target and adjust thread_change_ptid and
17389 add_thread calls.
17390 (bsd_uthread_target::update_thread_list): Use
17391 as_process_stratum_target and adjust find_thread_ptid,
17392 thread_change_ptid and add_thread calls.
17393 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17394 find_thread_ptid call.
17395 * corelow.c (add_to_thread_list): Adjust add_thread call.
17396 (core_target_open): Adjust add_thread_silent and thread_count
17397 calls.
17398 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17399 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17400 * event-top.c (async_disconnect): Pop targets from all inferiors.
17401 * exec.c (add_target_sections): Push exec target on all inferiors
17402 sharing the program space.
17403 (remove_target_sections): Remove the exec target from all
17404 inferiors sharing the program space.
17405 (exec_on_vfork): New.
17406 * exec.h (exec_on_vfork): Declare.
17407 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17408 Pass it down.
17409 (fbsd_nat_target::update_thread_list): Adjust.
17410 (fbsd_nat_target::resume): Adjust.
17411 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17412 down.
17413 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17414 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17415 get_thread_arch_regcache call.
17416 * fork-child.c (gdb_startup_inferior): Pass target down to
17417 startup_inferior and set_executing.
17418 * gdbthread.h (struct process_stratum_target): Forward declare.
17419 (add_thread, add_thread_silent, add_thread_with_info)
17420 (in_thread_list): Add process_stratum_target parameter.
17421 (find_thread_ptid(inferior*, ptid_t)): New overload.
17422 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17423 parameter.
17424 (all_threads()): Delete overload.
17425 (all_threads, all_non_exited_threads): Add process_stratum_target
17426 parameter.
17427 (all_threads_safe): Use brace initialization.
17428 (thread_count): Add process_stratum_target parameter.
17429 (set_resumed, set_running, set_stop_requested, set_executing)
17430 (threads_are_executing, finish_thread_state): Add
17431 process_stratum_target parameter.
17432 (switch_to_thread): Use is_current_thread.
17433 * i386-fbsd-tdep.c: Include "inferior.h".
17434 (i386fbsd_get_thread_local_address): Pass down target.
17435 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17436 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17437 have_inferiors check.
17438 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17439 (inf_ptrace_target::attach): Adjust.
17440 * infcall.c (run_inferior_call): Adjust.
17441 * infcmd.c (run_command_1): Pass target to
17442 scoped_finish_thread_state.
17443 (proceed_thread_callback): Skip inferiors with no execution.
17444 (continue_command): Rename 'all_threads' local to avoid hiding
17445 'all_threads' function. Adjust get_last_target_status call.
17446 (prepare_one_step): Adjust set_running call.
17447 (signal_command): Use user_visible_resume_target. Compare thread
17448 pointers instead of inferior_ptid.
17449 (info_program_command): Adjust to pass down target.
17450 (attach_command): Mark target's 'thread_executing' flag.
17451 (stop_current_target_threads_ns): New, factored out from ...
17452 (interrupt_target_1): ... this. Switch inferior before making
17453 target calls.
17454 * inferior-iter.h
17455 (struct all_inferiors_iterator, struct all_inferiors_range)
17456 (struct all_inferiors_safe_range)
17457 (struct all_non_exited_inferiors_range): Filter on
17458 process_stratum_target too. Remove explicit.
17459 * inferior.c (inferior::inferior): Push dummy target on target
17460 stack.
17461 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17462 Add process_stratum_target parameter, and pass it down.
17463 (have_live_inferiors): Adjust.
17464 (switch_to_inferior_and_push_target): New.
17465 (add_inferior_command, clone_inferior_command): Handle
17466 "-no-connection" parameter. Use
17467 switch_to_inferior_and_push_target.
17468 (_initialize_inferior): Mention "-no-connection" option in
17469 the help of "add-inferior" and "clone-inferior" commands.
17470 * inferior.h: Include "process-stratum-target.h".
17471 (interrupt_target_1): Use bool.
17472 (struct inferior) <push_target, unpush_target, target_is_pushed,
17473 find_target_beneath, top_target, process_target, target_at,
17474 m_stack>: New.
17475 (discard_all_inferiors): Delete.
17476 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17477 (all_inferiors, all_non_exited_inferiors): Add
17478 process_stratum_target parameter.
17479 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17480 (target_last_proc_target): New global.
17481 (follow_fork_inferior): Push target on new inferior. Pass target
17482 to add_thread_silent. Call exec_on_vfork. Handle target's
17483 reference count.
17484 (follow_fork): Adjust get_last_target_status call. Also consider
17485 target.
17486 (follow_exec): Push target on new inferior.
17487 (struct execution_control_state) <target>: New field.
17488 (user_visible_resume_target): New.
17489 (do_target_resume): Call target_async.
17490 (resume_1): Set target's threads_executing flag. Consider resume
17491 target.
17492 (commit_resume_all_targets): New.
17493 (proceed): Also consider resume target. Skip threads of inferiors
17494 with no execution. Commit resumtion in all targets.
17495 (start_remote): Pass current inferior to wait_for_inferior.
17496 (infrun_thread_stop_requested): Consider target as well. Pass
17497 thread_info pointer to clear_inline_frame_state instead of ptid.
17498 (infrun_thread_thread_exit): Consider target as well.
17499 (random_pending_event_thread): New inferior parameter. Use it.
17500 (do_target_wait): Rename to ...
17501 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17502 down.
17503 (threads_are_resumed_pending_p, do_target_wait): New.
17504 (prepare_for_detach): Adjust calls.
17505 (wait_for_inferior): New inferior parameter. Handle it. Use
17506 do_target_wait_1 instead of do_target_wait.
17507 (fetch_inferior_event): Adjust. Switch to representative
17508 inferior. Pass target down.
17509 (set_last_target_status): Add process_stratum_target parameter.
17510 Save target in global.
17511 (get_last_target_status): Add process_stratum_target parameter and
17512 handle it.
17513 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17514 (context_switch): Check inferior_ptid == null_ptid before calling
17515 inferior_thread().
17516 (get_inferior_stop_soon): Pass down target.
17517 (wait_one): Rename to ...
17518 (poll_one_curr_target): ... this.
17519 (struct wait_one_event): New.
17520 (wait_one): New.
17521 (stop_all_threads): Adjust.
17522 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17523 event's target.
17524 (switch_back_to_stepped_thread): Also consider target.
17525 (print_stop_event): Update.
17526 (normal_stop): Update. Also consider the resume target.
17527 * infrun.h (wait_for_inferior): Remove declaration.
17528 (user_visible_resume_target): New declaration.
17529 (get_last_target_status, set_last_target_status): New
17530 process_stratum_target parameter.
17531 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17532 process_stratum_target parameter, and use it.
17533 (clear_inline_frame_state (thread_info*)): New.
17534 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17535 process_stratum_target parameter.
17536 (clear_inline_frame_state (thread_info*)): Declare.
17537 * linux-fork.c (delete_checkpoint_command): Pass target down to
17538 find_thread_ptid.
17539 (checkpoint_command): Adjust.
17540 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17541 instead of just tweaking inferior_ptid.
17542 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17543 (exit_lwp): Pass target down to find_thread_ptid.
17544 (attach_proc_task_lwp_callback): Pass target down to
17545 add_thread/set_running/set_executing.
17546 (linux_nat_target::attach): Pass target down to
17547 thread_change_ptid.
17548 (get_detach_signal): Pass target down to find_thread_ptid.
17549 Consider last target status's target.
17550 (linux_resume_one_lwp_throw, resume_lwp)
17551 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17552 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17553 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17554 (linux_nat_target::async_wait_fd): New.
17555 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17556 target down.
17557 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17558 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17559 * linux-thread-db.c (struct thread_db_info::process_target): New
17560 field.
17561 (add_thread_db_info): Save target.
17562 (get_thread_db_info): New process_stratum_target parameter. Also
17563 match target.
17564 (delete_thread_db_info): New process_stratum_target parameter.
17565 Also match target.
17566 (thread_from_lwp): Adjust to pass down target.
17567 (thread_db_notice_clone): Pass down target.
17568 (check_thread_db_callback): Pass down target.
17569 (try_thread_db_load_1): Always push the thread_db target.
17570 (try_thread_db_load, record_thread): Pass target down.
17571 (thread_db_target::detach): Pass target down. Always unpush the
17572 thread_db target.
17573 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17574 target down. Always unpush the thread_db target.
17575 (find_new_threads_callback, thread_db_find_new_threads_2)
17576 (thread_db_target::update_thread_list): Pass target down.
17577 (thread_db_target::pid_to_str): Pass current inferior down.
17578 (thread_db_target::get_thread_local_address): Pass target down.
17579 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17580 target down.
17581 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17582 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17583 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17584 (procfs_init_inferior): Rename to ...
17585 (procfs_target::procfs_init_inferior): ... this and adjust.
17586 (procfs_target::create_inferior, procfs_notice_thread)
17587 (procfs_do_thread_registers): Adjust.
17588 * ppc-fbsd-tdep.c: Include "inferior.h".
17589 (ppcfbsd_get_thread_local_address): Pass down target.
17590 * proc-service.c (ps_xfer_memory): Switch current inferior and
17591 program space as well.
17592 (get_ps_regcache): Pass target down.
17593 * process-stratum-target.c
17594 (process_stratum_target::thread_address_space)
17595 (process_stratum_target::thread_architecture): Pass target down.
17596 * process-stratum-target.h
17597 (process_stratum_target::threads_executing): New field.
17598 (as_process_stratum_target): New.
17599 * ravenscar-thread.c
17600 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17601 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17602 down.
17603 * record-btrace.c (record_btrace_target::info_record): Adjust.
17604 (record_btrace_target::record_method)
17605 (record_btrace_target::record_is_replaying)
17606 (record_btrace_target::fetch_registers)
17607 (get_thread_current_frame_id, record_btrace_target::resume)
17608 (record_btrace_target::wait, record_btrace_target::stop): Pass
17609 target down.
17610 * record-full.c (record_full_wait_1): Switch to event thread.
17611 Pass target down.
17612 * regcache.c (regcache::regcache)
17613 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17614 process_stratum_target parameter and handle it.
17615 (current_thread_target): New global.
17616 (get_thread_regcache): Add process_stratum_target parameter and
17617 handle it. Switch inferior before calling target method.
17618 (get_thread_regcache): Pass target down.
17619 (get_thread_regcache_for_ptid): Pass target down.
17620 (registers_changed_ptid): Add process_stratum_target parameter and
17621 handle it.
17622 (registers_changed_thread, registers_changed): Pass target down.
17623 (test_get_thread_arch_aspace_regcache): New.
17624 (current_regcache_test): Define a couple local test_target_ops
17625 instances and use them for testing.
17626 (readwrite_regcache): Pass process_stratum_target parameter.
17627 (cooked_read_test, cooked_write_test): Pass mock_target down.
17628 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17629 (get_thread_arch_aspace_regcache): Add process_stratum_target
17630 parameter.
17631 (regcache::target): New method.
17632 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17633 (regcache::registers_changed_ptid): Add process_stratum_target
17634 parameter.
17635 (regcache::m_target): New field.
17636 (registers_changed_ptid): Add process_stratum_target parameter.
17637 * remote.c (remote_state::supports_vCont_probed): New field.
17638 (remote_target::async_wait_fd): New method.
17639 (remote_unpush_and_throw): Add remote_target parameter.
17640 (get_current_remote_target): Adjust.
17641 (remote_target::remote_add_inferior): Push target.
17642 (remote_target::remote_add_thread)
17643 (remote_target::remote_notice_new_inferior)
17644 (get_remote_thread_info): Pass target down.
17645 (remote_target::update_thread_list): Skip threads of inferiors
17646 bound to other targets. (remote_target::close): Don't discard
17647 inferiors. (remote_target::add_current_inferior_and_thread)
17648 (remote_target::process_initial_stop_replies)
17649 (remote_target::start_remote)
17650 (remote_target::remote_serial_quit_handler): Pass down target.
17651 (remote_target::remote_unpush_target): New remote_target
17652 parameter. Unpush the target from all inferiors.
17653 (remote_target::remote_unpush_and_throw): New remote_target
17654 parameter. Pass it down.
17655 (remote_target::open_1): Check whether the current inferior has
17656 execution instead of checking whether any inferior is live. Pass
17657 target down.
17658 (remote_target::remote_detach_1): Pass down target. Use
17659 remote_unpush_target.
17660 (extended_remote_target::attach): Pass down target.
17661 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17662 (remote_target::append_resumption): Pass down target.
17663 (remote_target::append_pending_thread_resumptions)
17664 (remote_target::remote_resume_with_hc, remote_target::resume)
17665 (remote_target::commit_resume): Pass down target.
17666 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17667 (remote_target::interrupt_query)
17668 (remote_target::remove_new_fork_children)
17669 (remote_target::check_pending_events_prevent_wildcard_vcont)
17670 (remote_target::remote_parse_stop_reply)
17671 (remote_target::process_stop_reply): Pass down target.
17672 (first_remote_resumed_thread): New remote_target parameter. Pass
17673 it down.
17674 (remote_target::wait_as): Pass down target.
17675 (unpush_and_perror): New remote_target parameter. Pass it down.
17676 (remote_target::readchar, remote_target::remote_serial_write)
17677 (remote_target::getpkt_or_notif_sane_1)
17678 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17679 down target.
17680 (remote_target::mourn_inferior): Pass down target. Use
17681 remote_unpush_target.
17682 (remote_target::core_of_thread)
17683 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17684 (remote_target::pid_to_exec_file)
17685 (remote_target::thread_handle_to_thread_info): Pass down target.
17686 (remote_target::async_wait_fd): New.
17687 * riscv-fbsd-tdep.c: Include "inferior.h".
17688 (riscv_fbsd_get_thread_local_address): Pass down target.
17689 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17690 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17691 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17692 Adjust.
17693 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17694 * solib-svr4.c (enable_break): Pass down target.
17695 * spu-multiarch.c (parse_spufs_run): Pass down target.
17696 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17697 * target-delegates.c: Regenerate.
17698 * target.c (g_target_stack): Delete.
17699 (current_top_target): Return the current inferior's top target.
17700 (target_has_execution_1): Refer to the passed-in inferior's top
17701 target.
17702 (target_supports_terminal_ours): Check whether the initial
17703 inferior was already created.
17704 (decref_target): New.
17705 (target_stack::push): Incref/decref the target.
17706 (push_target, push_target, unpush_target): Adjust.
17707 (target_stack::unpush): Defref target.
17708 (target_is_pushed): Return bool. Adjust to refer to the current
17709 inferior's target stack.
17710 (dispose_inferior): Delete, and inline parts ...
17711 (target_preopen): ... here. Only dispose of the current inferior.
17712 (target_detach): Hold strong target reference while detaching.
17713 Pass target down.
17714 (target_thread_name): Add assertion.
17715 (target_resume): Pass down target.
17716 (target_ops::beneath, find_target_at): Adjust to refer to the
17717 current inferior's target stack.
17718 (get_dummy_target): New.
17719 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17720 has a thread running.
17721 (initialize_targets): Rename to ...
17722 (_initialize_target): ... this.
17723 * target.h: Include "gdbsupport/refcounted-object.h".
17724 (struct target_ops): Inherit refcounted_object.
17725 (target_ops::shortname, target_ops::longname): Make const.
17726 (target_ops::async_wait_fd): New method.
17727 (decref_target): Declare.
17728 (struct target_ops_ref_policy): New.
17729 (target_ops_ref): New typedef.
17730 (get_dummy_target): Declare function.
17731 (target_is_pushed): Return bool.
17732 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17733 (all_matching_threads_iterator::all_matching_threads_iterator):
17734 Handle filter target.
17735 * thread-iter.h (struct all_matching_threads_iterator, struct
17736 all_matching_threads_range, class all_non_exited_threads_range):
17737 Filter by target too. Remove explicit.
17738 * thread.c (threads_executing): Delete.
17739 (inferior_thread): Pass down current inferior.
17740 (clear_thread_inferior_resources): Pass down thread pointer
17741 instead of ptid_t.
17742 (add_thread_silent, add_thread_with_info, add_thread): Add
17743 process_stratum_target parameter. Use it for thread and inferior
17744 searches.
17745 (is_current_thread): New.
17746 (thread_info::deletable): Use it.
17747 (find_thread_ptid, thread_count, in_thread_list)
17748 (thread_change_ptid, set_resumed, set_running): New
17749 process_stratum_target parameter. Pass it down.
17750 (set_executing): New process_stratum_target parameter. Pass it
17751 down. Adjust reference to 'threads_executing'.
17752 (threads_are_executing): New process_stratum_target parameter.
17753 Adjust reference to 'threads_executing'.
17754 (set_stop_requested, finish_thread_state): New
17755 process_stratum_target parameter. Pass it down.
17756 (switch_to_thread): Also match inferior.
17757 (switch_to_thread): New process_stratum_target parameter. Pass it
17758 down.
17759 (update_threads_executing): Reimplement.
17760 * top.c (quit_force): Pop targets from all inferior.
17761 (gdb_init): Don't call initialize_targets.
17762 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17763 Declare.
17764 (windows_add_thread, windows_delete_thread): Adjust.
17765 (get_windows_debug_event): Rename to ...
17766 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17767 * tracefile-tfile.c (tfile_target_open): Pass down target.
17768 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17769 Forward declare.
17770 (switch_to_thread): Add process_stratum_target parameter.
17771 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17772 parameter. Use it.
17773 (mi_on_resume): Pass target down.
17774 * nat/fork-inferior.c (startup_inferior): Add
17775 process_stratum_target parameter. Pass it down.
17776 * nat/fork-inferior.h (startup_inferior): Add
17777 process_stratum_target parameter.
17778 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17779
17780 2020-01-10 Pedro Alves <palves@redhat.com>
17781
17782 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17783 directly. Instead find the first thread in the thread list and
17784 use switch_to_thread.
17785
17786 2020-01-10 Pedro Alves <palves@redhat.com>
17787
17788 * remote.c (remote_target::remote_add_inferior): Don't bind a
17789 process to the current inferior if the current inferior is already
17790 bound to a process.
17791
17792 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17793 Pedro Alves <palves@redhat.com>
17794
17795 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17796 If no process is specified, return null_ptid instead of
17797 inferior_ptid.
17798 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17799 TARGET_WAITKIND_SIGNALLED with no pid.
17800
17801 2020-01-10 Pedro Alves <palves@redhat.com>
17802
17803 * remote.c (first_remote_resumed_thread): New.
17804 (remote_target::wait_as): Use it as default event_ptid instead of
17805 inferior_ptid.
17806
17807 2020-01-10 Pedro Alves <palves@redhat.com>
17808
17809 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17810
17811 2020-01-10 Pedro Alves <palves@redhat.com>
17812
17813 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17814 not -1.
17815
17816 2020-01-10 Pedro Alves <palves@redhat.com>
17817
17818 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17819 ptid to get_last_target_status.
17820 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17821 ptid to get_last_target_status.
17822 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17823 get_last_target_status.
17824 (info_program_command): Don't pass a target_waitstatus to
17825 get_last_target_status.
17826 * infrun.c (init_wait_for_inferior): Use
17827 nullify_last_target_wait_ptid.
17828 (get_last_target_status): Handle nullptr arguments.
17829 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17830 (print_stop_event): Don't pass a ptid to get_last_target_status.
17831 (normal_stop): Don't pass a ptid to get_last_target_status.
17832 * infrun.h (get_last_target_status, set_last_target_status): Move
17833 comments here and update.
17834 (nullify_last_target_wait_ptid): Declare.
17835 * linux-fork.c (fork_load_infrun_state): Remove local extern
17836 declaration of nullify_last_target_wait_ptid.
17837 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17838 to get_last_target_status.
17839
17840 2020-01-10 Pedro Alves <palves@redhat.com>
17841
17842 * gdbthread.h (scoped_restore_current_thread)
17843 <dont_restore, restore, m_dont_restore>: Declare.
17844 * thread.c (thread_alive): Add assertion. Return bool.
17845 (switch_to_thread_if_alive): New.
17846 (prune_threads): Switch inferior/thread.
17847 (print_thread_info_1): Switch thread before calling target methods.
17848 (scoped_restore_current_thread::restore): New, factored out from
17849 ...
17850 (scoped_restore_current_thread::~scoped_restore_current_thread):
17851 ... this.
17852 (scoped_restore_current_thread::scoped_restore_current_thread):
17853 Add assertion.
17854 (thread_apply_all_command, thread_select): Use
17855 switch_to_thread_if_alive.
17856 * infrun.c (proceed, restart_threads, handle_signal_stop)
17857 (switch_back_to_stepped_thread): Switch current thread before
17858 calling target methods.
17859
17860 2020-01-10 Pedro Alves <palves@redhat.com>
17861
17862 * inferior.c (switch_to_inferior_no_thread): New function,
17863 factored out from ...
17864 (inferior_command): ... here.
17865 * inferior.h (switch_to_inferior_no_thread): Declare.
17866 * mi/mi-main.c (run_one_inferior): Use
17867 switch_to_inferior_no_thread.
17868
17869 2020-01-10 Pedro Alves <palves@redhat.com>
17870
17871 * infcmd.c (kill_command): Remove dead code.
17872
17873 2020-01-10 Pedro Alves <palves@redhat.com>
17874
17875 * remote.c (remote_target::mourn_inferior): No longer check
17876 whether the target is running.
17877
17878 2020-01-10 Pedro Alves <palves@redhat.com>
17879
17880 * corelow.c (core_target::has_execution): Change parameter type to
17881 inferior pointer.
17882 * inferior.c (number_of_live_inferiors): Use
17883 inferior::has_execution instead of target_has_execution_1.
17884 * inferior.h (inferior::has_execution): New.
17885 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17886 inferior::has_execution instead of target_has_execution_1.
17887 * process-stratum-target.c
17888 (process_stratum_target::has_execution): Change parameter type to
17889 inferior pointer. Check the inferior's PID instead of
17890 inferior_ptid.
17891 * process-stratum-target.h
17892 (process_stratum_target::has_execution): Change parameter type to
17893 inferior pointer.
17894 * record-full.c (record_full_core_target::has_execution): Change
17895 parameter type to inferior pointer.
17896 * target.c (target_has_execution_1): Change parameter type to
17897 inferior pointer.
17898 (target_has_execution_current): Adjust.
17899 * target.h (target_ops::has_execution): Change parameter type to
17900 inferior pointer.
17901 (target_has_execution_1): Change parameter type to inferior
17902 pointer. Change return type to bool.
17903 * tracefile.h (tracefile_target::has_execution): Change parameter
17904 type to inferior pointer.
17905
17906 2020-01-10 Pedro Alves <palves@redhat.com>
17907
17908 * exceptions.c (print_flush): Remove current_top_target() check.
17909
17910 2020-01-10 Pedro Alves <palves@redhat.com>
17911
17912 * remote.c (show_remote_exec_file): Show the current inferior's
17913 exec-file instead of the command variable's value.
17914
17915 2020-01-10 Pedro Alves <palves@redhat.com>
17916
17917 * record-full.c (record_full_resume_ptid): New global.
17918 (record_full_target::resume): Set it.
17919 (record_full_wait_1): Use record_full_resume_ptid instead of
17920 inferior_ptid.
17921
17922 2020-01-10 Pedro Alves <palves@redhat.com>
17923
17924 * gdbthread.h (scoped_restore_current_thread)
17925 <dont_restore, restore, m_dont_restore>: Declare.
17926 * thread.c (thread_alive): Add assertion. Return bool.
17927 (switch_to_thread_if_alive): New.
17928 (prune_threads): Switch inferior/thread.
17929 (print_thread_info_1): Switch thread before calling target methods.
17930 (scoped_restore_current_thread::restore): New, factored out from
17931 ...
17932 (scoped_restore_current_thread::~scoped_restore_current_thread):
17933 ... this.
17934 (scoped_restore_current_thread::scoped_restore_current_thread):
17935 Add assertion.
17936 (thread_apply_all_command, thread_select): Use
17937 switch_to_thread_if_alive.
17938
17939 2020-01-10 George Barrett <bob@bob131.so>
17940
17941 * stap-probe.c (stap_modify_semaphore): Don't check for null
17942 semaphores.
17943 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17944 for null semaphores.
17945
17946 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17947
17948 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17949 all source windows, and maintain horizontal scroll status while
17950 doing so.
17951
17952 2020-01-09 Tom Tromey <tom@tromey.com>
17953
17954 PR tui/18932:
17955 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17956 update_source_window, not print_source_lines.
17957
17958 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17959
17960 * tui/tui.c (tui_enable): Register tui hooks after calling
17961 tui_display_main.
17962
17963 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17964
17965 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17966
17967 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17968
17969 * thread.c (print_thread_info_1): Fix indentation.
17970
17971 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17972
17973 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17974 unique_xmalloc_ptr outside the if to always free the demangled name.
17975
17976 2020-01-08 Tom Tromey <tromey@adacore.com>
17977
17978 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17979 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17980 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17981 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17982 Remove.
17983 (section_offsets): New typedef.
17984 * symtab.c (fixup_section, get_msymbol_address): Update.
17985 * symmisc.c (dump_msymbols): Update.
17986 * symfile.h (relative_addr_info_to_section_offsets)
17987 (symfile_map_offsets_to_segments): Update.
17988 * symfile.c (build_section_addr_info_from_objfile)
17989 (init_objfile_sect_indices): Update.
17990 (struct place_section_arg): Change type of "offsets".
17991 (place_section): Update.
17992 (relative_addr_info_to_section_offsets): Change type of
17993 "section_offsets". Remove "num_sections" parameter.
17994 (default_symfile_offsets, syms_from_objfile_1)
17995 (set_objfile_default_section_offset): Update.
17996 (reread_symbols): No need to preserve section offsets by hand.
17997 (symfile_map_offsets_to_segments): Change type of "offsets".
17998 * stap-probe.c (relocate_address): Update.
17999 * stabsread.h (process_one_symbol): Update.
18000 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18001 (solib_target_relocate_section_addresses): Update.
18002 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18003 Update.
18004 * solib-frv.c (frv_relocate_main_executable): Update.
18005 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18006 * solib-aix.c (solib_aix_get_section_offsets): Change return
18007 type.
18008 (solib_aix_solib_create_inferior_hook): Update.
18009 * remote.c (remote_target::get_offsets): Update.
18010 * psymtab.c (find_pc_sect_psymtab): Update.
18011 * psympriv.h (struct partial_symbol) <address, text_low,
18012 text_high>: Update.
18013 * objfiles.h (obj_section_offset): Update.
18014 (struct objfile) <section_offsets>: Change type.
18015 <num_sections>: Remove.
18016 (objfile_relocate): Update.
18017 * objfiles.c (entry_point_address_query): Update
18018 (relocate_one_symbol): Change type of "section_offsets".
18019 (objfile_relocate1, objfile_relocate1): Change type of
18020 "new_offsets".
18021 (objfile_rebase1): Update.
18022 * mipsread.c (mipscoff_symfile_read): Update.
18023 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18024 parameter.
18025 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18026 (parse_external, psymtab_to_symtab_1): Update.
18027 * machoread.c (macho_symfile_offsets): Update.
18028 * ia64-tdep.c (ia64_find_unwind_table): Update.
18029 * hppa-tdep.c (read_unwind_info): Update.
18030 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18031 * dwarf2read.c (create_addrmap_from_index)
18032 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18033 (process_psymtab_comp_unit_reader, add_partial_symbol)
18034 (add_partial_subprogram, process_full_comp_unit)
18035 (read_file_scope, read_func_scope, read_lexical_block_scope)
18036 (read_call_site_scope, dwarf2_rnglists_process)
18037 (dwarf2_ranges_process, dwarf2_ranges_read)
18038 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18039 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18040 Update.
18041 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18042 Update.
18043 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18044 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18045 (process_one_symbol): Change type of "section_offsets".
18046 * ctfread.c (get_objfile_text_range): Update.
18047 * coffread.c (coff_symtab_read, enter_linenos)
18048 (process_coff_symbol): Update.
18049 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18050 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18051
18052 2020-01-08 Tom Tromey <tromey@adacore.com>
18053
18054 * dwarf2read.c (parse_macro_definition): Use std::string.
18055 (parse_macro_definition): Likewise.
18056
18057 2020-01-08 Tom Tromey <tromey@adacore.com>
18058
18059 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18060 (ATTR_ALLOC_CHUNK): Remove.
18061
18062 2020-01-08 Tom Tromey <tromey@adacore.com>
18063
18064 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18065
18066 2020-01-08 Tom Tromey <tromey@adacore.com>
18067
18068 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18069 (dwarf2_compute_name, open_dwo_file): Likewise.
18070 (process_enumeration_scope): Use std::vector.
18071 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18072 (partial_die_info::fixup, dwarf2_start_subfile)
18073 (guess_full_die_structure_name, dwarf2_name): Likewise.
18074 (determine_prefix): Update.
18075 (guess_full_die_structure_name): Make return type const.
18076 (partial_die_full_name): Return unique_xmalloc_ptr.
18077 (DW_FIELD_ALLOC_CHUNK): Remove.
18078
18079 2020-01-07 Tom Tromey <tromey@adacore.com>
18080
18081 PR build/24937:
18082 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18083
18084 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18085
18086 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18087
18088 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18089
18090 * stack.c (print_frame_info): Move disassemble_next_line code
18091 inside source_print block.
18092
18093 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18094
18095 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18096 gdb/signals.h, as we are now using native signal symbols.
18097
18098 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18099
18100 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18101 overflow by an early check of content vs threshold.
18102 * tui/tui-source.c (tui_source_window::line_is_displayed):
18103 Likewise.
18104
18105 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18106
18107 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18108
18109 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18110
18111 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18112 export table if no section contains it's RVA.
18113
18114 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18115
18116 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18117
18118 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18119
18120 * source.c (print_source_lines_base): Set last_line_listed.
18121
18122 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18123
18124 * tui/tui-disasm.c: Remove trailing spaces.
18125
18126 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18127 Pedro Alves <palves@redhat.com>
18128
18129 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18130 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18131 (windows_gdb_signal_to_target): New function, uses the above
18132 enumeration to convert GDB internal signal codes to equivalent
18133 Windows codes.
18134 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18135 * windows-nat.c: Include "gdb_wait.h".
18136 (get_windows_debug_event): Extract the fatal exception from the
18137 exit status and convert to the equivalent Posix signal number.
18138 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18139 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18140 * gdbsupport/gdb_wait.c: New file, implements
18141 windows_status_to_termsig.
18142 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18143 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18144
18145 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18146
18147 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18148 show_layout.
18149
18150 2020-01-05 Luis Machado <luis.machado@linaro.org>
18151
18152 * aarch64-linux-nat.c
18153 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18154 and bfd_mach_aarch64.
18155
18156 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18157
18158 * ui-file.c (stdio_file::can_emit_style_escape)
18159 (tee_file::can_emit_style_escape): Ensure style is used also on
18160 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18161 to gdb_stdout.
18162 * main.c (set_gdb_data_directory): Use file style to output the
18163 warning that the given pathname is not a directory.
18164 * top.c (show_history_filename, gdb_safe_append_history)
18165 (show_gdb_datadir): Use file style.
18166
18167 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18168
18169 * solib-target.c (struct lm_info_target):
18170 Change offsets to be a unique_xmalloc_ptr.
18171 (solib_target_relocate_section_addresses): Update.
18172
18173 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18174
18175 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18176
18177 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18178
18179 * MAINTAINERS (Write After Approval): Add myself.
18180
18181 2020-01-02 Luis Machado <luis.machado@linaro.org>
18182
18183 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18184 Cell BE architecture.
18185 * target.h (struct target_ops) <thread_architecture>: Likewise.
18186
18187 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18188
18189 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18190
18191 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18192
18193 * MAINTAINERS (Write After Approval): Add myself.
18194
18195 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18196
18197 * gdbarch.sh: Update copyright year range of generated files.
18198
18199 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18200
18201 Update copyright year range in all GDB files.
18202
18203 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18204
18205 * copyright.py: Convert to Python 3.
18206
18207 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18208
18209 * copyright.py: Adapt after move of gnulib directory from gdb
18210 directory to toplevel directory.
18211
18212 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18213
18214 * copyright.py (main): Exit if run from the wrong directory.
18215
18216 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18217
18218 * top.c (print_gdb_version): Change copyright year to 2020.
18219
18220 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18221
18222 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18223
18224 For older changes see ChangeLog-2019.
18225 \f
18226 Local Variables:
18227 mode: change-log
18228 left-margin: 8
18229 fill-column: 74
18230 version-control: never
18231 coding: utf-8
18232 End:
This page took 0.416638 seconds and 4 git commands to generate.