install_variable cannot fail
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
07d9937a
TT
12020-12-11 Tom Tromey <tom@tromey.com>
2
3 * varobj.c (varobj_create): Update.
4 (install_variable): Return void.
5
1345dee2
TT
62020-12-11 Tom Tromey <tom@tromey.com>
7
8 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
9
446d2c03
TT
102020-12-11 Tom Tromey <tom@tromey.com>
11
12 * varobj.c (varobj_clear_saved_item): Remove.
13 (update_dynamic_varobj_children): Update.
14 (varobj::~varobj): Don't call varobj_clear_saved_item.
15
11106495
TT
162020-12-11 Tom Tromey <tom@tromey.com>
17
18 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
19 (update_dynamic_varobj_children, create_child)
20 (create_child_with_value): Update.
21 * varobj-iter.h (struct varobj_item) <value>: Now a
22 value_ref_ptr.
23 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
24
24fd95b4
TT
252020-12-11 Tom Tromey <tom@tromey.com>
26
27 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
28 (varobj_get_iterator): Return unique_ptr.
29 (update_dynamic_varobj_children, install_visualizer)
30 (varobj::~varobj): Update.
31 * python/python-internal.h (py_varobj_get_iterator): Return
32 unique_ptr.
33 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
34
74462664
TT
352020-12-11 Tom Tromey <tom@tromey.com>
36
37 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
38 (varobj_clear_saved_item, update_dynamic_varobj_children):
39 Update.
40
60ee72f6
TT
412020-12-11 Tom Tromey <tom@tromey.com>
42
43 * varobj.c (update_dynamic_varobj_children): Update.
44 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
45 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
46 type.
47 (py_varobj_iter::next): Likewise.
48
54746ce3
TT
492020-12-11 Tom Tromey <tom@tromey.com>
50
51 * varobj.c (update_dynamic_varobj_children, install_visualizer)
52 (varobj::~varobj): Update.
53 * varobj-iter.h (struct varobj_iter): Change to interface class.
54 (struct varobj_iter_ops): Remove.
55 (varobj_iter_next, varobj_iter_delete): Remove.
56 * python/py-varobj.c (struct py_varobj_iter): Derive from
57 varobj_iter. Add constructor, destructor. Rename members.
58 (py_varobj_iter::~py_varobj_iter): Rename from
59 py_varobj_iter_dtor.
60 (py_varobj_iter::next): Rename from py_varobj_iter_next.
61 (py_varobj_iter_ops): Remove.
62 (py_varobj_iter): Rename from py_varobj_iter_ctor.
63 (py_varobj_iter_new): Remove.
64 (py_varobj_get_iterator): Update.
65
d8f168dd
TT
662020-12-11 Tom Tromey <tom@tromey.com>
67
68 * varobj.h (all_root_varobjs): Take a function_view.
69 * varobj.c (all_root_varobjs): Take a function_view.
70 (varobj_invalidate_iter): Remove unused parameter.
71 (varobj_invalidate): Update.
72 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
73 (mi_cmd_var_update_iter): Change parameters.
74
76deb5d9
TT
752020-12-11 Tom Tromey <tom@tromey.com>
76
77 * varobj.c (struct varobj_root) <next>: Remove.
78 (struct vlist): Remove.
79 (rootlist): Now a std::list.
80 (install_variable, uninstall_variable, all_root_varobjs): Update.
81
2c1413a9
TT
822020-12-11 Tom Tromey <tom@tromey.com>
83
84 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
85 (varobj_table): Now htab_t.
86 (varobj_get_handle, install_variable, uninstall_variable):
87 Update.
88 (hash_varobj, eq_varobj_and_string): New functions.
89 (hash_varobj): Update.
90
b6433ede
TT
912020-12-11 Tom Tromey <tom@tromey.com>
92
93 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
94 * ada-lang.c (check_status_exception): Update.
95 * breakpoint.c (free_bp_location): Remove.
96 (decref_bp_location): Use bp_location_ref_policy.
97 (bpstats::bpstats): Don't call incref_bp_location.
98 (bpstats::~bpstats): Remove.
99 (bpstats::bpstats): Update.
100 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
101 (bp_location::bp_location): Update.
102 (incref_bp_location): Remove.
103 (bkpt_print_it): Update.
104 * breakpoint.h (class bp_location): Derive from
105 refcounted_object.
106 (struct bpstats): Remove destructor.
107 <bp_location_at>: Now a bp_location_ref_ptr.
108 <refc>: Remove.
109 (bp_location_ref_ptr): New typedef.
110 (struct bp_location_ref_policy): New.
111
bfcb9db8
TT
1122020-12-11 Tom Tromey <tom@tromey.com>
113
114 * thread.c (class scoped_inc_dec_ref): Remove.
115 (tp_array_compar_ascending, tp_array_compar_descending): Change
116 parameter types.
117 (thread_apply_all_command): Use thread_info_ref.
118
d634cd0b
TT
1192020-12-11 Tom Tromey <tom@tromey.com>
120
121 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
122 (stop_context::stop_context): Update.
123 (stop_context::~stop_context): Remove.
124
51107df5
TT
1252020-12-11 Tom Tromey <tom@tromey.com>
126
127 * inferior.c (current_inferior_): Change type.
128 (current_inferior, set_current_inferior, initialize_inferiors):
129 Update.
130
15f4dddd
TT
1312020-12-11 Tom Tromey <tom@tromey.com>
132
133 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
134 Change type.
135
a9f14fa5
TT
1362020-12-11 Tom Tromey <tromey@adacore.com>
137
138 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
139 field.
140 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
141 (read_atcb): Use cpu_id_offset.
142
2ccee230
KB
1432020-12-10 Kevin Buettner <kevinb@redhat.com>
144
145 * ada-lang.c (ada_fold_name): Fix off-by-one error.
146
ae1f4d2d
LM
1472020-12-10 Luis Machado <luis.machado@linaro.org>
148
149 * breakpoint.c (should_be_inserted): Don't output newline.
150
6afcd2d4
LM
1512020-12-10 Luis Machado <luis.machado@linaro.org>
152
153 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
154 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
155 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
156 * arch/aarch64.h: ... here.
157 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
158 (aarch64_maybe_swab128): New function.
159 (aarch64_sve_regs_copy_to_reg_buf)
160 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
161 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
162 the data field.
163 (TF_REG_VALUE_BYTES): New enum value.
164 (trad_frame_value_bytes_p): New function.
165 (trad_frame_set_value_bytes): New function.
166 (trad_frame_set_reg_value_bytes): New function.
167 (trad_frame_get_prev_register): Handle register values saved as bytes.
168 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
169 (struct trad_frame_saved_reg) <data>: New field.
170 (trad_frame_set_value_bytes): New prototype.
171 (trad_frame_value_bytes_p): New prototype.
172
15cc148f
MS
1732020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
174
175 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
176 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
177 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
178
12932e2c
TT
1792020-12-09 Tom Tromey <tromey@adacore.com>
180
181 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
182
5cde1d82
TT
1832020-12-09 Tom Tromey <tromey@adacore.com>
184
185 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
186 and "denominator" to gdb_mpz. Handle block forms.
187 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
188 "denominator" to gdb_mpz.
189 (finish_fixed_point_type): Update.
190 (has_zero_over_zero_small_attribute): Update.
191
d9c3a9c0
TT
1922020-12-09 Tom Tromey <tromey@adacore.com>
193
194 * expprint.c (op_name): Update.
195 * expression.h (enum exp_opcode): Update.
196 * std-operator.def: Add more opcodes.
197 * ada-operator.def, fortran-operator.def: Remove, moving contents
198 into std-operator.def.
199
6ad368b8
SM
2002020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
201
202 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
203 Return {} instead of false.
204 (get_discrete_bounds): Compute high bound only if low bound is
205 valid.
206
5b56203a
SM
2072020-12-09 Simon Marchi <simon.marchi@efficios.com>
208
209 PR 26875, PR 26901
210 * gdbtypes.c (get_discrete_low_bound): Make non-static.
211 (get_discrete_high_bound): Make non-static.
212 * gdbtypes.h (get_discrete_low_bound): New declaration.
213 (get_discrete_high_bound): New declaration.
214 * valarith.c (value_subscript): Only fetch high bound if
215 necessary.
216
14c09924
SM
2172020-12-09 Simon Marchi <simon.marchi@efficios.com>
218
219 * gdbtypes.c (get_discrete_bounds): Implement with
220 get_discrete_low_bound and get_discrete_high_bound.
221 (get_discrete_low_bound): New.
222 (get_discrete_high_bound): New.
223
1f8d2881
SM
2242020-12-09 Simon Marchi <simon.marchi@efficios.com>
225
226 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
227 callers.
228 * gdbtypes.c (get_discrete_bounds): Return bool.
229
6244c119
SM
2302020-12-09 Simon Marchi <simon.marchi@efficios.com>
231
232 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
233 (ada_value_slice): Adjust.
234 (pos_atr): Adjust.
235 * gdbtypes.c (get_discrete_bounds): Adjust.
236 (discrete_position): Return optional.
237 * gdbtypes.h (discrete_position): Return optional.
238
a4915e8d
TT
2392020-12-07 Tom Tromey <tromey@adacore.com>
240
241 * maint.c (_initialize_maint_cmds): Use expression command
242 completer for "maint print type".
243
1f58f6c2
TBA
2442020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
245
246 * completer.c (complete_explicit_location): Also add keywords
247 that start with '-' to the completion list.
248
5759831a
TBA
2492020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
250
251 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
252 keyword may be followed by any keyword.
253 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
254 'toklen' in the case for "-force-condition".
255
21e051b3
TBA
2562020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
257
258 * main.c (catch_command_errors): Add a flag parameter; invoke
259 `bpstat_do_actions` if the flag is set.
260 (execute_cmdargs): Update a call to `catch_command_errors`.
261
f51f9f1d
TV
2622020-12-07 Tom de Vries <tdevries@suse.de>
263
264 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
265
00158a68
TT
2662020-12-06 Tom Tromey <tom@tromey.com>
267
268 PR ada/26999
269 * ada-lang.c (replace_operator_with_call): Rewrite.
270
296cfb88
GF
2712020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
272
273 PR breakpoints/27009
274 * s390-tdep.h (op_bc): Correct BC opcode value.
275
63c457b9
JB
2762020-12-06 Joel Brobecker <brobecker@adacore.com>
277
278 * gmp-utils.h (gdb_mpz::safe_export): New private method.
279 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
280 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
281 (gdb_mpz::safe_export): New method.
282 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
283 Update function description.
284 (check_as_integer_raises_out_of_range_error): New function.
285 (gdb_mpz_as_integer_out_of_range): New function.
286 (_initialize_gmp_utils_selftests): Register
287 gdb_mpz_as_integer_out_of_range as a selftest.
288
3c7ba803
JB
2892020-12-05 Joel Brobecker <brobecker@adacore.com>
290
291 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
292 TARGET_CHAR_BIT.
293 (gdb_mpz::write): Likewise.
294
372ff58f
SM
2952020-12-04 Simon Marchi <simon.marchi@efficios.com>
296
297 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
298 number of displaced step buffers.
299
480af54c
SM
3002020-12-04 Simon Marchi <simon.marchi@efficios.com>
301
302 * displaced-stepping.h (struct displaced_step_buffer): Rename
303 to...
304 (struct displaced_step_buffers): ... this.
305 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
306 <struct displaced_step_buffer>: New inner class.
307 <m_buffers>: New.
308 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
309 to...
310 (displaced_step_buffers::prepare): ... this, adjust for multiple
311 buffers.
312 (displaced_step_buffer::finish): Rename to...
313 (displaced_step_buffers::finish): ... this, adjust for multiple
314 buffers.
315 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
316 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
317 adjust for multiple buffers.
318 (displaced_step_buffer::restore_in_ptid): Rename to...
319 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
320 multiple buffers.
321 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
322 for num_disp_step_buffers.
323 * linux-tdep.c (struct linux_gdbarch_data)
324 <num_disp_step_buffers>: New field.
325 (struct linux_info) <disp_step_buf>: Rename to...
326 <disp_step_bufs>: ... this, change type to
327 displaced_step_buffers.
328 (linux_displaced_step_prepare): Use
329 linux_gdbarch_data::num_disp_step_buffers to create that number
330 of buffers.
331 (linux_displaced_step_finish): Adjust.
332 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
333 (linux_displaced_step_restore_all_in_ptid): Adjust.
334 (linux_init_abi): Change supports_displaced_step parameter for
335 num_disp_step_buffers, save it in linux_gdbarch_data.
336 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
337 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
338 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
339 supports_displaced_step parameter for num_disp_step_buffers.
340 (amd64_linux_init_abi): Adjust.
341 (amd64_x32_linux_init_abi): Adjust.
342 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
343 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
344 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
345 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
346 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
347 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
348 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
349 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
350 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
351 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
352 * m68k-linux-tdep.c (m68k_linux_init_abi):
353 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
354 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
355 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
356 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
357 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
358 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
359 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
360 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
361 Change type to displaced_step_buffers.
362 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
363 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
364 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
365 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
366 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
367 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
368 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
369
d9655058
SM
3702020-12-04 Simon Marchi <simon.marchi@efficios.com>
371
372 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
373 obkstack.
374 (_initialize_linux_tdep): Register pre-init gdb data instead of
375 post-init.
376
187b041e
SM
3772020-12-04 Simon Marchi <simon.marchi@efficios.com>
378
379 * displaced-stepping.h (struct
380 displaced_step_copy_insn_closure): Adjust comments.
381 (struct displaced_step_inferior_state) <step_thread,
382 step_gdbarch, step_closure, step_original, step_copy,
383 step_saved_copy>: Remove fields.
384 (struct displaced_step_thread_state): New.
385 (struct displaced_step_buffer): New.
386 * displaced-stepping.c (displaced_step_buffer::prepare): New.
387 (write_memory_ptid): Move from infrun.c.
388 (displaced_step_instruction_executed_successfully): New,
389 factored out of displaced_step_finish.
390 (displaced_step_buffer::finish): New.
391 (displaced_step_buffer::copy_insn_closure_by_addr): New.
392 (displaced_step_buffer::restore_in_ptid): New.
393 * gdbarch.sh (displaced_step_location): Remove.
394 (displaced_step_prepare, displaced_step_finish,
395 displaced_step_copy_insn_closure_by_addr,
396 displaced_step_restore_all_in_ptid): New.
397 * gdbarch.c: Re-generate.
398 * gdbarch.h: Re-generate.
399 * gdbthread.h (class thread_info) <displaced_step_state>: New
400 field.
401 (thread_step_over_chain_remove): New declaration.
402 (thread_step_over_chain_next): New declaration.
403 (thread_step_over_chain_length): New declaration.
404 * thread.c (thread_step_over_chain_remove): Make non-static.
405 (thread_step_over_chain_next): New.
406 (global_thread_step_over_chain_next): Use
407 thread_step_over_chain_next.
408 (thread_step_over_chain_length): New.
409 (global_thread_step_over_chain_enqueue): Add debug print.
410 (global_thread_step_over_chain_remove): Add debug print.
411 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
412 Remove.
413 * infrun.c (get_displaced_stepping_state): New.
414 (displaced_step_in_progress_any_inferior): Remove.
415 (displaced_step_in_progress_thread): Adjust.
416 (displaced_step_in_progress): Adjust.
417 (displaced_step_in_progress_any_thread): New.
418 (get_displaced_step_copy_insn_closure_by_addr): Remove.
419 (gdbarch_supports_displaced_stepping): Use
420 gdbarch_displaced_step_prepare_p.
421 (displaced_step_reset): Change parameter from inferior to
422 thread.
423 (displaced_step_prepare_throw): Implement using
424 gdbarch_displaced_step_prepare.
425 (write_memory_ptid): Move to displaced-step.c.
426 (displaced_step_restore): Remove.
427 (displaced_step_finish): Implement using
428 gdbarch_displaced_step_finish.
429 (start_step_over): Allow starting more than one displaced step.
430 (prepare_for_detach): Handle possibly multiple threads doing
431 displaced steps.
432 (handle_inferior_event): Handle possibility that fork event
433 happens while another thread displaced steps.
434 * linux-tdep.h (linux_displaced_step_prepare): New.
435 (linux_displaced_step_finish): New.
436 (linux_displaced_step_copy_insn_closure_by_addr): New.
437 (linux_displaced_step_restore_all_in_ptid): New.
438 (linux_init_abi): Add supports_displaced_step parameter.
439 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
440 (linux_displaced_step_prepare): New.
441 (linux_displaced_step_finish): New.
442 (linux_displaced_step_copy_insn_closure_by_addr): New.
443 (linux_displaced_step_restore_all_in_ptid): New.
444 (linux_init_abi): Add supports_displaced_step parameter,
445 register displaced step methods if true.
446 (_initialize_linux_tdep): Register inferior_execd observer.
447 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
448 supports_displaced_step parameter, adjust call to
449 linux_init_abi. Remove call to
450 set_gdbarch_displaced_step_location.
451 (amd64_linux_init_abi): Adjust call to
452 amd64_linux_init_abi_common.
453 (amd64_x32_linux_init_abi): Likewise.
454 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
455 linux_init_abi. Remove call to
456 set_gdbarch_displaced_step_location.
457 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
458 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
459 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
460 linux_init_abi.
461 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
462 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
463 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
464 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
465 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
466 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
467 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
468 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
469 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
470 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
471 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
472 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
473 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
474 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
475 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
476 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
477 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
478 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
479 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
480 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
481 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
482 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
483 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
484 linux_init_abi. Remove call to
485 set_gdbarch_displaced_step_location.
486 * arm-tdep.c (arm_pc_is_thumb): Call
487 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
488 get_displaced_step_copy_insn_closure_by_addr.
489 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
490 clear gdbarch methods.
491 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
492 (get_ppc_per_inferior): New function.
493 (ppc_displaced_step_prepare): New function.
494 (ppc_displaced_step_finish): New function.
495 (ppc_displaced_step_restore_all_in_ptid): New function.
496 (rs6000_gdbarch_init): Register new gdbarch methods.
497 * s390-tdep.c (s390_gdbarch_init): Don't call
498 set_gdbarch_displaced_step_location, set new gdbarch methods.
499
c7acb87b
SM
5002020-12-04 Simon Marchi <simon.marchi@efficios.com>
501
502 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
503 * aarch64-tdep.h: Include displaced-stepping.h.
504 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
505 Move here.
506 (displaced_step_copy_insn_closure_up): Move here.
507 (struct buf_displaced_step_copy_insn_closure): Move here.
508 (struct displaced_step_inferior_state): Move here.
509 (debug_displaced): Move here.
510 (displaced_debug_printf_1): Move here.
511 (displaced_debug_printf): Move here.
512 * displaced-stepping.c: New file.
513 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
514 * gdbarch.h: Re-generate.
515 * inferior.h: Include displaced-stepping.h.
516 * infrun.h (debug_displaced): Move to displaced-stepping.h.
517 (displaced_debug_printf_1): Likewise.
518 (displaced_debug_printf): Likewise.
519 (struct displaced_step_copy_insn_closure): Likewise.
520 (displaced_step_copy_insn_closure_up): Likewise.
521 (struct buf_displaced_step_copy_insn_closure): Likewise.
522 (struct displaced_step_inferior_state): Likewise.
523 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
524 (displaced_debug_printf_1): Likewise.
525 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
526 Likewise.
527 (_initialize_infrun): Don't register "set/show debug displaced".
528
94b24c74
SM
5292020-12-04 Simon Marchi <simon.marchi@efficios.com>
530
531 * linux-tdep.c (get_linux_inferior_data): Add inferior
532 parameter.
533 (linux_vsyscall_range): Pass current inferior.
534
bab37966
SM
5352020-12-04 Simon Marchi <simon.marchi@efficios.com>
536
537 * infrun.c (displaced_step_prepare_throw): Change return type to
538 displaced_step_prepare_status.
539 (displaced_step_prepare): Likewise.
540 (displaced_step_finish): Change return type to
541 displaced_step_finish_status.
542 (resume_1): Adjust.
543 (stop_all_threads): Adjust.
544 * displaced-stepping.h: New file.
545
7def77a1
SM
5462020-12-04 Simon Marchi <simon.marchi@efficios.com>
547
548 * infrun.c (displaced_step_fixup): Rename to...
549 (displaced_step_finish): ... this, update all callers.
550
1152d984
SM
5512020-12-04 Simon Marchi <simon.marchi@efficios.com>
552
553 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
554 (get_displaced_step_copy_insn_closure_by_addr): ... this.
555 Update all users.
556 (displaced_step_closure): Rename to...
557 (displaced_step_copy_insn_closure): ... this. Update all users.
558 (displaced_step_closure_up): Rename to...
559 (displaced_step_copy_insn_closure_up). ... this. Update all
560 users.
561 (buf_displaced_step_closure): Rename to...
562 (buf_displaced_step_copy_insn_closure): ... this. Update all
563 users.
564 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
565 (get_displaced_step_copy_insn_closure_by_addr): ... this.
566 Update all users.
567 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
568 (aarch64_displaced_step_copy_insn_closure): ... this. Update
569 all users.
570 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
571 (amd64_displaced_step_copy_insn_closure): ... this. Update all
572 users.
573 * arm-tdep.h (arm_displaced_step_closure): Rename to...
574 (arm_displaced_step_copy_insn_closure): ... this. Update all
575 users.
576 * i386-tdep.h (i386_displaced_step_closure): Rename to...
577 (i386_displaced_step_copy_insn_closure): ... this. Update all
578 users.
579 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
580 (ppc_displaced_step_copy_insn_closure): ... this. Update all
581 users.
582 * s390-tdep.c (s390_displaced_step_closure): Rename to...
583 (s390_displaced_step_copy_insn_closure): ... this. Update all
584 users.
585 * gdbarch.h: Re-generate.
586 * gdbarch.c: Re-generate.
587
28d5518b
SM
5882020-12-04 Simon Marchi <simon.marchi@efficios.com>
589
590 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
591 (global_thread_step_over_chain_enqueue): ... this. Update all
592 users.
593 (thread_step_over_chain_remove): Rename to...
594 (global_thread_step_over_chain_remove): ... this. Update all
595 users.
596 (thread_step_over_chain_next): Rename to...
597 (global_thread_step_over_chain_next): ... this. Update all
598 users.
599 * infrun.h (step_over_queue_head): Rename to...
600 (global_thread_step_over_chain_head): ... this. Update all
601 users.
602 * infrun.c (step_over_queue_head): Rename to...
603 (global_thread_step_over_chain_head): ... this. Update all
604 users.
605 * thread.c (step_over_chain_remove): Rename to...
606 (thread_step_over_chain_remove): ... this. Update all users.
607 (thread_step_over_chain_next): Rename to...
608 (global_thread_step_over_chain_next): ... this. Update all
609 users.
610 (thread_step_over_chain_enqueue): Rename to...
611 (global_thread_step_over_chain_enqueue): ... this. Update all
612 users.
613 (thread_step_over_chain_remove): Rename to...
614 (global_thread_step_over_chain_remove): ... this. Update all
615 users.
616
f5f01699
SM
6172020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * infrun.c (get_displaced_stepping_state): Remove, change
620 callers to access the field directly.
621
c0aba012
SM
6222020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * infrun.c (handle_inferior_event): Restore displaced step
625 buffer bytes in child process when handling fork, even if fork
626 happened in another thread than the displaced-stepping one.
627
3b7a962d
SM
6282020-12-04 Simon Marchi <simon.marchi@efficios.com>
629
630 * infrun.c (infrun_inferior_execd): New function.
631 (_initialize_infrun): Attach inferior_execd observer.
632
42a4fec5
SM
6332020-12-04 Simon Marchi <simon.marchi@efficios.com>
634
635 * observable.h (inferior_execd): Declare new observable.
636 * observable.c (inferior_execd): Declare new observable.
637 * infrun.c (follow_exec): Notify inferior_execd observer.
638 * jit.c (jit_inferior_created_hook): Make static.
639 (_initialize_jit): Register inferior_execd observer.
640 * jit.h (jit_inferior_created_hook): Remove declaration.
641 * solib.c (_initialize_solib): Register inferior_execd observer.
642
aafdfb4e
TV
6432020-12-04 Tom de Vries <tdevries@suse.de>
644
645 PR gdb/27003
646 * completer.c (completion_tracker::build_completion_result): Don't
647 access match_list[0][-1].
648
f99b5177
TT
6492020-12-04 Tom Tromey <tromey@adacore.com>
650
651 * linespec.c (struct linespec_token): Rename; remove typedef.
652 * guile/scm-block.c (struct block_smob): Remove typedef.
653 (struct block_syms_progress_smob): Likewise.
654 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
655 * guile/scm-symtab.c (symtab_smob): Remove typedef.
656 (struct sal_smob): Remove typedef.
657 * guile/scm-param.c (struct param_smob): Remove typedef.
658 * guile/scm-progspace.c (struct pspace_smob): Rename.
659 * guile/scm-objfile.c (struct objfile_smob): Rename.
660 * guile/scm-iterator.c (struct iterator_smob): Rename.
661 * guile/scm-frame.c (struct frame_smob): Rename.
662 * guile/scm-arch.c (struct arch_smob): Rename.
663 * guile/scm-type.c (struct field_smob): Remove typedef.
664 (struct type_smob): Rename.
665 * guile/scm-cmd.c (struct command_smob): Remove typedef.
666 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
667 * guile/scm-value.c (struct value_smob): Remove typedef.
668 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
669 * guile/guile-internal.h (struct scheme_variable)
670 (struct scheme_function, struct scheme_integer_constant)
671 (struct gdb_smob, struct chained_gdb_smob)
672 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
673 (objfile_smob, pspace_smob, type_smob): Remove typedef.
674 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
675 (struct pretty_printer_worker_smob): Remove typedef.
676 * guile/scm-exception.c (struct exception_smob): Remove typedef.
677 * python/py-block.c (struct block_object): Remove typedef.
678 (block_syms_iterator_object): Update.
679 (set_block): Update.
680 (block_syms_iterator_object): Remove typedef.
681 * python/py-inferior.c (struct membuf_object): Remove typedef.
682 * python/py-symtab.c (struct symtab_object): Remove typedef.
683 (set_symtab): Update.
684 (sal_object): Remove typedef.
685 (set_sal): Update.
686 * python/py-frame.c (frame_object): Remove typedef.
687 * python/py-record-btrace.c (struct btpy_list_object): Remove
688 typedef.
689 * python/py-arch.c (struct arch_object): Remove typedef.
690 * python/py-linetable.c (struct linetable_entry_object)
691 (linetable_object, struct ltpy_iterator_object): Remove typedef.
692 * python/py-events.h (eventregistry_object): Remove typedef.
693 (struct events_object): Remove typedef.
694 * python/python-internal.h (gdbpy_breakpoint_object): Remove
695 typedef.
696 (thread_object): Remove typedef.
697 * python/py-progspace.c (pspace_object): Remove typedef.
698 * python/py-value.c (struct value_object): Remove typedef.
699 * python/py-record.h (recpy_record_object): Remove typedef.
700 (struct recpy_element_object): Remove typedef.
701 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
702 * python/py-objfile.c (objfile_object): Remove typedef.
703 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
704 * python/py-type.c (type_object): Remove typedef.
705 (typy_iterator_object): Update.
706 (set_type): Update.
707 (field_object): Remove typedef.
708 (typy_iterator_object): Remove typedef.
709 * python/py-registers.c (register_descriptor_iterator_object):
710 Remove typedef.
711 (struct register_descriptor_object)
712 (struct reggroup_iterator_object, struct reggroup_object): Remove
713 typedef.
714 * python/py-record.c (recpy_gap_object): Remove typedef.
715 * python/py-symbol.c (symbol_object): Remove typedef.
716 (set_symbol): Update.
717 * python/py-event.h (event_object): Remove typedef.
718 * python/py-param.c (parmpy_object): Remove typedef.
719 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
720 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
721 (unwind_info_object, struct cached_frame_info): Likewise.
722
91f87213
TT
7232020-12-04 Tom Tromey <tromey@adacore.com>
724
725 * value.c (value_internal_function_name): Make return type const.
726 * value.h (value_internal_function_name): Make return type const.
727
5382f971
LM
7282020-12-04 Luis Machado <luis.machado@linaro.org>
729
730 * aarch64-tdep.c (submask, bit, bits): Remove.
731 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
732 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
733 (aarch64_decode_cb, aarch64_decode_tb)
734 (aarch64_decode_ldr_literal): Use sbits to extract a signed
735 immediate.
736 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
737
b6a6aa07
TV
7382020-12-04 Tom de Vries <tdevries@suse.de>
739
740 PR tdep/27007
741 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
742
0bc2e38d
SM
7432020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
744
745 PR gdb/26876
746 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
747 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
748
25428040
AB
7492020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * arch/riscv.c: Include 'rv32e-xregs.c'.
752 (riscv_create_target_description): Update to handle rv32e.
753 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
754 member variable.
755 <operator==>: Update to account for new field.
756 <hash>: Likewise.
757 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
758 * features/riscv/rv32e-xregs.c: Generated.
759 * features/riscv/rv32e-xregs.xml: New file.
760 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
761 file.
762 (riscv_debug_infcall): Likewise.
763 (riscv_debug_unwinder): Likewise.
764 (riscv_debug_gdbarch): Likewise.
765 (enum riscv_register_required_status): Delete.
766 (struct riscv_register_feature): Add constructor, delete default
767 constructor, copy, and assign constructors.
768 (struct riscv_register_feature::register_info) <required>: Delete.
769 <check>: Update comment and arguments.
770 (struct riscv_register_feature) <name>: Change to member function.
771 <prefer_first_name>: Delete.
772 <tdesc_feature>: New member function.
773 <registers>: Rename to...
774 <m_registers>: ...this.
775 <m_feature_name>: New member variable.
776 (riscv_register_feature::register_info::check): Update arguments.
777 (riscv_xreg_feature): Rewrite as class, create a single static
778 instance of the class.
779 (riscv_freg_feature): Likewise.
780 (riscv_virtual_feature): Likewise.
781 (riscv_csr_feature): Likewise.
782 (riscv_create_csr_aliases): Has become a member function inside
783 riscv_csr_feature class.
784 (riscv_abi_embedded): New function definition.
785 (riscv_register_name): Adjust to use new feature objects.
786 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
787 and adjust available argument registers.
788 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
789 (riscv_check_tdesc_feature): Delete.
790 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
791 (riscv_gdbarch_init): Delete target description checking code, and
792 instead call to the new feature objects to perform the checks.
793 Reorder handling of no abi information case, allows small code
794 simplification.
795 (_initialize_riscv_tdep): Remove call, this is now done in the
796 riscv_csr_feature constructor.
797 * riscv-tdep.h (riscv_abi_embedded): Declare.
798
533b2ae0
AB
7992020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
800
801 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
802 DECLARE_CSR_ALIAS.
803
e4502042
AB
8042020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
805
806 * riscv-tdep.c (riscv_is_unknown_csr): New function,
807 implementation moved from riscv_register_reggroup_p.
808 (riscv_register_reggroup_p): Update group handling for unknown
809 CSRs.
810
2bf3b79d
SDJ
8112020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
812
813 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
814 (dwarf2_get_dwz_file): Convert 'filename' to a
815 std::string. Use dwz_search_other_debugdirs to search for DWZ
816 files in the debug-file-directories provided by the user as well.
817
77bf7e99
TT
8182020-12-01 Tom Tromey <tom@tromey.com>
819
820 * parse.c (expr_builder::expr_builder): Initialize expout.
821 (expr_builder::release): Use expression::resize.
822 (expression::expression, expression::~expression)
823 (expression::resize): New methods.
824 (write_exp_elt): Use expression::resize.
825 (prefixify_expression): Update.
826 (increase_expout_size): Use expression::resize.
827 * expression.h (struct expression): Add constructor, destructor.
828 <resize>: New method.
829 (expression_up): Change type.
830
539d71e8
RA
8312020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
832 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
833 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
834 set region.
835
7ce05d21
TV
8362020-11-30 Tom de Vries <tdevries@suse.de>
837
838 PR symtab/26905
839 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
840 is_reference parameter.
841 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
842
88b91969
TT
8432020-11-30 Tom Tromey <tom@tromey.com>
844
845 * rust-lang.c (rust_op_name): Remove.
846 (exp_descriptor_rust): Update.
847 * parser-defs.h (op_name_standard): Don't declare.
848 (struct exp_descriptor) <op_name>: Remove.
849 * parse.c (exp_descriptor_standard): Update.
850 * opencl-lang.c (exp_descriptor_opencl): Update.
851 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
852 * f-lang.c (op_name_f): Remove.
853 (f_language::exp_descriptor_tab): Update.
854 * expression.h (op_name): Update.
855 * expprint.c (op_name): Rewrite.
856 (op_name_standard): Remove.
857 (dump_raw_expression, dump_subexp): Update.
858 * c-lang.c (exp_descriptor_c): Update.
859 * ax-gdb.c (gen_expr): Update.
860 * ada-lang.c (ada_op_name): Remove.
861 (ada_exp_descriptor): Update.
862
1cd49c43
TT
8632020-11-30 Tom Tromey <tom@tromey.com>
864
865 * eval.c (init_array_element): Remove.
866 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
867
96fb9086
HD
8682020-11-29 Hannes Domani <ssbssa@yahoo.de>
869
870 PR tui/26973
871 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
872 static locator win info.
873
b4132322
AR
8742020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
875
876 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
877 program.
878
3df8c6af
AB
8792020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
882 is always initialized.
883
0ae45769
RA
8842020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
885 * MAINTAINERS (Write After Approval): Add myself.
886
239ca5e4
PW
8872020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
888
889 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
890 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
891
cbfa382a
TT
8922020-11-25 Tom Tromey <tom@tromey.com>
893
894 * eval.c (evaluate_subexp_standard): Remove unnecessary
895 variables.
896
af30c400
TT
8972020-11-25 Tom Tromey <tom@tromey.com>
898
899 * d-lang.c: Include parser-defs.h.
900 * rust-lang.c: Include parser-defs.h.
901 * c-lang.h: Do not include parser-defs.h.
902
1c64f6cb
SM
9032020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
904
905 * regcache.h (struct cached_reg): Remove typedef.
906
2c20a601
JB
9072020-11-24 Joel Brobecker <brobecker@adacore.com>
908
909 * README: Fix the URL of the MPFR library.
910
c609df64
JB
9112020-11-24 Joel Brobecker <brobecker@adacore.com>
912
913 * README: Document the --with-libgmp-prefix configure option.
914
fa123c32
JB
9152020-11-24 Joel Brobecker <brobecker@adacore.com>
916
917 * NEWS: Add entry documenting support for DWARF-based fixed
918 point types.
919
0fb8bb02
JB
9202020-11-24 Joel Brobecker <brobecker@adacore.com>
921
922 * NEWS: Document that building GDB now requires GMP.
923
4afa9fd9
JB
9242020-11-24 Joel Brobecker <brobecker@adacore.com>
925
926 * typeprint.c (print_type_scalar): Add handling of
927 TYPE_CODE_FIXED_POINT.
928
af619ce9
JB
9292020-11-24 Joel Brobecker <brobecker@adacore.com>
930
931 * valarith.c (fixed_point_binop): Replace the
932 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
933 users accordingly.
934
e6fcee3a
JB
9352020-11-24 Joel Brobecker <brobecker@adacore.com>
936
937 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
938 replacing fixed_point_scaling_factor. All callers updated
939 throughout this project.
940 (fixed_point_scaling_factor): Delete declaration.
941 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
942 fixed_point_scaling_factor. Adjust implementation accordingly.
943
d19937a7
JB
9442020-11-24 Joel Brobecker <brobecker@adacore.com>
945
946 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
947 replacing the fixed_point_type_base_type function. All callers
948 updated throughout this project.
949 (fixed_point_type_base_type): Remove declaration.
950 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
951 fixed_point_type_base_type. Adjust implementation accordingly.
952
2a12c336
JB
9532020-11-24 Joel Brobecker <brobecker@adacore.com>
954
955 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
956 New methods.
957 (INIT_FIXED_POINT_SPECIFIC): Adjust.
958 (TYPE_FIXED_POINT_INFO): Delete macro.
959 (allocate_fixed_point_type_info): Change return type to void.
960 * gdbtypes.c (copy_type_recursive): Replace the use of
961 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
962 (fixed_point_scaling_factor): Likewise.
963 (allocate_fixed_point_type_info): Change return type to void.
964 Adjust implementation accordingly.
965 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
966 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
967
c9f0b43f
JB
9682020-11-24 Joel Brobecker <brobecker@adacore.com>
969
970 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
971 into one single gdb::array_view parameter.
972 (gdb_mpz::write): Likewise.
973 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
974 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
975 into one single gdb::array_view parameter.
976 Adjust implementation accordingly.
977 (gdb_mpz::write): Likewise.
978 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
979 * unittests/gmp-utils-selftests.c: Adapt following changes above.
980 * valarith.c, valops.c, valprint.c, value.c: Likewise.
981
987b6703
JB
9822020-11-24 Joel Brobecker <brobecker@adacore.com>
983
984 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
985 Change return type to std::string. Update all callers.
986 * gmp-utils.c (gmp_string_printf): Likewise.
987
4fbb7cce
JB
9882020-11-24 Joel Brobecker <brobecker@adacore.com>
989
990 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
991 instead of mpq_set_ui to initialize our GMP rational.
992
d6ab69dd
TV
9932020-11-23 Tom de Vries <tdevries@suse.de>
994
995 * debuginfod-support.c (debuginfod_source_query)
996 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
997
dab72643
TT
9982020-11-21 Tom Tromey <tom@tromey.com>
999
1000 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1001
c0ad05d5
SM
10022020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1003
1004 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1005 Pass 2.0 to pow.
1006 (gdb_mpz_write_all_from_small): Likewise.
1007
a43b29c9
SM
10082020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1011 of abs.
1012
ae41200b
NA
10132020-11-20 Nick Alcock <nick.alcock@oracle.com>
1014
1015 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1016 ctf_arc_open_by_name.
1017
139633c3
NA
10182020-11-20 Nick Alcock <nick.alcock@oracle.com>
1019
1020 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1021 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1022
cbbcd7a7
PA
10232020-11-20 Pedro Alves <pedro@palves.net>
1024
1025 * language.c (language_arch_info::lookup_primitive_type): Use
1026 gdb::function_view instead of gdb::function.
1027 (template language_lookup_primitive_type): Rename to ...
1028 (language_lookup_primitive_type_1): ... this, and make static.
1029 (language_lookup_primitive_type(const struct language_defn *,
1030 struct gdbarch *, const char *): Make non-template.
1031 (language_lookup_primitive_type(const struct language_defn *,
1032 struct gdbarch *, std::function<bool (struct type *)>): Make
1033 non-template and use gdb::function_view.
1034 * language.h (language_arch_info::lookup_primitive_type): Use
1035 gdb::function_view instead of std::function.
1036 (language_lookup_primitive_type): No longer template.
1037 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1038 lambda instead of a std::function.
1039
d5ef21c3
AA
10402020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1041
1042 PR tdep/26916
1043 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1044 and STOCFH.
1045
a5adb8f3
SM
10462020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1047
1048 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1049
70125a45
SM
10502020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1053 in `loop_cb` parameter.
1054 * gdbarch.c: Re-generate.
1055 * gdbarch.h: Re-generate.
1056 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1057 parameter.
1058 * arch-utils.h (default_read_core_file_mappings): Likewise.
1059 * corelow.c (core_target::build_file_mappings): Likewise.
1060 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1061 (linux_core_info_proc_mappings): Likewise.
1062
a5c641b5
AB
10632020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1066 * NEWS: Mention new options.
1067 * f-array-walker.h: New file.
1068 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1069 (repack_array_slices): New static global.
1070 (show_repack_array_slices): New function.
1071 (fortran_array_slicing_debug): New static global.
1072 (show_fortran_array_slicing_debug): New function.
1073 (value_f90_subarray): Delete.
1074 (skip_undetermined_arglist): Delete.
1075 (class fortran_array_repacker_base_impl): New class.
1076 (class fortran_lazy_array_repacker_impl): New class.
1077 (class fortran_array_repacker_impl): New class.
1078 (fortran_value_subarray): Complete rewrite.
1079 (set_fortran_list): New static global.
1080 (show_fortran_list): Likewise.
1081 (_initialize_f_language): Register new commands.
1082 (fortran_adjust_dynamic_array_base_address_hack): New function.
1083 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1084 Declare.
1085 * f-valprint.c: Include 'f-array-walker.h'.
1086 (class fortran_array_printer_impl): New class.
1087 (f77_print_array_1): Delete.
1088 (f77_print_array): Delete.
1089 (fortran_print_array): New.
1090 (f_value_print_inner): Update to call fortran_print_array.
1091 * gdbtypes.c: Include 'f-lang.h'.
1092 (resolve_dynamic_type_internal): Call
1093 fortran_adjust_dynamic_array_base_address_hack.
1094
a15a5258
AB
10952020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1096
1097 * breakpoint.c (struct watch_options): New struct.
1098 (watch_option_defs): New static global.
1099 (make_watch_options_def_group): New function.
1100 (watch_maybe_just_location): Convert option parsing.
1101 (watch_command_completer): New function.
1102 (_initialize_breakpoint): Build help text using options mechanism.
1103
2e362716
AB
11042020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1107 (watch_command_1): Update parameter types. Convert locals to
1108 bool.
1109 (watch_command_wrapper): Change parameter type.
1110 (watch_maybe_just_location): Change locals to bool.
1111 (rwatch_command_wrapper): Update parameter type.
1112 (awatch_command_wrapper): Update parameter type.
1113 * breakpoint.h (watch_command_wrapper): Change parameter type.
1114 (rwatch_command_wrapper): Update parameter type.
1115 (awatch_command_wrapper): Update parameter type.
1116 * eval.c (fetch_subexp_value): Change parameter type.
1117 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1118 'false' not '0'.
1119 * value.h (fetch_subexp_value): Change parameter type in
1120 declaration.
1121
b3ff61f8
AB
11222020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1125 skip_spaces.
1126
5b7d45d3
KS
11272020-11-18 Keith Seitz <keiths@redhat.com>
1128
1129 * linux-tdep.c (dump_note_entry_p): Return true instead of
1130 checking `filename'.
1131
c44191f8
TV
11322020-11-18 Tom de Vries <tdevries@suse.de>
1133
1134 * debuginfod-support.c (debuginfod_source_query)
1135 (debuginfod_debuginfo_query): Also do early exit if
1136 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1137
5d8254e1
TV
11382020-11-18 Tom de Vries <tdevries@suse.de>
1139
1140 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1141 warning.
1142
584903d3
SM
11432020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1146 callers. Move doc here.
1147 * gdbtypes.c (get_array_bounds): Return bool
1148
6f2643db
AB
11492020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1150
1151 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1152 assert.
1153 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1154 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1155 case to the default.
1156
037d7135
AB
11572020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1158
1159 * printcmd.c: Include 'safe-ctype.c'.
1160 (skip_over_slash_fmt): New function.
1161 (print_command_completer): Call skip_over_slash_fmt.
1162 (display_and_x_command_completer): New function.
1163 (_initialize_printcmd): Add command completion for 'x' and
1164 'display'.
1165
2b3cb400
PA
11662020-11-16 Pedro Alves <pedro@palves.net>
1167
1168 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1169 (get_prev_frame_always_1): ... to here.
1170 * inline-frame.c (inline_frame_this_id): Mention
1171 get_prev_frame_always_1 in comment.
1172
b74dbc20
JB
11732020-11-15 Joel Brobecker <brobecker@adacore.com>
1174
1175 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1176 handling.
1177 (value_less): Add fixed-point handling.
1178
0a12719e
JB
11792020-11-15 Joel Brobecker <brobecker@adacore.com>
1180
1181 * eval.c (binop_promote): Add fixed-point type handling.
1182 * valarith.c (fixed_point_binop): New function.
1183 (scalar_binop): Add fixed-point type handling.
1184 (value_neg): Add fixed-point type handling.
1185 * valops.c (value_cast_to_fixed_point): New function.
1186 (value_cast): Add fixed-point type handling.
1187
0c9150e4
JB
11882020-11-15 Joel Brobecker <brobecker@adacore.com>
1189
1190 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1191 range types.
1192 * c-typeprint.c (c_type_print_varspec_prefix)
1193 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1194 TYPE_CODE_FIXED_POINT handling.
1195 * p-typeprint.c (pascal_type_print_varspec_prefix)
1196 (pascal_type_print_varspec_suffix): Likewise.
1197 * typeprint.c (print_type_fixed_point): New function.
1198 * typeprint.h (print_type_fixed_point): Add declaration.
1199
b26daff9
JB
12002020-11-15 Joel Brobecker <brobecker@adacore.com>
1201
1202 * printcmd.c (print_scalar_formatted): Add fixed-point type
1203 handling when options->format is set.
1204
09584414
JB
12052020-11-15 Joel Brobecker <brobecker@adacore.com>
1206
1207 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1208 * dwarf2/read.c (get_dwarf2_rational_constant)
1209 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1210 (has_zero_over_zero_small_attribute): New functions.
1211 read_base_type, set_die_type): Add fixed-point type handling.
1212 * gdb-gdb.py.in: Add fixed-point type handling.
1213 * gdbtypes.c: #include "gmp-utils.h".
1214 (create_range_type, set_type_code): Add fixed-point type handling.
1215 (init_fixed_point_type): New function.
1216 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1217 (print_fixed_point_type_info): New function.
1218 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1219 handling.
1220 (fixed_point_type_storage): New typedef.
1221 (fixed_point_objfile_key): New static global.
1222 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1223 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1224 functions.
1225 * gdbtypes.h: #include "gmp-utils.h".
1226 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1227 (union type_specific) <fixed_point_info>: New field.
1228 (struct fixed_point_type_info): New struct.
1229 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1230 (init_fixed_point_type, is_fixed_point_type)
1231 (fixed_point_type_base_type, fixed_point_scaling_factor)
1232 (allocate_fixed_point_type_info): Add declarations.
1233 * valprint.c (generic_val_print_fixed_point): New function.
1234 (generic_value_print): Add fixed-point type handling.
1235 * value.c (value_as_address, unpack_long): Add fixed-point type
1236 handling.
1237
e55c6530
JB
12382020-11-15 Joel Brobecker <brobecker@adacore.com>
1239
1240 * utils.h (uinteger_pow): Add declaration.
1241 * utils.c (uinteger_pow): Moved here (without changes)...
1242 * valarith.c (uinteger_pow): ... from here.
1243
b34c74ab
JB
12442020-11-15 Joel Brobecker <brobecker@adacore.com>
1245
40d9d2fd 1246 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1247 * unittests/gmp-utils-selftests.c: New file.
1248 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1249 unittests/gmp-utils-selftests.c.
1250 (COMMON_SFILES) Add gmp-utils.c.
1251 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1252
1b4ac058
JB
12532020-11-15 Joel Brobecker <brobecker@adacore.com>
1254
1255 * configure.ac: Generate an error if a usable GMP library
1256 could not be found.
1257 * configure: Regenerate.
1258
2c947d9b
JB
12592020-11-15 Joel Brobecker <brobecker@adacore.com>
1260
1261 * configure.ac: Add support for --with-libgmp-prefix.
1262 * Makefile.in (LIBGMP): New variable.
1263 (CLIBS): Include $(LIBGMP).
1264 * configure, config.in: Regenerate
1265
9dd02fc0
AB
12662020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1267
1268 PR cli/26879
1269 * f-exp.y (COMPLETE): New token.
1270 (exp): Two new rules for tab-completion.
1271 (saw_name_at_eof): New static global.
1272 (last_was_structop): Likewise.
1273 (yylex): Set new variables, and return COMPLETE token at the end
1274 of the input stream in some cases.
1275
758cb810
TT
12762020-11-14 Tom Tromey <tom@tromey.com>
1277
1278 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1279
749065b7
TT
12802020-11-14 Tom Tromey <tom@tromey.com>
1281
1282 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1283
2c5b1849
SM
12842020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1285
1286 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1287
e8b2f0d9
TT
12882020-11-13 Tom Tromey <tom@tromey.com>
1289
1290 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1291 (convert_escape, parse_one_string): Constify.
1292
25f4c262
KS
12932020-11-13 Keith Seitz <keiths@redhat.com>
1294
1295 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1296 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1297 outside of ELF segments" warning for debugin
1298
9d3ab915
KS
12992020-11-13 Keith Seitz <keiths@redhat.com>
1300
1301 PR gdb/23034
1302 * elfread.c (elf_symfile_segments): Output a BFD file name
1303 for the "Loadable section ... outside of ELF segments" warning.
1304
9ecab40c
SM
13052020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1306
1307 PR gdb/26835
1308 * arm-tdep.c (class arm_instruction_reader): New.
1309 (target_arm_instruction_reader): New.
1310 (arm_analyze_prologue): Add instruction reader parameter and use
1311 it. Use arm_expand_immediate.
1312 (class target_arm_instruction_reader): Adjust.
1313 (arm_skip_prologue): Adjust.
1314 (arm_expand_immediate): New.
1315 (arm_scan_prologue): Adjust.
1316 (arm_analyze_prologue_test): New.
1317 (class test_arm_instruction_reader): New.
1318
5a7cf527
AB
13192020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * f-lang.c (fortran_argument_convert): Add declaration. Add
1322 header comment, taken from f-lang.h. Make static.
1323 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1324 (fortran_argument_convert): Delete declaration.
1325
7bea47f0
AB
13262020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1327
1328 * ada-exp.y (find_primitive_type): Make parameter const.
1329 * ada-lang.c (enum ada_primitive_types): Delete.
1330 (ada_language::language_arch_info): Update.
1331 * c-lang.c (enum c_primitive_types): Delete.
1332 (c_language_arch_info): Update.
1333 (enum cplus_primitive_types): Delete.
1334 (cplus_language::language_arch_info): Update.
1335 * d-lang.c (enum d_primitive_types): Delete.
1336 (d_language::language_arch_info): Update.
1337 * f-lang.c (enum f_primitive_types): Delete.
1338 (f_language::language_arch_info): Update.
1339 * go-lang.c (enum go_primitive_types): Delete.
1340 (go_language::language_arch_info): Update.
1341 * language.c (auto_or_unknown_language::language_arch_info):
1342 Update.
1343 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1344 (language_string_char_type): Add header comment, call function in
1345 language_arch_info.
1346 (language_bool_type): Likewise
1347 (language_arch_info::bool_type): Define.
1348 (language_lookup_primitive_type_1): Delete.
1349 (language_lookup_primitive_type): Rewrite as a templated function
1350 to call function in language_arch_info, then instantiate twice.
1351 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1352 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1353 (language_arch_info::lookup_primitive_type): Define twice with
1354 different signatures.
1355 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1356 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1357 member function in language_arch_info.
1358 * language.h (language_arch_info): Complete rewrite.
1359 (language_lookup_primitive_type): Make templated.
1360 * m2-lang.c (enum m2_primitive_types): Delete.
1361 (m2_language::language_arch_info): Update.
1362 * opencl-lang.c (OCL_P_TYPE): Delete.
1363 (enum opencl_primitive_types): Delete.
1364 (opencl_type_data): Delete.
1365 (builtin_opencl_type): Delete.
1366 (lookup_opencl_vector_type): Update.
1367 (opencl_language::language_arch_info): Update, lots of content
1368 moved from...
1369 (build_opencl_types): ...here. This function is now deleted.
1370 (_initialize_opencl_language): Delete.
1371 * p-lang.c (enum pascal_primitive_types): Delete.
1372 (pascal_language::language_arch_info): Update.
1373 * rust-lang.c (enum rust_primitive_types): Delete.
1374 (rust_language::language_arch_info): Update.
1375
bf6e5d01
SM
13762020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1377
1378 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1379 dwarf2_queue_guard.
1380
1350c3b4
SM
13812020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1382
1383 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1384 comment.
1385
6f738b01
SM
13862020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * dwarf2/read.c (dwarf_read_debug_printf,
1389 dwarf_read_debug_printf_v): New macros, use throughout the file.
1390
10c19fad
SV
13912020-11-12 Shahab Vahedi <shahab@synopsys.com>
1392
10806efd 1393 PR tdep/27015
10c19fad
SV
1394 * arc-linux-tdep.c (collect_register): Populate "eret" by
1395 "pc" value from the regcache when asked for "pc" value.
1396
1f2624a3
TT
13972020-11-12 Tom Tromey <tom@tromey.com>
1398
1399 PR rust/26799:
1400 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1401 exist.
1402
ab33b152
AB
14032020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1404
1405 * features/Makefile (XMLTOC): Add rx.xml.
1406 (FEATURE_XMLFILES): Remove rx.xml.
1407 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1408 * features/rx.c: Regenerate.
1409 * features/rx.xml: Wrap in `target` tags, and reindent.
1410 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1411 structure.
1412 (maint_print_c_tdesc_opt_def): New typedef.
1413 (maint_print_c_tdesc_opt_defs): New static global.
1414 (make_maint_print_c_tdesc_options_def_group): New function.
1415 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1416 print single feature C file for target descriptions containing a
1417 single feature.
1418 (maint_print_c_tdesc_cmd_completer): New function.
1419 (_initialize_target_descriptions): Update call to register command
1420 completer, and include command line flag in help text.
1421
550820e1
AB
14222020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1425 numbers.
1426 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1427 enum values.
1428
baf20f76
TT
14292020-11-10 Tom Tromey <tom@tromey.com>
1430
1431 * value.h (internalvar_name): Update.
1432 * value.c (internalvar_name): Make return type const.
1433
caaece0e
TT
14342020-11-10 Tom Tromey <tom@tromey.com>
1435
1436 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1437 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1438 const.
1439
8e20b4be
TT
14402020-11-10 Tom Tromey <tom@tromey.com>
1441
1442 * objc-lang.h (value_nsstring): Update.
1443 * objc-lang.c (value_nsstring): Make "ptr" const.
1444
86775fab
AB
14452020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * expprint.c (print_subexp_funcall): Increment expression position
1448 after reading argument count.
1449 * f-lang.c (print_subexp_f): Skip over opcode before calling
1450 common function.
1451 (dump_subexp_body_f): Likewise.
1452
3fed4c0b
RG
14532020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1454
1455 PR python/26832
1456 * configure: Regenerate.
1457 * configure.ac: Check for python modules ctypes instead of
1458 itertools.
1459
ac3d4064
PA
14602020-11-06 Pedro Alves <pedro@palves.net>
1461
1462 * macroexp.c (struct macro_buffer): Split in two classes. Add
1463 uses adjusted.
1464 (struct shared_macro_buffer): New, factored out from struct
1465 macro_buffer.
1466 (struct growable_macro_buffer): New, factored out from struct
1467 macro_buffer.
1468 (set_token, get_comment, get_identifier, get_pp_number)
1469 (get_character_constant, get_string_literal, get_punctuator)
1470 (get_next_token_for_substitution): Constify parameters.
1471 (substitute_args): Constify locals.
1472
606decb2
TT
14732020-11-05 Tom Tromey <tom@tromey.com>
1474
1475 * dwarf2/read.c (read_cutu_die_from_dwo)
1476 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1477 (build_type_psymtabs_1): Update.
1478 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1479 parameter.
1480 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1481 Don't read section. Add assert.
1482
9c91c725
TT
14832020-11-04 Tom Tromey <tromey@adacore.com>
1484
1485 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1486
8d9fd3a1
TT
14872020-11-04 Tom Tromey <tromey@adacore.com>
1488
1489 * ada-typeprint.c (ada_print_type): Handle __T types.
1490
d8f62e84
TT
14912020-11-04 Tom Tromey <tromey@adacore.com>
1492
1493 * dwarf2/read.c (add_partial_symbol, process_die):
1494 Handle DW_TAG_array_type.
1495 (is_type_tag_for_partial): Add "lang" parameter.
1496 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1497
7ff5b937
TT
14982020-11-04 Tom Tromey <tromey@adacore.com>
1499
1500 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1501
10f6a3ad
TT
15022020-11-04 Tom Tromey <tromey@adacore.com>
1503
1504 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1505 array.
1506
b72795a8
TT
15072020-11-04 Tom Tromey <tromey@adacore.com>
1508
1509 * gdbtypes.c (update_static_array_size): Handle bit stride.
1510
24aa1b02
TT
15112020-11-04 Tom Tromey <tromey@adacore.com>
1512
1513 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1514
c9a28cbe
TT
15152020-11-04 Tom Tromey <tromey@adacore.com>
1516
1517 * ada-lang.c (ada_is_any_packed_array_type): New function.
1518 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1519
57567375
TT
15202020-11-04 Tom Tromey <tromey@adacore.com>
1521
1522 * dwarf2/read.c (recognize_bound_expression)
1523 (quirk_ada_thick_pointer): New functions.
1524 (read_array_type): Call quirk_ada_thick_pointer.
1525 (set_die_type): Add "skip_data_location" parameter.
1526 (quirk_ada_thick_pointer): New function.
1527 (process_structure_scope): Call quirk_ada_thick_pointer.
1528 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1529 (decode_packed_array_bitsize): Handle thick pointers without
1530 parallel types.
1531 (ada_is_gnat_encoded_packed_array_type): Rename from
1532 ada_is_packed_array_type.
1533 (ada_is_constrained_packed_array_type): Update.
1534 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1535 (ada_value_print_1): Use ada_get_decoded_value.
1536
a7400e44
TT
15372020-11-04 Tom Tromey <tromey@adacore.com>
1538
1539 * ada-lang.c (recursively_update_array_bitsize): New function.
1540 (decode_constrained_packed_array_type): Call it.
1541
75fd6a26
TT
15422020-11-04 Tom Tromey <tromey@adacore.com>
1543
1544 * ada-lang.c (to_fixed_array_type): Error if
1545 decode_constrained_packed_array_type returns NULL.
1546
93f9561e
TT
15472020-11-04 Tom Tromey <tromey@adacore.com>
1548
1549 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1550
257e02d8
TT
15512020-11-02 Tom Tromey <tromey@adacore.com>
1552
1553 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1554 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1555 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1556 * amd64-ravenscar-thread.c: New file.
1557 * amd64-ravenscar-thread.h: New file.
1558 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1559 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1560
74d877e5
AB
15612020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * main.c (execute_cmdargs): New function.
1564 (captured_main_1): Make use of execute_cmdargs.
1565
64aaad63
AB
15662020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 * NEWS: Mention changes to config file search path.
1569 * main.c
1570
5b3d3560
TT
15712020-11-02 Tom Tromey <tromey@adacore.com>
1572
1573 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1574 (python_GdbModuleDef): Move earlier. Now static.
1575 (do_start_initialization): Consolidate some IS_PY3K blocks.
1576
dda83cd7
SM
15772020-11-02 Simon Marchi <simon.marchi@efficios.com>
1578
1579 * aarch64-linux-tdep.c: Fix indentation.
1580 * aarch64-ravenscar-thread.c: Fix indentation.
1581 * aarch64-tdep.c: Fix indentation.
1582 * aarch64-tdep.h: Fix indentation.
1583 * ada-lang.c: Fix indentation.
1584 * ada-lang.h: Fix indentation.
1585 * ada-tasks.c: Fix indentation.
1586 * ada-typeprint.c: Fix indentation.
1587 * ada-valprint.c: Fix indentation.
1588 * ada-varobj.c: Fix indentation.
1589 * addrmap.c: Fix indentation.
1590 * addrmap.h: Fix indentation.
1591 * agent.c: Fix indentation.
1592 * aix-thread.c: Fix indentation.
1593 * alpha-bsd-nat.c: Fix indentation.
1594 * alpha-linux-tdep.c: Fix indentation.
1595 * alpha-mdebug-tdep.c: Fix indentation.
1596 * alpha-nbsd-tdep.c: Fix indentation.
1597 * alpha-obsd-tdep.c: Fix indentation.
1598 * alpha-tdep.c: Fix indentation.
1599 * amd64-bsd-nat.c: Fix indentation.
1600 * amd64-darwin-tdep.c: Fix indentation.
1601 * amd64-linux-nat.c: Fix indentation.
1602 * amd64-linux-tdep.c: Fix indentation.
1603 * amd64-nat.c: Fix indentation.
1604 * amd64-obsd-tdep.c: Fix indentation.
1605 * amd64-tdep.c: Fix indentation.
1606 * amd64-windows-tdep.c: Fix indentation.
1607 * annotate.c: Fix indentation.
1608 * arc-tdep.c: Fix indentation.
1609 * arch-utils.c: Fix indentation.
1610 * arch/arm-get-next-pcs.c: Fix indentation.
1611 * arch/arm.c: Fix indentation.
1612 * arm-linux-nat.c: Fix indentation.
1613 * arm-linux-tdep.c: Fix indentation.
1614 * arm-nbsd-tdep.c: Fix indentation.
1615 * arm-pikeos-tdep.c: Fix indentation.
1616 * arm-tdep.c: Fix indentation.
1617 * arm-tdep.h: Fix indentation.
1618 * arm-wince-tdep.c: Fix indentation.
1619 * auto-load.c: Fix indentation.
1620 * auxv.c: Fix indentation.
1621 * avr-tdep.c: Fix indentation.
1622 * ax-gdb.c: Fix indentation.
1623 * ax-general.c: Fix indentation.
1624 * bfin-linux-tdep.c: Fix indentation.
1625 * block.c: Fix indentation.
1626 * block.h: Fix indentation.
1627 * blockframe.c: Fix indentation.
1628 * bpf-tdep.c: Fix indentation.
1629 * break-catch-sig.c: Fix indentation.
1630 * break-catch-syscall.c: Fix indentation.
1631 * break-catch-throw.c: Fix indentation.
1632 * breakpoint.c: Fix indentation.
1633 * breakpoint.h: Fix indentation.
1634 * bsd-uthread.c: Fix indentation.
1635 * btrace.c: Fix indentation.
1636 * build-id.c: Fix indentation.
1637 * buildsym-legacy.h: Fix indentation.
1638 * buildsym.c: Fix indentation.
1639 * c-typeprint.c: Fix indentation.
1640 * c-valprint.c: Fix indentation.
1641 * c-varobj.c: Fix indentation.
1642 * charset.c: Fix indentation.
1643 * cli/cli-cmds.c: Fix indentation.
1644 * cli/cli-decode.c: Fix indentation.
1645 * cli/cli-decode.h: Fix indentation.
1646 * cli/cli-script.c: Fix indentation.
1647 * cli/cli-setshow.c: Fix indentation.
1648 * coff-pe-read.c: Fix indentation.
1649 * coffread.c: Fix indentation.
1650 * compile/compile-cplus-types.c: Fix indentation.
1651 * compile/compile-object-load.c: Fix indentation.
1652 * compile/compile-object-run.c: Fix indentation.
1653 * completer.c: Fix indentation.
1654 * corefile.c: Fix indentation.
1655 * corelow.c: Fix indentation.
1656 * cp-abi.h: Fix indentation.
1657 * cp-namespace.c: Fix indentation.
1658 * cp-support.c: Fix indentation.
1659 * cp-valprint.c: Fix indentation.
1660 * cris-linux-tdep.c: Fix indentation.
1661 * cris-tdep.c: Fix indentation.
1662 * darwin-nat-info.c: Fix indentation.
1663 * darwin-nat.c: Fix indentation.
1664 * darwin-nat.h: Fix indentation.
1665 * dbxread.c: Fix indentation.
1666 * dcache.c: Fix indentation.
1667 * disasm.c: Fix indentation.
1668 * dtrace-probe.c: Fix indentation.
1669 * dwarf2/abbrev.c: Fix indentation.
1670 * dwarf2/attribute.c: Fix indentation.
1671 * dwarf2/expr.c: Fix indentation.
1672 * dwarf2/frame.c: Fix indentation.
1673 * dwarf2/index-cache.c: Fix indentation.
1674 * dwarf2/index-write.c: Fix indentation.
1675 * dwarf2/line-header.c: Fix indentation.
1676 * dwarf2/loc.c: Fix indentation.
1677 * dwarf2/macro.c: Fix indentation.
1678 * dwarf2/read.c: Fix indentation.
1679 * dwarf2/read.h: Fix indentation.
1680 * elfread.c: Fix indentation.
1681 * eval.c: Fix indentation.
1682 * event-top.c: Fix indentation.
1683 * exec.c: Fix indentation.
1684 * exec.h: Fix indentation.
1685 * expprint.c: Fix indentation.
1686 * f-lang.c: Fix indentation.
1687 * f-typeprint.c: Fix indentation.
1688 * f-valprint.c: Fix indentation.
1689 * fbsd-nat.c: Fix indentation.
1690 * fbsd-tdep.c: Fix indentation.
1691 * findvar.c: Fix indentation.
1692 * fork-child.c: Fix indentation.
1693 * frame-unwind.c: Fix indentation.
1694 * frame-unwind.h: Fix indentation.
1695 * frame.c: Fix indentation.
1696 * frv-linux-tdep.c: Fix indentation.
1697 * frv-tdep.c: Fix indentation.
1698 * frv-tdep.h: Fix indentation.
1699 * ft32-tdep.c: Fix indentation.
1700 * gcore.c: Fix indentation.
1701 * gdb_bfd.c: Fix indentation.
1702 * gdbarch.sh: Fix indentation.
1703 * gdbarch.c: Re-generate
1704 * gdbarch.h: Re-generate.
1705 * gdbcore.h: Fix indentation.
1706 * gdbthread.h: Fix indentation.
1707 * gdbtypes.c: Fix indentation.
1708 * gdbtypes.h: Fix indentation.
1709 * glibc-tdep.c: Fix indentation.
1710 * gnu-nat.c: Fix indentation.
1711 * gnu-nat.h: Fix indentation.
1712 * gnu-v2-abi.c: Fix indentation.
1713 * gnu-v3-abi.c: Fix indentation.
1714 * go32-nat.c: Fix indentation.
1715 * guile/guile-internal.h: Fix indentation.
1716 * guile/scm-cmd.c: Fix indentation.
1717 * guile/scm-frame.c: Fix indentation.
1718 * guile/scm-iterator.c: Fix indentation.
1719 * guile/scm-math.c: Fix indentation.
1720 * guile/scm-ports.c: Fix indentation.
1721 * guile/scm-pretty-print.c: Fix indentation.
1722 * guile/scm-value.c: Fix indentation.
1723 * h8300-tdep.c: Fix indentation.
1724 * hppa-linux-nat.c: Fix indentation.
1725 * hppa-linux-tdep.c: Fix indentation.
1726 * hppa-nbsd-nat.c: Fix indentation.
1727 * hppa-nbsd-tdep.c: Fix indentation.
1728 * hppa-obsd-nat.c: Fix indentation.
1729 * hppa-tdep.c: Fix indentation.
1730 * hppa-tdep.h: Fix indentation.
1731 * i386-bsd-nat.c: Fix indentation.
1732 * i386-darwin-nat.c: Fix indentation.
1733 * i386-darwin-tdep.c: Fix indentation.
1734 * i386-dicos-tdep.c: Fix indentation.
1735 * i386-gnu-nat.c: Fix indentation.
1736 * i386-linux-nat.c: Fix indentation.
1737 * i386-linux-tdep.c: Fix indentation.
1738 * i386-nto-tdep.c: Fix indentation.
1739 * i386-obsd-tdep.c: Fix indentation.
1740 * i386-sol2-nat.c: Fix indentation.
1741 * i386-tdep.c: Fix indentation.
1742 * i386-tdep.h: Fix indentation.
1743 * i386-windows-tdep.c: Fix indentation.
1744 * i387-tdep.c: Fix indentation.
1745 * i387-tdep.h: Fix indentation.
1746 * ia64-libunwind-tdep.c: Fix indentation.
1747 * ia64-libunwind-tdep.h: Fix indentation.
1748 * ia64-linux-nat.c: Fix indentation.
1749 * ia64-linux-tdep.c: Fix indentation.
1750 * ia64-tdep.c: Fix indentation.
1751 * ia64-tdep.h: Fix indentation.
1752 * ia64-vms-tdep.c: Fix indentation.
1753 * infcall.c: Fix indentation.
1754 * infcmd.c: Fix indentation.
1755 * inferior.c: Fix indentation.
1756 * infrun.c: Fix indentation.
1757 * iq2000-tdep.c: Fix indentation.
1758 * language.c: Fix indentation.
1759 * linespec.c: Fix indentation.
1760 * linux-fork.c: Fix indentation.
1761 * linux-nat.c: Fix indentation.
1762 * linux-tdep.c: Fix indentation.
1763 * linux-thread-db.c: Fix indentation.
1764 * lm32-tdep.c: Fix indentation.
1765 * m2-lang.c: Fix indentation.
1766 * m2-typeprint.c: Fix indentation.
1767 * m2-valprint.c: Fix indentation.
1768 * m32c-tdep.c: Fix indentation.
1769 * m32r-linux-tdep.c: Fix indentation.
1770 * m32r-tdep.c: Fix indentation.
1771 * m68hc11-tdep.c: Fix indentation.
1772 * m68k-bsd-nat.c: Fix indentation.
1773 * m68k-linux-nat.c: Fix indentation.
1774 * m68k-linux-tdep.c: Fix indentation.
1775 * m68k-tdep.c: Fix indentation.
1776 * machoread.c: Fix indentation.
1777 * macrocmd.c: Fix indentation.
1778 * macroexp.c: Fix indentation.
1779 * macroscope.c: Fix indentation.
1780 * macrotab.c: Fix indentation.
1781 * macrotab.h: Fix indentation.
1782 * main.c: Fix indentation.
1783 * mdebugread.c: Fix indentation.
1784 * mep-tdep.c: Fix indentation.
1785 * mi/mi-cmd-catch.c: Fix indentation.
1786 * mi/mi-cmd-disas.c: Fix indentation.
1787 * mi/mi-cmd-env.c: Fix indentation.
1788 * mi/mi-cmd-stack.c: Fix indentation.
1789 * mi/mi-cmd-var.c: Fix indentation.
1790 * mi/mi-cmds.c: Fix indentation.
1791 * mi/mi-main.c: Fix indentation.
1792 * mi/mi-parse.c: Fix indentation.
1793 * microblaze-tdep.c: Fix indentation.
1794 * minidebug.c: Fix indentation.
1795 * minsyms.c: Fix indentation.
1796 * mips-linux-nat.c: Fix indentation.
1797 * mips-linux-tdep.c: Fix indentation.
1798 * mips-nbsd-tdep.c: Fix indentation.
1799 * mips-tdep.c: Fix indentation.
1800 * mn10300-linux-tdep.c: Fix indentation.
1801 * mn10300-tdep.c: Fix indentation.
1802 * moxie-tdep.c: Fix indentation.
1803 * msp430-tdep.c: Fix indentation.
1804 * namespace.h: Fix indentation.
1805 * nat/fork-inferior.c: Fix indentation.
1806 * nat/gdb_ptrace.h: Fix indentation.
1807 * nat/linux-namespaces.c: Fix indentation.
1808 * nat/linux-osdata.c: Fix indentation.
1809 * nat/netbsd-nat.c: Fix indentation.
1810 * nat/x86-dregs.c: Fix indentation.
1811 * nbsd-nat.c: Fix indentation.
1812 * nbsd-tdep.c: Fix indentation.
1813 * nios2-linux-tdep.c: Fix indentation.
1814 * nios2-tdep.c: Fix indentation.
1815 * nto-procfs.c: Fix indentation.
1816 * nto-tdep.c: Fix indentation.
1817 * objfiles.c: Fix indentation.
1818 * objfiles.h: Fix indentation.
1819 * opencl-lang.c: Fix indentation.
1820 * or1k-tdep.c: Fix indentation.
1821 * osabi.c: Fix indentation.
1822 * osabi.h: Fix indentation.
1823 * osdata.c: Fix indentation.
1824 * p-lang.c: Fix indentation.
1825 * p-typeprint.c: Fix indentation.
1826 * p-valprint.c: Fix indentation.
1827 * parse.c: Fix indentation.
1828 * ppc-linux-nat.c: Fix indentation.
1829 * ppc-linux-tdep.c: Fix indentation.
1830 * ppc-nbsd-nat.c: Fix indentation.
1831 * ppc-nbsd-tdep.c: Fix indentation.
1832 * ppc-obsd-nat.c: Fix indentation.
1833 * ppc-ravenscar-thread.c: Fix indentation.
1834 * ppc-sysv-tdep.c: Fix indentation.
1835 * ppc64-tdep.c: Fix indentation.
1836 * printcmd.c: Fix indentation.
1837 * proc-api.c: Fix indentation.
1838 * producer.c: Fix indentation.
1839 * producer.h: Fix indentation.
1840 * prologue-value.c: Fix indentation.
1841 * prologue-value.h: Fix indentation.
1842 * psymtab.c: Fix indentation.
1843 * python/py-arch.c: Fix indentation.
1844 * python/py-bpevent.c: Fix indentation.
1845 * python/py-event.c: Fix indentation.
1846 * python/py-event.h: Fix indentation.
1847 * python/py-finishbreakpoint.c: Fix indentation.
1848 * python/py-frame.c: Fix indentation.
1849 * python/py-framefilter.c: Fix indentation.
1850 * python/py-inferior.c: Fix indentation.
1851 * python/py-infthread.c: Fix indentation.
1852 * python/py-objfile.c: Fix indentation.
1853 * python/py-prettyprint.c: Fix indentation.
1854 * python/py-registers.c: Fix indentation.
1855 * python/py-signalevent.c: Fix indentation.
1856 * python/py-stopevent.c: Fix indentation.
1857 * python/py-stopevent.h: Fix indentation.
1858 * python/py-threadevent.c: Fix indentation.
1859 * python/py-tui.c: Fix indentation.
1860 * python/py-unwind.c: Fix indentation.
1861 * python/py-value.c: Fix indentation.
1862 * python/py-xmethods.c: Fix indentation.
1863 * python/python-internal.h: Fix indentation.
1864 * python/python.c: Fix indentation.
1865 * ravenscar-thread.c: Fix indentation.
1866 * record-btrace.c: Fix indentation.
1867 * record-full.c: Fix indentation.
1868 * record.c: Fix indentation.
1869 * reggroups.c: Fix indentation.
1870 * regset.h: Fix indentation.
1871 * remote-fileio.c: Fix indentation.
1872 * remote.c: Fix indentation.
1873 * reverse.c: Fix indentation.
1874 * riscv-linux-tdep.c: Fix indentation.
1875 * riscv-ravenscar-thread.c: Fix indentation.
1876 * riscv-tdep.c: Fix indentation.
1877 * rl78-tdep.c: Fix indentation.
1878 * rs6000-aix-tdep.c: Fix indentation.
1879 * rs6000-lynx178-tdep.c: Fix indentation.
1880 * rs6000-nat.c: Fix indentation.
1881 * rs6000-tdep.c: Fix indentation.
1882 * rust-lang.c: Fix indentation.
1883 * rx-tdep.c: Fix indentation.
1884 * s12z-tdep.c: Fix indentation.
1885 * s390-linux-tdep.c: Fix indentation.
1886 * score-tdep.c: Fix indentation.
1887 * ser-base.c: Fix indentation.
1888 * ser-mingw.c: Fix indentation.
1889 * ser-uds.c: Fix indentation.
1890 * ser-unix.c: Fix indentation.
1891 * serial.c: Fix indentation.
1892 * sh-linux-tdep.c: Fix indentation.
1893 * sh-nbsd-tdep.c: Fix indentation.
1894 * sh-tdep.c: Fix indentation.
1895 * skip.c: Fix indentation.
1896 * sol-thread.c: Fix indentation.
1897 * solib-aix.c: Fix indentation.
1898 * solib-darwin.c: Fix indentation.
1899 * solib-frv.c: Fix indentation.
1900 * solib-svr4.c: Fix indentation.
1901 * solib.c: Fix indentation.
1902 * source.c: Fix indentation.
1903 * sparc-linux-tdep.c: Fix indentation.
1904 * sparc-nbsd-tdep.c: Fix indentation.
1905 * sparc-obsd-tdep.c: Fix indentation.
1906 * sparc-ravenscar-thread.c: Fix indentation.
1907 * sparc-tdep.c: Fix indentation.
1908 * sparc64-linux-tdep.c: Fix indentation.
1909 * sparc64-nbsd-tdep.c: Fix indentation.
1910 * sparc64-obsd-tdep.c: Fix indentation.
1911 * sparc64-tdep.c: Fix indentation.
1912 * stabsread.c: Fix indentation.
1913 * stack.c: Fix indentation.
1914 * stap-probe.c: Fix indentation.
1915 * stubs/ia64vms-stub.c: Fix indentation.
1916 * stubs/m32r-stub.c: Fix indentation.
1917 * stubs/m68k-stub.c: Fix indentation.
1918 * stubs/sh-stub.c: Fix indentation.
1919 * stubs/sparc-stub.c: Fix indentation.
1920 * symfile-mem.c: Fix indentation.
1921 * symfile.c: Fix indentation.
1922 * symfile.h: Fix indentation.
1923 * symmisc.c: Fix indentation.
1924 * symtab.c: Fix indentation.
1925 * symtab.h: Fix indentation.
1926 * target-float.c: Fix indentation.
1927 * target.c: Fix indentation.
1928 * target.h: Fix indentation.
1929 * tic6x-tdep.c: Fix indentation.
1930 * tilegx-linux-tdep.c: Fix indentation.
1931 * tilegx-tdep.c: Fix indentation.
1932 * top.c: Fix indentation.
1933 * tracefile-tfile.c: Fix indentation.
1934 * tracepoint.c: Fix indentation.
1935 * tui/tui-disasm.c: Fix indentation.
1936 * tui/tui-io.c: Fix indentation.
1937 * tui/tui-regs.c: Fix indentation.
1938 * tui/tui-stack.c: Fix indentation.
1939 * tui/tui-win.c: Fix indentation.
1940 * tui/tui-winsource.c: Fix indentation.
1941 * tui/tui.c: Fix indentation.
1942 * typeprint.c: Fix indentation.
1943 * ui-out.h: Fix indentation.
1944 * unittests/copy_bitwise-selftests.c: Fix indentation.
1945 * unittests/memory-map-selftests.c: Fix indentation.
1946 * utils.c: Fix indentation.
1947 * v850-tdep.c: Fix indentation.
1948 * valarith.c: Fix indentation.
1949 * valops.c: Fix indentation.
1950 * valprint.c: Fix indentation.
1951 * valprint.h: Fix indentation.
1952 * value.c: Fix indentation.
1953 * value.h: Fix indentation.
1954 * varobj.c: Fix indentation.
1955 * vax-tdep.c: Fix indentation.
1956 * windows-nat.c: Fix indentation.
1957 * windows-tdep.c: Fix indentation.
1958 * xcoffread.c: Fix indentation.
1959 * xml-syscall.c: Fix indentation.
1960 * xml-tdesc.c: Fix indentation.
1961 * xstormy16-tdep.c: Fix indentation.
1962 * xtensa-config.c: Fix indentation.
1963 * xtensa-linux-nat.c: Fix indentation.
1964 * xtensa-linux-tdep.c: Fix indentation.
1965 * xtensa-tdep.c: Fix indentation.
1966
e1f57067
AB
19672020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1968 Craig Blackmore <craig.blackmore@embecosm.com>
1969
1970 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1971 as an unsigned value.
1972
ae7754b2
TT
19732020-11-01 Tom Tromey <tom@tromey.com>
1974
1975 * dbxread.c (dbx_end_psymtab): Update.
1976 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1977 (build_type_psymtabs_reader): Update.
1978 * xcoffread.c (xcoff_end_psymtab): Update.
1979 * ctfread.c (scan_partial_symbols): Update.
1980 * psymtab.c (sort_pst_symbols): Remove.
1981 (partial_symtab::end): Rename from end_psymtab_common. Inline
1982 sort_pst_symbols.
1983 * psympriv.h (struct partial_symtab) <end>: New method.
1984 (end_psymtab_common): Don't declare.
1985
0684bb51
TT
19862020-11-01 Tom Tromey <tom@tromey.com>
1987
1988 * symmisc.c (count_psyms): New function.
1989 (print_objfile_statistics): Use it.
1990 * psymtab.c (append_psymbol_to_list): Remove.
1991 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1992 * objfiles.h (struct objstats) <n_psyms>: Remove.
1993
089002bb
TT
19942020-11-01 Tom Tromey <tom@tromey.com>
1995
1996 * dbxread.c (dbx_end_psymtab): Update.
1997 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1998 (build_type_psymtabs_reader): Update.
1999 * xcoffread.c (xcoff_end_psymtab): Update.
2000 * ctfread.c (scan_partial_symbols): Update.
2001 * psympriv.h (end_psymtab_common): Update.
2002 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2003 (sort_pst_symbols): Likewise.
2004
525454d6
TT
20052020-11-01 Tom Tromey <tom@tromey.com>
2006
2007 * dbxread.c (dbx_symfile_read): Update.
2008 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2009 * xcoffread.c (xcoff_initial_scan): Update.
2010 * psympriv.h (init_psymbol_list): Don't declare.
2011 * psymtab.c (init_psymbol_list): Remove.
2012
60bd1d53
JB
20132020-11-01 Joel Brobecker <brobecker@adacore.com>
2014
2015 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2016 gnat_encoded_fixed_type_info. Update all callers.
2017
db99d0d0
JB
20182020-11-01 Joel Brobecker <brobecker@adacore.com>
2019
2020 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2021 line too long.
2022
75f24e86
JB
20232020-11-01 Joel Brobecker <brobecker@adacore.com>
2024
2025 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2026 cast_from_fixed. Update all callers.
2027 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2028 Update all callers.
2029 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2030 Update all callers.
2031 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2032 ada_scaling_factor.
2033 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2034 to print_gnat_encoded_fixed_point_type.
2035 * ada-valprint.c: Likewise.
2036
4f0469cd
AB
20372020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2040 (debug_prefixed_printf): Add check of debug_displaced flag.
2041 * linux-nat.c (linux_nat_debug_printf): Add check of
2042 debug_linux_nat flag.
2043
17417fb0
SM
20442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * infrun.c (infrun_debug_printf_1): Remove.
2047 (displaced_debug_printf_1): Remove.
2048 (stop_all_threads): Use debug_prefixed_printf.
2049 * infrun.h (infrun_debug_printf_1): Remove.
2050 (infrun_debug_printf): Use debug_prefixed_printf.
2051 (displaced_debug_printf_1): Remove.
2052 (displaced_debug_printf): Use debug_prefixed_printf.
2053 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2054 (linux_nat_debug_printf): Use debug_prefixed_printf.
2055
ad6dba1c
SM
20562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2057
2058 * configure: Re-generate.
2059 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2060 AC_LANG_PROGRAM.
2061
b6fb30ed
SM
20622020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2063
2064 * configure: Re-generate.
2065
5164c117
SM
20662020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * configure: Re-generate.
2069
864ca435
SM
20702020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2071
2072 * configure: Re-generate.
2073
b9442ec1
SM
20742020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2075
2076 * configure: Re-generate.
2077
294f2697
SM
20782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2079
2080 * acinclude.m4: Modernize.
2081 * configure: Re-generate.
2082
5593a99a
SM
20832020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2084
2085 * configure.ac: Modernize.
2086 * configure: Re-generate.
2087
e41fda1d
SM
20882020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2089
2090 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2091 * configure: Re-generate.
2092 * configure.ac: Remove AM_PROG_CC_STDC.
2093
91e1a0ed
SM
20942020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2095
2096 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2097 AC_CANONICAL_SYSTEM.
2098 * configure: Re-generate.
2099
136821d9
SM
21002020-10-30 Simon Marchi <simon.marchi@efficios.com>
2101
2102 * infrun.h (displaced_debug_printf): New macro. Replace
2103 displaced debug prints throughout to use it.
2104 (displaced_debug_printf_1): New declaration.
2105 (displaced_step_dump_bytes): Return string, remove ui_file
2106 parameter, update all callers.
2107 * infrun.c (displaced_debug_printf_1): New function.
2108 (displaced_step_dump_bytes): Return string, remove ui_file
2109 parameter
2110
aa2045e7
SM
21112020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2112
2113 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2114
b1ec2735
TT
21152020-10-30 Tom Tromey <tromey@adacore.com>
2116
2117 * Makefile.in (stamp-init): Depend on config.status.
2118
b78b3a29
TBA
21192020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2120
2121 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2122
d70bdd3c
PA
21232020-10-30 Pedro Alves <pedro@palves.net>
2124
2125 * thread.c (lookup_selected_frame): Move ...
2126 * frame.c (lookup_selected_frame): ... here.
2127
79952e69
PA
21282020-10-30 Pedro Alves <pedro@palves.net>
2129
2130 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2131 * frame.c
2132 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2133 Use save_selected_frame. Save language as well.
2134 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2135 Use restore_selected_frame, and restore language as well.
2136 (selected_frame_id, selected_frame_level): New.
2137 (selected_frame): Update comments.
2138 (save_selected_frame, restore_selected_frame): New.
2139 (get_selected_frame): Use lookup_selected_frame.
2140 (get_selected_frame_if_set): Delete.
2141 (select_frame): Record selected_frame_level and selected_frame_id.
2142 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2143 fields.
2144 (get_selected_frame): Make 'message' parameter optional.
2145 (get_selected_frame_if_set): Delete declaration.
2146 (select_frame): Update comments.
2147 (save_selected_frame, restore_selected_frame)
2148 (lookup_selected_frame): Declare.
2149 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2150 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2151 New field.
2152 (save_infcall_control_state): Use save_selected_frame.
2153 (restore_selected_frame): Delete.
2154 (restore_infcall_control_state): Use restore_selected_frame.
2155 * stack.c (select_frame_command_core, frame_command_core): Use
2156 get_selected_frame.
2157 * thread.c (restore_selected_frame): Rename to ...
2158 (lookup_selected_frame): ... this and make extern. Select the
2159 current frame if the frame level is -1.
2160 (scoped_restore_current_thread::restore): Also restore the
2161 language.
2162 (scoped_restore_current_thread::~scoped_restore_current_thread):
2163 Don't try/catch.
2164 (scoped_restore_current_thread::scoped_restore_current_thread):
2165 Save the language as well. Use save_selected_frame.
2166
58103c33
SM
21672020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2168
2169 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2170 documentation.
2171 * gdbarch.h: Re-generate.
2172
40a53766
SM
21732020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2174
2175 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2176 parameter.
2177 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2178 Likewise.
2179 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2180 Likewise.
2181 * arch-utils.c (default_displaced_step_hw_singlestep):
2182 Likewise.
2183 * arch-utils.h (default_displaced_step_hw_singlestep):
2184 Likewise.
2185 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2186 Likewise.
2187 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2188 Likewise.
2189 * gdbarch.c: Re-generate.
2190 * gdbarch.h: Re-generate.
2191 * infrun.c (resume_1): Adjust.
2192
8407f91b
TT
21932020-10-29 Tom Tromey <tom@tromey.com>
2194
2195 * progspace.c (program_space::~program_space): Don't call
2196 exec_close.
2197
5008b3b2
TT
21982020-10-29 Tom Tromey <tom@tromey.com>
2199
2200 * exec.c (exec_target::close): Don't change current program
2201 space.
2202
d9eebde0
TT
22032020-10-29 Tom Tromey <tom@tromey.com>
2204
2205 * symfile.c (add_symbol_file_command): Update.
2206 * exec.c (program_space::add_target_sections): Rename.
2207 * symfile-mem.c (symbol_file_add_from_memory): Update.
2208 * progspace.h (struct program_space) <add_target_sections>:
2209 Declare new overload.
2210 * exec.h (add_target_sections_of_objfile): Don't declare.
2211
3769e227
TT
22122020-10-29 Tom Tromey <tom@tromey.com>
2213
2214 * solib.c (solib_map_sections): Update.
2215 * exec.c (program_space::add_target_sections): Now a method.
2216 (exec_file_attach): Update.
2217 * exec.h (add_target_sections): Don't declare.
2218 * progspace.h (struct program_space) <add_target_sections>:
2219 Declare.
2220
2a3f84af
TT
22212020-10-29 Tom Tromey <tom@tromey.com>
2222
2223 * progspace.h (struct program_space) <remove_target_sections>:
2224 Declare.
2225 * exec.c (program_space::remove_target_sections): Now a method.
2226 * exec.h (remove_target_sections): Don't declare.
2227
004eecfd
TT
22282020-10-29 Tom Tromey <tom@tromey.com>
2229
2230 * inferior.c (delete_inferior): Update.
2231 * progspace.c (program_space::empty): Rename from
2232 program_space_empty_p. Return bool.
2233 * progspace.h (struct program_space) <empty>: New method.
2234 (program_space_empty_p): Don't declare.
2235
e39fb971
TT
22362020-10-29 Tom Tromey <tom@tromey.com>
2237
2238 * progspace.c (program_space::~program_space): Don't call
2239 clear_program_space_solib_cache.
2240 (program_space::clear_solib_cache): Rename from
2241 clear_solib_cache.
2242 * solib.c (handle_solib_event): Update.
2243 * progspace.h (struct program_space) <clear_solib_cache>: New
2244 method.
2245 (clear_program_space_solib_cache): Don't declare.
2246
a42d7dd8
TT
22472020-10-29 Tom Tromey <tom@tromey.com>
2248
2249 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2250 * target.c (info_target_command): Update.
2251 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2252 (symbol_file_clear, reread_symbols): Update.
2253 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2254 * stabsread.c (scan_file_globals): Update.
2255 * solib.c (update_solib_list): Update.
2256 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2257 (svr4_fetch_objfile_link_map, enable_break)
2258 (svr4_relocate_main_executable)
2259 (svr4_iterate_over_objfiles_in_search_order): Update.
2260 * solib-frv.c (lm_base, enable_break)
2261 (frv_relocate_main_executable): Update.
2262 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2263 (frv_fetch_objfile_link_map): Update.
2264 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2265 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2266 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2267 * remote.c (remote_target::get_offsets): Update.
2268 (remote_target::start_remote)
2269 (extended_remote_target::post_attach): Update.
2270 * objfiles.c (entry_point_address_query): Update.
2271 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2272 * minsyms.c (get_symbol_leading_char): Update.
2273 * frame.c (inside_main_func): Update.
2274 * progspace.h (symfile_objfile): Remove macro.
2275
19f6550e
TT
22762020-10-29 Tom Tromey <tom@tromey.com>
2277
2278 * exec.c (exec_file_attach): Update.
2279 * progspace.c (program_space::exec_close): Update.
2280 * progspace.h (struct program_space) <ebfd>: Now a
2281 gdb_bfd_ref_ptr.
2282 <set_exec_bfd>: Change argument type.
2283 <exec_bfd>: Update.
2284
7e10abd1
TT
22852020-10-29 Tom Tromey <tom@tromey.com>
2286
2287 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2288 * symfile.c (reread_symbols): Update.
2289 * symfile-mem.c (add_symbol_file_from_memory_command)
2290 (add_vsyscall_page): Update.
2291 * source-cache.c (source_cache::get_plain_source_lines): Update.
2292 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2293 (svr4_current_sos_direct, svr4_exec_displacement)
2294 (svr4_relocate_main_executable): Update.
2295 (svr4_iterate_over_objfiles_in_search_order): Update.
2296 * solib-frv.c (enable_break2, enable_break): Update.
2297 * solib-dsbt.c (lm_base, enable_break): Update.
2298 * solib-darwin.c (find_program_interpreter)
2299 (darwin_solib_create_inferior_hook): Update.
2300 * sol-thread.c (rw_common, ps_pdmodel): Update.
2301 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2302 * remote.c (compare_sections_command)
2303 (remote_target::trace_set_readonly_regions): Update.
2304 * remote-sim.c (get_sim_inferior_data)
2305 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2306 (gdbsim_target_open, gdbsim_target::files_info): Update.
2307 * exec.h (exec_bfd): Remove macro.
2308 * progspace.c (initialize_progspace): Update.
2309 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2310 Update.
2311 * nto-procfs.c (nto_procfs_target::post_attach)
2312 (nto_procfs_target::create_inferior): Update.
2313 * maint.c (maintenance_info_sections): Update.
2314 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2315 Update.
2316 * infcmd.c (post_create_inferior): Update.
2317 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2318 (objfile_find_memory_regions): Update.
2319 * exec.c (validate_exec_file, exec_file_attach)
2320 (exec_read_partial_read_only, print_section_info): Update.
2321 * corelow.c (core_target_open): Update.
2322 * corefile.c (reopen_exec_file, validate_files): Update.
2323 * arm-tdep.c (gdb_print_insn_arm): Update.
2324 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2325 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2326 methods.
2327
b55221ab
TT
23282020-10-29 Tom Tromey <tom@tromey.com>
2329
2330 * progspace.h (current_target_sections): Remove macro.
2331 * solib-svr4.c (scan_dyntag): Update.
2332 * solib-dsbt.c (scan_dyntag): Update.
2333 * exec.c (exec_target::close): Update.
2334 (add_target_sections, add_target_sections_of_objfile)
2335 (remove_target_sections, exec_target::get_section_table)
2336 (exec_target::files_info, set_section_command)
2337 (exec_set_section_address, exec_target::has_memory)
2338 (exec_target::has_memory): Update.
2339
5a36e715
TT
23402020-10-29 Tom Tromey <tom@tromey.com>
2341
2342 * source-cache.c (source_cache::get_plain_source_lines): Use
2343 current_program_space.
2344 * corefile.c (reopen_exec_file): Use current_program_space.
2345 * exec.c (exec_file_attach): Use current_program_space.
2346 * exec.h (exec_bfd_mtime): Remove.
2347
784c8592
TT
23482020-10-29 Tom Tromey <tom@tromey.com>
2349
2350 * gcore.c (default_gcore_mach): Remove.
2351 (create_gcore_bfd): Update.
2352
8a4f1402
TT
23532020-10-29 Tom Tromey <tom@tromey.com>
2354
2355 * progspace.c (program_space::exec_close): New method, from
2356 exec_close in exec.c.
2357 * exec.c (exec_close): Move to progspace.c.
2358 (exec_target::close, exec_file_attach): Update.
2359 * progspace.h (struct program_space) <exec_close>: Declare
2360 method.
2361
c20cb686
TT
23622020-10-29 Tom Tromey <tom@tromey.com>
2363
2364 * progspace.h (struct program_space) <exec_filename>: Rename from
2365 pspace_exec_filename. Now a unique_xmalloc_ptr.
2366 * inferior.c (print_selected_inferior): Update.
2367 (print_inferior): Update.
2368 * mi/mi-main.c (print_one_inferior): Update.
2369 * exec.h (exec_filename): Remove macro.
2370 * corefile.c (get_exec_file): Update.
2371 * exec.c (exec_close): Update.
2372 (exec_file_attach): Update.
2373 * progspace.c (clone_program_space): Update.
2374 (print_program_space): Update.
2375
6be2a9ab
TT
23762020-10-29 Tom Tromey <tom@tromey.com>
2377
2378 * target-section.h (struct target_section): Add constructor.
2379 * exec.c (build_section_table, add_target_sections_of_objfile):
2380 Update.
2381 * corelow.c (core_target::build_file_mappings): Update.
2382
cfaa8f76
TBA
23832020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2384
2385 PR gdb/19318
2386 * inferior.c (detach_inferior_command): Restore the current thread.
2387 (kill_inferior_command): Ditto.
2388
1b00ef06
TV
23892020-10-28 Tom de Vries <tdevries@suse.de>
2390
2391 PR symtab/26772
2392 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2393 map, check it in the "best match" loop.
2394
7f40ce1a
SM
23952020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2396
2397 * m32c-tdep.c: Remove unused includes.
2398
5eb9e3f5
SM
23992020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2400
2401 * xtensa-tdep.c: Remove includes.
2402
b1d4d8d1
TBA
24032020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2404
2405 * breakpoint.c (struct condition_command_opts): New struct.
2406 (condition_command_option_defs): New static global.
2407 (make_condition_command_options_def_group): New function.
2408 (condition_completer): Update to consider the '-force' flag.
2409 (condition_command): Use gdb::option for the '-force' flag.
2410
bd24c5d6
TV
24112020-10-27 Tom de Vries <tdevries@suse.de>
2412
2413 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2414 symbols in section check.
2415
61eb46a4
TV
24162020-10-27 Tom de Vries <tdevries@suse.de>
2417
2418 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2419
733d554a
TBA
24202020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2421
2422 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2423 * breakpoint.c: Update the help text of the 'condition' and 'break'
2424 commands.
2425 (set_breakpoint_condition): Take a new bool parameter
2426 to control whether condition definition should be forced even when
2427 the condition expression is invalid in all of the current locations.
2428 (condition_command): Update the call to 'set_breakpoint_condition'.
2429 (find_condition_and_thread): Take the "-force-condition" flag into
2430 account.
2431 * linespec.c (linespec_keywords): Add "-force-condition" as an
2432 element.
2433 (FORCE_KEYWORD_INDEX): New #define.
2434 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2435 as a keyword.
2436 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2437 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2438 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2439 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2440
b5fa468f
TBA
24412020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2442
2443 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2444 * breakpoint.c (set_breakpoint_location_condition): New function.
2445 (set_breakpoint_condition): Disable a breakpoint location if parsing
2446 the condition string gives an error.
2447 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2448 (build_target_condition_list): Ditto.
2449 (build_target_command_list): Ditto.
2450 (build_bpstat_chain): Ditto.
2451 (print_one_breakpoint_location): Ditto.
2452 (print_one_breakpoint): Ditto.
2453 (breakpoint_1): Ditto.
2454 (bp_location::bp_location): Ditto.
2455 (locations_are_equal): Ditto.
2456 (update_breakpoint_locations): Ditto.
2457 (enable_disable_bp_num_loc): Ditto.
2458 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2459 (find_condition_and_thread_for_sals): New static function.
2460 (create_breakpoint): Call find_condition_and_thread_for_sals.
2461 (location_to_sals): Call find_condition_and_thread_for_sals instead
2462 of find_condition_and_thread.
2463
1c47ec3e
TV
24642020-10-26 Tom de Vries <tdevries@suse.de>
2465
2466 * dwarf2/read.c (process_full_comp_unit): Call
2467 dwarf2_find_base_address.
2468
6390859c
TT
24692020-10-26 Tom Tromey <tromey@adacore.com>
2470
2471 * gdbtypes.c (create_range_type): Revert previous patch. Add
2472 comment.
2473
d744f0f9
PA
24742020-10-26 Pedro Alves <pedro@palves.net>
2475
2476 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2477 (my_waitpid): Use gdb::handle_eintr.
2478
006811bc
SM
24792020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2480
2481 * acinclude.m4: Update ptrace.m4 path.
2482 * ptrace.m4: Moved to gdbsupport.
2483
c75e31a1
SM
24842020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2485
2486 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2487 instead of target_gdbarch.
2488
32495661
SM
24892020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2490
2491 * jit.c (jit_reader_load_command): Pass current inferior.
2492 (jit_inferior_init): Change parameter type to inferior, use it.
2493 (jit_inferior_created): Remove.
2494 (jit_inferior_created_hook): Pass inferior parameter down.
2495 (_initialize_jit): Use jit_inferior_created_hook instead of
2496 jit_inferior_created.
2497 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2498 * infrun.c (follow_exec): Pass inferior to
2499 jit_inferior_created_hook.
2500
3f66685e
SM
25012020-10-24 Simon Marchi <simon.marchi@efficios.com>
2502
2503 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2504 parameter and use it.
2505 (thread_db_inferior_created): Pass inferior argument.
2506
a0ff652f
SM
25072020-10-24 Simon Marchi <simon.marchi@efficios.com>
2508
2509 * aix-thread.c (aix_thread_inferior_created): Add inferior
2510 parameter.
2511 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2512 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2513 * jit.c (jit_inferior_created): Likewise.
2514 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2515 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2516 * observable.h (inferior_created): Likewise.
2517 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2518 * symfile-mem.c (add_vsyscall_page): Likewise.
2519 * infcmd.c (post_create_inferior): Pass inferior argument.
2520
3c67532c
JB
25212020-10-24 Joel Brobecker <brobecker@adacore.com>
2522
2523 GDB 10.1 released.
2524
8747316e
JB
25252020-10-23 Joel Brobecker <brobecker@adacore.com>
2526
2527 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2528 to ada_check_typedef.
2529
1a0ea399
AB
25302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2531
2532 * f-exp.y (f_parse): Rename to...
2533 (f_language::parser): ...this.
2534 * f-lang.c (f_get_encoding): Rename to...
2535 (f_language::get_encoding): ...this.
2536 (f_op_print_tab): Rename to...
2537 (f_language::op_print_tab): ...this.
2538 (exp_descriptor_f): Rename to...
2539 (f_language::exp_descriptor_tab): ...this.
2540 (class f_language): Moved to f-lang.h.
2541 (f_language::language_arch_info): New function, moved out of class
2542 declaration.
2543 (f_language::search_name_hash): Likewise.
2544 (f_language::lookup_symbol_nonlocal): Likewise.
2545 (f_language::get_symbol_name_matcher_inner): Likewise.
2546 * f-lang.h: Add 'valprint.h' include.
2547 (class f_language): Moved here from f-lang.c.
2548 * f-typeprint.c (f_type_print_args): Delete commented out
2549 declaration.
2550 (f_print_typedef): Rename to...
2551 (f_language::print_typedef): ...this.
2552 (f_print_type): Rename to...
2553 (f_language::print_type): ...this.
2554 (f_type_print_varspec_prefix): Delete declaration and rename to...
2555 (f_language::f_type_print_varspec_prefix): ...this.
2556 (f_type_print_varspec_suffix): Delete declaration and rename to...
2557 (f_language::f_type_print_varspec_suffix): ...this.
2558 (f_type_print_base): Delete declaration and rename to...
2559 (f_language::f_type_print_base): ...this.
2560 * f-valprint.c (f_value_print_inner): Rename to...
2561 (f_language::value_print_inner): ...this.
2562 * parse.c: Delete 'f-lang.h' include.
2563
88cefd9b
AB
25642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * language.h (language_defn::print_type): Add variable names in
2567 declaration, and update header comment.
2568
5399db93
AB
25692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2570
2571 * ada-lang.c (ada_language::demangle): Rename to...
2572 (ada_language::demangle_symbol): ...this.
2573 * c-lang.c (cplus_language::demangle): Rename to...
2574 (cplus_language::demangle_symbol): ...this.
2575 * d-lang.c (d_language::demangle): Rename to...
2576 (d_language::demangle_symbol): ...this.
2577 * f-lang.c (f_language::demangle): Rename to...
2578 (f_language::demangle_symbol): ...this.
2579 * go-lang.c (go_language::demangle): Rename to...
2580 (go_language::demangle_symbol): ...this.
2581 * language.c (language_demangle): Update call to demangle_symbol.
2582 (auto_or_unknown_language::demangle): Rename to...
2583 (auto_or_unknown_language::demangle_symbol): ...this.
2584 * language.h (language_defn::demangle): Rename to...
2585 (language_defn::demangle_symbol): ...this.
2586 * objc-lang.c (objc_language::demangle): Rename to...
2587 (objc_language::demangle_symbol): ...this.
2588 * rust-lang.c (rust_language::demangle): Rename to...
2589 (rust_language::demangle_symbol): ...this.
2590
4b2f86ef
AB
25912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2592
2593 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2594 (iterate_over_file_blocks): Replace use of macro with the macros
2595 definition.
2596
e74b39de
AB
25972020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2598
2599 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2600 * valprint.c (maybe_print_array_index): Replace use of macro with
2601 the macros definition.
2602
00c696a6
AB
26032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * ada-lang.c (ada_language::print_array_index): Call value_print
2606 directly.
2607 * language.c (language_defn::print_array_index): Likewise.
2608 * language.h (LA_VALUE_PRINT): Delete.
2609 * valprint.c (value_print): Call value_print on the
2610 current_language directly.
2611
d3b67c56
AB
26122020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * language.h (LA_PRINT_TYPEDEF): Delete.
2615 * typeprint.c (typedef_print): Call print_typedef directly on the
2616 current_language object.
2617
790e2a12
AB
26182020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * m2-exp.y (m2_parse): Rename to...
2621 (m2_language::parser): ...this. Update function signature.
2622 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2623 (m2_op_print): Rename to...
2624 (m2_language::op_print_tab): ...this, and make const.
2625 (exp_descriptor_modula2): Rename to...
2626 (m2_language::exp_descriptor_modula2): ...this.
2627 (class m2_language): Move to m2-lang.h.
2628 (m2_language::language_arch_info): New function, moved out of
2629 class declaration.
2630 (m2_language::printchar): New function, body from m2_printchar.
2631 (m2_language::printstr): New function, moved out of class
2632 declaration.
2633 (m2_language::emitchar): Likewise.
2634 * m2-lang.h (m2_parse): Delete declaration.
2635 (m2_print_typedef): Delete declaration.
2636 (m2_value_print_inner): Delete declaration.
2637 (class m2_language): Class declaration moved from m2-lang.c,
2638 larger functions are left in m2-lang.c.
2639 * m2-typeprint.c (m2_print_typedef): Rename to...
2640 (m2_language::print_typedef): ...this, and update function
2641 signature.
2642 * m2-valprint.c (m2_value_print_inner): Rename to...
2643 (m2_language::value_print_inner): ...this, replace use of
2644 LA_PRINT_STRING with a direct call to printstr member function,
2645 and update recursive call.
2646
b01175fc
AB
26472020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2648
2649 * language.c (default_is_string_type_p): Delete, implementation
2650 moved into auto_or_unknown_language::is_string_type_p.
2651 (unk_op_print_tab): Moved into
2652 auto_or_unknown_language::opcode_print_table.
2653 (unknown_language_arch_info): Delete, implementation moved into
2654 auto_or_unknown_language::language_arch_info.
2655 (class auto_or_unknown_language): New class, member functions
2656 copied from unknown_language class, with some updates.
2657 (class unknown_language): Most member functions moved into
2658 auto_or_unknown_language class. Inherit from
2659 auto_or_unknown_language class.
2660 (class auto_language): Inherit from auto_or_unknown_language.
2661 Delete most member functions.
2662
1a97fe8c
HD
26632020-10-22 Hannes Domani <ssbssa@yahoo.de>
2664
2665 * stabsread.c (read_member_functions): Remove gdb_assert.
2666
6b9d0dfd
HD
26672020-10-22 Hannes Domani <ssbssa@yahoo.de>
2668
2669 * gdbtypes.c (init_complex_type): Check target type name.
2670
4b4bb603
SM
26712020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2672
2673 * target-debug.h (target_debug_print_struct_target_ops_p):
2674 Remove.
2675 (target_debug_print_async_callback_ftype_p): Remove.
2676 (target_debug_print_struct_trace_state_variable_p): Remove.
2677 (target_debug_print_struct_traceframe_info_p): Remove.
2678 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2679 (target_debug_print_enum_btrace_format): Remove.
2680 (target_debug_print_enum_info_proc_what): Remove.
2681 (target_debug_print_thread_info_pp): Remove.
2682
24f5300a
SM
26832020-10-22 Simon Marchi <simon.marchi@efficios.com>
2684
2685 * target.h (struct target_ops) <make_corefile_notes>:
2686 Change return type to unique pointer.
2687 * target.c (dummy_make_corefile_notes): Likewise.
2688 * exec.c (struct exec_target) <make_corefile_notes>:
2689 Likewise.
2690 (exec_target::make_corefile_notes): Likewise.
2691 * procfs.c (class procfs_target) <make_corefile_notes>:
2692 Likewise.
2693 (procfs_do_thread_registers): Adjust to unique pointer.
2694 (struct procfs_corefile_thread_data): Add constructor.
2695 <note_data>: Change type to unique pointer.
2696 (procfs_corefile_thread_callback): Adjust to unique pointer.
2697 (procfs_target::make_corefile_notes): Change return type to
2698 unique pointer.
2699 * target-delegates.c: Re-generate.
2700 * gcore.c (write_gcore_file_1): Adjust.
2701 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2702 New.
2703
5fb4027f
TV
27042020-10-22 Tom de Vries <tdevries@suse.de>
2705
2706 * block.c (find_block_in_blockvector): Make sure the returned block
2707 contains pc.
2708
4a636814
SM
27092020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 PR gdb/26693
2712 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2713 parameter.
2714 (load_cu): Pass existing CU.
2715 (process_imported_unit_die): Likewise.
2716 (follow_die_offset): Likewise.
2717
1bd57575
LM
27182020-10-22 Luis Machado <luis.machado@linaro.org>
2719
2720 * corelow.c (core_target::xfer_partial): Also check for an empty
2721 m_core_unavailable_mappings vector.
2722
6b4c676c
AB
27232020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2726 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2727 * f-exp.y (arglist): Allow for a series of subranges.
2728 (subrange): Add cases for subranges with strides.
2729 * f-lang.c (value_f90_subarray): Catch use of array strides and
2730 throw an error.
2731 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2732
f2d8e4c5
AB
27332020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * expprint.c (print_subexp_standard): Change enum range_type to
2736 range_flag and rename variables to match.
2737 (dump_subexp_body_standard): Likewise.
2738 * expression.h (enum range_type): Rename to...
2739 (enum range_flag): ...this.
2740 (range_types): Rename to...
2741 (range_flags): ...this.
2742 * f-lang.c (value_f90_subarray): Change enum range_type to
2743 range_flag and rename variables to match.
2744 * parse.c (operator_length_standard): Likewise.
2745 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2746 range_type to range_flag.
2747 * rust-lang.c (rust_evaluate_funcall): Likewise.
2748 (rust_range): Likewise.
2749 (rust_compute_range): Likewise.
2750 (rust_subscript): Likewise.
2751
2f1b18db
AB
27522020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2753
2754 * expprint.c (print_subexp_standard): Update to reflect changes to
2755 enum range_type.
2756 (dump_subexp_body_standard): Likewise.
2757 * expression.h (enum range_type): Convert to a bit field enum, and
2758 make the enum unsigned.
2759 * f-exp.y (subrange): Update to reflect changes to enum
2760 range_type.
2761 * f-lang.c (value_f90_subarray): Likewise.
2762 * parse.c (operator_length_standard): Likewise.
2763 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2764 * rust-lang.c (rust_range): Likewise.
2765 (rust_compute_range): Likewise.
2766 (rust_subscript): Likewise.
2767
a46d1843
SM
27682020-10-21 Simon Marchi <simon.marchi@efficios.com>
2769
2770 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2771 (displaced_step_in_progress): Fix comment.
2772
c21f37a8
SM
27732020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2776 * gdbarch.c: Re-generate.
2777 * gdbarch.h: Re-generate.
2778 * gcore.c (write_gcore_file_1): Adjust.
2779 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2780 constructor.
2781 <note_data>: Change type to unique pointer.
2782 <abort_iteration>: Change type to bool.
2783 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2784 (fbsd_collect_thread_registers): Return void, adjust.
2785 (struct fbsd_corefile_thread_data): Add construtor.
2786 <note_data>: Change type to unique pointer.
2787 (fbsd_corefile_thread): Adjust.
2788 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2789 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2790 to unique pointer, adjust.
2791 (struct linux_collect_regset_section_cb_data): Add constructor.
2792 <note_data>: Change type to unique pointer.
2793 <abort_iteration>: Change type to bool.
2794 (linux_collect_thread_registers): Return void, adjust.
2795 (struct linux_corefile_thread_data): Add constructor.
2796 <note_data>: Change type to unique pointer.
2797 (linux_corefile_thread): Adjust.
2798 (linux_make_corefile_notes): Return unique pointer, adjust.
2799
07fbbd01
SM
28002020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2801
2802 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2803 * gdbarch.c: Re-generate.
2804 * gdbarch.h: Re-generate.
2805 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2806 bool.
2807 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2808 Likewise.
2809 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2810 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2811 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2812 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2813
39535193
SM
28142020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2815
2816 * gdbarch.sh: Make generated predicates return bool.
2817 * gdbarch.c: Re-generate.
2818 * gdbarch.h: Re-generate.
2819
ad523d01
TT
28202020-10-20 Tom Tromey <tom@tromey.com>
2821
2822 * varobj-iter.h (struct varobj_item): Remove typedef.
2823
c4464ade
SM
28242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2825
2826 * infrun.c (currently_stepping): Change int to bool
2827 (maybe_software_singlestep): Likewise.
2828 (show_stop_on_solib_events): Likewise.
2829 (stepping_past_nonsteppable_watchpoint): Likewise.
2830 (displaced_step_in_progress_any_inferior): Likewise.
2831 (displaced_step_in_progress_thread): Likewise.
2832 (keep_going_stepped_thread): Likewise.
2833 (thread_still_needs_step_over): Likewise.
2834 (start_step_over): Likewise.
2835 (do_target_resume): Likewise.
2836 (resume_1): Likewise.
2837 (clear_proceed_status): Likewise.
2838 (thread_still_needs_step_over_bp): Likewise.
2839 (proceed): Likewise.
2840 (switch_back_to_stepped_thread): Likewise.
2841 (adjust_pc_after_break): Likewise.
2842 (stepped_in_from): Likewise.
2843 (handle_stop_requested): Likewise.
2844 (handle_syscall_event): Likewise.
2845 (handle_no_resumed): Likewise.
2846 (handle_inferior_event): Likewise.
2847 (finish_step_over): Likewise.
2848 (handle_signal_stop): Likewise.
2849 (process_event_stop_test): Likewise.
2850
2eb20436
SM
28512020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2852
2853 * infrun.c (get_displaced_stepping_state): Fix comment.
2854
e0c45ded
AS
28552020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2856
2857 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2858
22cc388e
TT
28592020-10-19 Tom Tromey <tromey@adacore.com>
2860
2861 PR tui/26719
2862 * tui/tui-winsource.h (struct tui_source_window_base)
2863 <refresh_window>: Rename from refresh_pad.
2864 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2865 Rename from refresh_pad.
2866 (tui_source_window_base::show_source_content)
2867 (tui_source_window_base::do_scroll_horizontal): Update.
2868
3c6eb4d4
TBA
28692020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2870
2871 * thread.c (_initialize_thread): Fine-tune the help text of
2872 'info threads'.
2873
26703721
TBA
28742020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2875
2876 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2877
61c26be8
MS
28782020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2879
2880 * breakpoint.c (handle_jit_event): Add an argument, change how
2881 `jit_event_handler` is called.
2882
932539d7
TT
28832020-10-17 Tom Tromey <tom@tromey.com>
2884
2885 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2886 (scan_xcoff_symtab): Update.
2887 * psymtab.h (class psymtab_storage) <global_psymbols,
2888 static_psymbols, current_global_psymbols,
2889 current_static_psymbols>: Remove.
2890 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2891 (match_partial_symbol, lookup_partial_symbol): Update.
2892 (print_partial_symbols): Change parameters.
2893 (dump_psymtab, recursively_search_psymtabs)
2894 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2895 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2896 (concat): Remove.
2897 (end_psymtab_common): Simplify.
2898 (append_psymbol_to_list): Change parameters.
2899 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2900 (init_psymbol_list): Simplify.
2901 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2902 * psympriv.h (struct partial_symtab) <empty>: New method.
2903 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2904 Remove.
2905 <global_psymbols, static_psymbols>: New members.
2906 <add_psymbol>: New methods.
2907 (add_psymbol_to_list): Don't declare.
2908 (psymbol_placement): Move earlier.
2909 * mdebugread.c (parse_partial_symbols): Update.
2910 (handle_psymbol_enumerators): Change parameters.
2911 (mdebug_expand_psymtab): Update.
2912 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2913 (add_partial_symbol): Update.
2914 * dwarf2/index-write.c (write_psymbols): Change parameters.
2915 (write_one_signatured_type): Update.
2916 (recursively_count_psymbols): Update.
2917 (recursively_write_psymbols): Update.
2918 (class debug_names) <recursively_write_psymbols>: Update.
2919 <write_psymbols>: Change parameters.
2920 <write_one_signatured_type>: Update.
2921 * dbxread.c (read_dbx_symtab): Update.
2922 (dbx_end_psymtab): Use partial_symtab::empty.
2923 * ctfread.c (struct ctf_context) <pst>: New member.
2924 (create_partial_symtab): Set it.
2925 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2926 (scan_partial_symbols): Use the psymtab's context. Update.
2927
cfabbd35
TT
29282020-10-17 Tom Tromey <tom@tromey.com>
2929
2930 * valprint.c (generic_value_print): Remove comment.
2931 * m2-valprint.c (m2_value_print_inner): Remove comment.
2932 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2933 type.
2934
520596f2
TV
29352020-10-17 Tom de Vries <tdevries@suse.de>
2936
2937 PR symtab/26317
2938 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2939 symbol main.
2940
76547ab3
TV
29412020-10-14 Tom de Vries <tdevries@suse.de>
2942
2943 PR gdb/26733
2944 * solib.c (solib_contains_address_p): Handle
2945 'solib->sections == nullptr'.
2946
d3a07122
SM
29472020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2948
2949 PR gdb/26642
2950 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2951 target can't do async.
2952 * target.c (target_wait): Assert that we don't pass
2953 TARGET_WNOHANG to a target that can't async.
2954
1b71cfcf
KR
29552020-10-13 Kamil Rytarowski <n54@gmx.com>
2956
2957 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2958 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2959 * alpha-bsd-nat.c: Adjust include.
2960 * alpha-bsd-tdep.h: Adjust comment.
2961 * alpha-nbsd-tdep.c: Rename to ...
2962 * alpha-netbsd-tdep.c: ... this, adjust include.
2963 * amd64-nbsd-nat.c: Rename to ...
2964 * amd64-netbsd-nat.c: ... this, adjust include.
2965 * amd64-nbsd-tdep.c: Rename to ...
2966 * amd64-netbsd-tdep.c: ... this, adjust include.
2967 * amd64-tdep.h: Adjust include.
2968 * arm-nbsd-nat.c: Rename to ...
2969 * arm-netbsd-nat.c: ... this, adjust include.
2970 * arm-nbsd-tdep.c: Rename to ...
2971 * arm-netbsd-tdep.c: ... this, adjust include.
2972 * arm-nbsd-tdep.h: Rename to ...
2973 * arm-netbsd-tdep.h: ... this, adjust include.
2974 * configure.nat: Adjust file lists.
2975 * configure.tgt: Likewise.
2976 * hppa-nbsd-nat.c: Rename to ...
2977 * hppa-netbsd-nat.c: ... this, adjust include.
2978 * hppa-nbsd-tdep.c: Rename to ...
2979 * hppa-netbsd-tdep.c: ... this, adjust include.
2980 * i386-nbsd-nat.c: Rename to ...
2981 * i386-netbsd-nat.c: ... this, adjust include.
2982 * i386-nbsd-tdep.c: Rename to ...
2983 * i386-netbsd-tdep.c: ... this, adjust include.
2984 * m68k-bsd-nat.c: Adjust include.
2985 * mips-nbsd-nat.c: Rename to ...
2986 * mips-netbsd-nat.c: ... this, adjust include.
2987 * mips-nbsd-tdep.c: Rename to ...
2988 * mips-netbsd-tdep.c: ... this, adjust include.
2989 * mips-nbsd-tdep.h: Rename to ...
2990 * mips-netbsd-tdep.h: ... this.
2991 * nbsd-nat.c: Rename to ...
2992 * netbsd-nat.c: ... this, adjust include.
2993 * nbsd-nat.h: Rename to ...
2994 * netbsd-nat.h: ... this, adjust include.
2995 * nbsd-tdep.c: Rename to ...
2996 * netbsd-tdep.c: ... this, adjust include.
2997 * nbsd-tdep.h: Rename to ...
2998 * netbsd-tdep.h: ... this.
2999 * ppc-nbsd-nat.c: Rename to ...
3000 * ppc-netbsd-nat.c: ... this, adjust include.
3001 * ppc-nbsd-tdep.c: Rename to ...
3002 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3003 * ppc-nbsd-tdep.h: Rename to ...
3004 * ppc-netbsd-tdep.h: ... this.
3005 * sh-nbsd-nat.c: Rename to ...
3006 * sh-netbsd-nat.c: ... this, adjust include.
3007 * sh-nbsd-tdep.c: Rename to ...
3008 * sh-netbsd-tdep.c: ... this, adjust include.
3009 * sparc-nbsd-nat.c: Rename to ...
3010 * sparc-netbsd-nat.c: ... this.
3011 * sparc-nbsd-tdep.c: Rename to ...
3012 * sparc-netbsd-tdep.c: ... this, adjust include.
3013 * sparc64-nbsd-nat.c: Rename to ...
3014 * sparc64-netbsd-nat.c: ... this.
3015 * sparc64-nbsd-tdep.c: Rename to ...
3016 * sparc64-netbsd-tdep.c: ... this, adjust include.
3017 * sparc64-tdep.h: Adjust comment.
3018 * vax-bsd-nat.c: Adjust include.
3019 * vax-nbsd-tdep.c: Rename to ...
3020 * vax-netbsd-tdep.c: ... this, adjust include.
3021
d7a78e5c
TT
30222020-10-12 Tom Tromey <tom@tromey.com>
3023
3024 * target.h (struct target_ops) <get_section_table>: Update.
3025 (target_get_section_table): Update.
3026 * target.c (target_get_section_table, target_section_by_addr)
3027 (memory_xfer_partial_1): Update.
3028 * target-section.h (target_section_table): Now an alias.
3029 * target-delegates.c: Rebuild.
3030 * target-debug.h (target_debug_print_target_section_table_p):
3031 Rename from target_debug_print_struct_target_section_table_p.
3032 * symfile.c (build_section_addr_info_from_section_table): Update.
3033 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3034 * solib-svr4.c (scan_dyntag): Update.
3035 * solib-dsbt.c (scan_dyntag): Update.
3036 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3037 Update.
3038 * record-full.c (record_full_core_target::xfer_partial): Update.
3039 * progspace.h (struct program_space) <target_sections>: Update.
3040 * exec.h (print_section_info): Update.
3041 * exec.c (exec_target::close, build_section_table)
3042 (add_target_sections, add_target_sections_of_objfile)
3043 (remove_target_sections, exec_on_vfork)
3044 (section_table_available_memory)
3045 (section_table_xfer_memory_partial)
3046 (exec_target::get_section_table, exec_target::xfer_partial)
3047 (print_section_info, set_section_command)
3048 (exec_set_section_address, exec_target::has_memory): Update.
3049 * corelow.c (core_target::build_file_mappings)
3050 (core_target::xfer_partial, core_target::info_proc_mappings)
3051 (core_target::info_proc_mappings): Update.
3052 * bfd-target.c (class target_bfd): Update
3053
eda214ce
TT
30542020-10-12 Tom Tromey <tom@tromey.com>
3055
3056 * progspace.c (program_space::~program_space): Don't call
3057 clear_section_table.
3058 * exec.h (clear_section_table): Don't declare.
3059 * exec.c (exec_target::close): Update.
3060 (clear_section_table): Remove.
3061
91840ee3
TT
30622020-10-12 Tom Tromey <tom@tromey.com>
3063
3064 * exec.c (add_target_sections_of_objfile): Simplify.
3065
2d128614
TT
30662020-10-12 Tom Tromey <tom@tromey.com>
3067
3068 * solib.c (solib_map_sections): Update.
3069 * record-full.c (record_full_core_open_1): Update.
3070 * exec.h (build_section_table): Return a target_section_table.
3071 * exec.c (exec_file_attach): Update.
3072 (build_section_table): Return a target_section_table.
3073 * corelow.c (core_target::core_target): Update.
3074 * bfd-target.c (target_bfd::target_bfd): Update.
3075
bb2a6777
TT
30762020-10-12 Tom Tromey <tom@tromey.com>
3077
3078 * target.c (target_section_by_addr, memory_xfer_partial_1):
3079 Update.
3080 * target-section.h (struct target_section_table): Use
3081 std::vector.
3082 * symfile.h (build_section_addr_info_from_section_table): Take a
3083 target_section_table.
3084 * symfile.c (build_section_addr_info_from_section_table): Take a
3085 target_section_table.
3086 * solist.h (struct so_list) <sections>: Change type.
3087 <sections_end>: Remove.
3088 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3089 (solib_contains_address_p): Update.
3090 * solib-svr4.c (scan_dyntag): Update.
3091 * solib-dsbt.c (scan_dyntag): Update.
3092 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3093 Update.
3094 * record-full.c (record_full_core_start, record_full_core_end):
3095 Remove.
3096 (record_full_core_sections): New global.
3097 (record_full_core_open_1, record_full_core_target::xfer_partial):
3098 Update.
3099 * exec.h (build_section_table, section_table_xfer_memory_partial)
3100 (add_target_sections): Take a target_section_table.
3101 * exec.c (exec_file_attach, clear_section_table): Update.
3102 (resize_section_table): Remove.
3103 (build_section_table, add_target_sections): Take a
3104 target_section_table.
3105 (add_target_sections_of_objfile, remove_target_sections)
3106 (exec_on_vfork): Update.
3107 (section_table_available_memory): Take a target_section_table.
3108 (section_table_read_available_memory): Update.
3109 (section_table_xfer_memory_partial): Take a target_section_table.
3110 (print_section_info, set_section_command)
3111 (exec_set_section_address, exec_target::has_memory): Update.
3112 * corelow.c (class core_target) <m_core_section_table,
3113 m_core_file_mappings>: Remove braces.
3114 <~core_target>: Remove.
3115 (core_target::core_target): Update.
3116 (core_target::~core_target): Remove.
3117 (core_target::build_file_mappings)
3118 (core_target::xfer_memory_via_mappings)
3119 (core_target::xfer_partial, core_target::info_proc_mappings):
3120 Update.
3121 * bfd-target.c (target_bfd::xfer_partial): Update.
3122 (target_bfd::target_bfd): Update.
3123 (target_bfd::~target_bfd): Remove.
3124
7b466b10
TT
31252020-10-12 Tom Tromey <tom@tromey.com>
3126
3127 * target.h (struct target_section, struct target_section_table):
3128 Move to target-section.h.
3129 * target-section.h: New file.
3130
87a37e5e
PA
31312020-10-12 Pedro Alves <pedro@palves.net>
3132
3133 PR exp/26602
3134 * valops.c (struct struct_field_searcher): New.
3135 (update_search_result): Rename to ...
3136 (struct_field_searcher::update_result): ... this. Simplify
3137 prototype. Record all found fields.
3138 (do_search_struct_field): Rename to ...
3139 (struct_field_searcher::search): ... this. Simplify prototype.
3140 Maintain stack of visited baseclass path. Call update_result for
3141 fields too. Keep searching fields in baseclasses instead of
3142 stopping at the first found field.
3143 (search_struct_field): Use struct_field_searcher. When looking
3144 for fields, report ambiguous access attempts.
3145
9370fd51
AB
31462020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3147
3148 * frame.c (inside_main_func): Check full symbols as well as
3149 minimal symbols.
3150
59c8a30b
JB
31512020-10-09 Joel Brobecker <brobecker@adacore.com>
3152
3153 * ada-lang.c (advance_wild_match): Rewrite the function's
3154 description. Change the type of target0, t0 and t1 to char.
3155
7c184d33
TT
31562020-10-09 Tom Tromey <tromey@adacore.com>
3157
3158 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3159
5c4258f4
TT
31602020-10-09 Tom Tromey <tromey@adacore.com>
3161
3162 * ada-lang.h (ada_encode): Return std::string.
3163 * ada-lang.c (ada_encode_1): Return std::string.
3164 (ada_encode): Likewise.
3165 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3166 Update.
3167 * ada-exp.y (block_lookup, write_var_or_type): Update.
3168
3d87245c
HD
31692020-10-09 Hannes Domani <ssbssa@yahoo.de>
3170
3171 PR exp/26714
3172 * printcmd.c (print_formatted): Handle void results as
3173 unformatted prints.
3174
bbb826f5
AB
31752020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3176
3177 * arch/aarch32.c (aarch32_create_target_description): Release the
3178 target_desc_up as late as possible.
3179 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3180 * arch/amd64.c (amd64_create_target_description): Likewise.
3181 * arch/arc.c (arc_create_target_description): Return a
3182 target_desc_up, don't release it.
3183 * arch/arc.h (arc_create_target_description): Update declaration.
3184 (arc_lookup_target_description): Move target_desc_up into the
3185 cache, and return a borrowed pointer.
3186 * arch/arm.c (arm_create_target_description): Release the
3187 target_desc_up as late as possible.
3188 * arch/i386.c (i386_create_target_description): Likewise.
3189 * arch/riscv.h (riscv_create_target_description): Update
3190 declaration to match definition.
3191 * arch/tic6x.c (tic6x_create_target_description): Release the
3192 target_desc_up as late as possible.
3193
361cb219
AB
31942020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3195
3196 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3197 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3198
f5c4b229
JV
31992020-10-09 Jan Vrany <jan.vrany@labware.com>
3200
3201 * source.c (directory_command): Notify observers that "directories"
3202 parameter has changed.
3203
b2701685
TT
32042020-10-08 Tom Tromey <tom@tromey.com>
3205
3206 * cli/cli-cmds.c (print_disassembly): Style function name and
3207 addresses. Add _() wrappers.
3208
ada508b6
SV
32092020-10-08 Shahab Vahedi <shahab@synopsys.com>
3210
3211 * NEWS: Mention ARC support in GDBserver.
3212
51a948fd
AB
32132020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3214
3215 * arch/aarch32.c (aarch32_create_target_description): Release
3216 unique_ptr returned from allocate_target_description.
3217 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3218 * arch/amd64.c (amd64_create_target_description): Likewise.
3219 * arch/arc.c (arc_create_target_description): Likewise.
3220 * arch/arm.c (arm_create_target_description): Likewise.
3221 * arch/i386.c (i386_create_target_description): Likewise.
3222 * arch/riscv.c (riscv_create_target_description): Update return
3223 type. Handle allocate_target_description returning a unique_ptr.
3224 (riscv_lookup_target_description): Update to handle unique_ptr.
3225 * arch/tic6x.c (tic6x_create_target_description): Release
3226 unique_ptr returned from allocate_target_description.
3227 * features/microblaze-with-stack-protect.c: Regenerate.
3228 * features/microblaze.c: Regenerate.
3229 * features/mips-dsp-linux.c: Regenerate.
3230 * features/mips-linux.c: Regenerate.
3231 * features/mips64-dsp-linux.c: Regenerate.
3232 * features/mips64-linux.c: Regenerate.
3233 * features/nds32.c: Regenerate.
3234 * features/nios2.c: Regenerate.
3235 * features/or1k.c: Regenerate.
3236 * features/rs6000/powerpc-32.c: Regenerate.
3237 * features/rs6000/powerpc-32l.c: Regenerate.
3238 * features/rs6000/powerpc-403.c: Regenerate.
3239 * features/rs6000/powerpc-403gc.c: Regenerate.
3240 * features/rs6000/powerpc-405.c: Regenerate.
3241 * features/rs6000/powerpc-505.c: Regenerate.
3242 * features/rs6000/powerpc-601.c: Regenerate.
3243 * features/rs6000/powerpc-602.c: Regenerate.
3244 * features/rs6000/powerpc-603.c: Regenerate.
3245 * features/rs6000/powerpc-604.c: Regenerate.
3246 * features/rs6000/powerpc-64.c: Regenerate.
3247 * features/rs6000/powerpc-64l.c: Regenerate.
3248 * features/rs6000/powerpc-7400.c: Regenerate.
3249 * features/rs6000/powerpc-750.c: Regenerate.
3250 * features/rs6000/powerpc-860.c: Regenerate.
3251 * features/rs6000/powerpc-altivec32.c: Regenerate.
3252 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3253 * features/rs6000/powerpc-altivec64.c: Regenerate.
3254 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3255 * features/rs6000/powerpc-e500.c: Regenerate.
3256 * features/rs6000/powerpc-e500l.c: Regenerate.
3257 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3258 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3259 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3260 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3261 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3262 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3263 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3264 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3265 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3266 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3267 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3268 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3269 * features/rs6000/powerpc-vsx32.c: Regenerate.
3270 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3271 * features/rs6000/powerpc-vsx64.c: Regenerate.
3272 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3273 * features/rs6000/rs6000.c: Regenerate.
3274 * features/rx.c: Regenerate.
3275 * features/s390-gs-linux64.c: Regenerate.
3276 * features/s390-linux32.c: Regenerate.
3277 * features/s390-linux32v1.c: Regenerate.
3278 * features/s390-linux32v2.c: Regenerate.
3279 * features/s390-linux64.c: Regenerate.
3280 * features/s390-linux64v1.c: Regenerate.
3281 * features/s390-linux64v2.c: Regenerate.
3282 * features/s390-te-linux64.c: Regenerate.
3283 * features/s390-tevx-linux64.c: Regenerate.
3284 * features/s390-vx-linux64.c: Regenerate.
3285 * features/s390x-gs-linux64.c: Regenerate.
3286 * features/s390x-linux64.c: Regenerate.
3287 * features/s390x-linux64v1.c: Regenerate.
3288 * features/s390x-linux64v2.c: Regenerate.
3289 * features/s390x-te-linux64.c: Regenerate.
3290 * features/s390x-tevx-linux64.c: Regenerate.
3291 * features/s390x-vx-linux64.c: Regenerate.
3292 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3293 from allocate_target_description.
3294 * target-descriptions.c (allocate_target_description): Update
3295 return type.
3296 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3297 allocate_target_description.
3298
485c47e5
TT
32992020-10-07 Tom Tromey <tromey@adacore.com>
3300
3301 * unittests/search-memory-selftests.c: New file.
3302 * Makefile.in (SELFTESTS_SRCS): Add
3303 unittests/search-memory-selftests.c.
3304
3a135a91
TT
33052020-10-07 Tom Tromey <tromey@adacore.com>
3306
3307 PR gdb/16930:
3308 * findcmd.c (_initialize_mem_search): Mention that the range is
3309 inclusive.
3310
4a72de73
TT
33112020-10-07 Tom Tromey <tromey@adacore.com>
3312
3313 * target.h (simple_search_memory): Don't declare.
3314 * target.c (simple_search_memory): Move to gdbsupport.
3315 (default_search_memory): Update.
3316 * remote.c (remote_target::search_memory): Update.
3317
a038ffd8
SM
33182020-10-07 Simon Marchi <simon.marchi@efficios.com>
3319
3320 * Makefile.in (COMPILE): Add CXXFLAGS.
3321 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3322 (check-headers): Add CXXFLAGS.
3323
cc463201
AK
33242020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3325
3326 * arc-linux-tdep.h: New file.
3327 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3328 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3329 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3330 arc_linux_gregset, arc_linux_v2_regset,
3331 arc_linux_iterate_over_regset_sections,
3332 arc_linux_core_read_description): Implement.
3333 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3334 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3335 (arc_gdbarch_features_create): Add.
3336 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3337
e4bd363f
SV
33382020-10-07 Shahab Vahedi <shahab@synopsys.com>
3339
3340 * arch/arc.h: Rename "arc_gdbarch_features" to
3341 "arc_arch_features".
3342 * arc-tdep.h: Likewise.
3343 * arc-tdep.c: Likewise.
3344
b68bef99
TBA
33452020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3346
3347 * infcmd.c (attach_command): Remove the redundant call to
3348 `clear_proceed_status`.
3349
4641551a
KR
33502020-10-07 Kamil Rytarowski <n54@gmx.com>
3351
3352 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3353
91e5e8db
KR
33542020-10-07 Kamil Rytarowski <n54@gmx.com>
3355
3356 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3357 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3358 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3359
64c03bdb
SM
33602020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3361
3362 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3363 (_initialize_break_catch_sig): Don't allocate array.
3364
31a8f60f
AB
33652020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * symtab.c (find_pc_line): Return unmapped addresses when the
3368 requested address is also unmapped.
3369
9e6dbd8b
SM
33702020-10-05 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3373 tui/tui-out.h.
3374
a1d217e8
SM
33752020-10-05 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3378 type::is_vector instead of TYPE_VECTOR.
3379
7d144117
SM
33802020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3381
3382 * auto-load.c (auto_load_objfile_script_1): Don't use
3383 debugfile_holder as temporary variable when stripping drive
3384 letter.
3385
cd096ec8
HD
33862020-10-05 Hannes Domani <ssbssa@yahoo.de>
3387
3388 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3389 Add TYPE_CODE_COMPLEX.
3390 (amd64_windows_return_value): Fix types returned via XMM0.
3391
b58e7f72
AH
33922020-10-05 Alan Hayward <alan.hayward@arm.com>
3393
3394 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3395 AArch64/ARM maintainers.
3396
8d378f27
SM
33972020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3398
3399 * NEWS: Mention set/show debug event-loop.
3400
d5519913
TT
34012020-10-02 Tom Tromey <tromey@adacore.com>
3402
3403 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3404 REG_EXTENDED.
3405
18b67edc
SM
34062020-10-02 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3409 * procfs.c (procfs_inferior_created): Remove.
3410 (_initialize_procfs): Don't register procfs_inferior_created.
3411
6b01403b
SM
34122020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3413
3414 * async-event.c (invoke_async_signal_handlers): Add debug
3415 print.
3416 (check_async_event_handlers): Likewise.
3417 * event-top.c (show_debug_event_loop): New function.
3418 (_initialize_event_top): Register "set debug event-loop"
3419 setting.
3420
ba988419
SM
34212020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3422
3423 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3424 * debug.h: Remove.
3425 * infrun.c: Include gdbsupport/common-debug.h.
3426 * linux-nat.c: Likewise.
3427
db20ebdf
SM
34282020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3429
3430 * async-event.h (create_async_signal_handler): Add name
3431 parameter.
3432 (create_async_event_handler): Likewise.
3433 * async-event.c (struct async_signal_handler) <name>: New field.
3434 (struct async_event_handler) <name>: New field.
3435 (create_async_signal_handler): Assign name.
3436 (create_async_event_handler): Assign name.
3437 * event-top.c (async_init_signals): Pass name when creating
3438 handler.
3439 * infrun.c (_initialize_infrun): Likewise.
3440 * record-btrace.c (record_btrace_push_target): Likewise.
3441 * record-full.c (record_full_open): Likewise.
3442 * remote-notif.c (remote_notif_state_allocate): Likewise.
3443 * remote.c (remote_target::open_1): Likewise.
3444 * tui/tui-win.c (tui_initialize_win): Likewise.
3445
2554f6f5
SM
34462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3447
3448 * async-event.c (initialize_async_signal_handlers): Pass name to
3449 add_file_handler
3450 * event-top.c (ui_register_input_event_handler): Likewise.
3451 * linux-nat.c (linux_nat_target::async): Likewise.
3452 * run-on-main-thread.c (_initialize_run_on_main_thread):
3453 Likewise
3454 * ser-base.c (reschedule): Likewise.
3455 (ser_base_async): Likewise.
3456 * tui/tui-io.c: Likewise.
3457 * top.h (struct ui) <num>: New field.
3458 * top.c (highest_ui_num): New variable.
3459 (ui::ui): Initialize num.
3460
a7aba266
SM
34612020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3462
3463 * observable.h <inferior_created>: Remove parameters. Update all
3464 listeners.
3465 * inferior.h (post_create_inferior): Remove target parameter.
3466 Update all callers.
3467
048fde1e 34682020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3469
3470 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3471 and DW_MACRO_undef_strx.
3472 (dwarf_decode_macros): Likewise
3473 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3474 which is the value of DW_AT_str_offsets_base.
3475 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3476 str_offsets_base.
3477
064280be
KR
34782020-10-01 Kamil Rytarowski <n54@gmx.com>
3479
3480 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3481
6ff33035
KR
34822020-10-01 Kamil Rytarowski <n54@gmx.com>
3483
3484 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3485 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3486
1eb6eb79
KR
34872020-10-01 Kamil Rytarowski <n54@gmx.com>
3488
3489 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3490
95eb9e54
TV
34912020-09-30 Tom de Vries <tdevries@suse.de>
3492
3493 PR symtab/26683
3494 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3495
cae21f8e
TT
34962020-09-30 Tom Tromey <tromey@adacore.com>
3497
3498 * dwarf2/read.c (handle_variant): Use constant_value.
3499
529908cb
TT
35002020-09-29 Tom Tromey <tom@tromey.com>
3501
3502 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3503 (read_file_scope, dwarf2_get_pc_bounds)
3504 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3505 (read_structure_type, handle_struct_member_die)
3506 (read_enumeration_type, read_array_type, read_set_type)
3507 (read_tag_pointer_type, read_tag_reference_type)
3508 (read_subroutine_type, read_base_type, read_subrange_type)
3509 (read_full_die_1, partial_die_info::read)
3510 (partial_die_info::read, by, new_symbol)
3511 (dwarf2_const_value_data, dwarf2_const_value_attr)
3512 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3513 (prepare_one_comp_unit): Update.
3514 * dwarf2/attribute.h (DW_UNSND): Remove.
3515
c45bc3f8
TT
35162020-09-29 Tom Tromey <tom@tromey.com>
3517
3518 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3519 (read_subroutine_type, partial_die_info::read)
3520 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3521 (dwarf2_add_member_fn): Update.
3522 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3523 * dwarf2/attribute.c (attribute::as_boolean): New method.
3524
23dca5c3
TT
35252020-09-29 Tom Tromey <tom@tromey.com>
3526
3527 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3528 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3529 method.
3530 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3531
52c14d11
TT
35322020-09-29 Tom Tromey <tom@tromey.com>
3533
3534 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3535 the attribute's form.
3536
e8e5c158
TT
35372020-09-29 Tom Tromey <tom@tromey.com>
3538
3539 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3540 (dwarf2_add_member_fn): Update.
3541 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3542 * dwarf2/attribute.c (attribute::defaulted): New method, from
3543 is_valid_DW_AT_defaulted.
3544
d4df075e
TT
35452020-09-29 Tom Tromey <tom@tromey.com>
3546
3547 * dwarf2/read.c (dw2_get_file_names_reader)
3548 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3549 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3550 (dwarf2_symbol_mark_computed): Use as_unsigned.
3551 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3552 method.
3553 <form_is_section_offset>: Update comment.
3554
bf23a268
TT
35552020-09-29 Tom Tromey <tom@tromey.com>
3556
3557 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3558 dwarf2_default_access_attribute. Look up attribute.
3559 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3560 Update.
3561
7a5f294d
TT
35622020-09-29 Tom Tromey <tom@tromey.com>
3563
3564 * dwarf2/read.c (skip_one_die): Update.
3565 (read_full_die_1): Change how reprocessing is done.
3566 (partial_die_info::read): Update.
3567 (read_attribute_value): Remove need_reprocess parameter.
3568 (read_attribute): Likewise.
3569 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3570 New method.
3571
36d378cf
TT
35722020-09-29 Tom Tromey <tom@tromey.com>
3573
3574 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3575 (dwarf2_const_value_attr, dump_die_shallow)
3576 (dwarf2_fetch_constant_bytes): Update.
3577 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3578 comment.
3579 <set_address>: New method.
3580 (DW_ADDR): Remove.
3581 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3582 (attribute::as_string, attribute::as_address): Add assert.
3583
fe56917a
TT
35842020-09-29 Tom Tromey <tom@tromey.com>
3585
3586 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3587 (read_attribute_reprocess, read_attribute_value): Update.
3588 (read_attribute): Clear requires_reprocessing.
3589 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3590 form_requires_reprocessing>: New methods.
3591 <string_init>: Clear requires_reprocessing.
3592 <set_unsigned_reprocess>: New method.
3593 <name>: Shrink by one bit.
3594 <requires_reprocessing>: New member.
3595 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3596 method.
3597
414ad644
TT
35982020-09-29 Tom Tromey <tom@tromey.com>
3599
3600 * dwarf2/read.c (read_attribute_value): Update.
3601 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3602 set_unsigned>: New methods.
3603 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3604
1bc397c5
TT
36052020-09-29 Tom Tromey <tom@tromey.com>
3606
3607 * dwarf2/read.c (get_alignment, read_array_order)
3608 (read_attribute_value, dwarf2_const_value_attr)
3609 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3610 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3611 New methods.
3612 (DW_SND): Remove.
3613
630ed6b9
TT
36142020-09-29 Tom Tromey <tom@tromey.com>
3615
3616 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3617 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3618 Update.
3619 * dwarf2/attribute.h (struct attribute) <as_signature,
3620 set_signature>: New methods.
3621 (DW_SIGNATURE): Remove.
3622
9d2246fc
TT
36232020-09-29 Tom Tromey <tom@tromey.com>
3624
3625 * dwarf2/read.c (read_call_site_scope)
3626 (handle_data_member_location, dwarf2_add_member_fn)
3627 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3628 (partial_die_info::read, read_attribute_value)
3629 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3630 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3631 (dwarf2_symbol_mark_computed): Update.
3632 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3633 methods.
3634 (DW_BLOCK): Remove.
3635 * dwarf2/attribute.c (attribute::form_is_block): Add
3636 DW_FORM_data16.
3637
c6481205
TT
36382020-09-29 Tom Tromey <tom@tromey.com>
3639
3640 * dwarf2/read.c (read_cutu_die_from_dwo)
3641 (read_attribute_reprocess, read_attribute_value, read_attribute)
3642 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3643 (dwarf2_fetch_constant_bytes): Update.
3644 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3645 <set_string_noncanonical, set_string_canonical>: New methods.
3646 <string_is_canonical>: Update comment.
3647 <canonical_string_p>: Add assert.
3648 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3649 * dwarf2/attribute.c (attribute::form_is_string): New method.
3650 (attribute::string): Use it.
3651
3b64bf15
TT
36522020-09-29 Tom Tromey <tom@tromey.com>
3653
3654 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3655 (dump_die_shallow): Use canonical_string_p.
3656 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3657 method.
3658
2c830f54
TT
36592020-09-29 Tom Tromey <tom@tromey.com>
3660
3661 * dwarf2/read.c (partial_die_info::read)
3662 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3663 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3664 attribute::as_string.
3665
6c412691
TT
36662020-09-29 Tom Tromey <tom@tromey.com>
3667
3668 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3669 DW_ADDR.
3670 (attribute::string): Don't use DW_STRING.
3671 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3672 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3673
95f982e5
TT
36742020-09-29 Tom Tromey <tom@tromey.com>
3675
3676 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3677 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3678 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3679 * dwarf2/attribute.h (struct attribute): Rename methods.
3680 * dwarf2/attribute.c (attribute::as_address): Rename from
3681 value_as_address.
3682 (attribute::as_string): Rename from value_as_string.
3683
f800b00e
TT
36842020-09-29 Tom Tromey <tom@tromey.com>
3685
3686 * dwarf2/read.c (partial_die_info::read) <case
3687 DW_AT_linkage_name>: Use value_as_string.
3688 (dwarf2_string_attr): Use value_as_string.
3689 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3690 method.
3691 * dwarf2/attribute.c (attribute::value_as_string): New method.
3692
de38d64a
PA
36932020-09-29 Pedro Alves <pedro@palves.net>
3694
3695 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3696 defined before using '#pragma GCC diagnostic' instead of checking
3697 __clang__.
3698
9aed480c
TT
36992020-09-28 Tom Tromey <tom@tromey.com>
3700
3701 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3702 (handle_signal_stop): Update.
3703 * procfs.c (procfs_target::insert_watchpoint): Update.
3704 * target.h (target_have_steppable_watchpoint): Now a function.
3705
8a3ecb79
TT
37062020-09-28 Tom Tromey <tom@tromey.com>
3707
3708 * infrun.c (set_schedlock_func): Update.
3709 * target.h (target_can_lock_scheduler): Now a function.
3710
55f6301a
TT
37112020-09-28 Tom Tromey <tom@tromey.com>
3712
3713 * inferior.h (class inferior) <has_execution>: Update.
3714 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3715 * valops.c (find_function_in_inferior)
3716 (value_allocate_space_in_inferior): Update.
3717 * top.c (kill_or_detach): Update.
3718 * target.c (target_preopen, set_target_permissions): Update.
3719 (target_has_execution_current): Remove.
3720 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3721 Update.
3722 * solib.c (update_solib_list, reload_shared_libraries): Update.
3723 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3724 * solib-dsbt.c (enable_break): Update.
3725 * score-tdep.c (score7_fetch_inst): Update.
3726 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3727 Update.
3728 * remote.c (remote_target::start_remote)
3729 (remote_target::remote_check_symbols, remote_target::open_1)
3730 (remote_target::remote_detach_1, remote_target::verify_memory)
3731 (remote_target::xfer_partial, remote_target::read_description)
3732 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3733 * record-full.c (record_full_open_1): Update.
3734 * record-btrace.c (record_btrace_target_open): Update.
3735 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3736 (value_nsstring): Update.
3737 * linux-thread-db.c (add_thread_db_info)
3738 (thread_db_find_new_threads_silently, check_thread_db_callback)
3739 (try_thread_db_load_1, record_thread): Update.
3740 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3741 Update.
3742 * linux-fork.c (checkpoint_command): Update.
3743 * infrun.c (set_non_stop, set_observer_mode)
3744 (check_multi_target_resumption, for_each_just_stopped_thread)
3745 (maybe_remove_breakpoints, normal_stop)
3746 (class infcall_suspend_state): Update.
3747 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3748 (info_program_command, attach_command): Update.
3749 * infcall.c (call_function_by_hand_dummy): Update.
3750 * inf-loop.c (inferior_event_handler): Update.
3751 * gcore.c (gcore_command, derive_heap_segment): Update.
3752 * exec.c (exec_file_command): Update.
3753 * eval.c (evaluate_subexp): Update.
3754 * compile/compile.c (compile_to_object): Update.
3755 * cli/cli-dump.c (restore_command): Update.
3756 * breakpoint.c (update_watchpoint)
3757 (update_inserted_breakpoint_locations)
3758 (insert_breakpoint_locations, get_bpstat_thread): Update.
3759 * target.h (target_has_execution): Remove macro.
3760 (target_has_execution_current): Don't declare.
3761 (target_has_execution): Rename from target_has_execution_1. Add
3762 argument default.
3763
05374cfd
TT
37642020-09-28 Tom Tromey <tom@tromey.com>
3765
3766 * mi/mi-main.c (exec_reverse_continue)
3767 (mi_cmd_list_target_features): Update.
3768 * infrun.c (set_exec_direction_func): Update.
3769 * target.c (default_execution_direction): Update.
3770 * reverse.c (exec_reverse_once): Update.
3771 * target.h (target_can_execute_reverse): Now a function.
3772
9dccd06e
TT
37732020-09-28 Tom Tromey <tom@tromey.com>
3774
3775 * tui/tui-regs.c (tui_get_register)
3776 (tui_data_window::show_registers): Update.
3777 * thread.c (scoped_restore_current_thread::restore)
3778 (scoped_restore_current_thread::scoped_restore_current_thread):
3779 Update.
3780 * regcache-dump.c (regcache_print): Update.
3781 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3782 Update.
3783 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3784 * mep-tdep.c (current_me_module, current_options): Update.
3785 * linux-thread-db.c (thread_db_load): Update.
3786 * infcmd.c (registers_info, info_vector_command)
3787 (info_float_command): Update.
3788 * ia64-tdep.c (ia64_frame_prev_register)
3789 (ia64_sigtramp_frame_prev_register): Update.
3790 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3791 * gcore.c (derive_stack_segment): Update.
3792 * frame.c (get_current_frame, has_stack_frames): Update.
3793 * findvar.c (language_defn::read_var_value): Update.
3794 * arm-tdep.c (arm_pc_is_thumb): Update.
3795 * target.c (target_has_registers): Rename from
3796 target_has_registers_1.
3797 * target.h (target_has_registers): Remove macro.
3798 (target_has_registers): Rename from target_has_registers_1.
3799
841de120
TT
38002020-09-28 Tom Tromey <tom@tromey.com>
3801
3802 * windows-tdep.c (tlb_make_value): Update.
3803 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3804 * thread.c (scoped_restore_current_thread::restore)
3805 (scoped_restore_current_thread::scoped_restore_current_thread)
3806 (thread_command): Update.
3807 * stack.c (backtrace_command_1, frame_apply_level_command)
3808 (frame_apply_all_command, frame_apply_command): Update.
3809 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3810 Update.
3811 * gcore.c (derive_stack_segment): Update.
3812 * frame.c (get_current_frame, has_stack_frames): Update.
3813 * auxv.c (info_auxv_command): Update.
3814 * ada-tasks.c (ada_build_task_list): Update.
3815 * target.c (target_has_stack): Rename from target_has_stack_1.
3816 * target.h (target_has_stack): Remove macro.
3817 (target_has_stack): Rename from target_has_stack_1.
3818
a739972c
TT
38192020-09-28 Tom Tromey <tom@tromey.com>
3820
3821 * target.c (target_has_memory): Rename from target_has_memory_1.
3822 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3823 * thread.c (scoped_restore_current_thread::restore)
3824 (scoped_restore_current_thread::scoped_restore_current_thread):
3825 Update.
3826 * frame.c (get_current_frame, has_stack_frames): Update.
3827 * target.h (target_has_memory): Remove macro.
3828 (target_has_memory): Rename from target_has_memory_1.
3829
5b8a4776
TT
38302020-09-28 Tom Tromey <tom@tromey.com>
3831
3832 * target.c (target_has_all_memory_1): Remove.
3833 * target.h (target_has_all_memory): Remove define.
3834 (target_has_all_memory_1): Don't declare.
3835
bd356ec6
SM
38362020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3837
3838 * ser-base.c: Adjust comments formatting.
3839
2c72d5e5
TT
38402020-09-27 Tom Tromey <tom@tromey.com>
3841
3842 PR tui/25342:
3843 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3844
35a98237
TT
38452020-09-27 Tom Tromey <tom@tromey.com>
3846
3847 PR tui/25342:
3848 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3849
9e820dec
TT
38502020-09-27 Tom Tromey <tom@tromey.com>
3851
3852 * unittests/tui-selftests.c: Update.
3853 * tui/tui-winsource.h (struct tui_source_window_base)
3854 <extra_margin, show_line_number, refresh_pad>: New methods.
3855 <m_max_length, m_pad>: New members.
3856 (tui_copy_source_line): Update.
3857 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3858 first_col, line_width, ndigits parameters. Add length.
3859 (tui_source_window_base::show_source_line): Write to pad. Line
3860 number now 0-based.
3861 (tui_source_window_base::refresh_pad): New method.
3862 (tui_source_window_base::show_source_content): Write to pad. Call
3863 refresh_pad.
3864 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3865 not refill.
3866 (tui_source_window_base::update_exec_info): Call
3867 show_line_number.
3868 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3869 method.
3870 <m_digits>: New member.
3871 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3872 and m_max_length.
3873 (tui_source_window::show_line_number): New method.
3874 * tui/tui-io.h (tui_puts): Fix comment.
3875 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3876 m_max_length.
3877
c15c15c8
TT
38782020-09-27 Tom Tromey <tom@tromey.com>
3879
3880 * tui/tui-winsource.c
3881 (tui_source_window_base::set_is_exec_point_at): Don't call
3882 show_source_line.
3883
149830c1
TT
38842020-09-27 Tom Tromey <tom@tromey.com>
3885
3886 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3887 method.
3888 <erase>: Update.
3889 <cursor_x, cursor_y>: Remove.
3890 <m_inner_window>: New member.
3891 (tui_py_window::rerender): Create inner window.
3892 (tui_py_window::output): Write to inner window.
3893
8f9929bb
GR
38942020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3895
3896 PR python/26586
3897 * cli/cli-script.c (execute_control_commands): don't set
3898 instream to nullptr here as this breaks the from_tty argument
3899 to gdb.execute in Python.
3900 (execute_user_command): set instream to nullptr here instead.
3901
956bdb59
SM
39022020-09-25 Simon Marchi <simon.marchi@efficios.com>
3903
3904 * infrun.h (infrun_debug_printf): Fix formatting.
3905 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3906
3b93626b
SJ
39072020-09-25 Saagar Jha <saagar@saagarjha.com>
3908
3909 * compile/compile-object-load.h (struct munmap_list): Add
3910 explicitly-defined move constructor.
3911
b551a89f
TT
39122020-09-24 Tom Tromey <tromey@adacore.com>
3913
3914 PR tui/26638:
3915 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3916 method.
3917 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3918 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3919 (tui_prev_win): Rewrite.
3920
99bb393f
HD
39212020-09-23 Hannes Domani <ssbssa@yahoo.de>
3922
3923 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3924 in WOW64 processes as SIGINT.
3925 * nat/windows-nat.h: Make wow64_process a shared variable.
3926 * windows-nat.c: Remove static wow64_process variable.
3927
20a5fcbd
TT
39282020-09-23 Tom Tromey <tom@tromey.com>
3929
3930 PR symtab/25470:
3931 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3932 offset and bit size.
3933 * printcmd.c (print_scalar_formatted): Handle zero-length
3934 integer.
3935 (print_scalar_formatted): Use bit_size_differs_p.
3936 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3937 constant.
3938 (union type_specific): <int_stuff>: New member.
3939 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3940 methods.
3941 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3942 TYPE_SPECIFIC_FIELD.
3943 (recursive_dump_type, copy_type_recursive): Update.
3944 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3945 DW_AT_data_bit_offset.
3946
bac51ab7
TT
39472020-09-23 Tom Tromey <tom@tromey.com>
3948
3949 * utils.h (class gdb_argv): Add move operators.
3950 <append>: New methods.
3951 * compile/compile.c (build_argc_argv): Remove.
3952 (compile_args_argc): Remove.
3953 (compile_args_argv): Change type.
3954 (set_compile_args): Simplify.
3955 (append_args): Remove.
3956 (filter_args): Remove argcp parameter.
3957 (get_args): Return gdb_argv. Simplify.
3958 (compile_to_object): Update.
3959
92677124
TT
39602020-09-23 Tom Tromey <tom@tromey.com>
3961
3962 * compile/compile-object-run.c (do_module_cleanup)
3963 <~do_module_cleanup> :Remove.
3964 (do_module_cleanup): Update.
3965 * compile/compile-object-load.h (struct munmap_list): Add move
3966 assignment operator.
3967 <source_file>: Now a std::string.
3968 <munmap_list>: Rename. No longer a pointer.
3969 * compile/compile-object-load.c (struct setup_sections_data): Add
3970 constructor.
3971 <setup_one_section>: Declare.
3972 <munmap_list>: Move earlier.
3973 <m_bfd>: New member.
3974 <m_last_size, m_last_section_first, m_last_prot,
3975 m_last_max_alignment>: Rename, add initializers where needed.
3976 (setup_sections_data::setup_one_section): Rename from
3977 setup_sections. Update.
3978 (compile_object_load): Update. Don't use bfd_map_over_sections.
3979
e616f60a
TT
39802020-09-23 Tom Tromey <tom@tromey.com>
3981
3982 * compile/compile-object-run.c (struct do_module_cleanup): Add
3983 parameters to constructor. Update destructor.
3984 <source_file, scope, scope_data, out_value_type, out_value_addr,
3985 munmap_list_head, objfile_name_string>: Remove.
3986 <module>: New member.
3987 (do_module_cleanup): Update.
3988 (compile_object_run): Update.
3989
e947a848
TT
39902020-09-23 Tom Tromey <tom@tromey.com>
3991
3992 * compile/compile.c (eval_compile_command): Update.
3993 * compile/compile-object-run.h (compile_object_run): Take a
3994 compile_module_up.
3995 * compile/compile-object-run.c (compile_object_run): Take a
3996 compile_module_up.
3997 * compile/compile-object-load.h (struct compile_module): Add
3998 constructor, destructor.
3999 (compile_module_up): New typedef.
4000 (compile_object_load): Return compile_object_up.
4001 * compile/compile-object-load.c (compile_object_load): Return
4002 compile_module_up.
4003
0dbf6ee6
TT
40042020-09-23 Tom Tromey <tom@tromey.com>
4005
4006 * compile/compile-object-run.c (struct do_module_cleanup): Add
4007 constructor, destructor.
4008 <objfile_name_string>: Don't use struct hack.
4009 (do_module_cleanup): Use delete.
4010 (compile_object_run): Use new.
4011
ebe824f5
TT
40122020-09-23 Tom Tromey <tom@tromey.com>
4013
4014 * compile/compile-cplus-types.c
4015 (compile_cplus_convert_struct_or_union): Use std::vector.
4016 (compile_cplus_convert_func): Likewise.
4017 * compile/compile-c-types.c (convert_func): Use std::vector.
4018
5dd918d9
TT
40192020-09-21 Tom Tromey <tromey@adacore.com>
4020
4021 * sparc-tdep.c (sparc32_skip_prologue): Use
4022 skip_prologue_using_sal.
4023
5486c517
TT
40242020-09-19 Tom Tromey <tom@tromey.com>
4025
4026 * symfile.c (add_section_size_callback): Remove.
4027 (load_one_section): Rename from load_section_callback. Change
4028 parameters.
4029 (generic_load): Use foreach.
4030
8a6bb1d1
TT
40312020-09-19 Tom Tromey <tom@tromey.com>
4032
4033 * exec.c (add_to_section_table): Remove.
4034 (build_section_table): Use foreach.
4035
08f93a1a
TT
40362020-09-19 Tom Tromey <tom@tromey.com>
4037
4038 * elfread.c (elf_locate_sections): Change parameters.
4039 (elf_symfile_read): Use foreach.
4040
03cd72b8
TT
40412020-09-19 Tom Tromey <tom@tromey.com>
4042
4043 * cli/cli-dump.c (struct callback_data): Remove.
4044 (restore_one_section): Rename from restore_section_callback.
4045 Change parameters.
4046 (restore_binary_file): Change parameters.
4047 (restore_command): Use foreach.
4048
f4f2b85f
TT
40492020-09-19 Tom Tromey <tom@tromey.com>
4050
4051 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4052 (gcore_copy_callback): Likewise.
4053 (gcore_memory_sections): Use foreach.
4054
b35c1d1c
TT
40552020-09-19 Tom Tromey <tom@tromey.com>
4056
4057 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4058 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4059 parameters.
4060 (generic_elf_osabi_sniffer): Use foreach.
4061 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4062 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4063
5bb6e9dd
TT
40642020-09-19 Tom Tromey <tom@tromey.com>
4065
4066 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4067 (dwarf2_get_dwz_file): Use foreach.
4068 (dwarf2_locate_dwo_sections): Change parameters.
4069 (open_and_init_dwo_file): Use foreach.
4070 (dwarf2_locate_common_dwp_sections): Change parameters.
4071 (open_and_init_dwp_file): Use foreach.
4072
ad7277da
TT
40732020-09-19 Tom Tromey <tom@tromey.com>
4074
4075 * symfile.h: (find_lowest_section): Don't declare.
4076 * symfile.c (find_lowest_section): Now static. Change
4077 parameters.
4078 (struct place_section_arg): Remove.
4079 (place_section): Change parameters.
4080 (addr_info_make_relative): Use foreach.
4081 (symfile_dummy_outputs): Remove.
4082 (default_symfile_relocate): Use foreach.
4083
cb814f2e
TT
40842020-09-19 Tom Tromey <tom@tromey.com>
4085
4086 * objfiles.c (add_to_objfile_sections): Rename from
4087 add_to_objfile_sections_full.
4088 (add_to_objfile_sections): Remove.
4089 (build_objfile_section_table): Use foreach.
4090
3cabfd26
TT
40912020-09-19 Tom Tromey <tom@tromey.com>
4092
4093 * stap-probe.c (get_stap_base_address_1): Remove.
4094 (get_stap_base_address): Use foreach.
4095
1ce51eb5
TT
40962020-09-19 Tom Tromey <tom@tromey.com>
4097
4098 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4099 parameters.
4100 (gdb_bfd_close_or_warn): Use foreach.
4101
a190fabb
TT
41022020-09-19 Tom Tromey <tom@tromey.com>
4103
4104 * corelow.c (add_to_thread_list): Change parameters.
4105 (core_target_open): Use foreach.
4106
cafb0d81
TT
41072020-09-19 Tom Tromey <tom@tromey.com>
4108
4109 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4110 existing function.
4111
c8d5abea
AB
41122020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4115 for arrays.
4116
6d816919
AB
41172020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4118
4119 * eval.c: Remove 'f-lang.h' include.
4120 (value_f90_subarray): Moved to f-lang.c.
4121 (eval_call): Renamed to...
4122 (evaluate_subexp_do_call): ...this, is no longer static, header
4123 comment moved into header file.
4124 (evaluate_funcall): Update call to eval_call.
4125 (skip_undetermined_arglist): Moved to f-lang.c.
4126 (fortran_value_subarray): Likewise.
4127 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4128 moved to evaluate_subexp_f.
4129 (calc_f77_array_dims): Moved to f-lang.c
4130 * expprint.c (print_subexp_funcall): New function.
4131 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4132 moved to print_subexp_f, OP_FUNCALL uses new function.
4133 (dump_subexp_body_funcall): New function.
4134 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4135 moved to dump_subexp_f, OP_FUNCALL uses new function.
4136 * expression.h (evaluate_subexp_do_call): Declare.
4137 * f-lang.c (value_f90_subarray): Moved from eval.c.
4138 (skip_undetermined_arglist): Likewise.
4139 (calc_f77_array_dims): Likewise.
4140 (fortran_value_subarray): Likewise.
4141 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4142 (operator_length_f): Likewise.
4143 (print_subexp_f): Likewise.
4144 (dump_subexp_body_f): Likewise.
4145 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4146 declaration of this operation to here.
4147 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4148 support moved to operator_length_f.
4149 * parser-defs.h (dump_subexp_body_funcall): Declare.
4150 (print_subexp_funcall): Declare.
4151 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4152 fortran-operator.def.
4153
8c37706a
AB
41542020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4155
4156 * eval.c (fortran_value_subarray): New function, content is taken
4157 from...
4158 (evaluate_subexp_standard): ...here, in two places. Now arrays
4159 and strings both call the new function.
4160 (calc_f77_array_dims): Add header comment, handle strings.
4161
14f9473c
VC
41622020-09-18 Victor Collod <vcollod@nvidia.com>
4163
4164 PR gdb/26635
4165 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4166 (i386_analyze_prologue): Call i386_skip_endbr.
4167
b60cea74
TT
41682020-09-18 Tom Tromey <tromey@adacore.com>
4169
4170 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4171 (windows_nat_target::wait): Update.
4172 * target/wait.h (enum target_wait_flag): New. Use
4173 DEF_ENUM_FLAGS_TYPE.
4174 * target/target.h (target_wait): Change type of options.
4175 * target.h (target_options_to_string, default_target_wait):
4176 Update.
4177 (struct target_ops) <wait>: Change type of options.
4178 * target.c (target_wait, default_target_wait, do_option): Change
4179 type of "options".
4180 (target_options_to_string): Likewise.
4181 * target-delegates.c: Rebuild.
4182 * target-debug.h (target_debug_print_target_wait_flags): Rename
4183 from target_debug_print_options.
4184 * sol-thread.c (class sol_thread_target) <wait>: Update.
4185 (sol_thread_target::wait): Update.
4186 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4187 (rs6000_nat_target::wait): Update.
4188 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4189 Update.
4190 (remote_target::wait_ns, remote_target::wait_as): Change type of
4191 "options".
4192 (remote_target::wait): Update.
4193 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4194 (gdbsim_target::wait): Update.
4195 * record-full.c (class record_full_base_target) <wait>: Update.
4196 (record_full_wait_1): Change type of "options".
4197 (record_full_base_target::wait): Update.
4198 * record-btrace.c (class record_btrace_target) <wait>: Update.
4199 (record_btrace_target::wait): Update.
4200 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4201 Update.
4202 (ravenscar_thread_target::wait): Update.
4203 * procfs.c (class procfs_target) <wait>: Update.
4204 (procfs_target::wait): Update.
4205 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4206 * obsd-nat.c (obsd_nat_target::wait): Update.
4207 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4208 (nto_procfs_target::wait): Update.
4209 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4210 * nbsd-nat.c (nbsd_wait): Change type of "options".
4211 (nbsd_nat_target::wait): Update.
4212 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4213 (thread_db_target::wait): Update.
4214 * linux-nat.h (class linux_nat_target) <wait>: Update.
4215 * linux-nat.c (linux_nat_target::wait): Update.
4216 (linux_nat_wait_1): Update.
4217 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4218 "options".
4219 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4220 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4221 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4222 (go32_nat_target::wait): Update.
4223 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4224 * gnu-nat.c (gnu_nat_target::wait): Update.
4225 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4226 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4227 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4228 * darwin-nat.c (darwin_nat_target::wait): Update.
4229 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4230 (bsd_uthread_target::wait): Update.
4231 * aix-thread.c (class aix_thread_target) <wait>: Update.
4232 (aix_thread_target::wait): Update.
4233
0295dde6
AB
42342020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4235
4236 * compile/compile-object-run.c (create_copied_type_recursive): New
4237 function.
4238 (compile_object_run): Use new function.
4239
d3483b43
JT
42402020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4241
4242 * NEWS: Mention x86_64 Cygwin core file support.
4243
e7d612ad
JT
42442020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4245
4246 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4247 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4248
aff9d387
JT
42492020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4250
62a5151b
JT
4251 * windows-tdep.h: Add prototypes.
4252 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4253 (i386_windows_core_pid_to_str): Move and rename ...
4254 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4255 (windows_core_pid_to_str): ... and here.
4256 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4257
42582020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4259 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4260 (amd64_windows_init_abi_common): ... and register.
4261
7d155da3
JT
42622020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4263
4264 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4265 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4266
e8ef12b9
PA
42672020-09-18 Pedro Alves <pedro@palves.net>
4268
4269 PR gdb/26631
4270 * thread.c (thread_find_command): Switch inferior before calling
4271 target methods.
4272
c1e1314d
TT
42732020-09-17 Tom Tromey <tromey@adacore.com>
4274
4275 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4276 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4277 (tdesc_arch_data_up): New typedef.
4278 (tdesc_use_registers, tdesc_data_alloc): Update.
4279 (tdesc_data_cleanup): Don't declare.
4280 * target-descriptions.c (tdesc_data_alloc): Return a
4281 tdesc_arch_data_up.
4282 (tdesc_arch_data_deleter::operator()): Rename from
4283 tdesc_data_cleanup. Change argument type.
4284 (tdesc_use_registers): Change early_data to an rvalue reference.
4285 (tdesc_use_registers): Don't use delete.
4286 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4287 * s390-tdep.c (s390_gdbarch_init): Update.
4288 * rx-tdep.c (rx_gdbarch_init): Update.
4289 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4290 * riscv-tdep.c (riscv_gdbarch_init): Update.
4291 * or1k-tdep.c (or1k_gdbarch_init): Update.
4292 * nios2-tdep.c (nios2_gdbarch_init): Update.
4293 * nds32-tdep.c (nds32_gdbarch_init): Update.
4294 * mips-tdep.c (mips_gdbarch_init): Update.
4295 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4296 * m68k-tdep.c (m68k_gdbarch_init): Update.
4297 * i386-tdep.c (i386_gdbarch_init): Update.
4298 * arm-tdep.c (arm_gdbarch_init): Update.
4299 * arc-tdep.c (arc_tdesc_init): Update.
4300 (arc_gdbarch_init): Update.
4301 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4302
0363df3d
HD
43032020-09-17 Hannes Domani <ssbssa@yahoo.de>
4304
4305 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4306 for WOW64 processes.
4307
280a9412
TT
43082020-09-17 Tom Tromey <tom@tromey.com>
4309
4310 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4311
6108fd18
TT
43122020-09-17 Tom Tromey <tom@tromey.com>
4313
4314 * value.c (preserve_values): Update.
4315 * python/py-type.c (save_objfile_types): Update.
4316 * guile/scm-type.c (save_objfile_types): Update.
4317 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4318 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4319 * compile/compile-object-run.c (compile_object_run): Update.
4320
fa9b1164
TT
43212020-09-17 Tom Tromey <tom@tromey.com>
4322
4323 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4324 Remove.
4325 <m_table>: Now htab_up.
4326 * typeprint.c (typedef_hash_table::recursively_update)
4327 (typedef_hash_table::add_template_parameters)
4328 (typedef_hash_table::typedef_hash_table): Update.
4329 (typedef_hash_table::~typedef_hash_table): Remove.
4330 (typedef_hash_table::typedef_hash_table)
4331 (typedef_hash_table::find_global_typedef)
4332 (typedef_hash_table::find_typedef): Update.
4333
eb53f105
TT
43342020-09-17 Tom Tromey <tom@tromey.com>
4335
4336 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4337
7a8a5d47
TT
43382020-09-17 Tom Tromey <tom@tromey.com>
4339
4340 * linespec.c (class decode_compound_collector)
4341 <~decode_compound_collector>: Remove.
4342 <m_unique_syms>: Now htab_up.
4343 (decode_compound_collector::operator ()): Update.
4344 (class symtab_collector) <~symtab_collector>: Remove.
4345 <m_symtab_table>: Now htab_up.
4346 (symtab_collector::operator ()): Update.
4347
99032cfc
TT
43482020-09-17 Tom Tromey <tom@tromey.com>
4349
4350 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4351 (filename_seen_cache::clear): Update.
4352 (~filename_seen_cache): Remove.
4353 (filename_seen_cache::seen): Update.
4354 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4355 htab_up.
4356 <~filename_seen_cache>: Remove.
4357 <traverse>: Update.
4358
32580f6d
TT
43592020-09-17 Tom Tromey <tom@tromey.com>
4360
4361 * completer.c (completion_tracker::discard_completions)
4362 (completion_tracker::~completion_tracker)
4363 (completion_tracker::maybe_add_completion)
4364 (completion_tracker::remove_completion)
4365 (completion_tracker::recompute_lowest_common_denominator)
4366 (completion_tracker::build_completion_result): Update.
4367 * completer.h (class completion_tracker) <have_completions>:
4368 Update.
4369 <m_entries_hash>: Now htab_up.
4370
c1fb9836
TT
43712020-09-17 Tom Tromey <tom@tromey.com>
4372
4373 * breakpoint.c (ambiguous_names_p): Use htab_up.
4374
88f07206
TT
43752020-09-17 Tom Tromey <tom@tromey.com>
4376
4377 * auto-load.c (struct auto_load_pspace_info)
4378 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4379 <loaded_script_files, loaded_script_texts>: Change type to
4380 htab_up.
4381 (~auto_load_pspace_info) Remove.
4382 (init_loaded_scripts_info, maybe_add_script_file)
4383 (maybe_add_script_text, auto_load_info_scripts): Update.
4384
9519b2ee
TT
43852020-09-17 Tom Tromey <tromey@adacore.com>
4386
4387 * c-exp.y (name_obstack): Now static.
4388
d2cd4113
CC
43892020-09-17 Chungyi Chi <demonic@csie.io>
4390
4391 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4392
b650a282
SM
43932020-09-16 Simon Marchi <simon.marchi@efficios.com>
4394
4395 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4396 (add_solib_catchpoint): Likewise.
4397 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4398 to bool.
4399 (add_solib_catchpoint): Change int parameter/variable to bool.
4400 (catch_load_or_unload): Likewise.
4401 (init_catchpoint): Likewise.
4402 (create_fork_vfork_event_catchpoint): Likewise.
4403 (catch_fork_command_1): Likewise.
4404 (catch_exec_command_1): Likewise.
4405
4d0bcfcf
SM
44062020-09-16 Simon Marchi <simon.marchi@efficios.com>
4407
4408 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4409 Change instance_flags to m_instance_flags.
4410
fe830662
TT
44112020-09-16 Tom Tromey <tromey@adacore.com>
4412
4413 PR gdb/26598:
4414 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4415
fe5ddfc3
JB
44162020-09-16 John Baldwin <jhb@FreeBSD.org>
4417
4418 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4419 PL_FLAG_EXEC.
4420 (fbsd_nat_target::insert_exec_catchpoint)
4421 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4422 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4423 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4424
e911c666
JB
44252020-09-16 John Baldwin <jhb@FreeBSD.org>
4426
4427 * configure.ac: Remove check for kinfo_getvmmap().
4428 * configure, config.in: Regenerate.
4429 * fbsd-nat.c (fbsd_read_mapping): Remove
4430 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4431 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4432 kinfo_get_vmmap() are always present.
4433
1f17d372
JB
44342020-09-16 John Baldwin <jhb@FreeBSD.org>
4435
4436 * fbsd-nat.c: Always include support for
4437 TARGET_OBJECT_SIGNAL_INFO.
4438
bcb1da7f
JB
44392020-09-16 John Baldwin <jhb@FreeBSD.org>
4440
4441 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4442 sysctl and remove procfs fallback.
4443
5515f729
JB
44442020-09-16 John Baldwin <jhb@FreeBSD.org>
4445
4446 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4447 * fbsd-nat.h: Likewise.
4448
da1df1db
TBA
44492020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4450
4451 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4452 argument.
4453
0e25e767
AB
44542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4455
4456 * ada-lang.c (ada_language_data): Delete.
4457 (ada_language): Remove references to ada_language_data.
4458 * c-lang.c (c_language_data): Delete.
4459 (c_language): Remove references to c_language_data.
4460 (cplus_language_data): Delete.
4461 (cplus_language): Remove references to cplus_language_data.
4462 (asm_language_data): Delete.
4463 (asm_language): Remove references to asm_language_data.
4464 (minimal_language_data): Delete.
4465 (minimal_language): Remove references to minimal_language_data.
4466 * d-lang.c (d_language_data): Delete.
4467 (d_language): Remove references to d_language_data.
4468 * f-lang.c (f_language_data): Delete.
4469 (f_language): Remove references to f_language_data.
4470 * go-lang.c (go_language_data): Delete.
4471 (go_language): Remove references to go_language_data.
4472 * language.c (unknown_language_data): Delete.
4473 (unknown_language): Remove references to unknown_language_data.
4474 (auto_language_data): Delete.
4475 (auto_language): Remove references to auto_language_data.
4476 * language.h (language_data): Delete struct.
4477 (language_defn): No longer inherit from language_data.
4478 * m2-lang.c (m2_language_data): Delete.
4479 (m2_language): Remove references to m2_language_data.
4480 * objc-lang.c (objc_language_data): Delete.
4481 (objc_language): Remove references to objc_language_data.
4482 * opencl-lang.c (opencl_language_data): Delete.
4483 (opencl_language): Remove references to opencl_language_data.
4484 * p-lang.c (pascal_language_data): Delete.
4485 (pascal_language): Remove references to pascal_language_data.
4486 * rust-lang.c (rust_language_data): Delete.
4487 (rust_language): Remove references to rust_language_data.
4488
b7c6e27d
AB
44892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4490
4491 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4492 initializer.
4493 (ada_language::opcode_print_table): New member function.
4494 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4495 (c_language::opcode_print_table): New member function.
4496 (cplus_language_data): Remove la_op_print_tab initializer.
4497 (cplus_language::opcode_print_table): New member function.
4498 (asm_language_data): Remove la_op_print_tab initializer.
4499 (asm_language::opcode_print_table): New member function.
4500 (minimal_language_data): Remove la_op_print_tab initializer.
4501 (minimal_language::opcode_print_table): New member function.
4502 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4503 (d_language::opcode_print_table): New member function.
4504 * expprint.c (print_subexp_standard): Update call to
4505 opcode_print_table.
4506 (op_string): Likewise.
4507 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4508 (f_language::opcode_print_table): New member function.
4509 * go-lang.c (go_language_data): Remove la_op_print_tab
4510 initializer.
4511 (go_language::opcode_print_table): New member function.
4512 * language.c (unknown_language_data): Remove la_op_print_tab
4513 initializer.
4514 (unknown_language::opcode_print_table): New member function.
4515 (auto_language_data): Remove la_op_print_tab initializer.
4516 (auto_language::opcode_print_table): New member function.
4517 * language.h (language_data): Remove la_op_print_tab field.
4518 (language_defn::opcode_print_table): Declare new member function.
4519 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4520 initializer.
4521 (m2_language::opcode_print_table): New member function.
4522 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4523 initializer.
4524 (objc_language::opcode_print_table): New member function.
4525 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4526 initializer.
4527 (opencl_language::opcode_print_table): New member function.
4528 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4529 initializer.
4530 (pascal_language::opcode_print_table): New member function.
4531 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4532 initializer.
4533 (rust_language::opcode_print_table): New member function.
4534
5aba6ebe
AB
45352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4536
4537 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4538 (ada_language::expression_ops): New member function.
4539 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4540 (c_language::expression_ops): New member function.
4541 (cplus_language_data): Remove la_exp_desc initializer.
4542 (cplus_language::expression_ops): New member function.
4543 (asm_language_data): Remove la_exp_desc initializer.
4544 (asm_language::expression_ops): New member function.
4545 (minimal_language_data): Remove la_exp_desc initializer.
4546 (minimal_language::expression_ops): New member function.
4547 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4548 (d_language::expression_ops): New member function.
4549 * eval.c (evaluate_subexp): Update call to expression_ops.
4550 * expprint.c (print_subexp): Likewise.
4551 (op_name): Likewise.
4552 (dump_subexp_body): Likewise.
4553 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4554 (f_language::expression_ops): New member function.
4555 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4556 (go_language::expression_ops): New member function.
4557 * language.c (language_defn::expression_ops): New function.
4558 (unknown_language_data): Remove la_exp_desc initializer.
4559 (auto_language_data): Likewise.
4560 * language.h (language_data): Remove la_exp_desc field.
4561 (language_defn::expression_ops): Declare new member function.
4562 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4563 (m2_language::expression_ops): New member function.
4564 * objc-lang.c (objc_language_data): Remove la_exp_desc
4565 initializer.
4566 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4567 initializer.
4568 (opencl_language::expression_ops): New member function.
4569 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4570 * parse.c (operator_length): Update call to expression_ops.
4571 (exp_iterate): Likewise.
4572 * rust-lang.c (rust_language_data): Remove la_exp_desc
4573 initializer.
4574 (ruse_language::expression_ops): New member function.
4575
b63a3f3f
AB
45762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4577
4578 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4579 initializer.
4580 (ada_language::varobj_ops): New member function.
4581 * c-lang.c (c_language_data): Remove la_varobj_ops
4582 initializer.
4583 (cplus_language_data): Likewise.
4584 (cplus_language::varobj_ops): New member function.
4585 (asm_language_data): Remove la_varobj_ops initializer.
4586 (minimal_language_data): Likewise.
4587 * d-lang.c (d_language_data): Likewise.
4588 * f-lang.c (f_language_data): Likewise.
4589 * go-lang.c (go_language_data): Likewise.
4590 * language.c (language_defn::varobj_ops): New function.
4591 (unknown_language_data): Remove la_varobj_ops
4592 initializer.
4593 (auto_language_data): Likewise.
4594 * language.h (language_data): Remove la_varobj_ops field.
4595 (language_defn::varobj_ops): Declare new member function.
4596 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4597 * objc-lang.c (objc_language_data): Likewise.
4598 * opencl-lang.c (opencl_language_data): Likewise.
4599 * p-lang.c (pascal_language_data): Likewise.
4600 * rust-lang.c (rust_language_data): Likewise.
4601 * varobj.c (varobj_create): Update call to varobj_ops.
4602 * varobj.h (default_varobj_ops): Delete define.
4603
1ac14a04
AB
46042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4605
4606 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4607 initializer.
4608 * c-lang.c (c_language_data): Likewise.
4609 (c_language::macro_expansion): New member function.
4610 (cplus_language_data): Likewise.
4611 (cplus_language::macro_expansion): New member function.
4612 (asm_language_data): Likewise.
4613 (asm_language::macro_expansion): New member function.
4614 (minimal_language_data): Likewise.
4615 (minimal_language::macro_expansion): New member function.
4616 * d-lang.c (d_language_data): Remove la_macro_expansion
4617 initializer.
4618 * f-lang.c (f_language_data): Likewise.
4619 * go-lang.c (go_language_data): Likewise.
4620 * language.c (unknown_language_data): Likewise.
4621 (auto_language_data): Likewise.
4622 * language.h (language_data): Remove la_macro_expansion field.
4623 (language_defn::macro_expansion): New member function.
4624 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4625 initializer.
4626 * objc-lang.c (objc_language_data): Likewise.
4627 (objc_language::macro_expansion): New member function.
4628 * opencl-lang.c (opencl_language_data): Likewise.
4629 (opencl_language::macro_expansion): New member function.
4630 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4631 initializer.
4632 * rust-lang.c (rust_language_data): Likewise.
4633 * symtab.c (default_collect_symbol_completion_matches_break_on):
4634 Update call to macro_expansion.
4635
3a3440fb
AB
46362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * ada-lang.c (ada_language_data): Remove la_array_ordering
4639 initializer.
4640 * c-lang.c (c_language_data): Likewise.
4641 (cplus_language_data): Likewise.
4642 (asm_language_data): Likewise.
4643 (minimal_language_data): Likewise.
4644 * d-lang.c (d_language_data): Likewise.
4645 * dwarf2/read.c (read_array_order): Update for call to
4646 array_ordering.
4647 * f-lang.c (f_language_data): Remove la_array_ordering
4648 initializer.
4649 (f_language::array_ordering): New member function.
4650 * go-lang.c (go_language_data): Remove la_array_ordering
4651 initializer.
4652 * language.c (unknown_language_data): Likewise.
4653 (auto_language_data): Likewise.
4654 * language.h (language_data): Delete la_array_ordering field.
4655 (language_defn::array_ordering): New member function.
4656 * m2-lang.c (m2_language_data): Remove la_array_ordering
4657 initializer.
4658 * objc-lang.c (objc_language_data): Likewise.
4659 * opencl-lang.c (opencl_language_data): Likewise.
4660 * p-lang.c (pascal_language_data): Likewise.
4661 * rust-lang.c (rust_language_data): Likewise.
4662
0d201fa4
AB
46632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4664
4665 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4666 initializer.
4667 * c-lang.c (c_language_data): Likewise.
4668 (cplus_language_data): Likewise.
4669 (asm_language_data): Likewise.
4670 (minimal_language_data): Likewise.
4671 * d-lang.c (d_language_data): Likewise.
4672 * f-lang.c (f_language_data): Likewise.
4673 (f_language::case_sensitivity): New member function.
4674 * go-lang.c (go_language_data): Remove la_case_sensitivity
4675 initializer.
4676 * language.c (enum case_mode): Moved here from language.h.
4677 (case_mode): Make static.
4678 (show_case_command): Update for case_sensitivity being a method.
4679 (set_case_command): Likewise.
4680 (set_range_case): Likewise.
4681 (unknown_language_data): Remove la_case_sensitivity initializer.
4682 (auto_language_data): Likewise.
4683 * language.h (case_mode): Delete, move enum declaration to
4684 language.c.
4685 (language_data): Delete la_case_sensitivity field.
4686 (language_defn::case_sensitivity): New member function.
4687 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4688 initializer.
4689 * objc-lang.c (objc_language_data): Likewise.
4690 * opencl-lang.c (opencl_language_data): Likewise.
4691 * p-lang.c (pascal_language_data): Likewise.
4692 * rust-lang.c (rust_language_data): Likewise.
4693
efdf6a73
AB
46942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4695
4696 * ada-lang.c (ada_language_data): Remove la_range_check
4697 initializer.
4698 * c-lang.c (c_language_data): Likewise.
4699 (cplus_language_data): Likewise.
4700 (asm_language_data): Likewise.
4701 (minimal_language_data): Likewise.
4702 * d-lang.c (d_language_data): Likewise.
4703 * f-lang.c (f_language_data): Likewise.
4704 (f_language::range_checking_on_by_default): New member function.
4705 * go-lang.c (go_language_data): Remove la_range_check initializer.
4706 * language.c (enum range_mode): Moved here from language.h.
4707 (range_mode): Made static.
4708 (show_range_command): Update to use
4709 range_checking_on_by_default.
4710 (set_range_command): Likewise.
4711 (set_range_case): Likewise.
4712 (unknown_language_data): Remove la_range_check initializer.
4713 (auto_language_data): Likewise.
4714 * language.h (range_mode): Delete. Enum definition moved to
4715 language.c.
4716 (language_data): Remove la_range_check field.
4717 (language_defn::range_checking_on_by_default): New member
4718 function.
4719 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4720 (m2_language::range_checking_on_by_default): New member function.
4721 * objc-lang.c (objc_language_data): Remove la_range_check
4722 initializer.
4723 * opencl-lang.c (opencl_language_data): Likewise.
4724 * p-lang.c (pascal_language_data): Likewise.
4725 (pascal_language::range_checking_on_by_default): New member
4726 function.
4727 * rust-lang.c (rust_language_data): Remove la_range_check
4728 initializer.
4729 (rust_language::range_checking_on_by_default): New member
4730 function.
4731
bf92aec5
AB
47322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4733
4734 * dwarf2/read.c (dwarf2_physname): Remove special case for
4735 language_go.
4736 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4737 member function.
4738
d3355e4d
AB
47392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4740
4741 * ada-lang.c (ada_language_data): Remove
4742 la_store_sym_names_in_linkage_form_p initializer.
4743 (ada_language::store_sym_names_in_linkage_form_p): New member
4744 function.
4745 * c-lang.c (c_language_data): Remove
4746 la_store_sym_names_in_linkage_form_p initializer.
4747 (c_language::store_sym_names_in_linkage_form_p): New member
4748 function.
4749 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4750 initializer.
4751 (asm_language_data): Likewise.
4752 (asm_language::store_sym_names_in_linkage_form_p): New member
4753 function.
4754 (minimal_language_data): Remove
4755 la_store_sym_names_in_linkage_form_p initializer.
4756 (minimal_language::store_sym_names_in_linkage_form_p): New member
4757 function.
4758 * d-lang.c (d_language_data): Remove
4759 la_store_sym_names_in_linkage_form_p initializer.
4760 * dwarf2/read.c (dwarf2_physname): Update call to
4761 store_sym_names_in_linkage_form_p.
4762 * f-lang.c (f_language_data): Remove
4763 la_store_sym_names_in_linkage_form_p initializer.
4764 * go-lang.c (go_language_data): Remove
4765 la_store_sym_names_in_linkage_form_p initializer.
4766 * language.c (unknown_language_data): Remove
4767 la_store_sym_names_in_linkage_form_p initializer.
4768 (unknown_language::store_sym_names_in_linkage_form_p): New member
4769 function.
4770 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4771 initializer.
4772 (auto_language::store_sym_names_in_linkage_form_p): New member
4773 function.
4774 * language.h (language_data): Remove
4775 la_store_sym_names_in_linkage_form_p member variable.
4776 (language_defn::store_sym_names_in_linkage_form_p): New member
4777 function.
4778 * m2-lang.c (m2_language_data): Remove
4779 la_store_sym_names_in_linkage_form_p initializer.
4780 * objc-lang.c (objc_language_data): Likewise.
4781 * opencl-lang.c (opencl_language_data): Likewise.
4782 * p-lang.c (pascal_language_data): Likewise.
4783 * rust-lang.c (rust_language_data): Likewise.
4784
22c12a6c
AB
47852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4786
4787 * ada-lang.c (ada_language_data): Remove string_lower_bound
4788 initializer.
4789 * c-lang.c (c_language_data): Likewise.
4790 (cplus_language_data): Likewise.
4791 (asm_language_data): Likewise.
4792 (minimal_language_data): Likewise.
4793 * d-lang.c (d_language_data): Likewise.
4794 * f-lang.c (f_language_data): Likewise.
4795 * go-lang.c (go_language_data): Likewise.
4796 * language.c (unknown_language_data): Likewise.
4797 (auto_language_data): Likewise.
4798 * language.h (language_data): Remove string_lower_bound field.
4799 (language_defn::string_lower_bound): New member function.
4800 * m2-lang.c (m2_language_data): Remove string_lower_bound
4801 initializer.
4802 (m2_language::string_lower_bound): New member function.
4803 * objc-lang.c (objc_language_data): Remove string_lower_bound
4804 initializer.
4805 * opencl-lang.c (opencl_language_data): Likewise.
4806 * p-lang.c (pascal_language_data): Likewise.
4807 * rust-lang.c (rust_language_data): Likewise.
4808 * valops.c (value_cstring): Update call to string_lower_bound.
4809 (value_string): Likewise.
4810 * value.c (allocate_repeated_value): Likewise.
4811
1c236ddd
AB
48122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4813
4814 * valops.c (value_repeat): Fix incorrect argument name in comment.
4815
67bd3fd5
AB
48162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4817
4818 * ada-lang.c (ada_language_data): Remove c_style_arrays
4819 initializer.
4820 (ada_language::c_style_arrays_p): New member fuction.
4821 * c-lang.c (c_language_data): Remove c_style_arrays
4822 initializer.
4823 (cplus_language_data): Likewise.
4824 (asm_language_data): Likewise.
4825 (minimal_language_data): Likewise.
4826 * d-lang.c (d_language_data): Likewise.
4827 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4828 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4829 (f_language::c_style_arrays_p): New member function.
4830 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4831 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4832 * language.c (unknown_language_data): Remove c_style_arrays
4833 initializer.
4834 (auto_language_data): Likewise.
4835 * language.h (language_data): Remove c_style_arrays field.
4836 (language_defn::c_style_arrays_p): New member function.
4837 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4838 (m2_language::c_style_arrays_p): New member function.
4839 * objc-lang.c (objc_language_data): Remove c_style_arrays
4840 initializer.
4841 * opencl-lang.c (opencl_language_data): Likewise.
4842 * p-lang.c (pascal_language_data): Likewise.
4843 * rust-lang.c (rust_language_data): Likewise.
4844 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4845 and update local variable to a bool.
4846 * valops.c (value_cast): Update call to c_style_arrays_p.
4847 (value_array): Likewise.
4848 * value.c (coerce_array): Likewise.
4849
85967615
AB
48502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4851
4852 * ada-lang.c (ada_language_data): Remove la_language initializer.
4853 * c-lang.c (c_language_data): Likewise.
4854 (cplus_language_data): Likewise.
4855 (asm_language_data): Likewise.
4856 (minimal_language_data): Likewise.
4857 * d-lang.c (d_language_data): Likewise.
4858 * f-lang.c (f_language_data): Likewise.
4859 * go-lang.c (go_language_data): Likewise.
4860 * language.c (unknown_language_data): Likewise.
4861 (auto_language_data): Likewise.
4862 * language.h (language_data): Remove la_language field.
4863 (language_defn::language_defn): Initialise la_language field.
4864 (language_defn::la_language): New member variable.
4865 * m2-lang.c (m2_language_data): Remove la_language field.
4866 * objc-lang.c (objc_language_data): Likewise.
4867 * opencl-lang.c (opencl_language_data): Likewise.
4868 * p-lang.c (pascal_language_data): Likewise.
4869 * rust-lang.c (rust_language_data): Likewise.
4870
e171d6f1
AB
48712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4872
4873 * ada-lang.c (ada_extensions): Delete, moved into
4874 ada_language::filename_extensions.
4875 (ada_language_data): Remove la_filename_extensions initializer.
4876 (ada_language::filename_extensions): New member function.
4877 * c-lang.c (c_extensions): Delete, moved into
4878 c_language::filename_extensions.
4879 (c_language_data): Remove la_filename_extensions initializer.
4880 (c_language::filename_extensions): New member function.
4881 (cplus_extensions): Delete, moved into
4882 cplus_language::filename_extensions.
4883 (cplus_language_data): Remove la_filename_extensions initializer.
4884 (cplus_language::filename_extensions): New member function.
4885 (asm_extensions): Delete, moved into
4886 asm_language::filename_extensions.
4887 (asm_language_data): Remove la_filename_extensions initializer.
4888 (asm_language::filename_extensions): New member function.
4889 (minimal_language_data): Remove la_filename_extensions
4890 initializer.
4891 * d-lang.c (d_extensions): Delete, moved into
4892 d_language::filename_extensions.
4893 (d_language_data): Remove la_filename_extensions initializer.
4894 (d_language::filename_extensions): New member function.
4895 * f-lang.c (f_extensions): Delete, moved into
4896 f_language::filename_extensions.
4897 (f_language_data): Remove la_filename_extensions initializer.
4898 (f_language::filename_extensions): New member function.
4899 * go-lang.c (go_language_data): Remove la_filename_extensions
4900 initializer.
4901 * language.c (add_set_language_command): Update now that
4902 filename_extensions returns a vector.
4903 (unknown_language_data): Remove la_filename_extensions
4904 initializer.
4905 (auto_language_data): Likewise.
4906 * language.h (language_data): Remove la_filename_extensions field.
4907 (language_defn::filename_extensions): New member function.
4908 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4909 initializer.
4910 * objc-lang.c (objc_extensions): Delete, moved into
4911 objc_language::filename_extensions.
4912 (objc_language_data): Remove la_filename_extensions initializer.
4913 (objc_language::filename_extensions): New member function.
4914 * opencl-lang.c (opencl_language_data): Remove
4915 la_filename_extensions initializer.
4916 * p-lang.c (pascal_extensions): Delete, moved into
4917 pascal_language::filename_extensions.
4918 (pascal_language_data): Remove la_filename_extensions initializer.
4919 (pascal_language::filename_extensions): New member function.
4920 * rust-lang.c (rust_extensions): Delete, moved into
4921 rust_language::filename_extensions.
4922 (rust_language_data): Remove la_filename_extensions initializer.
4923 (rust_language::filename_extensions): New member function.
4924 * symfile.c (add_filename_language): Add new assert.
4925
6f7664a9
AB
49262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * ada-lang.c (ada_language_data): Remove la_name and
4929 la_natural_name initializers.
4930 (ada_language::name): New member function.
4931 (ada_language::natural_name): New member function.
4932 * c-lang.c (c_language_data): Remove la_name and
4933 la_natural_name initializers.
4934 (c_language::name): New member function.
4935 (c_language::natural_name): New member function.
4936 (cplus_language_data): Remove la_name and
4937 la_natural_name initializers.
4938 (cplus_language::name): New member function.
4939 (cplus_language::natural_name): New member function.
4940 (asm_language_data): Remove la_name and
4941 la_natural_name initializers.
4942 (asm_language::name): New member function.
4943 (asm_language::natural_name): New member function.
4944 (minimal_language_data): Remove la_name and
4945 la_natural_name initializers.
4946 (minimal_language::name): New member function.
4947 (minimal_language::natural_name): New member function.
4948 * compile/compile.c (compile_to_object): Update call to
4949 lanugage_defn::name.
4950 * d-lang.c (d_language_data): Remove la_name and
4951 la_natural_name initializers.
4952 (d_language::name): New member function.
4953 (d_language::natural_name): New member function.
4954 * expprint.c (print_subexp_standard): Update call to
4955 language_defn::name.
4956 (dump_raw_expression): Likewise
4957 (dump_prefix_expression): Likewise.
4958 * f-lang.c (f_language_data): Remove la_name and
4959 la_natural_name initializers.
4960 (f_language::name): New member function.
4961 (f_language::natural_name): New member function.
4962 * go-lang.c (go_language_data): Remove la_name and
4963 la_natural_name initializers.
4964 (go_language::name): New member function.
4965 (go_language::natural_name): New member function.
4966 * language.c (show_language_command): Update call to
4967 language_defn::name.
4968 (set_language_command): Likewise.
4969 (language_enum): Likewise.
4970 (language_str): Likewise.
4971 (add_set_language_command): Likewise, use
4972 language_defn::natural_name in the doc string.
4973 (unknown_language_data): Remove la_name and
4974 la_natural_name initializers.
4975 (unknown_language::name): New member function.
4976 (unknown_language::natural_name): New member function.
4977 (auto_language_data): Remove la_name and
4978 la_natural_name initializers.
4979 (auto_language::name): New member function.
4980 (auto_language::natural_name): New member function.
4981 (language_lookup_primitive_type_as_symbol): Update call to
4982 language_defn::name.
4983 * language.h (language_data): Remove la_name and la_natural_name
4984 member variables.
4985 (language_defn::name): New member function.
4986 (language_defn::natural_name): New member function.
4987 * m2-lang.c (m2_language_data): Remove la_name and
4988 la_natural_name initializers.
4989 (m2_language::name): New member function.
4990 (m2_language::natural_name): New member function.
4991 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4992 language_defn::natural_name.
4993 * objc-lang.c (objc_language_data): Remove la_name and
4994 la_natural_name initializers.
4995 (objc_language::name): New member function.
4996 (objc_language::natural_name): New member function.
4997 * opencl-lang.c (opencl_language_data): Remove la_name and
4998 la_natural_name initializers.
4999 (opencl_language::name): New member function.
5000 (opencl_language::natural_name): New member function.
5001 * p-lang.c (pascal_language_data): Remove la_name and
5002 la_natural_name initializers.
5003 (pascal_language::name): New member function.
5004 (pascal_language::natural_name): New member function.
5005 * rust-lang.c (rust_language_data): Remove la_name and
5006 la_natural_name initializers.
5007 (rust_language::name): New member function.
5008 (rust_language::natural_name): New member function.
5009 * symtab.c (lookup_language_this): Update call to
5010 language_defn::name.
5011
5bae7c4e
AB
50122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * ada-lang.c (ada_language_data): Remove la_name_of_this
5015 initializer.
5016 * ax-gdb.c (gen_expr): Update call to name_of_this.
5017 * c-exp.y (classify_name): Likewise.
5018 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5019 (cplus_language_data): Likewise.
5020 (cplus_language::name_of_this): New member function.
5021 (asm_language_data): Remove la_name_of_this initializer.
5022 (minimal_language_data): Likewise.
5023 * d-lang.c (d_language_data): Likewise.
5024 (d_language::name_of_this): New member function.
5025 * expprint.c (print_subexp_standard): Update call to name_of_this.
5026 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5027 * go-lang.c (go_language_data): Likewise.
5028 * language.c (unknown_language_data): Likewise.
5029 (unknown_language::name_of_this): New member function.
5030 (auto_language_data): Remove la_name_of_this initializer.
5031 (auto_language::name_of_this): New member function.
5032 * language.h (language_data): Delete la_name_of_this member
5033 variable.
5034 (language_defn::name_of_this): New member function.
5035 * m2-lang.c (m2_language_data): Remove la_name_of_this
5036 initializer.
5037 * objc-lang.c (objc_language_data): Likewise.
5038 (objc_language::name_of_this): New member function.
5039 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5040 initializer.
5041 * p-lang.c (pascal_language_data): Likewise.
5042 (pascal_language::name_of_this): New member function.
5043 * rust-lang.c (rust_language_data): Remove la_name_of_this
5044 initializer.
5045 * symtab.c (lookup_language_this): Update call to name_of_this.
5046 (lookup_symbol_aux): Likewise.
5047 * valops.c (value_of_this): Likewise.
5048
22e3f3ed
AB
50492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5050
5051 * ada-lang.c (ada_language_data): Remove
5052 la_struct_too_deep_ellipsis initializer.
5053 (ada_language::struct_too_deep_ellipsis): New member function.
5054 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5055 initializer.
5056 (cplus_language_data): Likewise.
5057 (asm_language_data): Likewise.
5058 (minimal_language_data): Likewise.
5059 * cp-valprint.c (cp_print_value): Update call to
5060 struct_too_deep_ellipsis.
5061 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5062 initializer.
5063 * f-lang.c (f_language_data): Likewise.
5064 (f_language::struct_too_deep_ellipsis): New member function.
5065 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5066 initializer.
5067 * language.c (unknown_language_data): Likewise.
5068 (auto_language_data): Likewise.
5069 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5070 member variable.
5071 (language_defn::struct_too_deep_ellipsis): New member function.
5072 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5073 initializer.Q
5074 * objc-lang.c (objc_language_data): Likewise.
5075 * opencl-lang.c (opencl_language_data): Likewise.
5076 * p-lang.c (pascal_language_data): Likewise.
5077 * rust-lang.c (rust_language_data): Likewise.
5078 * valprint.c (val_print_check_max_depth): Update call to
5079 struct_too_deep_ellipsis.
5080
ed29e1c7
FW
50812020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5082
5083 * MAINTAINERS (Write After Approval): Add myself.
5084
12d8f940
TT
50852020-09-15 Tom Tromey <tom@tromey.com>
5086
5087 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5088 Remove.
5089
6b5a7bc7
TT
50902020-09-15 Tom Tromey <tom@tromey.com>
5091
5092 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5093 and TYPE_CODE_METHODPTR cases.
5094 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5095 (c_value_print_inner): Update.
5096 * valprint.c (generic_value_print_memberptr): New function, from
5097 c_value_print_memberptr.
5098 (generic_value_print): Use it. Call cplus_print_method_ptr.
5099
47f0e2ff
TT
51002020-09-15 Tom Tromey <tromey@adacore.com>
5101
5102 * python/python-internal.h (PyInt_FromLong): Remove define.
5103 * python/py-value.c (convert_value_from_python): Use
5104 gdb_py_object_from_longest.
5105 * python/py-type.c (typy_get_code): Use
5106 gdb_py_object_from_longest.
5107 * python/py-symtab.c (salpy_get_line): Use
5108 gdb_py_object_from_longest.
5109 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5110 gdb_py_object_from_longest.
5111 * python/py-record.c (recpy_gap_reason_code): Use
5112 gdb_py_object_from_longest.
5113 * python/py-record-btrace.c (recpy_bt_insn_size)
5114 (recpy_bt_func_level, btpy_list_count): Use
5115 gdb_py_object_from_longest.
5116 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5117 gdb_py_object_from_longest. Fix error handling.
5118 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5119 gdb_py_object_from_longest.
5120 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5121 gdb_py_object_from_longest.
5122 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5123 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5124 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5125
512116ce
TT
51262020-09-15 Tom Tromey <tromey@adacore.com>
5127
5128 * python/python.c (gdbpy_parameter_value): Use
5129 gdb_py_object_from_ulongest.
5130
4ab1029c
TT
51312020-09-15 Tom Tromey <tromey@adacore.com>
5132
5133 * python/py-infevents.c (create_register_changed_event_object):
5134 Use gdb_py_object_from_longest.
5135 * python/py-exitedevent.c (create_exited_event_object): Use
5136 gdb_py_object_from_longest.
5137
062534d4
TT
51382020-09-15 Tom Tromey <tromey@adacore.com>
5139
5140 * python/python.c (gdbpy_parameter_value): Use
5141 gdb_py_object_from_longest.
5142 * python/py-type.c (convert_field, typy_range): Use
5143 gdb_py_object_from_longest.
5144 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5145 gdb_py_object_from_longest.
5146 * python/py-lazy-string.c (stpy_get_length): Use
5147 gdb_py_object_from_longest.
5148 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5149 gdb_py_object_from_longest.
5150 * python/py-infevents.c (create_memory_changed_event_object): Use
5151 gdb_py_object_from_longest.
5152 * python/py-inferior.c (infpy_get_num): Use
5153 gdb_py_object_from_longest.
5154 (infpy_get_pid): Likewise.
5155
d1cab987
TT
51562020-09-15 Tom Tromey <tromey@adacore.com>
5157
5158 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5159 defines.
5160 * python/py-value.c (valpy_long): Use
5161 gdb_py_object_from_ulongest.
5162 * python/py-symtab.c (salpy_get_pc): Use
5163 gdb_py_object_from_ulongest.
5164 (salpy_get_last): Likewise.
5165 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5166 gdb_py_object_from_ulongest.
5167 * python/py-lazy-string.c (stpy_get_address): Use
5168 gdb_py_object_from_ulongest.
5169 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5170 * python/py-arch.c (archpy_disassemble): Use
5171 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5172 error handling.
5173
4bde49dc
TT
51742020-09-15 Tom Tromey <tromey@adacore.com>
5175
5176 * python/python-internal.h (gdb_py_long_from_longest): Remove
5177 defines.
5178 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5179 * python/py-type.c (convert_field, typy_get_sizeof): Use
5180 gdb_py_object_from_longest.
5181 * python/py-record-btrace.c (btpy_list_index): Use
5182 gdb_py_object_from_longest.
5183
37431074
TT
51842020-09-15 Tom Tromey <tromey@adacore.com>
5185
5186 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5187 * python/py-record.c (recpy_element_number): Use
5188 gdb_py_object_from_longest.
5189 (recpy_gap_number): Likewise.
5190
cbe25684
TT
51912020-09-15 Tom Tromey <tromey@adacore.com>
5192
5193 * top.c (ui::ui): Update.
5194 (highest_ui_num): Remove.
5195 * top.h (struct ui) <num>: Remove.
5196
db92ac45
TT
51972020-09-15 Tom Tromey <tromey@adacore.com>
5198
5199 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5200 * ui-style.c (ansi_regex_text): Now array.
5201 * rust-exp.y (number_regex_text): Now array.
5202 * linespec.c (linespec_quote_characters): Now array.
5203 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5204 Now arrays.
5205
d2b31b67
SM
52062020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5207
5208 * debuginfod-support.c (debuginfod_client_deleter): New.
5209 (debuginfod_client_up): New.
5210 (debuginfod_init): Return debuginfod_client_up.
5211 (debuginfod_source_query): Adjust.
5212 (debuginfod_debuginfo_query): Adjust.
5213
3246bd8e
SM
52142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5215
5216 * debuginfod-support.c (debuginfod_source_query): Use
5217 make_unique_xstrdup.
5218
10242f36
SM
52192020-09-14 Simon Marchi <simon.marchi@efficios.com>
5220
5221 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5222 with `type::instance_flags`.
5223
e1044e6a
MM
52242020-09-14 Michael Mullin <masmullin@gmail.com>
5225
5226 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5227 Remove baton parameter.
5228
04902b09
PA
52292020-09-14 Pedro Alves <pedro@palves.net>
5230
5231 * Makefile.in (SELFTESTS_SRCS): Add
5232 unittests/enum-flags-selftests.c.
5233 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5234 btrace_function_flags instead of enum btrace_function_flag.
5235 * compile/compile-c-types.c (convert_qualified): Use
5236 enum_flags::raw.
5237 * compile/compile-cplus-symbols.c (convert_one_symbol)
5238 (convert_symbol_bmsym):
5239 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5240 (compile_cplus_convert_struct_or_union_methods)
5241 (compile_cplus_instance::convert_qualified_base):
5242 * go-exp.y (parse_string_or_char): Add cast to int.
5243 * unittests/enum-flags-selftests.c: New file.
5244 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5245 type to btrace_thread_flags from btrace_thread_flag.
5246 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5247 local's type to btrace_thread_flags from btrace_thread_flag. Add
5248 cast in DEBUG call.
5249
69896a2c
PA
52502020-09-14 Pedro Alves <pedro@palves.net>
5251
5252 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5253 * gdbtypes.c (address_space_name_to_int): Rename to ...
5254 (address_space_name_to_type_instance_flags): ... this.
5255 (address_space_int_to_name): Rename to ...
5256 (address_space_type_instance_flags_to_name): ... this.
5257 * gdbtypes.h (address_space_name_to_int): Rename to ...
5258 (address_space_name_to_type_instance_flags): ... this.
5259 (address_space_int_to_name): Rename to ...
5260 (address_space_type_instance_flags_to_name): ... this.
5261 * type-stack.c (type_stack::insert): Adjust to rename.
5262 * type-stack.h (type_stack::insert): Likewise.
5263
314ad88d
PA
52642020-09-14 Pedro Alves <pedro@palves.net>
5265 Andrew Burgess <andrew.burgess@embecosm.com>
5266
5267 * avr-tdep.c (avr_address_class_type_flags): Return
5268 type_instance_flags.
5269 (avr_address_class_type_flags_to_name): Take a
5270 type_instance_flags.
5271 (avr_address_class_name_to_type_flags): Return bool and take a
5272 type_instance_flags.
5273 * d-lang.c (build_d_types): Use type::set_instance_flags.
5274 * ft32-tdep.c (ft32_address_class_type_flags): Return
5275 type_instance_flags.
5276 (ft32_address_class_type_flags_to_name): Take a
5277 type_instance_flags.
5278 (ft32_address_class_name_to_type_flags): Return bool and take a
5279 type_instance_flags.
5280 (ft32_gdbarch_init): Use type::set_instance_flags.
5281 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5282 * gdbarch.h, gdbarch.c: Regenerate.
5283 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5284 (address_class_name_to_type_flags): Use type_instance_flags and
5285 bool.
5286 * gdbtypes.c (address_space_name_to_int)
5287 (address_space_int_to_name, make_qualified_type): Use
5288 type_instance_flags.
5289 (make_qualified_type): Use type_instance_flags and
5290 type::set_instance_flags.
5291 (make_type_with_address_space, make_cv_type, make_vector_type)
5292 (check_typedef): Use type_instance_flags.
5293 (recursive_dump_type): Cast type_instance_flags to unsigned for
5294 printing.
5295 (copy_type_recursive): Use type::set_instance_flags.
5296 (gdbtypes_post_init): Use type::set_instance_flags.
5297 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5298 <m_instance_flags>: ... this.
5299 <instance_flags, set_instance_flags>: New methods.
5300 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5301 (SET_TYPE_INSTANCE_FLAGS): New.
5302 (address_space_name_to_int, address_space_int_to_name)
5303 (make_type_with_address_space): Pass flags using
5304 type_instance_flags instead of int.
5305 * stabsread.c (cleanup_undefined_types_noname): Use
5306 type::set_instance_flags.
5307 * s390-tdep.c (s390_address_class_type_flags): Return
5308 type_instance_flags.
5309 (s390_address_class_type_flags_to_name): Take a
5310 type_instance_flags.
5311 (s390_address_class_name_to_type_flags): Return bool and take a
5312 type_instance_flags.
5313 * type-stack.c (type_stack::follow_types): Use
5314 type_instance_flags.
5315 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5316
27087b7f
TT
53172020-09-14 Tom Tromey <tromey@adacore.com>
5318
5319 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5320 * x86-tdep.c (x86_is_thunk_register_name)
5321 (x86_in_indirect_branch_thunk): Update.
5322 * sparc64-tdep.c (sparc64_fpu_register_names)
5323 (sparc64_cp0_register_names, sparc64_register_names)
5324 (sparc64_pseudo_register_names): Now const.
5325 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5326 cp0_registers_num>: Now const.
5327 * sparc-tdep.c (sparc_core_register_names)
5328 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5329 (sparc32_pseudo_register_names): Now const.
5330 (validate_tdesc_registers): Update.
5331 * rust-lang.c (rust_extensions): Now const.
5332 * p-lang.c (p_extensions): Now const.
5333 * objc-lang.c (objc_extensions): Now const.
5334 * nto-tdep.c (nto_thread_state_str): Now const.
5335 * moxie-tdep.c (moxie_register_names): Now const.
5336 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5337 Now const.
5338 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5339 (mips_linux_reg_names): Now const.
5340 (mips_gdbarch_init): Update.
5341 * microblaze-tdep.c (microblaze_register_names): Now const.
5342 * m68k-tdep.c (m68k_register_names): Now const.
5343 * m32r-tdep.c (m32r_register_names): Now const.
5344 * ia64-tdep.c (ia64_register_names): Now const.
5345 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5346 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5347 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5348 ymm_avx512_register_names, pkeys_register_names>: Now const.
5349 * i386-tdep.c (i386_register_names, i386_zmm_names)
5350 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5351 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5352 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5353 * f-lang.c (f_extensions): Now const.
5354 * d-lang.c (d_extensions): Now const.
5355 * csky-tdep.c (csky_register_names): Now const.
5356 * charset.c (default_charset_names, charset_enum): Now const.
5357 (_initialize_charset): Update.
5358 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5359 const.
5360 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5361 (bsd_uthread_solib_loaded): Update.
5362 (bsd_uthread_state): Now const.
5363 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5364 (amd64_ymm_avx512_names, amd64_ymmh_names)
5365 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5366 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5367 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5368 (amd64_dword_names): Now const.
5369 * agent.c (can_use_agent_enum): Now const.
5370 * ada-tasks.c (task_states, long_task_states): Now const.
5371 * ada-lang.c (known_runtime_file_name_patterns)
5372 (known_auxiliary_function_name_patterns, attribute_names)
5373 (standard_exc, ada_extensions): Now const.
5374
89806626
SM
53752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5376
5377 * bcache.h (struct bcache) <bcache>: Remove constructor.
5378 <m_hash_function, m_compare_function>: Remove.
5379 <~bcache>: Make virtual.
5380 <compare>: Remove static method, introduce virtual method.
5381 <default_hash>: Remove.
5382 <hash>: New virtual method.
5383 * bcache.c (bcache::expand_hash_table): Update.
5384 (bcache::insert): Update.
5385 (bcache::hash): New.
5386 (bcache::compare): Update comment and parameter names.
5387 * gdbtypes.c (types_deeply_equal): Update.
5388 * psymtab.h (struct psymbol_bcache): New struct.
5389 (class psymtab_storage) <psymtab_storage>: Make default.
5390 <psymbol_cache>: Change type to psymbol_bcache.
5391 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5392 (psymbol_hash): Change to...
5393 (psymbol_bcache::hash): ... this.
5394 (psymbol_compare): Change to...
5395 (psymbol_bcache::compare): ... this.
5396
677c92fe
SM
53972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5398
5399 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5400 checking for initial lwp.
5401
3eba3a01
TT
54022020-09-14 Tom Tromey <tromey@adacore.com>
5403
5404 * m68k-tdep.c (m68k_extract_return_value): Use
5405 pointer_result_regnum.
5406 (m68k_store_return_value): Likewise.
5407 (m68k_reg_struct_return_p): Handle vectors and arrays.
5408 (m68k_return_value): Handle arrays.
5409 (m68k_svr4_return_value): Fix single-element aggregate handling.
5410 Handle long double. Adjust for embedded ABI.
5411 (m68k_svr4_init_abi): Set pointer_result_regnum.
5412 (m68k_embedded_init_abi): New function.
5413 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5414 (m68k_osabi_sniffer): New function.
5415 (_initialize_m68k_tdep): Register osabi sniffer.
5416 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5417 member.
5418
33f4dd48
SM
54192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5420
5421 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5422 with gdb::unique_xmalloc_ptr<char>.
5423
8400a90d
SM
54242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5425
5426 * xml-support.h (xml_fetch_another): Change type to be a
5427 function_view.
5428 (xml_process_xincludes): Remove baton parameter.
5429 (xml_fetch_content_from_file): Change baton parameter to
5430 dirname.
5431 * xml-support.c (struct xinclude_parsing_data)
5432 <xinclude_parsing_data>: Remove baton parameter.
5433 <fetcher_baton>: Remove.
5434 (xinclude_start_include): Adjust.
5435 (xml_process_xincludes): Adjust.
5436 (xml_fetch_content_from_file): Replace baton parameter with
5437 dirname.
5438 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5439 (xml_init_syscalls_info): Use a lambda.
5440 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5441 (file_read_description_xml): Use a lambda.
5442 (fetch_available_features_from_target): Change baton parameter
5443 to target_ops.
5444 (target_read_description_xml): Use a lambda.
5445 (target_fetch_description_xml): Use a lambda.
5446 (string_read_description_xml): Update.
5447
04f5bab2
SM
54482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5451 uses with type::endianity_is_not_default.
5452
db558e34
SM
54532020-09-14 Simon Marchi <simon.marchi@efficios.com>
5454
5455 * gdbtypes.h (struct type) <endianity_is_not_default,
5456 set_endianity_is_not_default>: New methods.
5457 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5458 type::endianity_is_not_default, change all write call sites to
5459 use type::set_endianity_is_not_default.
5460
22c4c60c
SM
54612020-09-14 Simon Marchi <simon.marchi@efficios.com>
5462
5463 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5464 uses with type::is_fixed_instance.
5465
9cdd0d12
SM
54662020-09-14 Simon Marchi <simon.marchi@efficios.com>
5467
5468 * gdbtypes.h (struct type) <is_fixed_instance,
5469 set_is_fixed_instance>: New methods.
5470 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5471 write call sites to use type::set_is_fixed_instance.
5472
0becda7a
SM
54732020-09-14 Simon Marchi <simon.marchi@efficios.com>
5474
5475 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5476 uses with type::is_gnu_ifunc.
5477
03cc7249
SM
54782020-09-14 Simon Marchi <simon.marchi@efficios.com>
5479
5480 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5481 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5482 use type::set_is_gnu_ifunc.
5483
3f46044c
SM
54842020-09-14 Simon Marchi <simon.marchi@efficios.com>
5485
5486 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5487 uses with type::stub_is_supported.
5488
9baccff6
SM
54892020-09-14 Simon Marchi <simon.marchi@efficios.com>
5490
5491 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5492 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5493 use type::set_stub_is_supported.
5494
bd63c870
SM
54952020-09-14 Simon Marchi <simon.marchi@efficios.com>
5496
5497 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5498 uses with type::is_vector.
5499
2062087b
SM
55002020-09-14 Simon Marchi <simon.marchi@efficios.com>
5501
5502 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5503 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5504 use type::set_is_vector.
5505
a409645d
SM
55062020-09-14 Simon Marchi <simon.marchi@efficios.com>
5507
5508 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5509 uses with type::has_varargs.
5510
1d6286ed
SM
55112020-09-14 Simon Marchi <simon.marchi@efficios.com>
5512
5513 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5514 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5515 use type::set_has_varargs.
5516
7f9f399b
SM
55172020-09-14 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5520 uses with type::is_prototyped.
5521
27e69b7a
SM
55222020-09-14 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5525 New methods.
5526 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5527 call sites to use type::set_is_prototyped.
5528
d2183968
SM
55292020-09-14 Simon Marchi <simon.marchi@efficios.com>
5530
5531 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5532 uses with type::target_is_stub.
5533
8f53807e
SM
55342020-09-14 Simon Marchi <simon.marchi@efficios.com>
5535
5536 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5537 New methods.
5538 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5539 sites to use type::set_target_is_stub.
5540
e46d3488
SM
55412020-09-14 Simon Marchi <simon.marchi@efficios.com>
5542
5543 * gdbtypes.h (TYPE_STUB): Remove, replace all
5544 uses with type::is_stub.
5545
b4b73759
SM
55462020-09-14 Simon Marchi <simon.marchi@efficios.com>
5547
5548 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5549 (TYPE_STUB): Use type::is_stub, change all write call sites to
5550 use type::set_is_stub.
5551
20ce4123
SM
55522020-09-14 Simon Marchi <simon.marchi@efficios.com>
5553
5554 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5555 type::has_no_signedness.
5556
15152a54
SM
55572020-09-14 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * gdbtypes.h (struct type) <has_no_signedness,
5560 set_has_no_signedness>: New methods.
5561 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5562 call sites to use type::set_has_no_signedness.
5563
c6d940a9
SM
55642020-09-14 Simon Marchi <simon.marchi@efficios.com>
5565
5566 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5567 type::is_unsigned.
5568
653223d3
SM
55692020-09-14 Simon Marchi <simon.marchi@efficios.com>
5570
5571 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5572 methods.
5573 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5574 sites to use type::set_is_unsigned.
5575
55ea94da 55762020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5577 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5578
e851246a
SM
5579 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5580 pointer and stack frame offset when unwinding.
55ea94da 5581
6791b117
PA
55822020-09-13 Pedro Alves <pedro@palves.net>
5583
5584 * NEWS: Document "-break-insert --qualified".
5585 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5586
77f2120b
PA
55872020-09-13 Pedro Alves <pedro@palves.net>
5588
5589 * linespec.c (classify_mtype, compare_msyms): Delete.
5590 (search_minsyms_for_name): Remove classification logic. Instead
5591 filter out trampoline symbols if we also found an external
5592 function of the same name.
5593
ed6a896c
JB
55942020-09-13 Joel Brobecker <brobecker@adacore.com>
5595
5596 * NEWS: Create a new section for the next release branch.
5597 Rename the section of the current branch, now that it has
5598 been cut.
5599
32aea73e
JB
56002020-09-13 Joel Brobecker <brobecker@adacore.com>
5601
5602 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5603 * version.in: Bump version to 11.0.50.DATE-git.
5604
8087c3fa
JB
56052020-09-12 Joel Brobecker <brobecker@adacore.com>
5606
5607 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5608
2a67f09d
FW
56092020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5610 Felix Willgerodt <Felix.Willgerodt@intel.com>
5611
5612 * gdbarch.sh: Added bfloat16 type.
5613 * gdbarch.c: Regenerated.
5614 * gdbarch.h: Regenerated.
5615 * gdbtypes.c (floatformats_bfloat16): New struct.
5616 (gdbtypes_post_init): Add builtin_bfloat16.
5617 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5618 (floatformats_bfloat16): New struct.
5619 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5620 (i386_ymm_type): Add field "v16_bfloat16"
5621 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5622 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5623 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5624 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5625 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5626 * features/i386/64bit-avx512.c: Regenerated.
5627 * features/i386/64bit-sse.xml: Add bfloat16 type.
5628 * features/i386/64bit-sse.c: Regenerated.
5629
1347d111
FW
56302020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5631
5632 * i386-tdep.c (i386_zmm_type): Fix field names.
5633 (i386_ymm_type): Fix field names.
5634
7a4e8e7d
TBA
56352020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5636
5637 * breakpoint.c: Fix typo in the help message of the
5638 "set breakpoint condition-evaluation" command.
5639
cf4ac4be
KR
56402020-09-10 Kamil Rytarowski <n54@gmx.com>
5641
5642 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5643 * (nbsd_nat_target::pid_to_exec_file)
5644 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5645 (nbsd_nat_target::post_startup_inferior)
5646 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5647 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5648 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5649 * (nbsd_thread_lister): Remove.
5650
f404573e
KR
56512020-09-10 Kamil Rytarowski <n54@gmx.com>
5652
5653 * fork-inferior.c (startup_inferior): Avoid double free.
5654
1ccb2c17
KR
56552020-09-10 Kamil Rytarowski <n54@gmx.com>
5656
5657 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5658 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5659
feedfcc7
KR
56602020-09-10 Kamil Rytarowski <n54@gmx.com>
5661
5662 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5663 * netbsd-nat.c: Include <sys/ptrace.h>.
5664 * (netbsd_nat::enable_proc_events): Add.
5665
c489f8c6
KR
56662020-09-10 Kamil Rytarowski <n54@gmx.com>
5667
5668 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5669 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5670 (netbsd_nat::for_each_thread): Add.
5671 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5672 "gdbsupport/common-debug.h".
5673 * (netbsd_nat::netbsd_thread_lister)
5674 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5675 (netbsd_nat::for_each_thread): Add.
5676
330662f6
KR
56772020-09-10 Kamil Rytarowski <n54@gmx.com>
5678
5679 * netbsd-nat.h: Include <unistd.h>.
5680 * (netbsd_nat::pid_to_exec_file): Add.
5681 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5682 * (netbsd_nat::pid_to_exec_file) Add.
5683
70b67307
KR
56842020-09-10 Kamil Rytarowski <n54@gmx.com>
5685
5686 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5687
99cf6da6
KR
56882020-09-10 Kamil Rytarowski <n54@gmx.com>
5689
5690 * netbsd-nat.h: New file.
5691 * netbsd-nat.c: Likewise.
5692
1b788fb6
TT
56932020-09-09 Tom Tromey <tromey@adacore.com>
5694
5695 * ada-lang.c (remove_extra_symbols): Do not increment when
5696 removing an element
5697
03b0a45f
TT
56982020-09-08 Tom Tromey <tromey@adacore.com>
5699
5700 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5701
3cae4447
TT
57022020-09-08 Tom Tromey <tromey@adacore.com>
5703
5704 PR win32/25302:
5705 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5706 (gdb_bfd_init_data): New function.
5707 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5708
7f08fd51
TBA
57092020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5710
5711 * infrun.c (fetch_inferior_event): Use
5712 `switch_to_target_no_thread` to switch the target.
5713
3e6ff933
TT
57142020-09-06 Tom Tromey <tom@tromey.com>
5715
5716 * symfile.h (dwarf2_free_objfile): Don't declare.
5717
e56798df
AKS
57182020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5719
5720 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5721 to match 16 byte real/complex type generated by Flang compiler.
5722
8f5c6526
TV
57232020-09-03 Tom de Vries <tdevries@suse.de>
5724
5725 PR breakpoint/26546
5726 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5727 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5728
c5065df0
SM
57292020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * maint.c (index_digits): New function.
5732 (struct maint_print_section_data): Remove.
5733 (print_bfd_section_info): Remove print_data parameter, add arg
5734 and index_digits.
5735 (print_objfile_section_info): Likewise.
5736 (print_bfd_section_info_maybe_relocated): Likewise (plus
5737 objfile).
5738 (maintenance_info_sections): Adjust calls.
5739
02c6f3f1
TT
57402020-09-02 Tom Tromey <tromey@adacore.com>
5741
5742 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5743 for null pointers.
5744 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5745
ef5e5b0b
SM
57462020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5747
5748 * bcache.h (struct bcache) <insert>: Change type of `added` to
5749 pointer to bool.
5750 * bcache.c (bcache::insert): Likewise.
5751 * gdbtypes.c (check_types_worklist): Adjust.
5752 * psymtab.c (add_psymbol_to_bcache): Adjust.
5753
973695d6
KB
57542020-08-31 Kevin Buettner <kevinb@redhat.com>
5755
5756 * corelow.c (unordered_set): Include.
5757 (class core_target): Add field 'm_core_unavailable_mappings'.
5758 (core_target::build_file_mappings): Print only one warning
5759 per inaccessible file. Add unavailable/broken mappings
5760 to m_core_unavailable_mappings.
5761 (core_target::xfer_partial): Call...
5762 (core_target::xfer_memory_via_mappings): New method.
5763
264fc0e2
SM
57642020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5765
5766 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5767 type to bool.
5768
2de01bdb
SM
57692020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * dwarf2/read.c (struct field_info): Fix indentation.
5772
f3bd50f1
SM
57732020-08-31 Simon Marchi <simon.marchi@efficios.com>
5774
5775 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5776 ordering in comment.
5777 * frame.c (frame_id_eq): Fix indentation.
5778
22b9b4b0
SL
57792020-08-31 Scott Linder <scott@scottlinder.com>
5780 Simon Marchi <simon.marchi@efficios.com>
5781
5782 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5783 inline frame ids in outer frame.
5784
84154d16
SM
57852020-08-31 Simon Marchi <simon.marchi@efficios.com>
5786
5787 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5788 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5789 (outer_frame_id): Use FID_STACK_OUTER instead of
5790 FID_STACK_INVALID.
5791 (frame_id_p): Don't check for outer_frame_id.
5792
8efaf6b3
SM
57932020-08-31 Simon Marchi <simon.marchi@efficios.com>
5794
5795 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5796 regnum/frame in value. Call allocate_value_lazy.
5797 * frame.c (frame_unwind_register_value): Use
5798 val_print_not_saved.
5799
fe1fe7ea
SM
58002020-08-31 Simon Marchi <simon.marchi@efficios.com>
5801
5802 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5803
f7c7700d
PA
58042020-08-29 Pedro Alves <pedro@palves.net>
5805
5806 * progspace.c (print_program_space): Use all_inferiors. Switch to
5807 the inferior before calling target_pid_to_str.
5808
e0814aae
TT
58092020-08-28 Tom Tromey <tom@tromey.com>
5810
5811 * xcoffread.c (xcoff_end_psymtab): Update comment.
5812 * dbxread.c (dbx_end_psymtab): Update comment.
5813
626d2320
TV
58142020-08-28 Tom de Vries <tdevries@suse.de>
5815
5816 PR breakpoint/26544
5817 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5818 event_location.
5819 (create_breakpoint): Same.
5820 (base_breakpoint_decode_location): Same.
5821 (bkpt_create_sals_from_location): Same.
5822 (bkpt_decode_location): Same.
5823 (bkpt_probe_create_sals_from_location): Same.
5824 (bkpt_probe_decode_location): Same.
5825 (tracepoint_create_sals_from_location): Same.
5826 (tracepoint_decode_location): Same.
5827 (tracepoint_probe_decode_location): Same.
5828 (strace_marker_create_sals_from_location): Same.
5829 (strace_marker_decode_location): Same.
5830 (create_sals_from_location_default): Same.
5831 (decode_location_default): Same.
5832 * breakpoint.h (struct breakpoint_ops): Same.
5833 (create_breakpoint): Same.
5834 * linespec.h (decode_line_full): Same.
5835 * linespec.c (decode_line_full): Same. Throw error if
5836 result.size () == 0.
5837
df631783
PA
58382020-08-27 Pedro Alves <pedro@palves.net>
5839
5840 PR gdb/26524
5841 * breakpoint.c (until_break_fsm) <location_breakpoint,
5842 caller_breakpoint>: Delete fields.
5843 <breakpoints>: New field.
5844 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5845 two individual breakpoints.
5846 (until_break_fsm::should_stop): Loop over breakpoints in the
5847 breakpoint vector.
5848 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5849 vector.
5850 (until_break_command): Handle location expanding into multiple
5851 sals.
5852
b2b38aa4
PA
58532020-08-27 Pedro Alves <pedro@palves.net>
5854
5855 PR gdb/26523
5856 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5857 bp_until breakpoints user-specified locations. Update intro
5858 comment.
5859
b886559f
SM
58602020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5863 gdb_bfd_sections): New.
5864 * maint.c (print_bfd_section_info): Change param type to
5865 maint_print_section_data.
5866 (print_objfile_section_info): Likewise.
5867 (print_bfd_section_info_maybe_relocated): Likewise.
5868 (maintenance_info_sections): Use gdb_bfd_sections.
5869
4c6e63bf
SV
58702020-08-25 Shahab Vahedi <shahab@synopsys.com>
5871
5872 * MAINTAINERS: Add ARC target and maintainer.
5873
8d7f0635
AK
58742020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5875
5876 * configure.tgt: ARC support for GNU/Linux.
5877 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5878 * arc-linux-tdep.c: New file.
5879 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5880 * arc-tdep.c (arc_write_pc): Use it.
5881
fdd8731b
SV
58822020-08-25 Shahab Vahedi <shahab@synopsys.com>
5883
5884 * arc-tdep.c (arc_check_for_hardware_loop): New.
5885 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5886
22459524
SV
58872020-08-25 Shahab Vahedi <shahab@synopsys.com>
5888
5889 * arc-tdep.h: Include "gdbarch.h".
5890
995d3a19
SV
58912020-08-25 Shahab Vahedi <shahab@synopsys.com>
5892
5893 * arch/arc.h
5894 (arc_gdbarch_features): New class to stir the selection of target XML.
5895 (arc_create_target_description): Use FEATURES to choose XML target.
5896 (arc_lookup_target_description): Use arc_create_target_description
5897 to create _new_ target descriptions or return the already created
5898 ones if the FEATURES is the same.
5899 * arch/arc.c: Implementation of prototypes described above.
5900 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5901 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5902 * arc-tdep.c (*_feature_name): Make feature names consistent.
5903 (arc_register_feature): A new struct to hold information about
5904 registers of a particular target/feature.
5905 (arc_check_tdesc_feature): Check if XML provides registers in
5906 compliance with ARC_REGISTER_FEATURE structs.
5907 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5908 (determine_*_reg_feature_set): Which feature name to look for.
5909 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5910 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5911 to expected ISA enums to be used in arc_gdbarch_features structs.
5912 * features/Makefile (FEATURE_XMLFILES): Add new files.
5913 * gdb/features/arc/v1-aux.c: New file.
5914 * gdb/features/arc/v1-aux.xml: Likewise.
5915 * gdb/features/arc/v1-core.c: Likewise.
5916 * gdb/features/arc/v1-core.xml: Likewise.
5917 * gdb/features/arc/v2-aux.c: Likewise.
5918 * gdb/features/arc/v2-aux.xml: Likewise.
5919 * gdb/features/arc/v2-core.c: Likewise.
5920 * gdb/features/arc/v2-core.xml: Likewise.
5921 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5922
3945d2d7
GM
59232020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5924 Andrew Burgess <andrew.burgess@embecosm.com>
5925
5926 PR m2/26372
fc5d6901 5927 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5928 an assert. Remove single element array indexing pattern as the
5929 MULTI_SUBSCRIPT support will handle this case too.
5930
2677f2d3
SM
59312020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 * value.h (valprint_check_validity): Move declaration from
5934 here...
5935 * valprint.h (valprint_check_validity): ... to here.
5936
c426fddb
SM
59372020-08-24 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * debug.h: New file.
5940 * debug.c (debug_prefixed_vprintf): New function.
5941 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5942 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5943
1eb8556f
SM
59442020-08-24 Simon Marchi <simon.marchi@efficios.com>
5945
5946 * infrun.h (infrun_debug_printf_1): New function declaration.
5947 (infrun_debug_printf): New macro.
5948 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5949 throughout.
5950 (infrun_debug_printf): New function.
5951 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5952 (handle_jit_event): Likewise.
5953
b8fff44e
MW
59542020-08-21 Mark Wielaard <mark@klomp.org>
5955
5956 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5957
d19c3068
SM
59582020-08-22 Simon Marchi <simon.marchi@efficios.com>
5959
5960 * frame.c (enum class frame_id_status): New.
5961 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5962 (fprintf_frame): Update.
5963 (compute_frame_id): Set frame id status to "computing" on entry.
5964 Set it back to "not_computed" on failure and to "computed" on
5965 success.
5966 (get_frame_id): Assert the frame id is not being computed.
5967 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5968 (create_new_frame): Likewise.
5969 (frame_cleanup_after_sniffer): Update assert.
5970
b70e516e
SM
59712020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * regcache.c (pid_ptid_regcache_map): New type.
5974 (target_ptid_regcache_map): Remove.
5975 (target_pid_ptid_regcache_map): New type.
5976 (regcaches): Change type to target_pid_ptid_regcache_map.
5977 (get_thread_arch_aspace_regcache): Update.
5978 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5979 case.
5980 (regcaches_size): Update.
5981 (regcache_count): Update.
5982 (registers_changed_ptid_target_pid_test): New.
5983 (_initialize_regcache): Register new test.
5984
cdd9148a
SM
59852020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * regcache.c (regcache_count): New.
5988 (struct regcache_test_data): New.
5989 (regcache_test_data_up): New.
5990 (populate_regcaches_for_test): New.
5991 (regcaches_test): Remove.
5992 (get_thread_arch_aspace_regcache_test): New.
5993 (registers_changed_ptid_all_test): New.
5994 (registers_changed_ptid_target_test): New.
5995 (registers_changed_ptid_target_ptid_test): New.
5996 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5997 (_initialize_regcache): Register new tests.
5998
dd125343
SM
59992020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6002 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6003 gdbarch and aspace parameter. Use current inferior's aspace.
6004 Validate regcache's arch value.
6005 (regcaches_test): Update.
6006
3ee93972
SM
60072020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6008
6009 * regcache.c (regcaches_test): Call registers_changed.
6010
33bf4c5c
TBA
60112020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6012
6013 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6014
c2fd7fae
AKS
60152020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6016
6017 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6018 to find the end of prologue for flang compiled binaries.
6019 * arm-tdep.c (arm_skip_prologue): Likewise.
6020 * i386-tdep.c (i386_skip_prologue): Likewise.
6021 * producer.c (producer_is_llvm): New function.
6022 (producer_parsing_tests): Added new tests for clang/flang.
6023 * producer.h (producer_is_llvm): New declaration.
6024
9327494e
SM
60252020-08-18 Simon Marchi <simon.marchi@efficios.com>
6026
6027 * linux-nat.c (linux_nat_debug_printf): New function.
6028 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6029
d138725a
AM
60302020-08-18 Aaron Merey <amerey@redhat.com>
6031
6032 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6033 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6034 (CLIBS): Add DEBUGINFOD_LIBS.
6035
f9b11e6b
ST
60362020-08-17 Sergei Trofimovich <siarheit@google.com>
6037
6038 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6039 'gdbarch_num_regs'.
6040
3ae7ab99
TT
60412020-08-17 Tom Tromey <tromey@adacore.com>
6042
6043 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6044 ada_get_decoded_value returns NULL.
6045
b017825f
TT
60462020-08-17 Tom Tromey <tromey@adacore.com>
6047
6048 * python/py-inferior.c (infpy_search_memory): Use
6049 gdb_py_object_from_ulongest.
6050 * python/py-infevents.c (create_inferior_call_event_object)
6051 (create_memory_changed_event_object): Use
6052 gdb_py_object_from_ulongest.
6053 * python/py-linetable.c (ltpy_entry_get_pc): Use
6054 gdb_py_object_from_ulongest.
6055
7635cf79
SM
60562020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * loc.c (class symbol_needs_eval_context): Fix indentation.
6059
f54be24b
SM
60602020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6061
6062 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6063 bool.
6064
53d5a2a5
TV
60652020-08-17 Tom de Vries <tdevries@suse.de>
6066
6067 PR gdb/26393
6068 * gdbtypes.c (dump_dynamic_prop): New function.
6069 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6070
547ce8f0
TV
60712020-08-15 Tom de Vries <tdevries@suse.de>
6072
6073 PR backtrace/26390
6074 * stack.c (print_frame_args): Temporarily set the selected
6075 frame to FRAME while printing the frame's arguments.
6076
6ea815e7
PFC
60772020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6078
6079 PR breakpoints/26385
6080 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6081 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6082
6e562fa3
PFC
60832020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6084
6085 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6086 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6087 and >= to check return value instead of == -1 and != -1.
6088
d369b608
SM
60892020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6090
6091 * utils.h (class gdb_argv) <as_array_view>: New method.
6092 * utils.c (gdb_argv_as_array_view_test): New.
6093 (_initialize_utils): Register selftest.
6094 * maint.c (maintenance_selftest): Use the new method.
6095
b31488a3
KR
60962020-08-13 Kamil Rytarowski <n54@gmx.com>
6097
6098 * target.h (supports_dumpcore, dumpcore): New
6099 function declarations.
6100 * target.c (supports_dumpcore, dumpcore): New
6101 functions.
6102 * target-delegates.c: Rebuild.
6103 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6104 and target_dumpcore ().
6105
002a3166
AM
61062020-08-13 Aaron Merey <amerey@redhat.com>
6107
6108 * debuginfod-support.c: Replace global variables with user_data.
6109
ece5bc8a
SM
61102020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6111
6112 * maint.c (maintenance_selftest): Split args and pass array_view
6113 to run_tests.
6114
6d8a0a5e
LM
61152020-08-12 Luis Machado <luis.machado@linaro.org>
6116
6117 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6118 type's length.
6119 Use %s and pulongest to print the length.
6120
7cf663a9
PA
61212020-08-12 Pedro Alves <palves@redhat.com>
6122
6123 * NEWS: Move "Multi-target debugging support" item to the
6124 "Changes since GDB 9" section.
6125
27c7b875
PA
61262020-08-12 Pedro Alves <palves@redhat.com>
6127
6128 PR gdb/26336
6129 * progspace.c (program_space::remove_objfile): Invalidate the
6130 frame cache.
6131
1796a2a1
TV
61322020-08-11 Tom de Vries <tdevries@suse.de>
6133
6134 * MAINTAINERS: Mark ms1 as deleted.
6135
f8e3fe0d
LM
61362020-08-10 Luis Machado <luis.machado@linaro.org>
6137
6138 PR gdb/26310
6139
6140 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6141 act accordingly.
6142 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6143 movz/str/stur/stp skipping behavior.
6144
cc308722
LM
61452020-08-10 Luis Machado <luis.machado@linaro.org>
6146
6147 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6148 struct user_sve_header instead of struct sve_context.
6149
041d9819
SM
61502020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6151
6152 * read.h (dwarf2_fetch_die_loc_sect_off,
6153 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6154 `void *` parameter with function_view.
6155 * read.c (dwarf2_fetch_die_loc_sect_off,
6156 dwarf2_fetch_die_loc_cu_off): Likewise.
6157 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6158 (per_cu_dwarf_call): Adjust.
6159 (get_frame_address_in_block_wrapper): Remove.
6160 (indirect_synthetic_pointer): Adjust.
6161 (get_ax_pc): Remove.
6162 (dwarf2_compile_expr_to_ax): Adjust.
6163
38f8aa06
TV
61642020-08-08 Tom de Vries <tdevries@suse.de>
6165
6166 PR build/26344
6167 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6168 constructor.
6169 * regcache.c (get_thread_arch_aspace_regcache): Same.
6170
a52b3ae2
TT
61712020-08-07 Tom Tromey <tromey@adacore.com>
6172
6173 * ravenscar-thread.c
6174 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6175 New method.
6176 (ravenscar_thread_target::wait): Check
6177 runtime_initialized.
6178 (ravenscar_thread_target::prepare_to_store)
6179 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6180 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6181 (ravenscar_thread_target::stopped_by_watchpoint)
6182 (ravenscar_thread_target::stopped_data_address)
6183 (ravenscar_thread_target::core_of_thread): Use
6184 scoped_restore_current_thread and
6185 set_base_thread_from_ravenscar_task.
6186
0e29517d
TT
61872020-08-07 Tom Tromey <tromey@adacore.com>
6188
6189 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6190
592f9bd7
TT
61912020-08-07 Tom Tromey <tromey@adacore.com>
6192
6193 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6194 update_inferior_ptid before update_thread_list.
6195 (temporarily_change_regcache_ptid): New class.
6196 (ravenscar_thread_target::fetch_registers)
6197 (ravenscar_thread_target::store_registers)
6198 (ravenscar_thread_target::prepare_to_store): Use base thread when
6199 forwarding operation.
6200
39e2018a
TT
62012020-08-07 Tom Tromey <tromey@adacore.com>
6202
6203 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6204 "is_pid" case.
6205
2080266b
TT
62062020-08-07 Tom Tromey <tromey@adacore.com>
6207
6208 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6209 New methods.
6210 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6211 first.
6212 (ravenscar_thread_target::add_thread): Rename from
6213 ravenscar_add_thread.
6214 (ravenscar_thread_target::update_thread_list): Use a lambda.
6215 (ravenscar_thread_target::xfer_partial): New method.
6216
78c02f21
TT
62172020-08-07 Tom Tromey <tromey@adacore.com>
6218
6219 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6220 gdb::function_view.
6221 (iterate_over_live_ada_tasks): Change type of argument.
6222 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6223 of argument.
6224
d5d833af
TT
62252020-08-07 Tom Tromey <tromey@adacore.com>
6226
6227 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6228 Remove.
6229 (ravenscar_thread_target::extra_thread_info): Remove.
6230 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6231 defer to target beneath for non-Ravenscar threads.
6232
a8ac85bb
TT
62332020-08-07 Tom Tromey <tromey@adacore.com>
6234
6235 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6236 get_base_thread_from_ravenscar_task>: Now methods.
6237 <m_cpu_map>: New member.
6238 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6239 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6240 (ravenscar_thread_target::task_is_currently_active): Update.
6241 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6242 Now a method.
6243 (ravenscar_thread_target::add_active_thread): Put initial thread
6244 into the m_cpu_map.
6245
550ab58d
TT
62462020-08-07 Tom Tromey <tromey@adacore.com>
6247
6248 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6249 event_ptid.
6250
e9546579
TT
62512020-08-07 Tom Tromey <tromey@adacore.com>
6252
6253 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6254 runtime_initialized.
6255
3d4470e5
TT
62562020-08-07 Tom Tromey <tromey@adacore.com>
6257
6258 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6259 add_active_thread.
6260 (ravenscar_thread_target::add_active_thread): Now public.
6261 (ravenscar_inferior_created): Call add_active_thread after pushing
6262 the target.
6263
888bdb2b
SM
62642020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6265
6266 * regcache.c (ptid_regcache_map): New type.
6267 (target_ptid_regcache_map): New type.
6268 (regcaches): Change type to target_ptid_regcache_map.
6269 (get_thread_arch_aspace_regcache): Update to regcaches' new
6270 type.
6271 (regcache_thread_ptid_changed): Likewise.
6272 (registers_changed_ptid): Likewise.
6273 (regcaches_size): Likewise.
6274 (regcaches_test): Update.
6275 (regcache_thread_ptid_changed): Update.
6276 * regcache.h (regcache_up): New type.
6277 * gdbsupport/ptid.h (hash_ptid): New struct.
6278
b161a60d
SM
62792020-08-07 Simon Marchi <simon.marchi@efficios.com>
6280
6281 * observable.h (thread_ptid_changed): Add parameter
6282 `process_stratum_target *`.
6283 * infrun.c (infrun_thread_ptid_changed): Add parameter
6284 `process_stratum_target *` and use it.
6285 (selftests): New namespace.
6286 (infrun_thread_ptid_changed): New function.
6287 (_initialize_infrun): Register selftest.
6288 * regcache.c (regcache_thread_ptid_changed): Add parameter
6289 `process_stratum_target *` and use it.
6290 (regcache_thread_ptid_changed): New function.
6291 (_initialize_regcache): Register selftest.
6292 * thread.c (thread_change_ptid): Pass target to
6293 thread_ptid_changed observable.
6294
d2854d8d
CT
62952020-08-06 Caroline Tice <cmtice@google.com>
6296
fe4c3d43
SM
6297 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6298 (struct dwp_sections): Update field comments. Add loclists and
6299 rnglists fields.
6300 (struct virtual_v2_dwo_sections): Rename struct to
6301 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6302 size & offset fields for loclists and rnglists.
6303 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6304 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6305 skipping dummy type units.
6306 (create_dwp_hash_table): Update the large comment above the function to
6307 discuss Version 5 DWP files as well, with references. Update all the
6308 version checks in the function to check for version 5 as well. Add new
6309 section at the end to create dwp hash table for version 5.
6310 (create_dwp_v2_section): Rename function to
6311 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6312 Add V5 to error message text.
6313 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6314 into calls to create_dwp_v2_or_v5_section.
6315 (create_dwo_unit_in_dwp_v5): New function.
6316 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6317 check for version2; add else clause to handle version 5.
6318 (open_and_init_dwo_file): Add code to check dwarf version & only call
6319 create_debug_types_hash_table (with sections.types) if version is not 5;
6320 else call create_debug_type_hash_table, with sections.info.
6321 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6322 version 5.
6323 (dwarf2_locate_v5_dwp_sections): New function.
6324 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6325 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6326
159ed7d9
SM
63272020-08-06 Simon Marchi <simon.marchi@efficios.com>
6328
6329 * regcache.h (class regcache): Remove friend
6330 registers_changed_ptid.
6331 <regcache_thread_ptid_changed>: Remove.
6332 <regcaches>: Remove.
6333 * regcache.c (regcache::regcaches): Rename to...
6334 (regcaches): ... this. Make static.
6335 (get_thread_arch_aspace_regcache): Update.
6336 (regcache::regcache_thread_ptid_changed): Rename to...
6337 (regcache_thread_ptid_changed): ... this. Update.
6338 (class regcache_access): Remove.
6339 (regcaches_test): Update.
6340 (_initialize_regcache): Update.
6341 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6342 <forward_list>.
6343
174981ae
SM
63442020-08-06 Simon Marchi <simon.marchi@efficios.com>
6345
6346 * regcache.h (class regcache) <current_regcache>: Rename to...
6347 <regcaches>: ... this. Move doc here.
6348 * regcache.c (regcache::current_regcache) Rename to...
6349 (regcache::regcaches): ... this. Move doc to header.
6350 (get_thread_arch_aspace_regcache): Update.
6351 (regcache::regcache_thread_ptid_changed): Update.
6352 (registers_changed_ptid): Update.
6353 (class regcache_access) <current_regcache_size>: Rename to...
6354 <regcaches_size>: ... this.
6355 (current_regcache_test): Rename to...
6356 (regcaches_test): ... this.
6357 (_initialize_regcache): Update.
6358
ed908db6
VC
63592020-08-06 Victor Collod <vcollod@nvidia.com>
6360
6361 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6362
b5582ab7
KB
63632020-08-05 Kevin Buettner <kevinb@redhat.com>
6364
6365 * corelow.c (core_target::build_file_mappings): Don't output
6366 null pathname in warning.
6367
ea946b86
SM
63682020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6371 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6372 gdb.dwarf2/dw2-single-line-discriminators.exp,
6373 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6374
57d02173
TT
63752020-08-05 Tom Tromey <tromey@adacore.com>
6376
6377 PR rust/26197:
6378 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6379 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6380 Fix off-by-one and type size errors in ordinary case.
6381
5555c86d
TV
63822020-08-05 Tom de Vries <tdevries@suse.de>
6383
6384 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6385 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6386
97916bfe
SM
63872020-08-04 Simon Marchi <simon.marchi@efficios.com>
6388
6389 * frame.h (frame_id_p): Return bool.
6390 (frame_id_artificial_p): Return bool.
6391 (frame_id_eq): Return bool.
6392 (has_stack_frames): Return bool.
6393 (get_selected_frame): Fix typo in comment.
6394 (get_frame_pc_if_available): Return bool.
6395 (get_frame_address_in_block_if_available): Return bool.
6396 (get_frame_func_if_available): Return bool.
6397 (read_frame_register_unsigned): Return bool.
6398 (get_frame_register_bytes): Return bool.
6399 (safe_frame_unwind_memory): Return bool.
6400 (deprecated_frame_register_read): Return bool.
6401 (frame_unwinder_is): Return bool.
6402 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6403 bool.
6404 <this_id::p>: Likewise.
6405 <prev_p>: Likewise.
6406 (frame_stash_add): Return bool.
6407 (get_frame_id): Use bool.
6408 (frame_id_build_special) Use bool.
6409 (frame_id_build_unavailable_stack): Use bool.
6410 (frame_id_build): Use bool.
6411 (frame_id_p): Return bool, use true/false instead of 1/0.
6412 (frame_id_artificial_p): Likewise.
6413 (frame_id_eq): Likewise.
6414 (frame_id_inner): Likewise.
6415 (get_frame_func_if_available): Likewise.
6416 (read_frame_register_unsigned): Likewise.
6417 (deprecated_frame_register_read): Likewise.
6418 (get_frame_register_bytes): Likewise.
6419 (has_stack_frames): Likewise.
6420 (inside_main_func): Likewise.
6421 (inside_entry_func): Likewise.
6422 (get_frame_pc_if_available): Likewise.
6423 (get_frame_address_in_block_if_available): Likewise.
6424 (frame_unwinder_is): Likewise.
6425 (safe_frame_unwind_memory): Likewise.
6426 (frame_unwind_arch): Likewise.
6427
fedfee88
SM
64282020-08-04 Simon Marchi <simon.marchi@efficios.com>
6429
6430 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6431 type to cached_copy_status.
6432 (fprintf_frame): Adjust.
6433 (get_frame_func_if_available): Adjust.
6434 (frame_cleanup_after_sniffer): Adjust.
6435
6cfa9b59
MW
64362020-08-04 Mark Wielaard <mark@klomp.org>
6437
6438 * MAINTAINERS (Write After Approval): Update email address.
6439
66d6346b
SM
64402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6441
6442 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6443 dynamic_prop::const_val.
6444
8a6d5e35
SM
64452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6446
6447 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6448 dynamic_prop::kind.
6449
51d6067d
SM
64502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6451
6452 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6453
b26e2ae7
JM
64542020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6455
6456 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6457
39791af2
JM
64582020-08-04 Weimin Pan <weimin.pan@oracle.com>
6459 Jose E. Marchesi <jose.marchesi@oracle.com>
6460
6461 * configure.tgt: Add entry for bpf-*-*.
6462 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6463 (ALLDEPFILES): Add bpf-tdep.c.
6464 * bpf-tdep.c: New file.
6465 * MAINTAINERS: Add bpf target and maintainer.
6466 * NEWS: Mention the support for the new target.
6467
521894aa
TV
64682020-08-04 Tom de Vries <tdevries@suse.de>
6469
6470 PR symtab/23270
6471 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6472 Error.
6473
5d6356e9
JB
64742020-08-03 John Baldwin <jhb@FreeBSD.org>
6475
6476 * syscalls/freebsd.xml: Regenerate.
6477
0cf82b81
JB
64782020-08-03 John Baldwin <jhb@FreeBSD.org>
6479
6480 * syscalls/update-freebsd.sh: Fix usage and year range.
6481
8f34b746
TV
64822020-08-03 Tom de Vries <tdevries@suse.de>
6483
6484 PR symtab/26333
6485 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6486 DW_LNE_lo_user/DW_LNE_hi_user range.
6487
5e500d33
SM
64882020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 PR ada/26318
6491 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6492 kind.
6493
78319c15
TBA
64942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6495
6496 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6497
4c55e970
TBA
64982020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6499
6500 * breakpoint.c (set_breakpoint_condition): Update the condition
6501 expressions after checking that the input condition string parses
6502 successfully and does not contain junk at the end.
6503
1e620590
TBA
65042020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6505
6506 * breakpoint.c (set_breakpoint_condition): Update the
6507 condition string after parsing the new condition successfully.
6508
c8693053
RO
65092020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6510
6511 * proc-api.c (_STRUCTURED_PROC): Don't define.
6512 * proc-events.c: Likewise.
6513 * proc-flags.c: Likewise.
6514 * proc-why.c: Likewise.
6515 * procfs.c: Likewise.
6516
6517 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6518 * configure, config.in: Regenerate.
6519
5a99adb8
TV
65202020-07-30 Tom de Vries <tdevries@suse.de>
6521
6522 PR build/26320
6523 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6524 m_red/m_green/m_blue in a union.
6525
8ba83e91
TV
65262020-07-29 Tom de Vries <tdevries@suse.de>
6527
6528 PR tdep/26280
6529 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6530
f75a0693
AB
65312020-07-28 Tom Tromey <tromey@adacore.com>
6532
6533 PR symtab/26270:
6534 * symtab.h (find_pc_partial_function_sym): Declare.
6535 * cli/cli-cmds.c (disassemble_command): Use
6536 find_pc_partial_function_sym. Check asm_demangle.
6537 * blockframe.c (cache_pc_function_sym): New global.
6538 (cache_pc_function_name): Remove.
6539 (clear_pc_function_cache): Update.
6540 (find_pc_partial_function_sym): New function, from
6541 find_pc_partial_function.
6542 (find_pc_partial_function): Rewrite using
6543 find_pc_partial_function_sym.
6544
16f3242c
TT
65452020-07-28 Tom Tromey <tromey@adacore.com>
6546
6547 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6548 help. Add usage.
6549
4888741a
TT
65502020-07-28 Tom Tromey <tromey@adacore.com>
6551
6552 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6553 <DW_OP_GNU_variable_value>: Cast to address type.
6554
4d46f402
KR
65552020-07-28 Kamil Rytarowski <n54@gmx.com>
6556
6557 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6558 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6559 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6560 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6561 (nbsd_get_siginfo_type): New.
6562 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6563 (_initialize_nbsd_tdep): New.
6564
d70f978b
L
65652020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6566
6567 PR binutils/26301
6568 * configure: Regenerated.
6569
377170fa
L
65702020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6571
6572 PR binutils/26301
6573 * configure: Regenerated.
6574
43d5901d
AB
65752020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * python/py-frame.c: Remove 'user-regs.h' include.
6578 (frapy_read_register): Rewrite to make use of
6579 gdbpy_parse_register_id.
6580 * python/py-registers.c (gdbpy_parse_register_id): New function,
6581 moved here from python/py-unwind.c. Updated the return type, and
6582 also accepts register descriptor objects.
6583 * python/py-unwind.c: Remove 'user-regs.h' include.
6584 (pyuw_parse_register_id): Moved to python/py-registers.c.
6585 (unwind_infopy_add_saved_register): Update to use
6586 gdbpy_parse_register_id.
6587 (pending_framepy_read_register): Likewise.
6588 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6589
14fa8fb3
AB
65902020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6591
6592 * python/py-registers.c: Add 'user-regs.h' include.
6593 (register_descriptor_iter_find): New function.
6594 (register_descriptor_iterator_object_methods): New static global
6595 methods array.
6596 (register_descriptor_iterator_object_type): Add pointer to methods
6597 array.
6598
ddce1758
JB
65992020-07-27 John Baldwin <jhb@FreeBSD.org>
6600
6601 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6602 for all architectures on FreeBSD 11.3 and later.
6603
a4089f52
TT
66042020-07-27 Tom Tromey <tromey@adacore.com>
6605
6606 * gcore.h (load_corefile): Don't declare.
6607
95420d30
TV
66082020-07-27 Tom de Vries <tdevries@suse.de>
6609
6610 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6611 * config.in: Regenerate.
6612 * configure: Regenerate.
6613
05a6b8c2
EZ
66142020-07-26 Eli Zaretskii <eliz@gnu.org>
6615
6616 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6617 ws2tcpip.h. When checking whether socklen_t type is defined, use
6618 ws2tcpip.h if it is available and sys/socket.h isn't.
6619 * configure: Regenerate.
6620 * config.in: Regenerate.
6621
e79eb02f
AB
66222020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6623
6624 PR fortran/23051
6625 PR fortran/26139
6626 * valops.c (value_ind): Pass address to
6627 readjust_indirect_value_type.
6628 * value.c (readjust_indirect_value_type): Make parameter
6629 non-const, and add extra address parameter. Resolve original type
6630 before using it.
6631 * value.h (readjust_indirect_value_type): Update function
6632 signature and comment.
6633
876518dd
TV
66342020-07-25 Tom de Vries <tdevries@suse.de>
6635
6636 PR symtab/26243
6637 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6638 entries.
6639
f6720b1c
AM
66402020-07-24 Aaron Merey <amerey@redhat.com>
6641
6642 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6643 * configure: Rebuild.
6644
513487e1
KB
66452020-07-23 Kevin Buettner <kevinb@redhat.com>
6646
6647 PR corefiles/26294
6648 * corelow.c (_initialize_corelow): Add period to help text
6649 for "maintenance print core-file-backed-mappings".
6650
e7bc9db8
PA
66512020-07-23 Pedro Alves <pedro@palves.net>
6652
6653 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6654 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6655 meanwhile.
6656 * frame.c (frame_cache_generation, get_frame_cache_generation):
6657 New.
6658 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6659 (get_prev_frame_if_no_cycle): On exception, don't touch
6660 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6661 * frame.h (get_frame_cache_generation): Declare.
6662
90fcc466
TV
66632020-07-23 Tom de Vries <tdevries@suse.de>
6664
6665 PR tui/26282
6666 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6667 New default constructor.
6668
78344df7
AB
66692020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6670
6671 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6672 exclude non-statement entries.
6673
b089853a
KB
66742020-07-22 Kevin Buettner <kevinb@redhat.com>
6675
6676 * NEWS (New commands): Mention new command
6677 "maintenance print core-file-backed-mappings".
6678
09c2f5d4
KB
66792020-07-22 Kevin Buettner <kevinb@redhat.com>
6680
6681 * corelow.c (gdbcmd.h): Include.
6682 (core_target::info_proc_mappings): New method.
6683 (get_current_core_target): New function.
6684 (maintenance_print_core_file_backed_mappings): New function.
6685 (_initialize_corelow): Add core-file-backed-mappings to
6686 "maint print" commands.
6687
9c5ec5c2 66882020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6689
9c5ec5c2
KB
6690 * linux-tdep.c (dump_note_entry_p): New function.
6691 (linux_dump_mapping_p_ftype): New typedef.
6692 (linux_find_memory_regions_full): Add new parameter,
6693 should_dump_mapping_p.
6694 (linux_find_memory_regions): Adjust call to
6695 linux_find_memory_regions_full.
6696 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6697 call to linux_find_memory_regions_full.
6698
db082f59
KB
66992020-07-22 Kevin Buettner <kevinb@redhat.com>
6700
6701 * corelow.c (solist.h, unordered_map): Include.
6702 (class core_target): Add field m_core_file_mappings and
6703 method build_file_mappings.
6704 (core_target::core_target): Call build_file_mappings.
6705 (core_target::~core_target): Free memory associated with
6706 m_core_file_mappings.
6707 (core_target::build_file_mappings): New method.
6708 (core_target::xfer_partial): Use m_core_file_mappings
6709 for memory transfers.
6710 * linux-tdep.c (linux_read_core_file_mappings): New
6711 function.
6712 (linux_core_info_proc_mappings): Rewrite to use
6713 linux_read_core_file_mappings.
6714 (linux_init_abi): Register linux_read_core_file_mappings.
6715
7e183d27
KB
67162020-07-22 Kevin Buettner <kevinb@redhat.com>
6717
6718 * arch-utils.c (default_read_core_file_mappings): New function.
6719 * arch-utils.c (default_read_core_file_mappings): Declare.
6720 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6721 * gdbarch.h, gdbarch.c: Regenerate.
6722
2735d421
KB
67232020-07-22 Kevin Buettner <kevinb@redhat.com>
6724
6725 PR corefiles/25631
6726 * corelow.c (core_target:xfer_partial): Revise
6727 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6728 case after first checking the stratum beneath the core
6729 target.
6730 (has_all_memory): Return true.
6731 * target.c (raw_memory_xfer_partial): Revise comment
6732 regarding use of has_all_memory.
6733
e56cb451
KB
67342020-07-22 Kevin Buettner <kevinb@redhat.com>
6735
6736 * exec.h (section_table_xfer_memory): Revise declaration,
6737 replacing section name parameter with an optional callback
6738 predicate.
6739 * exec.c (section_table_xfer_memory): Likewise.
6740 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6741 of section_table_xfer_memory.
6742
32fa152e
TT
67432020-07-22 Tom Tromey <tromey@adacore.com>
6744
6745 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6746 lookup_symbol_search_name.
6747
a67a1c41
AB
67482020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6749
6750 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6751 redundant local variable.
6752 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6753 reference, not pointer, update code accordingly.
6754
a7b4ff4f
SM
67552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6756 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6757
6758 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6759 * jit.c (jit_breakpoint_re_set_internal): Use the
6760 `skip_jit_symbol_lookup` field.
6761
2340e834
SM
67622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6763 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6764
6765 * jit.c (jit_read_descriptor): Define the descriptor address once,
6766 use twice.
6767 (jit_breakpoint_deleted): Move the declaration of the loop variable
6768 `iter` into the loop header.
6769 (jit_breakpoint_re_set_internal): Move the declaration of the local
6770 variable `objf_data` to the first point of definition.
6771 (jit_event_handler): Move the declaration of local variables
6772 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6773 Rename `objf` to `jited`.
6774
c1072906
SM
67752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6776
6777 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6778 Remove.
6779 * jit.c (get_jiter_objfile_data): Update.
6780
c8474dc3
TBA
67812020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6782 Simon Marchi <simon.marchi@polymtl.ca>
6783
6784 * jit.c (struct jit_program_space_data): Remove.
6785 (jit_program_space_key): Remove.
6786 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6787 stuff.
6788 (get_jit_program_space_data): Remove.
6789 (jit_breakpoint_deleted): Iterate on all of the program space's
6790 objfiles.
6791 (jit_inferior_init): Likewise.
6792 (jit_breakpoint_re_set_internal): Likewise. Also change return
6793 type to void.
6794 (jit_breakpoint_re_set): Pass current_program_space to
6795 jit_breakpoint_re_set_internal.
6796
77208eb7
SM
67972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * jit.h (struct jiter_objfile_data) <cached_code_address,
6800 jit_breakpoint>: Move to here from ...
6801 * jit.c (jit_program_space_data): ... here.
6802 (jiter_objfile_data::~jiter_objfile_data): Update.
6803 (jit_breakpoint_deleted): Update.
6804 (jit_breakpoint_re_set_internal): Update.
6805
8c1c720f
SM
68062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6807
6808 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6809 checks.
6810 (jit_read_descriptor): Remove NULL check.
6811 (jit_event_handler): Add an assertion.
6812
0e74a041
SM
68132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6814
6815 * jit.h (struct jit_objfile_data): Split into...
6816 (struct jiter_objfile_data): ... this ...
6817 (struct jited_objfile_data): ... and this.
6818 * objfiles.h (struct objfile) <jit_data>: Remove.
6819 <jiter_data, jited_data>: New fields.
6820 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6821 (jiter_objfile_data::~jiter_objfile_data): ... this.
6822 (get_jit_objfile_data): Rename to ...
6823 (get_jiter_objfile_data): ... this.
6824 (add_objfile_entry): Update.
6825 (jit_read_descriptor): Use get_jiter_objfile_data.
6826 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6827 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6828 (jit_inferior_exit_hook): Use objfile's jited_data field.
6829
238b5c9f
SM
68302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6831
6832 * jit.h: Forward-declare `struct minimal_symbol`.
6833 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6834 constructor, destructor, and an objfile* field.
6835 * jit.c (jit_objfile_data): Remove.
6836 (struct jit_objfile_data): Migrate from here to jit.h.
6837 (jit_objfile_data::~jit_objfile_data): New destructor
6838 implementation with code moved from free_objfile_data.
6839 (free_objfile_data): Delete.
6840 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6841 (jit_find_objf_with_entry_addr): Ditto.
6842 (jit_inferior_exit_hook): Ditto.
6843 (_initialize_jit): Remove the call to
6844 register_objfile_data_with_cleanup.
6845 * objfiles.h (struct objfile) <jit_data>: New field.
6846
fe053b9e
TBA
68472020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6848
6849 * jit.h: Forward-declare `struct objfile`.
6850 (jit_event_handler): Add a second parameter, the JITer objfile.
6851 * jit.c (jit_read_descriptor): Change the signature to take the
6852 JITer objfile as an argument instead of the jit_program_space_data.
6853 (jit_inferior_init): Update the call to jit_read_descriptor.
6854 (jit_event_handler): Use the new JITer objfile argument when calling
6855 jit_read_descriptor.
6856 * breakpoint.c (handle_jit_event): Update the call to
6857 jit_event_handler to pass the JITer objfile.
6858
4cec0c66
JB
68592020-07-21 John Baldwin <jhb@FreeBSD.org>
6860
6861 * gdbarch.c: Regenerate.
6862 * gdbarch.h: Regenerate.
6863 * gdbarch.sh (handle_segmentation_fault): Remove method.
6864 * infrun.c (handle_segmentation_fault): Remove.
6865 (print_signal_received_reason): Remove call to
6866 handle_segmentation_fault.
6867
0e42f66a
JB
68682020-07-21 John Baldwin <jhb@FreeBSD.org>
6869
6870 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6871 Rename to sparc64_linux_report_signal_info and add siggnal
6872 argument.
6873 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6874 instead of sparc64_linux_handle_segmentation_fault.
6875
77bdfeb2
JB
68762020-07-21 John Baldwin <jhb@FreeBSD.org>
6877
6878 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6879 i386_linux_report_signal_info instead of
6880 i386_linux_handle_segmentation_fault.
6881 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6882 to i386_linux_report_signal_info and add siggnal argument.
6883 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6884 of i386_linux_handle_segmentation_fault.
6885 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6886 to i386_linux_report_signal_info and add siggnal argument.
6887
ad97bfc5
JB
68882020-07-21 John Baldwin <jhb@FreeBSD.org>
6889
6890 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6891 hook if present.
6892
272bb05c
JB
68932020-07-21 John Baldwin <jhb@FreeBSD.org>
6894
6895 * gdbarch.c: Regenerate.
6896 * gdbarch.h: Regenerate.
6897 * gdbarch.sh (report_signal_info): New method.
6898 * infrun.c (print_signal_received_reason): Invoke gdbarch
6899 report_signal_info hook if present.
6900
baf8791e
AB
69012020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6902
6903 * python/py-registers.c : Add 'unordered_map' include.
6904 (gdbpy_new_reggroup): Renamed to...
6905 (gdbpy_get_reggroup): ...this. Update to only create register
6906 group descriptors when needed.
6907 (gdbpy_reggroup_iter_next): Update.
6908
f7306dac
AB
69092020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6910
6911 * python/py-registers.c (gdbpy_register_object_data): New static
6912 global.
6913 (gdbpy_register_object_data_init): New function.
6914 (gdbpy_new_register_descriptor): Renamed to...
6915 (gdbpy_get_register_descriptor): ...this, and update to reuse
6916 existing register descriptors where possible.
6917 (gdbpy_register_descriptor_iter_next): Update.
6918 (gdbpy_initialize_registers): Register new gdbarch data.
6919
05c309a8
SM
69202020-07-21 Simon Marchi <simon.marchi@efficios.com>
6921
6922 * linux-nat.c (stopped_pids): Make static.
6923
d1fd641e
SM
69242020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6925
6926 PR ada/26235
6927 * gdbtypes.c (ada_discrete_type_low_bound,
6928 ada_discrete_type_high_bound): Handle undefined bounds.
6929
1de14d77
KR
69302020-07-21 Kamil Rytarowski <n54@gmx.com>
6931
6932 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6933 declaration.
6934 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6935 function.
6936
ed810cc7
JB
69372020-07-20 John Baldwin <jhb@FreeBSD.org>
6938
6939 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6940 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6941 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6942 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6943 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6944 method.
6945
ae5369e7
LC
69462020-07-20 Ludovic Courtès <ludo@gnu.org>
6947
6948 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6949 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6950 which are deprecated in Guile 3.0.
6951 * configure.ac (try_guile_versions): Add "guile-3.0".
6952 * configure (try_guile_versions): Regenerate.
6953 * NEWS: Update entry.
6954
68cf161c
LC
69552020-07-20 Ludovic Courtès <ludo@gnu.org>
6956 Doug Evans <dje@google.com>
6957
6958 PR gdb/21104
6959 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6960 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6961 USING_GUILE_BEFORE_2_2.
6962 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6963 Change type to 'scm_t_port_type *'.
6964 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6965 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6966 parameter and honor it. Update callers.
6967 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6968 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6969 functions.
6970 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6971 USING_GUILE_BEFORE_2_2.
6972 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6973 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6974 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6975 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6976 and 'SCM_PORT_TYPE'.
6977 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6978 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6979 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6980 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6981 [!USING_GUILE_BEFORE_2_2]: New functions.
6982 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6983 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6984 'gdbscm_memory_port_read'.
6985 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6986 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6987 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6988 function.
6989 (ioscm_init_memory_port): Remove.
6990 (ioscm_init_memory_port_stream): New function
6991 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6992 function.
6993 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6994 Return scm_from_uint (0).
6995 (gdbscm_set_memory_port_read_buffer_size_x)
6996 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6997 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6998 Return scm_from_uint (0).
6999 (gdbscm_set_memory_port_write_buffer_size_x)
7000 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7001 * configure.ac (try_guile_versions): Add "guile-2.2".
7002 * configure: Regenerate.
7003 * NEWS: Add entry.
7004
aee91db3
TT
70052020-07-18 Tom Tromey <tom@tromey.com>
7006
7007 * linux-nat.c (linux_multi_process): Remove.
7008 (linux_nat_target::supports_multi_process): Return true.
7009
0e267416
AB
70102020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7011
7012 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7013 (riscv_lookup_target_description): Return pointer out of
7014 unique_ptr.
7015 * target-descriptions.c (allocate_target_description): Add
7016 comment.
7017 (target_desc_deleter::operator()): Likewise.
7018 * target-descriptions.h (struct target_desc_deleter): Moved to
7019 gdbsupport/tdesc.h.
7020 (target_desc_up): Likewise.
7021
f80c8ec4
TT
70222020-07-17 Tom Tromey <tromey@adacore.com>
7023
7024 * linux-nat.c (linux_nat_target::supports_non_stop)
7025 (linux_nat_target::always_non_stop_p): Use "true".
7026 (linux_nat_target::supports_disable_randomization): Use "true" and
7027 "false".
7028
d0ce17d8
CT
70292020-07-16 Caroline Tice <cmtice@google.com>
7030
7031 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7032 (RNGLIST_HEADER_SIZE64): New constant definition.
7033 (struct dwop_section_names): Add rnglists_dwo.
7034 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7035 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7036 (struct dwo_sections): Add rnglists field.
7037 (read_attribut_reprocess): Add tag parameter.
7038 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7039 (cu_debug_rnglists_section): New function (decl & definition).
7040 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7041 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7042 die whose range is being checked; get rnglist section from
7043 cu_debug_rnglists_section, to get from either objfile or dwo file as
7044 appropriate. Add cases for DW_RLE_base_addressx,
7045 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7046 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7047 test inside if-condition and updating complaint message.
7048 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7049 dwarf2_rnglists_process.
7050 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7051 dwarf2_ranges_process.
7052 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7053 need_ranges_base and update comment appropriately. Also pass die tag
7054 to dwarf2_ranges_read.
7055 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7056 need_ranges_base and update comment appropriately. Also pass die tag
7057 to dwarf2_ranges_process.
7058 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7059 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7060 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7061 need_ranges_base and update comment appropriately. Also pass die tag
7062 to read_attribute_reprocess and dwarf2_ranges_read.
7063 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7064 and update function comment appropriately.
7065 (read_loclist_index): Call read_loclists_rnglists_header instead of
7066 read_loclist_header.
7067 (read_rnglist_index): New function.
7068 (read_attribute_reprocess): Add tag parameter. Add code for
7069 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7070 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7071
3dcc261c
AB
70722020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7073
7074 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7075 being resolved.
7076
ccb9eba6
AB
70772020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7078
7079 * arch-utils.c (show_architecture): Update formatting of messages.
7080
cf88be68
SM
70812020-07-12 Simon Marchi <simon.marchi@efficios.com>
7082
7083 * gdbtypes.h (struct type) <bounds>: Handle array and string
7084 types.
7085 * ada-lang.c (assign_aggregate): Use type::bounds on
7086 array/string type.
7087 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7088 * c-varobj.c (c_number_of_children): Likewise.
7089 (c_describe_child): Likewise.
7090 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7091 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7092 (f_type_print_base): Likewise.
7093 * f-valprint.c (f77_array_offset_tbl): Likewise.
7094 (f77_get_upperbound): Likewise.
7095 (f77_print_array_1): Likewise.
7096 * guile/scm-type.c (gdbscm_type_range): Likewise.
7097 * m2-typeprint.c (m2_array): Likewise.
7098 (m2_is_long_set_of_type): Likewise.
7099 * m2-valprint.c (get_long_set_bounds): Likewise.
7100 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7101 * python/py-type.c (typy_range): Likewise.
7102 * rust-lang.c (rust_internal_print_type): Likewise.
7103 * type-stack.c (type_stack::follow_types): Likewise.
7104 * valarith.c (value_subscripted_rvalue): Likewise.
7105 * valops.c (value_cast): Likewise.
7106
509971ae
SM
71072020-07-12 Simon Marchi <simon.marchi@efficios.com>
7108
7109 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7110 callers to use the equivalent accessor methods.
7111
107406b7
SM
71122020-07-12 Simon Marchi <simon.marchi@efficios.com>
7113
7114 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7115 (struct type) <bit_stride>: New method.
7116 (TYPE_BIT_STRIDE): Remove.
7117 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7118
bb789949
SM
71192020-07-12 Simon Marchi <simon.marchi@efficios.com>
7120
7121 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7122 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7123 callers to use the equivalent accessor methods instead.
7124
39498edb
SM
71252020-07-12 Simon Marchi <simon.marchi@efficios.com>
7126
7127 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7128 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7129 callers to use the equivalent accessor methods instead.
7130
3b606f38
SM
71312020-07-12 Simon Marchi <simon.marchi@efficios.com>
7132
7133 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7134 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7135 to use dynamic_prop::kind.
7136
064d9cb9
SM
71372020-07-12 Simon Marchi <simon.marchi@efficios.com>
7138
7139 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7140 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7141 to get the bound property's kind and check against
7142 PROP_UNDEFINED.
7143
5537ddd0
SM
71442020-07-12 Simon Marchi <simon.marchi@efficios.com>
7145
7146 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7147 all callers to use type::range_bounds followed by
7148 dynamic_prop::{low,high}.
7149
8c2e4e06
SM
71502020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7151
7152 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7153 const_val, set_const_val, baton, set_locexpr, set_loclist,
7154 set_addr_offset, variant_parts, set_variant_parts,
7155 original_type, set_original_type>: New methods.
7156 <kind>: Rename to...
7157 <m_kind>: ... this. Update all users to use the new methods
7158 instead.
7159 <data>: Rename to...
7160 <m_data>: ... this. Update all users to use the new methods
7161 instead.
7162
7c6f2712
SM
71632020-07-12 Simon Marchi <simon.marchi@efficios.com>
7164
7165 * gdbtypes.c (get_discrete_bounds): Return failure if
7166 the range type's bounds are not both defined and constant
7167 values.
7168 (get_array_bounds): Update comment. Remove undefined bound check.
7169
599088e3
SM
71702020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7171
7172 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7173 the type::bounds method directly.
7174
c4dfcb36
SM
71752020-07-12 Simon Marchi <simon.marchi@efficios.com>
7176
7177 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7178 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7179 are used to set the range type's bounds to use set_bounds.
7180
0a278aa7
PW
71812020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7182
7183 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7184
cce20f10
PA
71852020-07-10 Pedro Alves <pedro@palves.net>
7186
7187 * gdbthread.h (inferior_ref): Define.
7188 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7189 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7190 * thread.c
7191 (scoped_restore_current_thread::restore):
7192 Adjust to gdb::ref_ptr.
7193 (scoped_restore_current_thread::~scoped_restore_current_thread):
7194 Remove manual decref handling.
7195 (scoped_restore_current_thread::scoped_restore_current_thread):
7196 Adjust to use
7197 inferior_ref::new_reference/thread_info_ref::new_reference.
7198 Incref the thread before calling get_frame_id instead of after.
7199 Let TARGET_CLOSE_ERROR propagate.
7200
6d7aa592
PA
72012020-07-10 Pedro Alves <pedro@palves.net>
7202
7203 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7204 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7205 NOT_AVAILABLE_ERROR.
7206 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7207 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7208
b3e3a4c1
SM
72092020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7210 Pedro Alves <pedro@palves.net>
7211
7212 PR gdb/26199
7213 * infrun.c (threads_are_resumed_pending_p): Delete.
7214 (do_target_wait): Remove threads_are_executing and
7215 threads_are_resumed_pending_p checks from the inferior_matches
7216 lambda. Update comments.
7217
d6cc5d98
PA
72182020-07-10 Pedro Alves <pedro@palves.net>
7219
7220 PR gdb/26199
7221 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7222 executing threads.
7223
7d3badc6
PA
72242020-07-10 Pedro Alves <pedro@palves.net>
7225
7226 PR gdb/26199
7227 * infrun.c (handle_no_resumed): Handle multiple targets.
7228
42bd97a6
PA
72292020-07-10 Pedro Alves <pedro@palves.net>
7230
7231 PR gdb/26199
7232 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7233 target_is_async_p.
7234
43667cc6
PA
72352020-07-10 Pedro Alves <pedro@palves.net>
7236
7237 PR gdb/26199
7238 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7239 threads, not all threads.
7240
96118d11
PA
72412020-07-10 Pedro Alves <pedro@palves.net>
7242
7243 PR gdb/26199
7244 * remote.c (remote_target::open_1): Pass remote target pointer as
7245 data to create_async_event_handler.
7246 (remote_async_inferior_event_handler): Mark async event handler
7247 before returning if the remote target still has either pending
7248 events or unacknowledged notifications.
7249
54904d81
JB
72502020-07-10 John Baldwin <jhb@FreeBSD.org>
7251
7252 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7253 declaration.
7254 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7255 function.
7256
f37e5866
JB
72572020-07-09 John Baldwin <jhb@FreeBSD.org>
7258
7259 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7260 inferior_ptid.
7261
fc238d4a
JB
72622020-07-09 John Baldwin <jhb@FreeBSD.org>
7263
7264 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7265 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7266 AT_FREEBSD_PS_STRINGS.
7267
6e2469ff
HD
72682020-07-08 Hannes Domani <ssbssa@yahoo.de>
7269
7270 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7271 of debugfile path on Windows.
7272
d1076c41
JB
72732020-07-08 John Baldwin <jhb@FreeBSD.org>
7274
7275 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7276 argument to 'data'.
7277
15f3b077
TT
72782020-07-08 Tom Tromey <tromey@adacore.com>
7279
7280 * ada-lang.c (ada_exception_message_1): Use read_memory.
7281
9fc501fd
AB
72822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7283
7284 PR python/22748
7285 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7286 special handling for inline frames.
7287 * findvar.c (value_of_register_lazy): Skip inline frames when
7288 creating lazy register values.
7289 * frame.c (frame_id_computed_p): Delete definition.
7290 * frame.h (frame_id_computed_p): Delete declaration.
7291
64cb3757
AB
72922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7293
7294 * NEWS: Mention additions to Python API.
7295 * python/py-arch.c (archpy_register_groups): New function.
7296 (arch_object_methods): Add 'register_groups' method.
7297 * python/py-registers.c (reggroup_iterator_object): New struct.
7298 (reggroup_object): New struct.
7299 (gdbpy_new_reggroup): New function.
7300 (gdbpy_reggroup_to_string): New function.
7301 (gdbpy_reggroup_name): New function.
7302 (gdbpy_reggroup_iter): New function.
7303 (gdbpy_reggroup_iter_next): New function.
7304 (gdbpy_new_reggroup_iterator): New function
7305 (gdbpy_initialize_registers): Register new types.
7306 (reggroup_iterator_object_type): Define new Python type.
7307 (gdbpy_reggroup_getset): New static global.
7308 (reggroup_object_type): Define new Python type.
7309 * python/python-internal.h
7310
0f767f94
AB
73112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7312
7313 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7314 * python/py-arch.c (archpy_registers): New function.
7315 (arch_object_methods): Add 'registers' method.
7316 * python/py-registers.c: New file.
7317 * python/python-internal.h
7318 (gdbpy_new_register_descriptor_iterator): Declare.
7319 (gdbpy_initialize_registers): Declare.
7320 * python/python.c (do_start_initialization): Call
7321 gdbpy_initialize_registers.
7322 * NEWS: Mention additions to the Python API.
7323
87dbc774
AB
73242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7325
7326 * NEWS: Mention new Python API method.
7327 * python/py-unwind.c (pending_framepy_architecture): New function.
7328 (pending_frame_object_methods): Add architecture method.
7329
3bc98c0c
AB
73302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7331
7332 * gdbarch.c: Regenerate.
7333 * gdbarch.h: Regenerate.
7334 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7335 (gdbarch_data): Use internal_error for the case where
7336 deprecated_set_gdbarch_data was originally needed.
7337 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7338 and use passed in obstack.
7339 (libunwind_frame_set_descr): Should no longer get back NULL from
7340 gdbarch_data.
7341 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7342 type.
7343 * user-regs.c (user_regs_init): Update parameters, and use passed
7344 in obstack.
7345 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7346 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7347
d8cc8af6
TV
73482020-07-06 Tom de Vries <tdevries@suse.de>
7349
7350 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7351 End-Of-Sequence in lte_is_less_than.
7352 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7353 "gdb: Don't reorder line table entries too much when sorting".
7354
947f7597
TV
73552020-07-06 Tom de Vries <tdevries@suse.de>
7356
7357 PR tui/26205
7358 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7359
1e7c1b22
TV
73602020-07-05 Tom de Vries <tdevries@suse.de>
7361
7362 PR build/26187
7363 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7364 std::uncaught_exceptions instead of deprecated
7365 std::uncaught_exception.
7366
a36158ec
SM
73672020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7368
7369 * macroexp.h (macro_stringify): Return
7370 gdb::unique_xmalloc_ptr<char>.
7371 * macroexp.c (macro_stringify): Likewise.
7372 * macrotab.c (fixup_definition): Update.
7373
14d960c8
SM
73742020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7375
7376 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7377 (lex_one_token): Update.
7378 * macroexp.c (struct macro_buffer) <release>: Return
7379 gdb::unique_xmalloc_ptr<char>.
7380 (macro_stringify): Update.
7381 (macro_expand): Update.
7382 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7383 * macroexp.h (macro_expand_next): Likewise.
7384
211d5b1c
SM
73852020-07-02 Simon Marchi <simon.marchi@efficios.com>
7386
7387 * macroexp.h (macro_lookup_ftype): Remove.
7388 (macro_expand, macro_expand_once, macro_expand_next): Remove
7389 lookup function parameters, add scope parameter.
7390 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7391 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7392 * macroscope.h (standard_macro_lookup): Change parameter type
7393 to macro_scope.
7394 * macroscope.c (standard_macro_lookup): Likewise.
7395 * c-exp.y (lex_one_token): Update.
7396 * macrocmd.c (macro_expand_command): Likewise.
7397 (macro_expand_once_command): Likewise.
7398
b1a35af2
SM
73992020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7400
7401 * inf-loop.c (inferior_event_handler): Remove client_data param.
7402 * inf-loop.h (inferior_event_handler): Likewise.
7403 * infcmd.c (step_1): Adjust.
7404 * infrun.c (proceed): Adjust.
7405 (fetch_inferior_event): Remove client_data param.
7406 (infrun_async_inferior_event_handler): Adjust.
7407 * infrun.h (fetch_inferior_event): Remove `void *` param.
7408 * linux-nat.c (handle_target_event): Adjust.
7409 * record-btrace.c (record_btrace_handle_async_inferior_event):
7410 Adjust.
7411 * record-full.c (record_full_async_inferior_event_handler):
7412 Adjust.
7413 * remote.c (remote_async_inferior_event_handler): Adjust.
7414
1cdf9e33
TT
74152020-07-01 Tom Tromey <tom@tromey.com>
7416
7417 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7418 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7419
32c1e210
TT
74202020-07-01 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7423 tui_gen_win_info.
7424 (tui_win_info::make_window): Merge with
7425 tui_gen_win_info::make_window.
7426 (tui_win_info::make_visible): Move from tui_gen_win_info.
7427 * tui/tui-win.c (tui_win_info::max_width): Move from
7428 tui_gen_win_info.
7429 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7430 type.
7431 <window_factory>: Likewise.
7432 * tui/tui-layout.c (tui_win_info::resize): Move from
7433 tui_gen_win_info.
7434 (make_standard_window): Change return type.
7435 (get_locator_window, tui_get_window_by_name): Likewise.
7436 (tui_layout_window::apply): Remove a cast.
7437 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7438 (struct tui_win_info): Merge with tui_gen_win_info.
7439 (struct tui_gen_win_info): Remove.
7440
a30cb6da
TT
74412020-07-01 Tom Tromey <tom@tromey.com>
7442
7443 * tui/tui-stack.h (struct tui_locator_window): Derive from
7444 tui_win_info.
7445 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7446 <can_box>: New method.
7447
1eb2161f
TT
74482020-07-01 Tom Tromey <tom@tromey.com>
7449
7450 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7451
7134f2eb
TT
74522020-07-01 Tom Tromey <tom@tromey.com>
7453
7454 * tui/tui-regs.c (tui_data_window::display_registers_from)
7455 (tui_data_window::display_registers_from)
7456 (tui_data_window::first_data_item_displayed)
7457 (tui_data_window::delete_data_content_windows): Update.
7458 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7459 Remove.
7460 (tui_data_window::check_register_values): Update.
7461 (tui_data_item_window::rerender): Add parameters. Update.
7462 (tui_data_item_window::refresh_window): Remove.
7463 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7464 virtual.
7465 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7466 tui_gen_win_info.
7467 <refresh_window, max_height, min_height>: Remove.
7468 <rerender>: Add parameters.
7469 <x, y, visible>: New members.
7470 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7471 <m_item_width>: New member.
7472
22b7b041
TT
74732020-07-01 Tom Tromey <tom@tromey.com>
7474
7475 * tui/tui-regs.c (tui_data_window::show_register_group)
7476 (tui_data_window::check_register_values): Update.
7477 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7478 from item_no.
7479
c9753adb
TT
74802020-07-01 Tom Tromey <tom@tromey.com>
7481
7482 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7483 useless "if".
7484
9ab26b4a
TT
74852020-07-01 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7488 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7489
e555083f
TT
74902020-07-01 Tom Tromey <tom@tromey.com>
7491
7492 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7493 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7494 (struct tui_line_or_address): Move from tui-data.h.
7495 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7496 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7497 (tui_cmd_window, tui_source_window_base, tui_source_window)
7498 (tui_disasm_window): Don't declare.
7499 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7500 to tui-winsource.h.
7501 (SINGLE_KEY): Move to tui-stack.c.
7502
7a02bab7
TT
75032020-07-01 Tom Tromey <tom@tromey.com>
7504
7505 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7506 std::string.
7507 * tui/tui-regs.c (class tab_expansion_file): New.
7508 (tab_expansion_file::write): New method.
7509 (tui_register_format): Change return type. Use
7510 tab_expansion_file.
7511 (tui_get_register, tui_data_window::display_registers_from)
7512 (tui_data_item_window::rerender): Update.
7513 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7514 * tui/tui-io.c (tui_expand_tabs): Remove.
7515
ea68593b
TT
75162020-07-01 Tom Tromey <tom@tromey.com>
7517
7518 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7519
a8caed5d
FS
75202020-07-01 Fangrui Song <maskray@google.com>
7521
7522 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7523
9cdf9820
AKS
75242020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7525
7526 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7527 forms for DW_AT_associated and DW_AT_allocated attributes,
7528 which is already checked in function attr_to_dynamic_prop.
7529
a1520ad8
TT
75302020-06-30 Tom Tromey <tromey@adacore.com>
7531
7532 * dwarf2/read.c (quirk_rust_enum): Correctly call
7533 alloc_rust_variant for default-less enum.
7534
5ac58899
TT
75352020-06-30 Tom Tromey <tromey@adacore.com>
7536
7537 PR build/26183:
7538 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7539 gdb::to_string.
7540
19b187a9
SM
75412020-06-29 Simon Marchi <simon.marchi@efficios.com>
7542
7543 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7544 * gdbarch.h: Re-generate.
7545
cd4c4c07
TT
75462020-06-28 Tom Tromey <tom@tromey.com>
7547
7548 * command.h (cmd_types): Remove.
7549 (cmd_type): Don't declare.
7550 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7551 typedef.
7552 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7553 * cli/cli-decode.c (cmd_type): Remove.
7554
05779d57
PA
75552020-06-27 Pedro Alves <palves@redhat.com>
7556
7557 * fork-child.c (prefork_hook): Adjust.
7558 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7559 Delete.
7560 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7561 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7562 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7563 Remove declarations.
7564 (struct inferior) <set_tty, tty>: New methods.
7565 (struct inferior) <terminal>: Rename to ...
7566 (struct inferior) <m_terminal>: ... this and make private.
7567 * main.c (captured_main_1): Adjust.
7568 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7569 (mi_cmd_inferior_tty_show): Adjust.
7570 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7571 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7572
1776e3e5
NA
75732020-06-26 Nick Alcock <nick.alcock@oracle.com>
7574
7575 * configure.ac: Add --enable-libctf: handle --disable-static
7576 properly.
7577 * acinclude.m4: sinclude ../config/enable.m4.
7578 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7579 (LIBCTF): Substitute in.
7580 (CTF_DEPS): New, likewise.
7581 (CLIBS): libctf needs symbols from libbfd: move earlier.
7582 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7583 flags.
7584 * ctfread.c: Surround in ENABLE_LIBCTF.
7585 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7586 * configure: Regenerate.
7587 * config.in: Likewise.
7588
58373b80
SM
75892020-06-25 Simon Marchi <simon.marchi@efficios.com>
7590
7591 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7592
277474ee
SM
75932020-06-25 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * inferior.h (struct inferior) <terminal>: Change type to
7596 gdb::unique_xmalloc_ptr<char>.
7597 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7598 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7599 field, adjust to unique pointer.
7600 (get_inferior_io_terminal): Adjust to unique pointer.
7601
6d74da72
AB
76022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7603
7604 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7605 registers, not just the known core set of registers.
7606
2e52d038
AB
76072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7608
7609 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7610 fflags, frm, and fcsr registers.
7611 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7612 restore groups.
7613 (riscv_tdesc_unknown_reg): New function.
7614 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7615 tdesc_use_registers.
7616 * riscv-tdep.h (struct gdbarch_tdep): Add
7617 unknown_csrs_first_regnum, unknown_csrs_count,
7618 duplicate_fflags_regnum, duplicate_frm_regnum, and
7619 duplicate_fcsr_regnum fields.
7620
be64fd07
AB
76212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7622
7623 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7624 callback, use the callback (when not null) to help number unknown
7625 registers.
7626 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7627 (tdesc_use_registers): Add extra parameter to declaration.
7628
3b9fce96
AB
76292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7630
7631 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7632 in the file.
7633 (class riscv_pending_register_alias): Likewise.
7634 (riscv_register_feature::register_info): Change 'required_p' field
7635 to 'required', and change its type. Add 'check' member function.
7636 (riscv_register_feature::register_info::check): Define new member
7637 function.
7638 (riscv_xreg_feature): Change initialisation of 'required' field.
7639 (riscv_freg_feature): Likewise.
7640 (riscv_virtual_feature): Likewise.
7641 (riscv_csr_feature): Likewise.
7642 (riscv_check_tdesc_feature): Take extra parameter, the csr
7643 tdesc_feature, rewrite the function to use the new
7644 riscv_register_feature::register_info::check function.
7645 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7646
865bad26
AB
76472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7648
7649 * features/Makefile: Remove all references to the deleted files
7650 below.
7651 * features/riscv/32bit-csr.c: Deleted.
7652 * features/riscv/32bit-csr.xml: Deleted.
7653 * features/riscv/64bit-csr.c: Deleted.
7654 * features/riscv/64bit-csr.xml: Deleted.
7655 * features/riscv/rebuild-csr-xml.sh: Deleted.
7656
ed69cbc8
AB
76572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7658
7659 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7660 whitespace error for declaration of names member variable.
7661 (struct riscv_register_feature): Add new prefer_first_name member
7662 variable, and fix whitespace error in declaration of registers.
7663 (riscv_xreg_feature): Initialize prefer_first_name field.
7664 (riscv_freg_feature): Likewise.
7665 (riscv_virtual_feature): Likewise.
7666 (riscv_csr_feature): Likewise.
7667 (riscv_register_name): Expand on comments. Remove register name
7668 modifications for CSR and virtual registers.
7669
4445e8f5
AB
76702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7671
7672 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7673 errors.
7674
767a879e
AB
76752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7676
7677 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7678 riscv-opc.h.
7679 (class riscv_pending_register_alias): New class.
7680 (riscv_check_tdesc_feature): Take vector of pending aliases and
7681 populate it as appropriate.
7682 (riscv_setup_register_aliases): Delete.
7683 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7684 to riscv_check_tdesc_feature in all cases. Use the vector to
7685 create the register aliases.
7686
bb6e55f3
RO
76872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7688
7689 * sol2-tdep.c (sol2_static_transform_name): Remove.
7690 (sol2_init_abi): Don't register it.
7691 * gdbarch.sh (static_transform_name): Remove.
7692 * gdbarch.c, gdbarch.h: Regenerate.
7693
7694 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7695 gdbarch_static_transform_name.
7696 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7697 * stabsread.c (define_symbol) <'X'>: Remove.
7698 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7699 handling.
7700 <'V'>: Likewise.
7701 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7702 <'S'>: Remove call to gdbarch_static_transform_name.
7703
c6d36836
RO
77042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7705
7706 * procfs.c (procfs_pre_trace): New function.
7707 (procfs_target::create_inferior): Pass it to fork_inferior.
7708
a7e6196b
RO
77092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7710
7711 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7712 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7713 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7714 sol2-tdep.o, sparc-sol2-tdep.o.
7715 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7716 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7717 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7718 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7719
d412e696
RO
77202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7721
7722 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7723 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7724 Call sol2_init_abi.
7725 Remove calls to set_gdbarch_skip_solib_resolver,
7726 set_gdbarch_core_pid_to_str.
7727 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7728 (i386_sol2_static_transform_name): Remove.
7729 (i386_sol2_init_abi): Call sol2_init_abi.
7730 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7731 set_gdbarch_static_transform_name,
7732 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7733 Use sol2_sigtramp_p.
7734 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7735 (sol2_sigtramp_p): New function.
7736 (sol2_static_transform_name): New function.
7737 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7738 (sol2_init_abi): New function.
7739 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7740 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7741 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7742 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7743 (sparc_sol2_static_transform_name): Remove.
7744 (sparc32_sol2_init_abi): Call sol2_init_abi.
7745 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7746 set_gdbarch_static_transform_name,
7747 set_gdbarch_skip_solib_resolver,
7748 set_gdbarch_core_pid_to_str.
7749 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7750 (sparc_sol2_static_transform_name): Remove
7751 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7752 call sol2_sigtramp_p.
7753 (sparc64_sol2_init_abi): Call sol2_init_abi.
7754 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7755 set_gdbarch_static_transform_name,
7756 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7757
a8654e7d
PW
77582020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7759
7760 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7761 * exec.c (validate_exec_file): If from_tty, set both
7762 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7763 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7764 and from_tty, unconditionally ask a confirmation.
7765
caa7fd04
AB
77662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7767
7768 * target-descriptions.c (tdesc_architecture_name): Protect against
7769 NULL pointer dereference.
7770 (maint_print_xml_tdesc_cmd): New function.
7771 (_initialize_target_descriptions): Register new 'maint print
7772 xml-tdesc' command and give it the filename completer.
7773 * NEWS: Mention new 'maint print xml-tdesc' command.
7774
fbf42f4e
AB
77752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7776
7777 * target-descriptions.c (class tdesc_compatible_info): New class.
7778 (struct target_desc): Change type of compatible vector.
7779 (tdesc_compatible_p): Update for change in type of
7780 target_desc::compatible.
7781 (tdesc_compatible_info_list): New function.
7782 (tdesc_compatible_info_arch_name): New function.
7783 (tdesc_add_compatible): Update for change in type of
7784 target_desc::compatible.
7785 (print_c_tdesc::visit_pre): Likewise.
7786
20821f4e
AB
77872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7788
7789 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7790 whitespace to underscore.
7791 (maint_print_c_tdesc_cmd): Use fake filename for target
7792 descriptions that came from the target.
7793 (_initialize_target_descriptions): Add filename command completion
7794 for 'maint print c-tdesc'.
7795
1fb5ee62
SM
77962020-06-23 Simon Marchi <simon.marchi@efficios.com>
7797
7798 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7799 lines.
7800
fc3ecb3e
SM
78012020-06-23 Simon Marchi <simon.marchi@efficios.com>
7802
7803 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7804 lines.
7805 (dwarf2_find_location_expression): Likewise.
7806 (call_site_parameter_matches): Likewise.
7807 (dwarf2_compile_expr_to_ax): Likewise.
7808 (disassemble_dwarf_expression): Likewise.
7809 (loclist_describe_location): Likewise.
7810
236ef034
PA
78112020-06-23 Pedro Alves <palves@redhat.com>
7812
7813 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7814 progspace-and-thread.h. Include scoped-mock-context.h instead.
7815 (register_to_value_test): Use scoped_mock_context.
7816 * regcache.c: Include "scoped-mock-context.h".
7817 (cooked_read_test): Don't error out if a target is already pushed.
7818 Use scoped_mock_context. Adjust.
7819 * scoped-mock-context.h: New file.
7820
39e7ecca
AB
78212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7822
7823 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7824 initializer.
7825 (ada_language::is_string_type_p): New member function.
7826 * c-lang.c (c_language_data): Delete la_is_string_type_p
7827 initializer.
7828 (cplus_language_data): Likewise.
7829 (asm_language_data): Likewise.
7830 (minimal_language_data): Likewise.
7831 * d-lang.c (d_language_data): Likewise.
7832 * f-lang.c (f_is_string_type_p): Delete function, implementation
7833 moved to f_language::is_string_type_p.
7834 (f_language_data): Delete la_is_string_type_p initializer.
7835 (f_language::is_string_type_p): New member function,
7836 implementation from f_is_string_type_p.
7837 * go-lang.c (go_is_string_type_p): Delete function, implementation
7838 moved to go_language::is_string_type_p.
7839 (go_language_data): Delete la_is_string_type_p initializer.
7840 (go_language::is_string_type_p): New member function,
7841 implementation from go_is_string_type_p.
7842 * language.c (language_defn::is_string_type_p): Define new member
7843 function.
7844 (default_is_string_type_p): Make static, add comment copied from
7845 header file.
7846 (unknown_language_data): Delete la_is_string_type_p initializer.
7847 (unknown_language::is_string_type_p): New member function.
7848 (auto_language_data): Delete la_is_string_type_p initializer.
7849 (auto_language::is_string_type_p): New member function.
7850 * language.h (language_data): Delete la_is_string_type_p field.
7851 (language_defn::is_string_type_p): Declare new function.
7852 (default_is_string_type_p): Delete desclaration, move comment to
7853 definition.
7854 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7855 moved to m2_language::is_string_type_p.
7856 (m2_language_data): Delete la_is_string_type_p initializer.
7857 (m2_language::is_string_type_p): New member function,
7858 implementation from m2_is_string_type_p.
7859 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7860 initializer.
7861 * opencl-lang.c (opencl_language_data): Likewise.
7862 * p-lang.c (pascal_is_string_type_p): Delete function,
7863 implementation moved to pascal_language::is_string_type_p.
7864 (pascal_language_data): Delete la_is_string_type_p initializer.
7865 (pascal_language::is_string_type_p): New member function,
7866 implementation from pascal_is_string_type_p.
7867 * rust-lang.c (rust_is_string_type_p): Delete function,
7868 implementation moved to rust_language::is_string_type_p.
7869 (rust_language_data): Delete la_is_string_type_p initializer.
7870 (rust_language::is_string_type_p): New member function,
7871 implementation from rust_is_string_type_p.
7872 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7873 is_string_type_p.
7874
4ffc13fb
AB
78752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7876
7877 * ada-lang.c (ada_language_data): Delete la_print_typedef
7878 initializer.
7879 (ada_language::print_typedef): New member function.
7880 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7881 (cplus_language_data): Likewise.
7882 (asm_language_data): Likewise.
7883 (minimal_language_data): Likewise.
7884 * d-lang.c (d_language_data): Likewise.
7885 * f-lang.c (f_language_data): Likewise.
7886 (f_language::print_typedef): New member function.
7887 * go-lang.c (go_language_data): Delete la_print_typedef
7888 initializer.
7889 * language.c (language_defn::print_typedef): Define member
7890 function.
7891 (unknown_language_data): Delete la_print_typedef initializer.
7892 (unknown_language::print_typedef): New member function.
7893 (auto_language_data): Delete la_print_typedef initializer.
7894 (auto_language::print_typedef): New member function.
7895 * language.h (language_data): Delete la_print_typedef field.
7896 (language_defn::print_typedef): Declare new member function.
7897 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7898 (default_print_typedef): Delete declaration.
7899 * m2-lang.c (m2_language_data): Delete la_print_typedef
7900 initializer.
7901 (m2_language::print_typedef): New member function.
7902 * objc-lang.c (objc_language_data): Delete la_print_typedef
7903 initializer.
7904 * opencl-lang.c (opencl_language_data): Likewise.
7905 * p-lang.c (pascal_language_data): Likewise.
7906 (pascal_language::print_typedef): New member function.
7907 * rust-lang.c (rust_print_typedef): Delete function,
7908 implementation moved to rust_language::print_typedef.
7909 (rust_language): Delete la_print_typedef initializer.
7910 (rust_language::print_typedef): New member function,
7911 implementation from rust_print_typedef.
7912 * typeprint.c (default_print_typedef): Delete.
7913
d711ee67
AB
79142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7917 (ada_language::printstr): New member function.
7918 * c-lang.c (c_language_data): Delete la_printstr initializer.
7919 (cplus_language_data): Likewise.
7920 (asm_language_data): Likewise.
7921 (minimal_language_data): Likewise.
7922 * d-lang.c (d_language_data): Likewise.
7923 * f-lang.c (f_printstr): Rename to f_language::printstr.
7924 (f_language_data): Delete la_printstr initializer.
7925 (f_language::printstr): New member function, implementation from
7926 f_printstr.
7927 * go-lang.c (go_language_data): Delete la_printstr initializer.
7928 * language.c (language_defn::printstr): Define new member
7929 function.
7930 (unk_lang_printstr): Delete.
7931 (unknown_language_data): Delete la_printstr initializer.
7932 (unknown_language::printstr): New member function.
7933 (auto_language_data): Delete la_printstr initializer.
7934 (auto_language::printstr): New member function.
7935 * language.h (language_data): Delete la_printstr field.
7936 (language_defn::printstr): Declare new member function.
7937 (LA_PRINT_STRING): Update call to printstr.
7938 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7939 (m2_language_data): Delete la_printstr initializer.
7940 (m2_language::printstr): New member function, implementation from
7941 m2_printstr.
7942 * objc-lang.c (objc_language_data): Delete la_printstr
7943 initializer.
7944 * opencl-lang.c (opencl_language_data): Likewise.
7945 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7946 (pascal_language_data): Delete la_printstr initializer.
7947 (pascal_language::printstr): New member function, implementation
7948 from pascal_printstr.
7949 * p-lang.h (pascal_printstr): Delete declaration.
7950 * rust-lang.c (rust_printstr): Update header comment.
7951 (rust_language_data): Delete la_printstr initializer.
7952 (rust_language::printstr): New member function.
7953
52b50f2c
AB
79542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7955
7956 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7957 (ada_language::printchar): New member function.
7958 * c-lang.c (c_language_data): Delete la_printchar initializer.
7959 (cplus_language_data): Likewise.
7960 (asm_language_data): Likewise.
7961 (minimal_language_data): Likewise.
7962 * d-lang.c (d_language_data): Likewise.
7963 * f-lang.c (f_printchar): Rename to f_language::printchar.
7964 (f_language_data): Delete la_printchar initializer.
7965 (f_language::printchar): New member function, implementation from
7966 f_printchar.
7967 * go-lang.c (go_language_data): Delete la_printchar initializer.
7968 * language.c (unk_lang_printchar): Delete.
7969 (language_defn::printchar): Define new member function.
7970 (unknown_language_data): Delete la_printchar initializer.
7971 (unknown_language::printchar): New member function.
7972 (auto_language_data): Delete la_printchar initializer.
7973 (auto_language::printchar): New member function.
7974 * language.h (language_data): Delete la_printchar field.
7975 (language_defn::printchar): Declare new member function.
7976 (LA_PRINT_CHAR): Update call to printchar.
7977 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7978 (m2_language::printchar): New member function.
7979 * objc-lang.c (objc_language_data): Delete la_printchar
7980 initializer.
7981 * opencl-lang.c (opencl_language_data): Likewise.
7982 * p-lang.c (pascal_language_data): Delete la_printchar
7983 initializer.
7984 (pascal_language::printchar): New member function.
7985 * rust-lang.c (rust_printchar): Rename to
7986 rust_language::printchar.
7987 (rust_language_data): Delete la_printchar initializer.
7988 (rust_language::printchar): New member function, implementation
7989 from rust_printchar.
7990
ec8cec5b
AB
79912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7992
7993 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7994 (ada_language_data): Delete la_emitchar initializer.
7995 (ada_language::emitchar): New member function, implementation from
7996 emit_char.
7997 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7998 (cplus_language_data): Likewise.
7999 (asm_language_data): Likewise.
8000 (minimal_language_data): Likewise.
8001 * d-lang.c (d_language_data): Likewise.
8002 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8003 (f_language_data): Delete la_emitchar initializer.
8004 (f_language::emitchar): New member function, implementation from
8005 f_emit_char.
8006 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8007 * language.c (unk_lang_emit_char): Delete.
8008 (language_defn::emitchar): New member function definition.
8009 (unknown_language_data): Delete la_emitchar initializer.
8010 (unknown_language::emitchar): New member function.
8011 (auto_language_data): Delete la_emitchar initializer.
8012 (auto_language::emitchar): New member function.
8013 * language.h (language_data): Delete la_emitchar field.
8014 (language_defn::emitchar): New member field declaration.
8015 (LA_EMIT_CHAR): Update call to emitchar.
8016 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8017 (m2_language_data): Delete la_emitchar initializer.
8018 (m2_language::emitchar): New member function, implementation from
8019 m2_emit_char.
8020 * objc-lang.c (objc_language_data): Delete la_emitchar
8021 initializer.
8022 * opencl-lang.c (opencl_language_data): Likewise.
8023 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8024 (pascal_language_data): Delete la_emitchar initializer.
8025 (pascal_language::emitchar): New member function, implementation
8026 from pascal_emit_char.
8027 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8028 (rust_language_data): Delete la_emitchar initializer.
8029 (rust_language::emitchar): New member function, implementation
8030 from rust_emitchar.
8031
1bf9c363
AB
80322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8033
8034 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8035 (ada_language_data): Delete la_post_parser initializer.
8036 (ada_language::post_parser): New member function.
8037 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8038 (cplus_language_data): Likewise.
8039 (asm_language_data): Likewise.
8040 (minimal_language_data): Likewise.
8041 * d-lang.c (d_language_data): Likewise.
8042 * f-lang.c (f_language_data): Likewise.
8043 * go-lang.c (go_language_data): Likewise.
8044 * language.c (unknown_language_data): Likewise.
8045 (auto_language_data): Likewise.
8046 * language.h (language_data): Delete la_post_parser field.
8047 (language_defn::post_parser): New member function.
8048 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8049 * objc-lang.c (objc_language_data): Likewise.
8050 * opencl-lang.c (opencl_language_data): Likewise.
8051 * p-lang.c (pascal_language_data): Likewise.
8052 * parse.c (parse_exp_in_context): Update call to post_parser.
8053 (null_post_parser): Delete definition.
8054 * parser-defs.h (null_post_parser): Delete declaration.
8055 * rust-lang.c (rust_language_data): Delete la_post_parser
8056 initializer.
8057
87afa652
AB
80582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8059
8060 * ada-lang.c (parse): Rename to ada_language::parser.
8061 (ada_language_data): Delete la_parser initializer.
8062 (ada_language::parser): New member function, implementation from
8063 parse.
8064 * c-lang.c (c_language_data): Delete la_parser initializer.
8065 (cplus_language_data): Likewise.
8066 (asm_language_data): Likewise.
8067 (minimal_language_data): Likewise.
8068 * d-lang.c (d_language_data): Likewise.
8069 (d_language::parser): New member function.
8070 * f-lang.c (f_language_data): Delete la_parser initializer.
8071 (f_language::parser): New member function.
8072 * go-lang.c (go_language_data): Delete la_parser initializer.
8073 (go_language::parser): New member function.
8074 * language.c (unk_lang_parser): Delete.
8075 (language_defn::parser): Define new member function.
8076 (unknown_language_data): Delete la_parser initializer.
8077 (unknown_language::parser): New member function.
8078 (auto_language_data): Delete la_parser initializer.
8079 (auto_language::parser): New member function.
8080 * language.h (language_data): Delete la_parser field.
8081 (language_defn::parser): Declare new member function.
8082 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8083 (m2_language::parser): New member function.
8084 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8085 * opencl-lang.c (opencl_language_data): Likewise.
8086 * p-lang.c (pascal_language_data): Likewise.
8087 (pascal_language::parser): New member function.
8088 * parse.c (parse_exp_in_context): Update call to parser.
8089 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8090 (rust_language::parser): New member function.
8091
37825800
AB
80922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8093
8094 * top.c (print_gdb_configuration): Print --with-python-libdir
8095 configuration value.
8096
5b860c93
PW
80972020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8098
8099 * NEWS: Mention change to the alias command.
8100
cf00cd6f
PW
81012020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8102
8103 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8104 (alias_command_completer)
8105 (make_alias_options_def_group): New functions.
8106 (alias_opts, alias_option_defs): New struct and array.
8107 (alias_usage_error): Update usage.
8108 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8109 Use option framework.
8110 (_initialize_cli_cmds): Update alias command help.
8111 Update aliases command help.
8112 (show_user):
8113 Add NULL for new default_args lookup_cmd argument.
8114 (valid_command_p): Rename to validate_aliased_command.
8115 Add NULL for new default_args lookup_cmd argument. Verify that the
8116 aliased_command has no default args.
8117 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8118 (lookup_cmd_1, lookup_cmd): New argument default_args.
8119 (add_alias_cmd):
8120 Add NULL for new default_args lookup_cmd argument.
8121 (print_help_for_command): Show default args under the layout
8122 alias some_alias = some_aliased_cmd some_alias_default_arg.
8123 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8124 xfree default_args in destructor.
8125 * cli/cli-script.c (process_next_line, do_define_command):
8126 Add NULL for new default_args lookup_cmd argument.
8127 * command.h: Declare new default_args argument in lookup_cmd
8128 and lookup_cmd_1.
8129 * completer.c (complete_line_internal_1):
8130 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8131 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8132 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8133 Likewise.
8134 * infcmd.c (_initialize_infcmd): Likewise.
8135 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8136 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8137 * python/py-param.c (add_setshow_generic): Likewise.
8138 * remote.c (_initialize_remote): Likewise.
8139 * top.c (execute_command): Prepend default_args if command has some.
8140 (set_verbose):
8141 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8142 * tracepoint.c (validate_actionline, encode_actions_1):
8143 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8144
bd920864
TBA
81452020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8146
8147 * jit.c (jit_read_descriptor): Use bool as the return type.
8148 (jit_breakpoint_re_set_internal): Use bool as the return type.
8149 Invert the return value logic; return true if the jit breakpoint
8150 has been successfully initialized.
8151 (jit_inferior_init): Update the call to
8152 jit_breakpoint_re_set_internal.
8153
f8098322
PA
81542020-06-22 Pedro Alves <palves@redhat.com>
8155
8156 PR gdb/25939
8157 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8158 Use the current inferior instead. Don't return
8159 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8160 wait again.
8161 * sol-thread.c (sol_thread_target::wait): Don't reference
8162 inferior_ptid.
8163 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8164 (sol_update_thread_list_callback): Use the current inferior's pid
8165 instead of inferior_ptid.
8166
196535a6
RO
81672020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8168
8169 * procfs.c: Cleanup many comments.
8170
8171 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8172 (AFTER_WATCHFLAG): Replace by value.
8173
8174 (MAIN_PROC_NAME_FORMAT): Inline ...
8175 (create_procinfo): ... here.
8176
8177 (procfs_debug_inferior): Remove SYS_exec handling.
8178 (syscall_is_exec): Likewise.
8179 (procfs_set_exec_trap): Likewise.
8180
8181 (syscall_is_lwp_exit): Inline in callers.
8182 (syscall_is_exit): Likewise.
8183 (syscall_is_exec): Likewise.
8184 (syscall_is_lwp_create): Likewise.
8185
8186 (invalidate_cache): Remove #if 0 code.
8187
8188 (make_signal_thread_runnable): Remove.
8189 (procfs_target::resume): Remove #if 0 code.
8190
cf6f3e86
RO
81912020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8192
8193 PR gdb/25939
8194 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8195 call ...
8196 (procfs_target::create_inferior): ... here.
8197
48e9cc84
PW
81982020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8199
8200 * exec.c (validate_exec_file): Ensure the build-id is up to
8201 date by calling reopen_exec_file (that checks file timestamp
8202 to decide to re-read the file).
8203
3922b302
PA
82042020-06-18 Pedro Alves <palves@redhat.com>
8205
8206 PR gdb/25412
8207 * gdbthread.h (delete_thread, delete_thread_silent)
8208 (find_thread_ptid): Update comments.
8209 * thread.c (current_thread_): New global.
8210 (is_current_thread): Move higher, and reimplement.
8211 (inferior_thread): Reimplement.
8212 (set_thread_exited): Use bool. Add assertions.
8213 (add_thread_silent): Simplify thread-reuse handling by always
8214 calling delete_thread.
8215 (delete_thread): Remove intro comment.
8216 (find_thread_ptid): Skip exited threads.
8217 (switch_to_thread_no_regs): Write to current_thread_.
8218 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8219 INFERIOR_PTID. Clear current_thread_.
8220
6dbdab44
PA
82212020-06-18 Pedro Alves <palves@redhat.com>
8222
8223 * aix-thread.c (pd_update): Use switch_to_thread.
8224
2da4b788
PA
82252020-06-18 Pedro Alves <palves@redhat.com>
8226
8227 * ravenscar-thread.c (ravenscar_thread_target): Update.
8228 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8229 (ravenscar_thread_target::add_active_thread): ... this. Don't
8230 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8231 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8232
50838d1b
PA
82332020-06-18 Pedro Alves <palves@redhat.com>
8234
8235 * nat/windows-nat.c (current_windows_thread): Remove.
8236 * nat/windows-nat.h (current_windows_thread): Remove.
8237 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8238 Adjust.
8239 (display_selectors): Adjust to fetch the current
8240 windows_thread_info based on inferior_ptid.
8241 (fake_create_process): No longer write to current_windows_thread.
8242 (windows_nat_target::get_windows_debug_event):
8243 Don't set inferior_ptid or current_windows_thread.
8244 (windows_nat_target::wait): Adjust to not rely on
8245 current_windows_thread.
8246 (do_initial_windows_stuff): Now a method of windows_nat_target.
8247 Switch to the last_ptid thread.
8248 (windows_nat_target::attach): Adjust.
8249 (windows_nat_target::detach): Use switch_to_no_thread instead of
8250 writing to inferior_ptid directly.
8251 (windows_nat_target::create_inferior): Adjust.
8252
31ce04e9
PA
82532020-06-18 Pedro Alves <palves@redhat.com>
8254
8255 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8256
1ee1a363
PA
82572020-06-18 Pedro Alves <palves@redhat.com>
8258
8259 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8260 after creating it, instead of writing to inferior_ptid. Don't
8261 write to inferior_ptid.
8262
6d350754
PA
82632020-06-18 Pedro Alves <palves@redhat.com>
8264
8265 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8266
5d971d48
PA
82672020-06-18 Pedro Alves <palves@redhat.com>
8268
8269 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8270 it, instead of writing to inferior_ptid.
8271
86e57d1b
PA
82722020-06-18 Pedro Alves <palves@redhat.com>
8273
8274 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8275 to inferior_ptid.
8276
f2e1c129
PA
82772020-06-18 Pedro Alves <palves@redhat.com>
8278
8279 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8280 instead of writing to inferior_ptid directly.
8281
60db1b85
PA
82822020-06-18 Pedro Alves <palves@redhat.com>
8283
8284 * corelow.c (core_target::close): Use switch_to_no_thread instead
8285 of writing to inferior_ptid directly.
8286 (add_to_thread_list, core_target_open): Use switch_to_thread
8287 instead of writing to inferior_ptid directly.
8288
fe7d6a8d
PA
82892020-06-18 Pedro Alves <palves@redhat.com>
8290
8291 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8292 inferior_ptid.
8293 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8294 inferior_ptid.
8295 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8296 inferior_ptid directly.
8297 (darwin_nat_target::init_thread_list): Switch to thread, instead
8298 of writing to inferior_ptid.
8299 (darwin_nat_target::attach): Don't write to inferior_ptid.
8300 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8301
975f8708
PA
83022020-06-18 Pedro Alves <palves@redhat.com>
8303
8304 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8305 thread.
8306 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8307 Instead use switch_to_thread.
8308 (gnu_nat_target::detach): Use switch_to_no_thread
8309 instead of writing to inferior_ptid directly. Used passed-in
8310 inferior instead of looking up the inferior by pid.
8311
1a204730
PA
83122020-06-18 Pedro Alves <palves@redhat.com>
8313
8314 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8315 inferior_ptid.
8316
ebe84f23
PA
83172020-06-18 Pedro Alves <palves@redhat.com>
8318
8319 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8320 inferior_ptid.
8321 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8322 thread.
8323 (nto_procfs_target::detach): Avoid referencing
8324 inferior_ptid. Use switch_to_no_thread instead of writing to
8325 inferior_ptid directly.
8326 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8327 instead of writing to inferior_ptid directly.
8328 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8329 to thread.
8330
191f02e5
PA
83312020-06-18 Pedro Alves <palves@redhat.com>
8332
8333 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8334 after creating it, instead of writing to inferior_ptid.
8335 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8336 to inferior_ptid directly.
8337 (gdbsim_target::wait): Don't write to inferior_ptid.
8338
0ac55310
PA
83392020-06-18 Pedro Alves <palves@redhat.com>
8340
8341 * remote.c (remote_target::remote_notice_new_inferior): Use
8342 switch_to_thread instead of writing to inferior_ptid directly.
8343 (remote_target::add_current_inferior_and_thread): Use
8344 switch_to_no_thread instead of writing to inferior_ptid directly.
8345 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8346 and switch_to_thread instead of using set_current_inferior or
8347 writing to inferior_ptid directly.
8348
5233f39b
PA
83492020-06-18 Pedro Alves <palves@redhat.com>
8350
8351 * tracectf.c (ctf_target_open): Switch to added thread instead of
8352 writing to inferior_ptid directly.
8353 (ctf_target::close): Use switch_to_no_thread instead of writing to
8354 inferior_ptid directly.
8355
087e161b
PA
83562020-06-18 Pedro Alves <palves@redhat.com>
8357
8358 * tracefile-tfile.c (tfile_target_open): Don't write to
8359 inferior_ptid directly, instead switch to added thread.
8360 (tfile_target::close): Use switch_to_no_thread instead of writing
8361 to inferior_ptid directly.
8362
7fb43e53
PA
83632020-06-18 Pedro Alves <palves@redhat.com>
8364
8365 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8366 (procfs_target::detach): Use switch_to_no_thread
8367 instead of writing to inferior_ptid directly.
8368 (do_attach): Change return type to void. Switch to the added
8369 thread.
8370 (procfs_target::create_inferior): Switch to the added thread.
8371 (procfs_do_thread_registers): Don't write to inferior_ptid.
8372
18493a00
PA
83732020-06-18 Pedro Alves <palves@redhat.com>
8374
8375 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8376 of writing to inferior_ptid.
8377 (scoped_restore_exited_inferior): Delete.
8378 (handle_vfork_child_exec_or_exit): Simplify using
8379 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8380 instead of writing to inferior_ptid.
8381 (THREAD_STOPPED_BY): Delete.
8382 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8383 (thread_stopped_by_hw_breakpoint): Delete.
8384 (save_waitstatus): Use
8385 scoped_restore_current_thread+switch_to_thread, and call
8386 target_stopped_by_watchpoint instead of
8387 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8388 instead of thread_stopped_by_sw_breakpoint, and
8389 target_stopped_by_hw_breakpoint instead of
8390 thread_stopped_by_hw_breakpoint.
8391 (handle_inferior_event)
8392 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8393 inferior_ptid directly, nor
8394 set_current_inferior/set_current_program_space. Use
8395 switch_to_thread / switch_to_inferior_no_thread instead.
8396
a0776b13
PA
83972020-06-18 Pedro Alves <palves@redhat.com>
8398
8399 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8400 instead of writing to inferior_ptid.
8401
6155c136
PA
84022020-06-18 Pedro Alves <palves@redhat.com>
8403
8404 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8405 added thread.
8406 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8407 to the added thread.
8408 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8409 instead of writing to inferior_ptid.
8410
c5316fc6
PA
84112020-06-18 Pedro Alves <palves@redhat.com>
8412
8413 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8414 (register_to_value_test): Mock a program_space too. Heap-allocate
8415 the address space. Don't write to inferior_ptid. Use
8416 switch_to_thread instead.
8417
8df01799
PA
84182020-06-18 Pedro Alves <palves@redhat.com>
8419
8420 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8421 Delete.
8422 (find_signalled_thread()): New, factored out from
8423 linux_make_corefile_notes and adjusted to handle exited threads.
8424 (linux_make_corefile_notes): Adjust to use the new
8425 find_signalled_thread.
8426
41792d68
PA
84272020-06-18 Pedro Alves <palves@redhat.com>
8428
8429 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8430 of saving/restoring inferior_ptid.
8431
612f258a
TT
84322020-06-17 Tom Tromey <tom@tromey.com>
8433
8434 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8435 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8436 declare.
8437 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8438
efb763a5
SM
84392020-06-15 Simon Marchi <simon.marchi@efficios.com>
8440
8441 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8442 of partial symtabs.
8443
2951f6c0
SM
84442020-06-17 Simon Marchi <simon.marchi@efficios.com>
8445
8446 * regformats/reg-arm.dat: Remove.
8447 * regformats/reg-bfin.dat: Remove.
8448 * regformats/reg-cris.dat: Remove.
8449 * regformats/reg-crisv32.dat: Remove.
8450 * regformats/reg-m32r.dat: Remove.
8451 * regformats/reg-tilegx.dat: Remove.
8452 * regformats/reg-tilegx32.dat: Remove.
8453
7d458ea5
SM
84542020-06-17 Simon Marchi <simon.marchi@efficios.com>
8455
8456 * features/Makefile (WHICH): Remove arm files.
8457 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8458 * regformats/arm/arm-with-neon.dat: Remove.
8459 * regformats/arm/arm-with-vfpv2.dat: Remove.
8460 * regformats/arm/arm-with-vfpv3.dat: Remove.
8461
3af96c0d
SM
84622020-06-17 Simon Marchi <simon.marchi@efficios.com>
8463
8464 * features/Makefile (XMLTOC): Remove rx.xml.
8465
b25e22fd
PA
84662020-06-17 Pedro Alves <palves@redhat.com>
8467
8468 * gdbthread.h (thread_control_state) <trap_expected> Update
8469 comments.
8470
a78a19b1
AB
84712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8472
8473 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8474 ada_language::lookup_symbol_nonlocal.
8475 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8476 (ada_language::lookup_symbol_nonlocal): New member function,
8477 implementation from ada_lookup_symbol_nonlocal.
8478 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8479 initializer.
8480 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8481 initializer.
8482 (cplus_language::lookup_symbol_nonlocal): New member function.
8483 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8484 (minimal_language_data) Likewise.
8485 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8486 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8487 initializer.
8488 (d_language::lookup_symbol_nonlocal): New member function.
8489 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8490 initializer.
8491 (f_language::lookup_symbol_nonlocal): New member function.
8492 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8493 initializer.
8494 * language.c (unknown_language_data): Likewise.
8495 (auto_language_data): Likewise.
8496 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8497 field.
8498 (language_defn::lookup_symbol_nonlocal): New member function.
8499 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8500 initializer.
8501 * objc-lang.c (objc_language_data): Likewise.
8502 * opencl-lang.c (opencl_language_data): Likewise.
8503 * p-lang.c (pascal_language_data): Likewise.
8504 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8505 rust_language::lookup_symbol_nonlocal.
8506 (rust_language_data): Delete la_lookup_symbol_nonlocal
8507 initializer.
8508 (rust_language::lookup_symbol_nonlocal): New member function,
8509 implementation from rust_lookup_symbol_nonlocal.
8510 * symtab.c (lookup_symbol_aux): Update call to
8511 lookup_symbol_nonlocal.
8512 (basic_lookup_symbol_nonlocal): Rename to...
8513 (language_defn::lookup_symbol_nonlocal): ...this, and update
8514 header comment. Remove language_defn parameter, and replace with
8515 uses of `this'.
8516 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8517
ebe2334e
AB
85182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8519
8520 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8521 initializer.
8522 (ada_language::value_print_inner): New member function.
8523 * c-lang.c (c_language_data): Delete la_value_print_inner
8524 initializer.
8525 (cplus_language_data): Likewise.
8526 (asm_language_data): Likewise.
8527 (minimal_language_data): Likewise.
8528 * d-lang.c (d_language_data): Likewise.
8529 (d_language::value_print_inner): New member function.
8530 * f-lang.c (f_language_data): Delete la_value_print_inner
8531 initializer.
8532 (f_language::value_print_inner): New member function.
8533 * f-lang.h (f_value_print_innner): Rename to...
8534 (f_value_print_inner): ...this (note spelling of 'inner').
8535 * f-valprint.c (f_value_print_innner): Rename to...
8536 (f_value_print_inner): ...this (note spelling of 'inner').
8537 * go-lang.c (go_language_data): Delete la_value_print_inner
8538 initializer.
8539 (go_language::value_print_inner): New member function.
8540 * language.c (language_defn::value_print_inner): Define new member
8541 function.
8542 (unk_lang_value_print_inner): Delete.
8543 (unknown_language_data): Delete la_value_print_inner initializer.
8544 (unknown_language::value_print_inner): New member function.
8545 (auto_language_data): Delete la_value_print_inner initializer.
8546 (auto_language::value_print_inner): New member function.
8547 * language.h (language_data): Delete la_value_print_inner field.
8548 (language_defn::value_print_inner): Delcare new member function.
8549 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8550 initializer.
8551 (m2_language::value_print_inner): New member function.
8552 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8553 initializer.
8554 * opencl-lang.c (opencl_language_data): Likewise.
8555 * p-lang.c (pascal_language_data): Likewise.
8556 (pascal_language::value_print_inner): New member function.
8557 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8558 initializer.
8559 (rust_language::value_print_inner): New member function.
8560 * valprint.c (do_val_print): Update call to value_print_inner.
8561
a1d1fa3e
AB
85622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8563
8564 * ada-lang.c (ada_language_data): Delete la_value_print
8565 initializer.
8566 (ada_language::value_print): New member function.
8567 * c-lang.c (c_language_data): Delete la_value_print initializer.
8568 (cplus_language_data): Likewise.
8569 (asm_language_data): Likewise.
8570 (minimal_language_data): Likewise.
8571 * d-lang.c (d_language_data): Likewise.
8572 * f-lang.c (f_language_data): Likewise.
8573 * go-lang.c (go_language_data): Likewise.
8574 * language.c (unk_lang_value_print): Delete.
8575 (language_defn::value_print): Define new member function.
8576 (unknown_language_data): Delete la_value_print initializer.
8577 (unknown_language::value_print): New member function.
8578 (auto_language_data): Delete la_value_print initializer.
8579 (auto_language::value_print): New member function.
8580 * language.h (language_data): Delete la_value_print field.
8581 (language_defn::value_print): Declare new member function.
8582 (LA_VALUE_PRINT): Update call to value_print.
8583 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8584 * objc-lang.c (objc_language_data): Likewise.
8585 * opencl-lang.c (opencl_language_data): Likewise.
8586 * p-lang.c (pascal_language_data): Likewise.
8587 (pascal_language::value_print): New member function.
8588 * rust-lang.c (rust_language_data): Delete la_value_print
8589 initializer.
8590
f16a9f57
AB
85912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * ada-lang.c (ada_watch_location_expression): Rename to
8594 ada_language::watch_location_expression.
8595 (ada_language_data): Delete la_watch_location_expression
8596 initializer.
8597 (ada_language::watch_location_expression): New member function,
8598 implementation from ada_watch_location_expression.
8599 * breakpoint.c (watch_command_1): Update call to
8600 watch_location_expression.
8601 * c-lang.c (c_watch_location_expression): Rename to
8602 language_defn::watch_location_expression.
8603 (c_language_data): Delete la_watch_location_expression
8604 initializer.
8605 (cplus_language_data): Likewise.
8606 (asm_language_data): Likewise.
8607 (minimal_language_data): Likewise.
8608 * c-lang.h (c_watch_location_expression): Delete declaration.
8609 * d-lang.c (d_language_data): Delete la_watch_location_expression
8610 initializer.
8611 * f-lang.c (f_language_data): Likewise.
8612 * go-lang.c (go_language_data): Likewise.
8613 * language.c (language_defn::watch_location_expression): Member
8614 function implementation from c_watch_location_expression.
8615 (unknown_language_data): Delete la_watch_location_expression
8616 initializer.
8617 (auto_language_data): Likewise.
8618 * language.h (language_data): Delete la_watch_location_expression
8619 field.
8620 (language_defn::watch_location_expression): Declare new member
8621 function.
8622 * m2-lang.c (m2_language_data): Delete
8623 la_watch_location_expression initializer.
8624 * objc-lang.c (objc_language_data): Likewise.
8625 * opencl-lang.c (opencl_language_data): Likewise.
8626 * p-lang.c (pascal_language_data): Likewise.
8627 * rust-lang.c (rust_watch_location_expression): Rename to
8628 rust_language::watch_location_expression.
8629 (rust_language_data): Delete la_watch_location_expression
8630 initializer.
8631 (rust_language::watch_location_expression): New member function,
8632 implementation from rust_watch_location_expression.
8633
7e56227d
AB
86342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8635
8636 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8637 ada_language::collect_symbol_completion_matches.
8638 (ada_language_data): Delete la_collect_symbol_completion_matches
8639 initializer.
8640 (ada_language::collect_symbol_completion_matches): New member
8641 function, implementation from
8642 ada_collect_symbol_completion_matches.
8643 * c-lang.c (c_language_data): Delete
8644 la_collect_symbol_completion_matches initializer.
8645 (cplus_language_data): Likewise.
8646 (asm_language_data): Likewise.
8647 (minimal_language_data): Likewise.
8648 * d-lang.c (d_language_data): Likewise.
8649 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8650 f_language::collect_symbol_completion_matches.
8651 (f_language_data): Delete la_collect_symbol_completion_matches
8652 initializer.
8653 (f_language::collect_symbol_completion_matches) New member
8654 function, implementation from f_collect_symbol_completion_matches.
8655 * go-lang.c (go_language_data): Delete
8656 la_collect_symbol_completion_matches initializer.
8657 * language.c (unknown_language_data): Likewise.
8658 (auto_language_data): Likewise.
8659 * language.h (language_data): Delete
8660 la_collect_symbol_completion_matches field.
8661 (language_defn::collect_symbol_completion_matches): New member
8662 function.
8663 * m2-lang.c (m2_language_data): Delete
8664 la_collect_symbol_completion_matches initializer.
8665 * objc-lang.c (objc_language_data): Likewise.
8666 * opencl-lang.c (opencl_language_data): Likewise.
8667 * p-lang.c (pascal_language_data): Likewise.
8668 * rust-lang.c (rust_language_data): Likewise.
8669 * symtab.c (default_collect_symbol_completion_matches): Delete.
8670 (collect_symbol_completion_matches): Update call to
8671 collect_symbol_completion_matches.
8672 (collect_symbol_completion_matches_type): Likewise.
8673 * symtab.h (default_collect_symbol_completion_matches): Delete
8674 declaration.
8675
53fc67f8
AB
86762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8677
8678 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8679 (ada_language_data): Delete la_word_break_characters initializer.
8680 (ada_language::word_break_characters): New member function.
8681 * c-lang.c (c_language_data): Delete la_word_break_characters
8682 initializer.
8683 (cplus_language_data): Likewise.
8684 (asm_language_data): Likewise.
8685 (minimal_language_data): Likewise.
8686 * completer.c: Update global comment.
8687 (advance_to_expression_complete_word_point): Update call to
8688 word_break_characters.
8689 (complete_files_symbols): Likewise.
8690 (complete_line_internal_1): Likewise.
8691 (default_completer_handle_brkchars): Likewise.
8692 (skip_quoted_chars): Likewise.
8693 * d-lang.c (d_language_data): Delete la_word_break_characters
8694 initializer.
8695 * f-lang.c (f_word_break_characters): Delete.
8696 (f_language_data): Delete la_word_break_characters initializer.
8697 (f_language::word_break_characters): New member function.
8698 * go-lang.c (go_language_data): Delete la_word_break_characters
8699 initializer.
8700 * language.c (unknown_language_data): Likewise.
8701 (auto_language_data): Likewise.
8702 * language.h (default_word_break_characters): Move declaration to
8703 earlier in the file.
8704 (language_data): Delete la_word_break_characters field.
8705 (language_defn::word_break_characters): New member function.
8706 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8707 initializer.
8708 * objc-lang.c (objc_language_data): Likewise.
8709 * opencl-lang.c (opencl_language_data): Likewise.
8710 * p-lang.c (pascal_language_data): Likewise.
8711 * rust-lang.c (rust_language_data): Likewise.
8712
c9debfb9
AB
87132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8714
8715 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8716 (ada_language_data): Delete la_get_symbol_name_matcher
8717 initializer.
8718 (language_defn::get_symbol_name_matcher_inner): New member
8719 function.
8720 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8721 initializer.
8722 (cplus_language_data): Likewise.
8723 (cplus_language::get_symbol_name_matcher_inner): New member
8724 function.
8725 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8726 (minimal_language_data): Likewise.
8727 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8728 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8729 initializer.
8730 * dictionary.c (iter_match_first_hashed): Update call to
8731 get_symbol_name_matcher.
8732 (iter_match_next_hashed): Likewise.
8733 (iter_match_next_linear): Likewise.
8734 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8735 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8736 initializer.
8737 (f_language::get_symbol_name_matcher_inner): New member function.
8738 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8739 initializer.
8740 * language.c (default_symbol_name_matcher): Update header comment,
8741 make static.
8742 (language_defn::get_symbol_name_matcher): New definition.
8743 (language_defn::get_symbol_name_matcher_inner): Likewise.
8744 (get_symbol_name_matcher): Delete.
8745 (unknown_language_data): Delete la_get_symbol_name_matcher
8746 initializer.
8747 (auto_language_data): Likewise.
8748 * language.h (language_data): Delete la_get_symbol_name_matcher
8749 field.
8750 (language_defn::get_symbol_name_matcher): New member function.
8751 (language_defn::get_symbol_name_matcher_inner): Likewise.
8752 (default_symbol_name_matcher): Delete declaration.
8753 * linespec.c (find_methods): Update call to
8754 get_symbol_name_matcher.
8755 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8756 initializer.
8757 * minsyms.c (lookup_minimal_symbol): Update call to
8758 get_symbol_name_matcher.
8759 (iterate_over_minimal_symbols): Likewise.
8760 * objc-lang.c (objc_language_data): Delete
8761 la_get_symbol_name_matcher initializer.
8762 * opencl-lang.c (opencl_language_data): Likewise.
8763 * p-lang.c (pascal_language_data): Likewise.
8764 * psymtab.c (psymbol_name_matches): Update call to
8765 get_symbol_name_matcher.
8766 * rust-lang.c (rust_language_data): Delete
8767 la_get_symbol_name_matcher initializer.
8768 * symtab.c (symbol_matches_search_name): Update call to
8769 get_symbol_name_matcher.
8770 (compare_symbol_name): Likewise.
8771
9a49ad8c
AB
87722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8773
8774 * ada-lang.c (ada_language_data): Delete la_compute_program
8775 initializer.
8776 * c-lang.c (c_language_data): Likewise.
8777 (c_language::compute_program): New member function.
8778 (cplus_language_data): Delete la_compute_program initializer.
8779 (cplus_language::compute_program): New member function.
8780 (asm_language_data): Delete la_compute_program initializer.
8781 (minimal_language_data): Likewise.
8782 * c-lang.h (c_compute_program): Update comment.
8783 (cplus_compute_program): Likewise.
8784 * compile/compile-c-support.c (c_compute_program): Likewise.
8785 (cplus_compute_program): Likewise.
8786 * compile/compile.c (compile_to_object): Update call to
8787 la_compute_program.
8788 * d-lang.c (d_language_data): Delete la_compute_program
8789 initializer.
8790 * f-lang.c (f_language_data): Likewise.
8791 * go-lang.c (go_language_data): Likewise.
8792 * language.c (unknown_language_data): Likewise.
8793 (auto_language_data): Likewise.
8794 * language.h (language_data): Delete la_compute_program field.
8795 (language_defn::compute_program): New member function.
8796 * m2-lang.c (m2_language_data): Delete la_compute_program
8797 initializer.
8798 * objc-lang.c (objc_language_data): Likewise.
8799 * opencl-lang.c (opencl_language_data): Likewise.
8800 * p-lang.c (pascal_language_data): Likewise.
8801 * rust-lang.c (rust_language_data): Likewise.
8802
eff93b4d
AB
88032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8804
8805 * ada-lang.c (ada_language_data) Delete
8806 la_class_name_from_physname initializer.
8807 * c-lang.c (c_language_data): Likewise.
8808 (cplus_language_data): Likewise.
8809 (cplus_language::class_name_from_physname): New member function.
8810 (asm_language_data): Delete la_class_name_from_physname
8811 initializer.
8812 (minimal_language_data): Likewise.
8813 * d-lang.c (d_language_data): Likewise.
8814 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8815 method on language_defn class.
8816 (guess_full_die_structure_name): Likewise.
8817 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8818 initializer.
8819 * go-lang.c (go_language_data): Likewise.
8820 * language.c (language_class_name_from_physname): Delete.
8821 (unk_lang_class_name): Delete.
8822 (unknown_language_data): Delete la_class_name_from_physname
8823 initializer.
8824 (auto_language_data): Likewise.
8825 * language.h (language_data): Delete la_class_name_from_physname
8826 field.
8827 (language_defn::class_name_from_physname): New function.
8828 (language_class_name_from_physname): Delete declaration.
8829 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8830 initializer.
8831 * objc-lang.c (objc_language_data): Likewise.
8832 * opencl-lang.c (opencl_language_data): Likewise.
8833 * p-lang.c (pascal_language_data): Likewise.
8834 * rust-lang.c (rust_language_data): Likewise.
8835
de543742
TT
88362020-06-16 Tom Tromey <tom@tromey.com>
8837
8838 * tui/tui-data.h (STATUS_NAME): New macro.
8839 * tui/tui-layout.c (tui_remove_some_windows)
8840 (initialize_known_windows, tui_register_window)
8841 (tui_layout_split::remove_windows, initialize_layouts)
8842 (tui_new_layout_command): Don't use hard-coded window names.
8843
a350efd4
TT
88442020-06-16 Tom Tromey <tom@tromey.com>
8845
8846 PR tui/25348:
8847 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8848 tui_initialize_readline. Only run once. Call rl_initialize.
8849 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8850 tui_initialize_readline.
8851 * tui/tui-io.c (tui_setup_io): Call
8852 tui_ensure_readline_initialized.
8853 * tui/tui-interp.c (tui_interp::init): Update.
8854
39ec0490
TT
88552020-06-16 Tom Tromey <tom@tromey.com>
8856
8857 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8858 Also preserve the status window.
8859
d2d1ea20
TT
88602020-06-16 Tom Tromey <tom@tromey.com>
8861
8862 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8863 where m_window==nullptr.
8864
66920317
TT
88652020-06-15 Tom Tromey <tromey@adacore.com>
8866
8867 * windows-nat.c (windows_nat::handle_output_debug_string):
8868 Update.
8869 (windows_nat::handle_ms_vc_exception): Update.
8870 * target.h (target_read_string): Change API.
8871 * target.c (target_read_string): Change API.
8872 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8873 Update.
8874 * solib-frv.c (frv_current_sos): Update.
8875 * solib-dsbt.c (dsbt_current_sos): Update.
8876 * solib-darwin.c (darwin_current_sos): Update.
8877 * linux-thread-db.c (inferior_has_bug): Update.
8878 * expprint.c (print_subexp_standard): Update.
8879 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8880 (ada_exception_message_1): Update.
8881
a5d871dd
TT
88822020-06-15 Tom Tromey <tromey@adacore.com>
8883
8884 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8885
670e35fa
TT
88862020-06-15 Tom Tromey <tromey@adacore.com>
8887
8888 * valprint.c (read_string): Update comment.
8889 * target.c (MIN): Remove.
8890 (target_read_string): Rewrite.
8891
f5272a3b
TT
88922020-06-15 Tom Tromey <tromey@adacore.com>
8893
8894 * corefile.c (read_memory_string): Remove.
8895 * ada-valprint.c (ada_value_print_ptr): Update.
8896 * ada-lang.h (ada_tag_name): Change return type.
8897 * ada-lang.c (type_from_tag): Update.
8898 (ada_tag_name_from_tsd): Change return type. Use
8899 target_read_string.
8900 (ada_tag_name): Likewise.
8901 * gdbcore.h (read_memory_string): Don't declare.
8902
2c074f49
HD
89032020-06-14 Hannes Domani <ssbssa@yahoo.de>
8904
8905 * symtab.c (rbreak_command): Ignore Windows drive colon.
8906
6a17d503
SM
89072020-06-12 Simon Marchi <simon.marchi@efficios.com>
8908
8909 * NEWS: Mention removed GDBserver host support.
8910
453c733f
NC
89112020-06-12 Nelson Chu <nelson.chu@sifive.com>
8912
8913 * features/riscv/rebuild-csr-xml.sh: Updated.
8914
2b4e6a3f
TT
89152020-06-11 Tom Tromey <tom@tromey.com>
8916
8917 PR gdb/18318:
8918 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8919
4412332f
JG
89202020-06-09 Jonny Grant <jg@jguk.org>
89212020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8922
8923 * main.c (captured_main_1): Don't print new line after help.
8924 (print_gdb_help): add mailing list and IRC channel information
8925 to --help. Add new lines between items in the footer. Remove
8926 quotes around bug url.
8927
2f33032a
KS
89282020-06-11 Keith Seitz <keiths@redhat.com>
8929
8930 PR gdb/21356
8931 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8932 Resolve typedefs for type length calculations.
8933
7ab96794
TV
89342020-06-10 Tom de Vries <tdevries@suse.de>
8935
8936 PR ada/24713
8937 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8938 (write_psymbols): Enable .gdb_index for ada.
8939 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8940 ada.
8941
e5f3ece2
TV
89422020-06-10 Tom de Vries <tdevries@suse.de>
8943
8944 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8945 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8946 namei" instead of "const char *name" argument.
8947 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8948 dw2_symtab_iter_init.
8949
940da03e
SM
89502020-06-08 Simon Marchi <simon.marchi@efficios.com>
8951
8952 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8953 to use type::field and field::type instead.
8954
b6cdac4b
SM
89552020-06-08 Simon Marchi <simon.marchi@efficios.com>
8956
8957 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8958 to use field::type instead.
8959
5d14b6e5
SM
89602020-06-08 Simon Marchi <simon.marchi@efficios.com>
8961
8962 * gdbtypes.h (struct field) <type, set_type>: New methods.
8963 Rename `type` field to...
8964 <m_type>: ... this. Change references throughout to use type or
8965 set_type methods.
8966 (FIELD_TYPE): Use field::type. Change call sites that modify
8967 the field's type to use field::set_type instead.
8968
3d967001
SM
89692020-06-08 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8972 to use type::index_type instead.
8973
262abc0d
SM
89742020-06-08 Simon Marchi <simon.marchi@efficios.com>
8975
8976 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8977 methods.
8978 (TYPE_INDEX_TYPE): Use type::index_type.
8979 * gdbtypes.c (create_array_type_with_stride): Likewise.
8980
82836c92
TT
89812020-06-07 Tom Tromey <tom@tromey.com>
8982
8983 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8984 parameter.
8985 (generic_value_print): Update.
8986
940dace9
AB
89872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8988
8989 Revert commit 982a38f60b0.
8990 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8991
982a38f6
AB
89922020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8993
8994 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8995 avoid use after free.
8996
82f06518
TV
89972020-06-05 Tom de Vries <tdevries@suse.de>
8998
8999 * NEWS: Fix typos.
9000
f8c41851
SM
90012020-06-04 Simon Marchi <simon.marchi@efficios.com>
9002
9003 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9004 the per_bfd object.
9005 (dwarf2_read_debug_names): Likewise.
9006 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9007 object when re-using a per_bfd object with an index.
9008
f9b5d5ea
TV
90092020-06-03 Tom de Vries <tdevries@suse.de>
9010
9011 PR symtab/26046
9012 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9013 children for C++.
9014 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9015 DW_TAG_subprogram.
9016
f6eee2d0
AB
90172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9018
9019 * ada-lang.c (ada_language_data): Delete skip_trampoline
9020 initializer.
9021 * c-lang.c (c_language_data): Likewise.
9022 (cplus_language_data): Likewise.
9023 (cplus_language::skip_trampoline): New member function.
9024 (asm_language_data): Delete skip_trampoline initializer.
9025 (minimal_language_data): Likewise.
9026 * d-lang.c (d_language_data): Likewise.
9027 * f-lang.c (f_language_data): Likewise.
9028 * go-lang.c (go_language_data): Likewise.
9029 * language.c (unk_lang_trampoline): Delete function.
9030 (skip_language_trampoline): Update.
9031 (unknown_language_data): Delete skip_trampoline initializer.
9032 (auto_language_data): Likewise.
9033 * language.h (language_data): Delete skip_trampoline field.
9034 (language_defn::skip_trampoline): New function.
9035 * m2-lang.c (m2_language_data): Delete skip_trampoline
9036 initializer.
9037 * objc-lang.c (objc_skip_trampoline): Delete function, move
9038 implementation to objc_language::skip_trampoline.
9039 (objc_language_data): Delete skip_trampoline initializer.
9040 (objc_language::skip_trampoline): New member function with
9041 implementation from objc_skip_trampoline.
9042 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9043 initializer.
9044 * p-lang.c (pascal_language_data): Likewise.
9045 * rust-lang.c (rust_language_data): Likewise.
9046
0a50df5d
AB
90472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9048
9049 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9050 (ada_language::demangle): New member function.
9051 * c-lang.c (c_language_data): Delete la_demangle initializer.
9052 (cplus_language_data): Delete la_demangle initializer.
9053 (cplus_language::demangle): New member function.
9054 (asm_language_data): Delete la_demangle initializer.
9055 (minimal_language_data): Delete la_demangle initializer.
9056 * d-lang.c (d_language_data): Delete la_demangle initializer.
9057 (d_language::demangle): New member function.
9058 * f-lang.c (f_language_data): Delete la_demangle initializer.
9059 (f_language::demangle): New member function.
9060 * go-lang.c (go_language_data): Delete la_demangle initializer.
9061 (go_language::demangle): New member function.
9062 * language.c (language_demangle): Update.
9063 (unk_lang_demangle): Delete.
9064 (unknown_language_data): Delete la_demangle initializer.
9065 (unknown_language::demangle): New member function.
9066 (auto_language_data): Delete la_demangle initializer.
9067 (auto_language::demangle): New member function.
9068 * language.h (language_data): Delete la_demangle field.
9069 (language_defn::demangle): New function.
9070 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9071 * objc-lang.c (objc_language_data): Delete la_demangle
9072 initializer.
9073 (objc_language::demangle): New member function.
9074 * opencl-lang.c (opencl_language_data): Delete la_demangle
9075 initializer.
9076 * p-lang.c (pascal_language_data): Likewise.
9077 * rust-lang.c (rust_language_data): Likewise.
9078 (rust_language::demangle): New member function.
9079
fbfb0a46
AB
90802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9081
9082 * ada-lang.c (ada_language_data): Delete la_print_type
9083 initializer.
9084 (ada_language::print_type): New member function.
9085 * c-lang.c (c_language_data): Delete la_print_type initializer.
9086 (c_language::print_type): New member function.
9087 (cplus_language_data): Delete la_print_type initializer.
9088 (cplus_language::print_type): New member function.
9089 (asm_language_data): Delete la_print_type initializer.
9090 (asm_language::print_type): New member function.
9091 (minimal_language_data): Delete la_print_type initializer.
9092 (minimal_language::print_type): New member function.
9093 * d-lang.c (d_language_data): Delete la_print_type initializer.
9094 (d_language::print_type): New member function.
9095 * f-lang.c (f_language_data): Delete la_print_type initializer.
9096 (f_language::print_type): New member function.
9097 * go-lang.c (go_language_data): Delete la_print_type initializer.
9098 (go_language::print_type): New member function.
9099 * language.c (unk_lang_print_type): Delete.
9100 (unknown_language_data): Delete la_print_type initializer.
9101 (unknown_language::print_type): New member function.
9102 (auto_language_data): Delete la_print_type initializer.
9103 (auto_language::print_type): New member function.
9104 * language.h (language_data): Delete la_print_type field.
9105 (language_defn::print_type): New function.
9106 (LA_PRINT_TYPE): Update.
9107 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9108 (m2_language::print_type): New member function.
9109 * objc-lang.c (objc_language_data): Delete la_print_type
9110 initializer.
9111 (objc_language::print_type): New member function.
9112 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9113 to opencl_language::print_type.
9114 (opencl_language_data): Delete la_print_type initializer.
9115 (opencl_language::print_type): New member function, implementation
9116 from opencl_print_type.
9117 * p-lang.c (pascal_language_data): Delete la_print_type
9118 initializer.
9119 (pascal_language::print_type): New member function.
9120 * rust-lang.c (rust_print_type): Delete, implementation moved to
9121 rust_language::print_type.
9122 (rust_language_data): Delete la_print_type initializer.
9123 (rust_language::print_type): New member function, implementation
9124 from rust_print_type.
9125
6f827019
AB
91262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9127
9128 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9129 implementation moves to...
9130 (ada_language::sniff_from_mangled_name): ...here. Update return
9131 type.
9132 (ada_language_data): Delete la_sniff_from_mangled_name
9133 initializer.
9134 * c-lang.c (c_language_data): Likewise.
9135 (cplus_language_data): Likewise.
9136 (cplus_language::sniff_from_mangled_name): New member function,
9137 implementation taken from gdb_sniff_from_mangled_name.
9138 (asm_language_data): Delete la_sniff_from_mangled_name
9139 initializer.
9140 (minimal_language_data): Likewise.
9141 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9142 implementation moves to cplus_language::sniff_from_mangled_name.
9143 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9144 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9145 moves to...
9146 (d_language::sniff_from_mangled_name): ...here.
9147 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9148 * f-lang.c (f_language_data): Likewise.
9149 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9150 moves to...
9151 (go_language::sniff_from_mangled_name): ...here.
9152 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9153 * language.c (language_sniff_from_mangled_name): Delete.
9154 (unknown_language_data): Delete la_sniff_from_mangled_name
9155 initializer.
9156 (auto_language_data): Likewise.
9157 * language.h (language_data): Delete la_sniff_from_mangled_name
9158 field.
9159 (language_defn::sniff_from_mangled_name): New function.
9160 (language_sniff_from_mangled_name): Delete declaration.
9161 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9162 field.
9163 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9164 implementation moves to...
9165 (objc_language::sniff_from_mangled_name): ...here.
9166 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9167 * opencl-lang.c (opencl_language_data): Likewise.
9168 * p-lang.c (pascal_language_data): Likewise.
9169 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9170 implementation moves to...
9171 (rust_language::sniff_from_mangled_name): ...here.
9172 (rust_language_data): Delete la_sniff_from_mangled_name
9173 initializer.
9174 * symtab.c (symbol_find_demangled_name): Call
9175 sniff_from_mangled_name member function.
9176
fb8006fd
AB
91772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9178
9179 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9180 initializer.
9181 * c-lang.c (c_language_data): Likewise.
9182 (cplus_language_data): Likewise.
9183 (cplus_language::search_name_hash): New member function.
9184 (asm_language_data): Delete la_search_name_hash initializer.
9185 (minimal_language_data): Likewise.
9186 * d-lang.c (d_language_data): Likewise.
9187 * dictionary.c (default_search_name_hash): Rename to...
9188 (language_defn::search_name_hash): ...this.
9189 * f-lang.c (f_language_data): Likewise.
9190 (f_language::search_name_hash): New member function.
9191 * go-lang.c (go_language_data): Delete la_search_name_hash
9192 initializer.
9193 * language.c (unknown_language_data): Likewise.
9194 (auto_language_data): Likewise.
9195 * language.h (struct language_data): Delete la_search_name_hash
9196 field.
9197 (language_defn::search_name_hash): Declare new member function.
9198 (default_search_name_hash): Delete declaration.
9199 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9200 initializer.
9201 * objc-lang.c (objc_language_data): Likewise.
9202 * opencl-lang.c (opencl_language_data): Likewise.
9203 * p-lang.c (pascal_language_data): Likewise.
9204 * rust-lang.c (rust_language_data): Likewise.
9205 * symtab.c (search_name_hash): Update call.
9206
8e25bafe
AB
92072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9208
9209 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9210 initializer.
9211 * c-lang.c (class compile_instance): Declare.
9212 (c_language_data): Delete la_get_compile_instance initializer.
9213 (c_language::get_compile_instance): New member function.
9214 (cplus_language_data): Delete la_get_compile_instance initializer.
9215 (cplus_language::get_compile_instance): New member function.
9216 (asm_language_data): Delete la_get_compile_instance initializer.
9217 (minimal_language_data): Likewise.
9218 * c-lang.h (c_get_compile_context): Update comment.
9219 (cplus_get_compile_context): Update comment.
9220 * compile/compile.c (compile_to_object): Update calls, don't rely
9221 on function pointer being NULL.
9222 * d-lang.c (d_language_data): Delete la_get_compile_instance
9223 initializer.
9224 * f-lang.c (f_language_data): Likewise.
9225 * go-lang.c (go_language_data): Likewise.
9226 * language.c (unknown_language_data): Likewise.
9227 (auto_language_data): Likewise.
9228 * language.h (language_data): Delete la_get_compile_instance field.
9229 (language_defn::get_compile_instance): New member function.
9230 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9231 initializer.
9232 * objc-lang.c (objc_language_data): Likewise.
9233 * opencl-lang.c (opencl_language_data): Likewise.
9234 * p-lang.c (pascal_language_data): Likewise.
9235 * rust-lang.c (rust_language_data): Likewise.
9236
4009ee92
AB
92372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9238
9239 * ada-lang.c (ada_add_all_symbols): Update comment.
9240 (ada_iterate_over_symbols): Delete, move implementation to...
9241 (ada_language::iterate_over_symbols): ...here, a new member
9242 function, rewrite to use range based for loop.
9243 (ada_language_data): Delete la_iterate_over_symbols initializer.
9244 * c-lang.c (c_language_data): Likewise.
9245 (cplus_language_data): Likewise.
9246 (asm_language_data): Likewise.
9247 (minimal_language_data): Likewise.
9248 * d-lang.c (d_language_data): Likewise.
9249 * f-lang.c (f_language_data): Likewise.
9250 * go-lang.c (go_language_data): Likewise.
9251 * language.c (unknown_language_data): Likewise.
9252 (auto_language_data): Likewise.
9253 * language.h (language_data): Delete la_iterate_over_symbols field.
9254 (language_defn::iterate_over_symbols): New member function.
9255 (LA_ITERATE_OVER_SYMBOLS): Update.
9256 * linespec.c (iterate_over_all_matching_symtabs): Update.
9257 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9258 initializer.
9259 * objc-lang.c (objc_language_data): Likewise.
9260 * opencl-lang.c (opencl_language_data): Likewise.
9261 * p-lang.c (pascal_language_data): Likewise.
9262 * rust-lang.c (rust_language_data): Likewise.
9263
54f4ca46
AB
92642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9265
9266 * ada-lang.c (ada_language_data): Delete
9267 la_lookup_transparent_type initializer.
9268 * c-lang.c (c_language_data): Likewise.
9269 (cplus_language_data): Likewise.
9270 (cplus_language::lookup_transparent_type): New member function.
9271 (asm_language_data): Delete la_lookup_transparent_type
9272 initializer.
9273 (minimal_language_data): Likewise.
9274 * d-lang.c (d_language_data): Likewise.
9275 * f-lang.c (f_language_data): Likewise.
9276 * go-lang.c (go_language_data): Likewise.
9277 * language.c (unknown_language_data): Likewise.
9278 (auto_language_data): Likewise.
9279 * language.h (struct language_data): Delete
9280 la_lookup_transparent_type field.
9281 (language_defn::lookup_transparent_type): New member function.
9282 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9283 initializer.
9284 * objc-lang.c (objc_language_data): Likewise.
9285 * opencl-lang.c (opencl_language_data): Likewise.
9286 * p-lang.c (pascal_language_data): Likewise.
9287 * rust-lang.c (rust_language_data): Likewise.
9288 * symtab.c (symbol_matches_domain): Update call.
9289
1fb314aa
AB
92902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9291
9292 * ada-lang.c (ada_language_arch_info): Delete function, move
9293 implementation to...
9294 (ada_language::language_arch_info): ...here, a new member
9295 function.
9296 (ada_language_data): Delete la_language_arch_info.
9297 * c-lang.c (c_language_data): Likewise.
9298 (c_language::language_arch_info): New member function.
9299 (cplus_language_arch_info): Delete function, move
9300 implementation to...
9301 (cplus_language::language_arch_info): ...here, a new member
9302 function.
9303 (cplus_language_data): Delete la_language_arch_info.
9304 (asm_language_data): Likewise.
9305 (asm_language::language_arch_info): New member function.
9306 (minimal_language_data): Delete la_language_arch_info.
9307 (minimal_language::language_arch_info): New member function.
9308 * d-lang.c (d_language_arch_info): Delete function, move
9309 implementation to...
9310 (d_language::language_arch_info): ...here, a new member
9311 function.
9312 (d_language_data): Delete la_language_arch_info.
9313 * f-lang.c (f_language_arch_info): Delete function, move
9314 implementation to...
9315 (f_language::language_arch_info): ...here, a new member
9316 function.
9317 (f_language_data): Delete la_language_arch_info.
9318 * go-lang.c (go_language_arch_info): Delete function, move
9319 implementation to...
9320 (go_language::language_arch_info): ...here, a new member
9321 function.
9322 (go_language_data): Delete la_language_arch_info.
9323 * language.c (unknown_language_data): Likewise.
9324 (unknown_language::language_arch_info): New member function.
9325 (auto_language_data): Delete la_language_arch_info.
9326 (auto_language::language_arch_info): New member function.
9327 (language_gdbarch_post_init): Update call to
9328 la_language_arch_info.
9329 * language.h (language_data): Delete la_language_arch_info
9330 function pointer.
9331 (language_defn::language_arch_info): New function.
9332 * m2-lang.c (m2_language_arch_info): Delete function, move
9333 implementation to...
9334 (m2_language::language_arch_info): ...here, a new member
9335 function.
9336 (m2_language_data): Delete la_language_arch_info.
9337 * objc-lang.c (objc_language_arch_info): Delete function, move
9338 implementation to...
9339 (objc_language::language_arch_info): ...here, a new member
9340 function.
9341 (objc_language_data): Delete la_language_arch_info.
9342 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9343 implementation to...
9344 (opencl_language::language_arch_info): ...here, a new member
9345 function.
9346 (opencl_language_data): Delete la_language_arch_info.
9347 * p-lang.c (pascal_language_arch_info): Delete function, move
9348 implementation to...
9349 (pascal_language::language_arch_info): ...here, a new member
9350 function.
9351 (pascal_language_data): Delete la_language_arch_info.
9352 * rust-lang.c (rust_language_arch_info): Delete function, move
9353 implementation to...
9354 (rust_language::language_arch_info): ...here, a new member
9355 function.
9356 (rust_language_data): Delete la_language_arch_info.
9357
48448202
AB
93582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9359
9360 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9361 initializer.
9362 * c-lang.c (c_language_data): Likewise.
9363 (cplus_language_data): Likewise.
9364 (cplus_language::pass_by_reference_info): New method.
9365 (asm_language_data): Delete la_pass_by_reference initializer.
9366 (minimal_language_data): Likewise.
9367 * cp-abi.c (cp_pass_by_reference): Remove use of
9368 default_pass_by_reference.
9369 * d-lang.c (d_language_data): Likewise.
9370 * f-lang.c (f_language_data): Likewise.
9371 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9372 default_pass_by_reference.
9373 * go-lang.c (go_language_data): Likewise.
9374 * language.c (language_pass_by_reference): Update.
9375 (default_pass_by_reference): Delete.
9376 (unknown_language_data): Delete la_pass_by_reference
9377 initializer.
9378 (auto_language_data): Likewise.
9379 * language.h (struct language_data): Delete la_pass_by_reference
9380 field.
9381 (language_defn::pass_by_reference_info): New member function.
9382 (default_pass_by_reference): Delete declaration.
9383 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9384 initializer.
9385 * objc-lang.c (objc_language_data): Likewise.
9386 * opencl-lang.c (opencl_language_data): Likewise.
9387 * p-lang.c (pascal_language_data): Likewise.
9388 * rust-lang.c (rust_language_data): Likewise.
9389
15e5fd35
AB
93902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9391
9392 * ada-lang.c (ada_read_var_value): Delete function, move
9393 implementation to...
9394 (ada_language::read_var_value): ...here.
9395 (ada_language_data): Delete la_read_var_value initializer.
9396 * c-lang.c (c_language_data): Likewise.
9397 (cplus_language_data): Likewise.
9398 (minimal_language_data): Likewise.
9399 * d-lang.c (d_language_data): Likewise.
9400 * f-lang.c (f_language_data): Likewise.
9401 * findvar.c (default_read_var_value): Rename to...
9402 (language_defn::read_var_value): ...this.
9403 * findvar.c (read_var_value): Update header comment, and change to
9404 call member function instead of function pointer.
9405 * go-lang.c (go_language_data): Likewise.
9406 * language.c (unknown_language_data): Delete la_read_var_value
9407 initializer.
9408 (auto_language_data): Likewise.
9409 * language.h (struct language_data): Delete la_read_var_value
9410 field.
9411 (language_defn::read_var_value): New member function.
9412 (default_read_var_value): Delete declaration.
9413 * m2-lang.c (m2_language_data): Delete la_read_var_value
9414 initializer.
9415 * objc-lang.c (objc_language_data): Likewise.
9416 * opencl-lang.c (opencl_language_data): Likewise.
9417 * p-lang.c (pascal_language_data): Likewise.
9418 * rust-lang.c (rust_language_data): Likewise.
9419 * value.h (default_read_var_value): Delete declaration.
9420
5bd40f2a
AB
94212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9422
9423 * ada-lang.c (ada_print_array_index): Delete function, move
9424 implementation to...
9425 (ada_language::print_array_index): ...here.
9426 (ada_language_data): Delete la_print_array_index initializer.
9427 * c-lang.c (c_language_data): Likewise.
9428 (cplus_language_data): Likewise.
9429 (minimal_language_data): Likewise.
9430 * d-lang.c (d_language_data): Likewise.
9431 * f-lang.c (f_language_data): Likewise.
9432 * go-lang.c (go_language_data): Likewise.
9433 * language.c (default_print_array_index): Delete function, move
9434 implementation to...
9435 (language_defn::print_array_index): ...here.
9436 (unknown_language_data): Delete la_print_array_index initializer.
9437 (auto_language_data): Likewise.
9438 * language.h (struct language_data): Delete la_print_array_index
9439 field.
9440 (language_defn::print_array_index): New member function.
9441 (LA_PRINT_ARRAY_INDEX): Update.
9442 (default_print_array_index): Delete declaration.
9443 * m2-lang.c (m2_language_data): Delete la_print_array_index
9444 initializer.
9445 * objc-lang.c (objc_language_data): Likewise.
9446 * opencl-lang.c (opencl_language_data): Likewise.
9447 * p-lang.c (pascal_language_data): Likewise.
9448 * rust-lang.c (rust_language_data): Likewise.
9449
0874fd07
AB
94502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9451
9452 * gdb/ada-lang.c (ada_language_defn): Convert to...
9453 (ada_language_data): ...this.
9454 (class ada_language): New class.
9455 (ada_language_defn): New static global.
9456 * gdb/c-lang.c (c_language_defn): Convert to...
9457 (c_language_data): ...this.
9458 (class c_language): New class.
9459 (c_language_defn): New static global.
9460 (cplus_language_defn): Convert to...
9461 (cplus_language_data): ...this.
9462 (class cplus_language): New class.
9463 (cplus_language_defn): New static global.
9464 (asm_language_defn): Convert to...
9465 (asm_language_data): ...this.
9466 (class asm_language): New class.
9467 (asm_language_defn): New static global.
9468 (minimal_language_defn): Convert to...
9469 (minimal_language_data): ...this.
9470 (class minimal_language): New class.
9471 (minimal_language_defn): New static global.
9472 * gdb/d-lang.c (d_language_defn): Convert to...
9473 (d_language_data): ...this.
9474 (class d_language): New class.
9475 (d_language_defn): New static global.
9476 * gdb/f-lang.c (f_language_defn): Convert to...
9477 (f_language_data): ...this.
9478 (class f_language): New class.
9479 (f_language_defn): New static global.
9480 * gdb/go-lang.c (go_language_defn): Convert to...
9481 (go_language_data): ...this.
9482 (class go_language): New class.
9483 (go_language_defn): New static global.
9484 * gdb/language.c (unknown_language_defn): Remove declaration.
9485 (current_language): Initialize to nullptr, real initialization is
9486 moved to _initialize_language.
9487 (languages): Delete global.
9488 (language_defn::languages): Define.
9489 (set_language_command): Use language_defn::languages.
9490 (set_language): Likewise.
9491 (range_error): Likewise.
9492 (language_enum): Likewise.
9493 (language_def): Likewise.
9494 (add_set_language_command): Use language_def::languages for the
9495 language list, and language_def to lookup language pointers.
9496 (skip_language_trampoline): Use language_defn::languages.
9497 (unknown_language_defn): Convert to...
9498 (unknown_language_data): ...this.
9499 (class unknown_language): New class.
9500 (unknown_language_defn): New static global.
9501 (auto_language_defn): Convert to...
9502 (auto_language_data): ...this.
9503 (class auto_language): New class.
9504 (auto_language_defn): New static global.
9505 (language_gdbarch_post_init): Use language_defn::languages.
9506 (_initialize_language): Initialize current_language.
9507 * gdb/language.h (struct language_defn): Rename to...
9508 (struct language_data): ...this.
9509 (struct language_defn): New.
9510 (auto_language_defn): Delete.
9511 (unknown_language_defn): Delete.
9512 (minimal_language_defn): Delete.
9513 (ada_language_defn): Delete.
9514 (asm_language_defn): Delete.
9515 (c_language_defn): Delete.
9516 (cplus_language_defn): Delete.
9517 (d_language_defn): Delete.
9518 (f_language_defn): Delete.
9519 (go_language_defn): Delete.
9520 (m2_language_defn): Delete.
9521 (objc_language_defn): Delete.
9522 (opencl_language_defn): Delete.
9523 (pascal_language_defn): Delete.
9524 (rust_language_defn): Delete.
9525 * gdb/m2-lang.c (m2_language_defn): Convert to...
9526 (m2_language_data): ...this.
9527 (class m2_language): New class.
9528 (m2_language_defn): New static global.
9529 * gdb/objc-lang.c (objc_language_defn): Convert to...
9530 (objc_language_data): ...this.
9531 (class objc_language): New class.
9532 (objc_language_defn): New static global.
9533 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9534 (opencl_language_data): ...this.
9535 (class opencl_language): New class.
9536 (opencl_language_defn): New static global.
9537 * gdb/p-lang.c (pascal_language_defn): Convert to...
9538 (pascal_language_data): ...this.
9539 (class pascal_language): New class.
9540 (pascal_language_defn): New static global.
9541 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9542 language pointer, update comment format.
9543 * gdb/rust-lang.c (rust_language_defn): Convert to...
9544 (rust_language_data): ...this.
9545 (class rust_language): New class.
9546 (rust_language_defn): New static global.
9547
1313c56e
AB
95482020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9549
9550 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9551 member variable.
9552 <m_stmt_at_address>: New member variable.
9553 (lnp_state_machine::record_line): Don't record some lines, update
9554 tracking of is_stmt at the same address.
9555 (lnp_state_machine::lnp_state_machine): Initialise new member
9556 variables.
9557
b7ed9f3d
ST
95582020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9559
9560 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9561 "-include gnu-nat-mig.h".
9562 * gnu-nat-mig.h: New file.
9563 * gnu-nat.c: Include "gnu-nat-mig.h".
9564 (exc_server, msg_reply_server, notify_server,
9565 process_reply_server): Remove declarations.
9566
14a8ad62
ST
95672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9568
9569 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9570 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9571 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9572 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9573 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9574 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9575 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9576 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9577 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9578 to gnu_nat_target class.
9579 * gnu-nat.c: Likewise.
9580 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9581 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9582 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9583 object.
9584 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9585 instead of `gnu_target'.
9586
0af5e106
ST
95872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9588
9589 * i386-gnu-tdep.c: Include "gdbcore.h"
9590 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9591 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9592 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9593 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9594 i386_gnu_sigcontext_addr): New functions
9595 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9596 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9597 tdep.
9598
078f2fc9
ST
95992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9600
9601 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9602 before fork_inferior call. Avoid calling it if target_is_pushed returns
9603 true.
9604
53dff92c
ST
96052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9606
9607 * gnu-nat.h (gnu_target): New variable declaration.
9608 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9609 gnu_target.
9610 * gnu-nat.c (gnu_target): New variable.
9611 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9612 add_thread_silent, and add_thread calls.
9613 (gnu_nat_target::create_inferior): Pass gnu_target to
9614 add_thread_silent, thread_change_ptid call.
9615 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9616 call.
9617
5a8b8627
ST
96182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9619
9620 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9621 (gnu_nat_target::find_memory_regions): Remove unused
9622 `old_address' variable.
9623
366f550a
ST
96242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9625
9626 * gnu-nat.c: Include "gdbarch.h".
9627
f14871bf
ST
96282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9629
9630 * reply_mig_hack.awk (Error return): Cast function through
9631 void *, to bypass compiler function call check.
9632
c6887cfb
ST
96332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9634
9635 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9636 $(srcdir)/reply_mig_hack.awk.
9637
6930bffe
ST
96382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9639
9640 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9641
112c22ed
JG
96422020-05-30 Jonny Grant <jg@jguk.org>
9643
9644 * configure.ac (ACX_BUGURL): change bug URL to https.
9645
f68f85b5
PA
96462020-05-30 Pedro Alves <palves@redhat.com>
9647
9648 * cp-support.c (replace_typedefs_template): New.
9649 (replace_typedefs_qualified_name): Handle
9650 DEMANGLE_COMPONENT_TEMPLATE.
9651
976ca316
SM
96522020-05-29 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9655 dwarf2/index-cache.h, dwarf2/index-write.c,
9656 dwarf2/index-write.h, dwarf2/line-header.c,
9657 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9658 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9659 variables and fields from `dwarf2_per_objfile` to just
9660 `per_objfile` throughout.
9661
989ade05
SM
96622020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9663
9664 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9665 <push_dwarf_reg_entry_value>: Add comment.
9666
c47bae85
KB
96672020-05-28 Kevin Buettner <kevinb@redhat.com>
9668 Keith Seitz <keiths@redhat.com>
9669
9670 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9671 instead of PyEval_ReleaseLock.
9672 (class gdbpy_gil): Move to earlier in file.
9673 (finalize_python): Set gdb_python_initialized.
9674 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9675 when not initialized.
9676
44486dcf
SM
96772020-05-28 Simon Marchi <simon.marchi@efficios.com>
9678
9679 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9680 <push_dwarf_reg_entry_value>: Remove assert. Override
9681 per_objfile with caller_per_objfile.
9682
f030440d
TV
96832020-05-28 Tom de Vries <tdevries@suse.de>
9684
9685 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9686 PR gold/15646 workaround to symbol kind "type".
9687
f0fbb768
TT
96882020-05-27 Tom Tromey <tromey@adacore.com>
9689
9690 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9691
af0b2a3e
TT
96922020-05-27 Tom Tromey <tromey@adacore.com>
9693
9694 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9695 Use htab_find_with_hash.
9696 <add_abbrev>: Remove "abbrev_number" parameter.
9697 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9698 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9699 (hash_abbrev): Add comment.
9700 (abbrev_table::lookup_abbrev): Move to header file.
9701 (abbrev_table::read): Update.
9702
7d00ffec
TT
97032020-05-27 Tom Tromey <tromey@adacore.com>
9704
9705 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9706 method.
9707 <canonical_name>: New member.
9708 <raw_name>: Rename from "name".
9709 (partial_die_info): Initialize canonical_name.
9710 (scan_partial_symbols): Check raw_name.
9711 (partial_die_parent_scope, partial_die_full_name)
9712 (add_partial_symbol, add_partial_subprogram)
9713 (add_partial_enumeration, load_partial_dies): Use "name" method.
9714 (partial_die_info::name): New method.
9715 (partial_die_info::read, guess_partial_die_structure_name)
9716 (partial_die_info::fixup): Update.
9717
697bba18
TT
97182020-05-27 Tom Tromey <tromey@adacore.com>
9719
9720 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9721 <get_ref_die_offset>: Inline.
9722 <get_ref_die_offset_complaint>: New method.
9723 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9724 (attribute::get_ref_die_offset_complaint): Rename from
9725 get_ref_die_offset. Just issue complaint.
9726
c17ace43
HD
97272020-05-27 Hannes Domani <ssbssa@yahoo.de>
9728
9729 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9730
96445f0b
HD
97312020-05-27 Hannes Domani <ssbssa@yahoo.de>
9732
9733 * exec.c (exec_file_attach): Use errno value of first openp failure.
9734
ac637ec3
HD
97352020-05-27 Hannes Domani <ssbssa@yahoo.de>
9736
9737 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9738 Don't close thread handle.
9739
17ee85fc
TT
97402020-05-27 Tom Tromey <tom@tromey.com>
9741 Simon Marchi <simon.marchi@efficios.com>
9742
9743 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9744 shared_ptr.
9745 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9746 member.
9747 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9748 dwarf2_per_bfd_objfile_data_key>: New globals.
9749 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9750 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9751 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9752 shared.
9753 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9754 short-circuit when sharing.
9755 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9756 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9757
39b16f87
SM
97582020-05-27 Simon Marchi <simon.marchi@efficios.com>
9759
9760 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9761 to...
9762 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9763 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9764
fcf23d5b
SM
97652020-05-27 Simon Marchi <simon.marchi@efficios.com>
9766
9767 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9768 build_name_components, find_name_components_bounds>:
9769 Add per_objfile parameter.
9770 (struct mapped_index) <symbol_name_at>: Likewise.
9771 (struct mapped_debug_names): Remove constructor.
9772 <dwarf2_per_objfile>: Remove field.
9773 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9774 (mapped_index_base::find_name_components_bounds,
9775 mapped_index_base::build_name_components,
9776 dw2_expand_symtabs_matching_symbol): Likewise.
9777 (class mock_mapped_index) <symbol_name_at>: Likewise.
9778 (check_match): Likewise.
9779 (check_find_bounds_finds): Likewise.
9780 (test_mapped_index_find_name_component_bounds): Update.
9781 (CHECK_MATCH): Update.
9782 (dw2_expand_symtabs_matching): Update.
9783 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9784 per_objfile parameter.
9785 <find_vec_in_debug_names>: Likewise.
9786 <m_per_objfile>: New field.
9787 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9788 parameter.
9789 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9790 (dw2_debug_names_iterator::next): Update.
9791 (dw2_debug_names_lookup_symbol): Update.
9792 (dw2_debug_names_expand_symtabs_for_function): Update.
9793 (dw2_debug_names_map_matching_symbols): Update.
9794 (dw2_debug_names_expand_symtabs_matching): Update.
9795 (dwarf2_read_debug_names): Update.
9796
7188ed02
SM
97972020-05-27 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9800 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9801 move to dwarf2_per_objfile.
9802 <read_in_chain>: Remove.
9803 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9804 remove_all_cus, age_comp_units>: New methods.
9805 <m_dwarf2_cus>: New member.
9806 (struct dwarf2_per_cu_data) <cu>: Remove.
9807 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9808 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9809 moved to methods of dwarf2_per_objfile.
9810 (dwarf2_clear_marks): Remove.
9811 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9812 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9813 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9814 (dwarf2_per_objfile::remove_all_cus): New.
9815 (class free_cached_comp_units) <~free_cached_comp_units>:
9816 Update.
9817 (load_cu): Update.
9818 (dw2_do_instantiate_symtab): Adjust.
9819 (fill_in_sig_entry_from_dwo_entry): Adjust.
9820 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9821 (cutu_reader::cutu_reader): Likewise.
9822 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9823 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9824 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9825 and dwarf2_per_objfile::age_comp_units.
9826 (load_partial_comp_unit): Update.
9827 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9828 (process_queue): Likewise.
9829 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9830 backlink.
9831 (dwarf2_read_addr_index): Likewise.
9832 (follow_die_offset): Likewise.
9833 (dwarf2_fetch_die_loc_sect_off): Likewise.
9834 (dwarf2_fetch_constant_bytes): Likewise.
9835 (dwarf2_fetch_die_type_sect_off): Likewise.
9836 (follow_die_sig_1): Likewise.
9837 (load_full_type_unit): Likewise.
9838 (read_signatured_type): Likewise.
9839 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9840 (dwarf2_cu::~dwarf2_cu): Remove.
9841 (dwarf2_per_objfile::get_cu): New.
9842 (dwarf2_per_objfile::set_cu): New.
9843 (age_cached_comp_units): Rename to...
9844 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9845 to std::unordered_map.
9846 (free_one_cached_comp_unit): Rename to...
9847 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9848 to std::unordered_map.
9849 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9850 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9851 a dwarf2_per_objfile in data.
9852 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9853 (dwarf2_clear_marks): Remove.
9854
2e671100
SM
98552020-05-27 Simon Marchi <simon.marchi@efficios.com>
9856
9857 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9858 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9859 (init_tu_and_read_dwo_dies): Likewise.
9860 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9861 (cutu_reader::cutu_reader): Likewise.
9862 (load_partial_comp_unit): Likewise.
9863 (process_psymtab_comp_unit): Update.
9864 (build_type_psymtabs_1): Update.
9865 (process_skeletonless_type_unit): Update.
9866 (load_full_comp_unit): Update.
9867 (find_partial_die): Update.
9868 (dwarf2_read_addr_index): Update.
9869 (read_signatured_type): Update.
9870
2e6a9f79
SM
98712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9872
9873 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9874 m_header_read_in>: New fields.
9875 <get_header>: New method.
9876 * dwarf2/read.c (per_cu_header_read_in): Remove.
9877 (dwarf2_per_cu_data::get_header): New.
9878 (dwarf2_per_cu_data::addr_size): Update.
9879 (dwarf2_per_cu_data::offset_size): Update.
9880 (dwarf2_per_cu_data::ref_addr_size): Update.
9881
1b555f17
SM
98822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9883
9884 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9885 (dw2_do_instantiate_symtab): Update.
9886 (queue_and_load_all_dwo_tus): Change parameter from
9887 dwarf2_per_cu_data to dwarf2_cu.
9888 (dwarf2_fetch_die_loc_sect_off): Update.
9889 (dwarf2_fetch_constant_bytes): Update.
9890 (dwarf2_fetch_die_type_sect_off): Update.
9891
8fc0b21d
SM
98922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9893
9894 * dwarf2/read.c (process_full_comp_unit,
9895 process_full_type_unit): Remove per_cu, per_objfile paramters.
9896 Add dwarf2_cu parameter.
9897 (process_queue): Update.
9898
168c9250
SM
98992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9900
9901 * dwarf2/read.c (create_cu_from_index_list): Replace
9902 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9903 (create_cus_from_index_list): Likewise.
9904 (create_cus_from_index): Likewise.
9905 (create_signatured_type_table_from_index): Likewise.
9906 (create_cus_from_debug_names_list): Likewise.
9907 (create_cus_from_debug_names): Likewise.
9908 (dwarf2_read_gdb_index): Update.
9909 (dwarf2_read_debug_names): Update.
9910
e286671b
TT
99112020-05-27 Tom Tromey <tom@tromey.com>
9912 Simon Marchi <simon.marchi@efficios.com>
9913
9914 * dwarf2/read.h (struct dwarf2_per_objfile)
9915 <get_type_for_signatured_type, set_type_for_signatured_type>:
9916 New methods.
9917 <m_type_map>: New member.
9918 (struct signatured_type) <type>: Remove.
9919 * dwarf2/read.c
9920 (dwarf2_per_objfile::get_type_for_signatured_type,
9921 dwarf2_per_objfile::set_type_for_signatured_type): New.
9922 (get_signatured_type): Use new methods.
9923
8adb8487
TT
99242020-05-27 Tom Tromey <tom@tromey.com>
9925 Simon Marchi <simon.marchi@efficios.com>
9926
9927 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9928 (struct dwarf2_per_objfile) <type_units>: New member.
9929 <get_type_unit_group_unshareable>: New method.
9930 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9931 num_symtabs, symtabs>: Remove; move to
9932 type_unit_group_unshareable.
9933 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9934 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9935 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9936
127bbf4b
SM
99372020-05-27 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * dwarf2/read.h (struct dwarf2_per_cu_data):
9940 <dwarf2_per_objfile>: Remove.
9941 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9942 dwarf2_per_objfile.
9943 (create_signatured_type_table_from_index): Likewise.
9944 (create_signatured_type_table_from_debug_names): Likewise.
9945 (create_debug_type_hash_table): Likewise.
9946 (fill_in_sig_entry_from_dwo_entry): Likewise.
9947 (create_type_unit_group): Likewise.
9948 (read_comp_units_from_section): Likewise.
9949 (create_cus_hash_table): Likewise.
9950
f6e649dd
SM
99512020-05-27 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9954 dwarf2_per_cu_data::dwarf2_per_objfile.
9955 (compute_compunit_symtab_includes): Likewise.
9956 (dwarf2_cu::start_symtab): Likewise.
9957
aa66c379
SM
99582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9959
9960 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9961 parameter.
9962 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9963 (read_namespace_alias): Update.
9964 (lookup_die_type): Update.
9965 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9966 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9967 Update.
9968 (disassemble_dwarf_expression): Update.
9969
120ce1b5
SM
99702020-05-27 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * dwarf2/read.h (struct dwarf2_queue_item): Add
9973 dwarf2_per_objfile parameter, assign new parameter.
9974 <per_objfile>: New field.
9975 * dwarf2/read.c (free_one_cached_comp_unit): Add
9976 dwarf2_per_objfile parameter.
9977 (queue_comp_unit): Likewise.
9978 (dw2_do_instantiate_symtab): Update.
9979 (process_psymtab_comp_unit): Update.
9980 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9981 (process_imported_unit_die): Update.
9982 (queue_and_load_dwo_tu): Update.
9983 (follow_die_offset): Update.
9984 (follow_die_sig_1): Update.
9985
9f47c707
SM
99862020-05-27 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9989 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9990 (read_call_site_scope): Assign per_objfile.
9991 (dwarf2_per_cu_data::objfile): Remove.
9992 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9993 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9994 dwarf2_per_objfile parameter.
9995 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9996 dwarf2_per_objfile parameter.
9997 (dwarf_expr_reg_to_entry_parameter): Add output
9998 dwarf2_per_objfile parameter.
9999 (locexpr_get_frame_base): Update.
10000 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10001 <push_dwarf_reg_entry_value>: Update.
10002 <call_site_to_target_addr>: Update.
10003 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10004 parameter.
10005 (value_of_dwarf_reg_entry): Update.
10006 (rw_pieced_value): Update.
10007 (indirect_synthetic_pointer): Update.
10008 (dwarf2_evaluate_property): Update.
10009 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10010 parameter.
10011 (locexpr_read_variable): Update.
10012 (locexpr_get_symbol_read_needs): Update.
10013 (loclist_read_variable): Update.
10014
14095eb3
SM
100152020-05-27 Simon Marchi <simon.marchi@efficios.com>
10016
10017 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10018 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10019 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10020 parameter.
10021 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10022 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10023 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10024 parameter.
10025 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10026 sect_variable_value): Add dwarf2_per_objfile parameter.
10027 (class dwarf_evaluate_loc_desc) <dwarf_call,
10028 dwarf_variable_value>: Update.
10029 (fetch_const_value_from_synthetic_pointer): Add
10030 dwarf2_per_objfile parameter.
10031 (fetch_const_value_from_synthetic_pointer): Update.
10032 (coerced_pieced_ref): Update.
10033 (class symbol_needs_eval_context) <dwarf_call,
10034 dwarf_variable_value>: Update.
10035 (dwarf2_compile_expr_to_ax): Update.
10036
3c3cd3d4
SM
100372020-05-27 Simon Marchi <simon.marchi@efficios.com>
10038
10039 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10040 parameter.
10041 (dwarf2_evaluate_loc_desc_full): Update.
10042
82ca3f51
SM
100432020-05-27 Simon Marchi <simon.marchi@efficios.com>
10044
10045 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10046 parameter.
10047 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10048 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10049 dwarf2_per_objfile parameter.
10050 (decode_debug_loc_dwo_addresses): Likewise.
10051 (dwarf2_find_location_expression): Update.
10052 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10053 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10054 parameter.
10055 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10056 parameter.
10057 (locexpr_describe_location_1): Likewise.
10058 (locexpr_describe_location): Update.
10059
4b167ea1
SM
100602020-05-27 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10063 Remove.
10064 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10065 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10066 (dwarf2_compile_property_to_c): Update.
10067 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10068 use text offset from objfile.
10069 (locexpr_tracepoint_var_ref): Update.
10070 (locexpr_generate_c_location): Update.
10071 (loclist_describe_location): Update.
10072 (loclist_tracepoint_var_ref): Update.
10073 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10074 dwarf2_per_objfile parameter.
10075 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10076 use text offset from objfile.
10077 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10078
89b07335
SM
100792020-05-27 Simon Marchi <simon.marchi@efficios.com>
10080
10081 * dwarf2/expr.h (struct dwarf_expr_context)
10082 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10083 <offset>: Remove.
10084 <per_objfile>: New member.
10085 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10086 dwarf2_per_objfile parameter. Don't set offset, set
10087 per_objfile.
10088 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10089 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10090 a dwarf2_per_objfile object instead of an offset.
10091 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10092 constructor.
10093 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10094 to dwarf2_expr_executor constructor. Don't set offset.
10095 (dwarf2_fetch_cfa_info): Update.
10096 (struct dwarf2_frame_cache) <text_offset>: Remove.
10097 <per_objfile>: New field.
10098 (dwarf2_frame_cache): Update.
10099 (dwarf2_frame_prev_register): Update.
10100 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10101 <dwarf_evaluate_loc_desc>: Add constructor.
10102 (dwarf2_evaluate_loc_desc_full): Update.
10103 (dwarf2_locexpr_baton_eval): Update.
10104 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10105 Add constructor.
10106 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10107
293e7e51
SM
101082020-05-27 Simon Marchi <simon.marchi@efficios.com>
10109
10110 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10111 addr_sized_int_type>: Move to dwarf2_cu.
10112 <int_type>: Move to dwarf2_per_objfile.
10113 (struct dwarf2_per_objfile) <int_type>: Move here.
10114 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10115 addr_sized_int_type>: Move here.
10116 (read_func_scope): Update.
10117 (read_array_type): Update.
10118 (read_tag_string_type): Update.
10119 (attr_to_dynamic_prop): Update.
10120 (dwarf2_per_cu_data::int_type): Rename to...
10121 (dwarf2_per_objfile::int_type): ... this.
10122 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10123 (dwarf2_cu::addr_sized_int_type): ... this.
10124 (read_subrange_type): Update.
10125 (dwarf2_per_cu_data::addr_type): Rename to...
10126 (dwarf2_cu::addr_type): ... this.
10127 (set_die_type): Update.
10128
64874a40
SM
101292020-05-27 Simon Marchi <simon.marchi@efficios.com>
10130
10131 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10132 data through per_cu->cu.
10133
4ab09049
SM
101342020-05-27 Simon Marchi <simon.marchi@efficios.com>
10135
10136 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10137 dwarf2_per_cu_data parameter fo dwarf2_cu.
10138 (lookup_dwo_type_unit): Likewise.
10139 (read_cutu_die_from_dwo): Likewise.
10140 (lookup_dwo_unit): Likewise.
10141 (open_and_init_dwo_file): Likewise.
10142 (lookup_dwo_cutu): Likewise.
10143 (lookup_dwo_comp_unit): Likewise.
10144 (lookup_dwo_type_unit): Likewise.
10145 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10146 (cutu_reader::cutu_reader): Update.
10147
47b14e86
SM
101482020-05-27 Simon Marchi <simon.marchi@efficios.com>
10149
10150 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10151 parameter.
10152 (process_full_type_unit): Likewise.
10153 (process_queue): Update.
10154
43182c09
SM
101552020-05-27 Simon Marchi <simon.marchi@efficios.com>
10156
10157 * dwarf2/read.c (recursively_compute_inclusions): Add
10158 dwarf2_per_objfile parameter.
10159 (compute_compunit_symtab_includes): Likewise.
10160 (process_cu_includes): Update.
10161
7aa104c4
SM
101622020-05-27 Simon Marchi <simon.marchi@efficios.com>
10163
10164 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10165 parameter.
10166 (create_type_unit_group): Update.
10167 (process_psymtab_comp_unit_reader): Update.
10168 (build_type_psymtabs_reader): Update.
10169
e3beb21d
SM
101702020-05-27 Simon Marchi <simon.marchi@efficios.com>
10171
10172 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10173 object through m_this_cu->cu.
10174
d460f660
SM
101752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10176
10177 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10178 the info parameter.
10179 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10180
ab432490
SM
101812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10182
10183 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10184 per_objfile parameter.
10185 (load_full_type_unit): Add per_objfile parameter.
10186 (read_signatured_type): Likewise.
10187 (load_full_comp_unit): Likewise.
10188 (load_cu): Likewise.
10189 (dw2_do_instantiate_symtab): Likewise.
10190 (dw2_get_file_names): Likewise.
10191 (dw2_map_symtabs_matching_filename): Update.
10192 (dw_expand_symtabs_matching_file_matcher): Update.
10193 (dw2_map_symbol_filenames): Update.
10194 (process_psymtab_comp_unit): Add per_objfile parameter.
10195 (build_type_psymtabs_1): Update.
10196 (process_skeletonless_type_unit): Update.
10197 (dwarf2_build_psymtabs_hard): Update.
10198 (load_partial_comp_unit): Add per_objfile parameter.
10199 (scan_partial_symbols): Update.
10200 (load_full_comp_unit): Add per_objfile parameter.
10201 (process_imported_unit_die): Update.
10202 (create_cus_hash_table): Update.
10203 (find_partial_die): Update.
10204 (dwarf2_read_addr_index): Update.
10205 (follow_die_offset): Update.
10206 (dwarf2_fetch_die_loc_sect_off): Update.
10207 (dwarf2_fetch_constant_bytes): Update.
10208 (dwarf2_fetch_die_type_sect_off): Update.
10209 (follow_die_sig_1): Update.
10210 (load_full_type_unit): Add per_objfile parameter.
10211 (read_signatured_type): Likewise.
10212
313bad1b
SM
102132020-05-27 Simon Marchi <simon.marchi@efficios.com>
10214
10215 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10216 of objfile_name.
10217
c3699833
SM
102182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10219
10220 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10221 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10222 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10223 field.
10224 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10225 (create_cus_from_index): Update.
10226 (dwarf2_read_gdb_index): Update.
10227 (create_cus_from_debug_names): Update.
10228 (dwarf2_read_debug_names): Update.
10229 (get_abbrev_section_for_cu): Update.
10230 (create_all_comp_units): Update.
10231 (read_attribute_value): Update.
10232 (get_debug_line_section): Update.
10233 * dwarf2/index-cache.c (index_cache::store): Update.
10234 * dwarf2/index-write.c (save_gdb_index_command): Update.
10235 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10236
1859c670
SM
102372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10238
10239 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10240 member.
10241 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10242 dwarf2_per_cu_data::per_bfd.
10243 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10244 (create_type_unit_group): Likewise.
10245 (queue_comp_unit): Remove reference to
10246 per_cu->dwarf2_per_objfile.
10247 (maybe_queue_comp_unit): Likewise.
10248 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10249 (create_cus_hash_table): Assign new field.
10250
5e22e966
SM
102512020-05-27 Simon Marchi <simon.marchi@efficios.com>
10252
10253 * dwarf2/read.c: Replace
10254 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10255 dwarf2_cu->per_objfile throughout.
10256
97a1449a
SM
102572020-05-27 Simon Marchi <simon.marchi@efficios.com>
10258
10259 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10260 parameter, don't use per_cu->dwarf2_per_objfile.
10261 (dw2_instantiate_symtab): Likewise.
10262 (dw2_find_last_source_symtab): Update.
10263 (dw2_map_expand_apply): Update.
10264 (dw2_lookup_symbol): Update.
10265 (dw2_expand_symtabs_for_function): Update.
10266 (dw2_expand_all_symtabs): Update.
10267 (dw2_expand_symtabs_with_fullname): Update.
10268 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10269 don't use per_cu->dwarf2_per_objfile.
10270 (dw2_expand_marked_cus): Update.
10271 (dw2_find_pc_sect_compunit_symtab): Update.
10272 (dw2_debug_names_lookup_symbol): Update.
10273 (dw2_debug_names_expand_symtabs_for_function): Update.
10274 (dw2_debug_names_map_matching_symbols): Update.
10275 (dwarf2_psymtab::expand_psymtab): Update.
10276
9e021579
SM
102772020-05-27 Simon Marchi <simon.marchi@efficios.com>
10278
10279 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10280 <per_objfile>: New member.
10281 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10282 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10283 call to dwarf2_cu.
10284 (cutu_reader::cutu_reader): Update.
10285 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10286
ae090bdb
SM
102872020-05-27 Simon Marchi <simon.marchi@efficios.com>
10288
10289 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10290 struct dwarf2_per_objfile.
10291 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10292 dwarf2_per_bfd.
10293 * dwarf2/read.c (set_die_type): Update.
10294 (get_die_type_at_offset): Update.
10295
af758d11
SM
102962020-05-27 Tom Tromey <tom@tromey.com>
10297 Simon Marchi <simon.marchi@efficios.com>
10298
10299 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10300 method.
10301 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10302 get_symtab, set_symtab>: New methods.
10303 <m_symtabs>: New field.
10304 (struct dwarf2_psymtab): Derive from partial_symtab.
10305 <readin_p, get_compunit_symtab>: Declare methods.
10306 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10307 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10308 New methods.
10309 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10310 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10311 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10312 (dw2_symtab_iter_next, dw2_print_stats)
10313 (dw2_expand_symtabs_with_fullname)
10314 (dw2_expand_symtabs_matching_one)
10315 (dw_expand_symtabs_matching_file_matcher)
10316 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10317 (dw2_debug_names_iterator::next)
10318 (dw2_debug_names_map_matching_symbols)
10319 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10320 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10321 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10322 New methods.
10323 (get_compunit_symtab, process_full_comp_unit)
10324 (process_full_type_unit): Update.
10325 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10326
5989a64e
SM
103272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10328
10329 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10330 then introduce a new dwarf2_per_objfile type.
10331 <read_line_string>: Move to the new dwarf2_per_objfile type.
10332 <objfile>: Likewise.
10333 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10334 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10335 dwarf2_per_objfile->per_bfd.
10336 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10337 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10338 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10339 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10340 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10341 (dwarf2_per_objfile::locate_sections): Rename to...
10342 (dwarf2_per_bfd::locate_sections): ... this.
10343 (dwarf2_per_objfile::get_cutu): Rename to...
10344 (dwarf2_per_bfd::get_cutu): ... this.
10345 (dwarf2_per_objfile::get_cu): Rename to...
10346 (dwarf2_per_bfd::get_cu): ... this.
10347 (dwarf2_per_objfile::get_tu): Rename to...
10348 (dwarf2_per_bfd::get_tu): ... this.
10349 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10350 (dwarf2_per_bfd::allocate_per_cu): ... this.
10351 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10352 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10353 (get_gdb_index_contents_ftype): Change parameter from
10354 dwarf2_per_objfile to dwarf2_per_bfd.
10355 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10356 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10357
a50264ba
TT
103582020-05-27 Tom Tromey <tom@tromey.com>
10359 Simon Marchi <simon.marchi@efficios.com>
10360
10361 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10362 (allocate_piece_closure): Set "per_objfile" member.
10363 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10364 (locexpr_describe_location, loclist_describe_location): Use new
10365 member.
10366 * dwarf2/read.c (read_call_site_scope)
10367 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10368 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10369 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10370 handle_data_member_location): Set per_objfile member.
10371 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10372 member.
10373 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10374
d3473f0c
TT
103752020-05-27 Tom Tromey <tom@tromey.com>
10376
10377 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10378 allocate_signatured_type>: Declare new methods.
10379 <m_num_psymtabs>: New member.
10380 (struct dwarf2_per_cu_data) <index>: New member.
10381 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10382 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10383 (create_cu_from_index_list): Use allocate_per_cu.
10384 (create_signatured_type_table_from_index)
10385 (create_signatured_type_table_from_debug_names)
10386 (create_debug_type_hash_table, add_type_unit)
10387 (read_comp_units_from_section): Use allocate_signatured_type.
10388
5717c425
TT
103892020-05-27 Tom Tromey <tom@tromey.com>
10390
10391 * psymtab.c (partial_map_expand_apply)
10392 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10393 (psym_lookup_global_symbol_language)
10394 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10395 (psym_print_stats, psym_expand_symtabs_for_function)
10396 (psym_map_symbol_filenames, psym_map_matching_symbols)
10397 (psym_expand_symtabs_matching)
10398 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10399 (maintenance_check_psymtabs): Update.
10400 * psympriv.h (struct partial_symtab) <readin_p,
10401 get_compunit_symtab>: Add objfile parameter.
10402 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10403 Likewise.
10404 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10405 get_compunit_symtab>: Likewise.
10406 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10407
45940949
TT
104082020-05-27 Tom Tromey <tom@tromey.com>
10409
10410 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10411 member.
10412 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10413 (create_cu_from_index_list)
10414 (create_signatured_type_table_from_index)
10415 (create_signatured_type_table_from_debug_names)
10416 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10417 (dwarf2_create_include_psymtab)
10418 (create_debug_type_hash_table, add_type_unit)
10419 (create_type_unit_group, read_comp_units_from_section)
10420 (dwarf2_compute_name, create_cus_hash_table)
10421 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10422 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10423 obstack.
10424 (dw2_get_real_path): Likewise. Change argument to
10425 dwarf2_per_objfile.
10426
f8c6d152
LM
104272020-05-27 Luis Machado <luis.machado@linaro.org>
10428
10429 PR tdep/26000
10430 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10431 for ldrd (immediate).
10432
e98d2e6d
PW
104332020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10434
10435 * command.h: Add comment giving the name of class_tui.
10436 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10437 create the fake command for the help for class_tui.
10438
53a47a3e
TT
104392020-05-26 Tom Tromey <tromey@adacore.com>
10440
10441 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10442 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10443 (val_atr): New function.
10444 (value_val_atr): Use it.
10445 * ada-valprint.c (print_optional_low_bound): Change low bound
10446 handling for enums.
10447 (val_print_packed_array_elements): Don't call discrete_position.
10448 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10449 discrete_position for enum types.
10450 * language.c (default_print_array_index): Change type.
10451 * language.h (struct language_defn) <la_print_array_index>: Add
10452 index_type parameter, change type of index_value.
10453 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10454 (default_print_array_index): Update.
10455 * valprint.c (maybe_print_array_index): Don't call
10456 value_from_longest. Update.
10457 (value_print_array_elements): Don't call discrete_position.
10458
0bc2354b
TT
104592020-05-26 Tom Tromey <tromey@adacore.com>
10460
10461 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10462 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10463
1218a4bf
CDA
104642020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10465
10466 PR gdb/13519
10467 * avr-tdep.c (avr_integer_to_address): Return data or code
10468 address accordingly to the second 'type' argument of the
10469 function.
10470
92651b1d
MW
104712020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10472
10473 * infcmd.c, inferior.h: (construct_inferior_arguments):
10474 Moved function from here to gdbsupport/common-inferior.{h,cc}
10475
0a4f5f8c
TT
104762020-05-23 Tom Tromey <tom@tromey.com>
10477
10478 Revert commit eca1f90c:
10479 * NEWS: Remove entry for completion styling.
10480 * completer.c (_rl_completion_prefix_display_length): Move
10481 declaration later.
10482 (gdb_fnprint): Revert.
10483 (gdb_display_match_list_1): Likewise.
10484 * cli/cli-style.c (completion_prefix_style)
10485 (completion_difference_style, completion_suffix_style): Remove.
10486 (_initialize_cli_style): Revert.
10487 * cli/cli-style.h (completion_prefix_style)
10488 (completion_difference_style, completion_suffix_style): Don't
10489 declare.
10490
e08bd6c5
PA
104912020-05-24 Pedro Alves <palves@redhat.com>
10492
10493 * symtab.c (completion_list_add_name): Return boolean indication
10494 of whether the symbol matched.
10495 (completion_list_add_symbol): Don't try to remove C++ aliases if
10496 the symbol didn't match in the first place.
10497 * symtab.h (completion_list_add_name): Return bool.
10498
ceacbf6e
SM
104992020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10500
10501 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10502 type::field.
10503
26f16254
JB
105042020-05-23 Joel Brobecker <brobecker@adacore.com>
10505
10506 GDB 9.2 released.
10507
eca1f90c
TT
105082020-05-23 Tom Tromey <tom@tromey.com>
10509
10510 * NEWS: Add entry for completion styling.
10511 * completer.c (_rl_completion_prefix_display_length): Move
10512 declaration earlier.
10513 (gdb_fnprint): Use completion_style.
10514 (gdb_display_match_list_1): Likewise.
10515 * cli/cli-style.c (completion_prefix_style)
10516 (completion_difference_style, completion_suffix_style): New
10517 globals.
10518 (_initialize_cli_style): Register new globals.
10519 * cli/cli-style.h (completion_prefix_style)
10520 (completion_difference_style, completion_suffix_style): Declare.
10521
51e2cfa2
PA
105222020-05-23 Pedro Alves <palves@redhat.com>
10523
10524 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10525 (parse_escape): Use ISDIGIT instead of isdigit.
10526 (puts_debug): Use gdb_isprint instead of isprint.
10527 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10528 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10529 ISSPACE instead of isspace.
10530 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10531 instead of isspace.
10532 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10533 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10534 instead of isxdigit and ISDIGIT instead of isdigit.
10535
80fc5e77
SM
105362020-05-22 Simon Marchi <simon.marchi@efficios.com>
10537
10538 * gdbtypes.h (struct type) <field>: New method.
10539 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10540 or type::field.
10541
3cabb6b0
SM
105422020-05-22 Simon Marchi <simon.marchi@efficios.com>
10543
10544 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10545 (TYPE_FIELDS): Use type::fields. Change all call sites that
10546 modify the propery to use type::set_fields instead.
10547
1f704f76
SM
105482020-05-22 Simon Marchi <simon.marchi@efficios.com>
10549
10550 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10551 type::num_fields instead.
10552
5e33d5f4
SM
105532020-05-22 Simon Marchi <simon.marchi@efficios.com>
10554
10555 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10556 methods.
10557 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10558 that modify the number of fields to use type::set_num_fields
10559 instead.
10560
9392ebb3
TT
105612020-05-22 Tom Tromey <tromey@adacore.com>
10562
10563 * compile/compile-object-load.h (munmap_list_free): Don't
10564 declare.
10565
7c13f4e8
AB
105662020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10567
10568 * annotate.c (annotate_source_line): Update return type, add call
10569 to update current symtab and line.
10570 * annotate.h (annotate_source_line): Update return type, and
10571 extend header comment.
10572 * source.c (info_line_command): Check annotation_level before
10573 calling annotate_source_line.
10574 * stack.c (print_frame_info): If calling annotate_source_line
10575 returns true, then don't print any other source line information.
10576
aa370940
SM
105772020-05-21 Simon Marchi <simon.marchi@efficios.com>
10578
10579 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10580
84d53fa9
SM
105812020-05-21 Simon Marchi <simon.marchi@efficios.com>
10582
10583 * coffread.c (patch_type): Remove NULL check before xfree.
10584 * corefile.c (set_gnutarget): Likewise.
10585 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10586 * exec.c (build_section_table): Likewise.
10587 * remote.c (remote_target::pass_signals): Likewise.
10588 * utils.c (n_spaces): Likewise.
10589 * cli/cli-script.c (document_command): Likewise.
10590 * i386-windows-tdep.c (core_process_module_section): Likewise.
10591 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10592
9d428aae
SM
105932020-05-20 Simon Marchi <simon.marchi@efficios.com>
10594
10595 * symfile.c (reread_symbols): Clear objfile's section_offsets
10596 vector and section indices, re-compute them by calling
10597 sym_offsets.
10598
250106a7
TT
105992020-05-20 Tom Tromey <tromey@adacore.com>
10600
10601 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10602 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10603
9a0bacfb
TV
106042020-05-20 Tom de Vries <tdevries@suse.de>
10605
10606 PR symtab/25833
10607 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10608
7b958a48
AM
106092020-05-20 Alan Modra <amodra@gmail.com>
10610
10611 PR 25993
10612 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10613 bfd_set_filename.
10614 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10615 passed to bfd_set_filename.
10616 * symfile-mem.c (add_vsyscall_page): Likewise for string
10617 passed to symbol_file_add_from_memory.
10618 (symbol_file_add_from_memory): Make name param a const char* and
10619 don't strdup.
10620
c7e97679
AM
106212020-05-20 Alan Modra <amodra@gmail.com>
10622
10623 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10624 rather than accessing bfd->filename directly.
10625 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10626 and use bfd_section_name.
10627 * dwarf2/frame.c (decode_frame_entry): Likewise.
10628 * exec.c (exec_set_section_address): Likewise.
10629 * solib-aix.c (solib_aix_bfd_open): Likewise.
10630 * stap-probe.c (get_stap_base_address): Likewise.
10631 * symfile.c (reread_symbols): Likewise.
10632
563c591b
TT
106332020-05-19 Tom Tromey <tromey@adacore.com>
10634
10635 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10636
f408d82c
SM
106372020-05-19 Simon Marchi <simon.marchi@efficios.com>
10638
10639 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10640
98c59b52
PA
106412020-05-19 Pedro Alves <palves@redhat.com>
10642
10643 * NEWS (set exec-file-mismatch): Adjust entry.
10644 * exec.c: Include "build-id.h".
10645 (validate_exec_file): Try to match build IDs instead of filenames.
10646 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10647 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10648 and pass down 'warn_if_slow'.
10649 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10650 gdb_bfd_open_closure to pass it down.
10651 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10652
4111f652
PA
106532020-05-19 Pedro Alves <palves@redhat.com>
10654
10655 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10656 * target.c (target_fileio_open_1): Rename to target_fileio_open
10657 and make extern. Use bool.
10658 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10659 (target_fileio_read_alloc_1): Adjust.
10660 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10661 (target_fileio_open_warn_if_slow): Delete declaration.
10662
ad80db5b
PA
106632020-05-19 Pedro Alves <palves@redhat.com>
10664
10665 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10666 Adjust all callers.
10667
1d6ce4d3
YS
106682020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10669
10670 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10671 whether disp is negative.
10672
9005fbbb
SM
106732020-05-19 Simon Marchi <simon.marchi@efficios.com>
10674
10675 * symfile.h (struct symfile_segment_data)
10676 <~symfile_segment_data>: Remove.
10677 <segment_info>: Change to std::vector.
10678 * symfile.c (default_symfile_segments): Update.
10679 * elfread.c (elf_symfile_segments): Update.
10680
68b888ff
SM
106812020-05-19 Simon Marchi <simon.marchi@efficios.com>
10682
10683 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10684 <segments>: New.
10685 <segment_bases, segment_sizes>: Remove.
10686 * symfile.c (default_symfile_segments): Update.
10687 * elfread.c (elf_symfile_segments): Update.
10688 * remote.c (remote_target::get_offsets): Update.
10689 * solib-target.c (solib_target_relocate_section_addresses):
10690 Update.
10691
62982abd
SM
106922020-05-19 Simon Marchi <simon.marchi@efficios.com>
10693
10694 * symfile.h (struct symfile_segment_data): Initialize fields.
10695 <~symfile_segment_data>: Add.
10696 (symfile_segment_data_up): New.
10697 (struct sym_fns) <sym_segments>: Return a
10698 symfile_segment_data_up.
10699 (default_symfile_segments): Return a symfile_segment_data_up.
10700 (free_symfile_segment_data): Remove.
10701 (get_symfile_segment_data): Return a symfile_segment_data_up.
10702 * symfile.c (default_symfile_segments): Likewise.
10703 (get_symfile_segment_data): Likewise.
10704 (free_symfile_segment_data): Remove.
10705 (symfile_find_segment_sections): Update.
10706 * elfread.c (elf_symfile_segments): Return a
10707 symfile_segment_data_up.
10708 * remote.c (remote_target::get_offsets): Update.
10709 * solib-target.c (solib_target_relocate_section_addresses):
10710 Update.
10711 * symfile-debug.c (debug_sym_segments): Return a
10712 symfile_segment_data_up.
10713
7f204339
RO
107142020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10715
e52a0f1b
RO
10716 PR build/25981
10717 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10718 Hardcode register numbers.
10719
7f204339
RO
10720 PR build/25981
10721 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10722 procfs_find_LDT_entry): Remove.
10723 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10724 procfs_find_LDT_entry): Remove.
10725 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10726 Remove.
10727
7f32a4d5
PA
107282020-05-17 Pedro Alves <palves@redhat.com>
10729 Andrew Burgess <andrew.burgess@embecosm.com>
10730 Keno Fischer <keno@juliacomputing.com>
10731
10732 PR gdb/25741
10733 * breakpoint.c (build_target_condition_list): Update comments.
10734 (build_target_command_list): Update comments and skip matching
10735 locations.
10736 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10737 a separate function. Simplify "set breakpoint auto-hw off"
10738 handling.
10739 (insert_breakpoints): Update comment.
10740 (tracepoint_locations_match): New parameter. For breakpoints,
10741 compare location types too, if the caller wants to.
10742 (handle_automatic_hardware_breakpoints): New functions.
10743 (bp_location_is_less_than): Also sort by location type and
10744 hardware breakpoint length.
10745 (update_global_location_list): Handle "set breakpoint auto-hw on"
10746 here.
10747 (update_breakpoint_locations): Ask breakpoint_locations_match to
10748 ignore location types.
10749
7d93a1e0
SM
107502020-05-16 Simon Marchi <simon.marchi@efficios.com>
10751
10752 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10753 type::name instead.
10754
d0e39ea2
SM
107552020-05-16 Simon Marchi <simon.marchi@efficios.com>
10756
10757 * gdbtypes.h (struct type) <name, set_name>: New methods.
10758 (TYPE_CODE): Use type::name. Change all call sites used to set
10759 the name to use type::set_name instead.
10760
2dab0c7b
TT
107612020-05-16 Tom Tromey <tom@tromey.com>
10762
10763 * top.c (quit_force): Update.
10764 * infrun.c (handle_no_resumed): Update.
10765 * top.h (all_uis): New function.
10766 (ALL_UIS): Remove.
10767
59f7bd8d
SM
107682020-05-16 Simon Marchi <simon.marchi@efficios.com>
10769
10770 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10771
9bf058f0
PA
107722020-05-16 Pedro Alves <palves@redhat.com>
10773
10774 * ia64-linux-nat.c
10775 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10776 Declare method.
10777 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10778
8f86ae1a
SM
107792020-05-15 Simon Marchi <simon.marchi@efficios.com>
10780
10781 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10782 (sparc64_adi_info): Likewise.
10783
d6bc0792
TT
107842020-05-15 Tom Tromey <tom@tromey.com>
10785
10786 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10787 block_objfile.
10788 (lookup_objfile_from_block): Remove.
10789 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10790 (lookup_global_symbol): Use block_objfile.
10791 * symtab.h (lookup_objfile_from_block): Don't declare.
10792 * printcmd.c (clear_dangling_display_expressions): Use
10793 block_objfile.
10794 * parse.c (operator_check_standard): Use block_objfile.
10795
8c14c3a3
TT
107962020-05-15 Tom Tromey <tom@tromey.com>
10797
10798 * language.c (language_alloc_type_symbol): Set
10799 SYMBOL_SECTION.
10800 * symtab.c (initialize_objfile_symbol): Remove.
10801 (allocate_symbol): Remove.
10802 (allocate_template_symbol): Remove.
10803 * dwarf2/read.c (fixup_go_packaging): Use "new".
10804 (new_symbol): Use "new".
10805 (read_variable): Don't call initialize_objfile_symbol. Use
10806 "new".
10807 (read_func_scope): Use "new".
10808 * xcoffread.c (process_xcoff_symbol): Don't call
10809 initialize_objfile_symbol.
10810 (SYMBOL_DUP): Remove.
10811 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10812 "new".
10813 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10814 (allocate_template_symbol): Don't declare.
10815 (struct symbol): Add copy constructor. Change defaults.
10816 * jit.c (finalize_symtab): Use "new".
10817 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10818 Use "new".
10819 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10820 (common_block_end): Use "new".
10821 * mdebugread.c (parse_symbol): Use "new".
10822 (new_symbol): Likewise.
10823
5b4a1a8d
PW
108242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10825
10826 * NEWS: Mention changes to help and apropos.
10827
57b4f16e
PW
108282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10829
10830 * command.h (enum command_class): Improve comments, document
10831 that class_alias is for user-defined aliases, give the class
10832 name for each class, remove unused class_xdb.
10833 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10834 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10835 by a precise class.
10836 * infcmd.c (_initialize_infcmd): Likewise.
10837 * reverse.c (_initialize_reverse): Likewise.
10838 * stack.c (_initialize_stack): Likewise.
10839 * symfile.c (_initialize_symfile): Likewise.
10840 * tracepoint.c (_initialize_tracepoint): Likewise.
10841
7c05caf7
PW
108422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10843
10844 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10845 when their aliased command is traversed.
10846 (help_cmd): Add fput_command_names_styled call to
10847 output command name and aliases when command has an alias.
10848
3b3aaacb
PW
108492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10850
10851 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10852 * cli/cli-decode.c (help_cmd_list): Declare as static,
10853 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10854 a command together with the command.
10855 (fput_command_name_styled, fput_command_names_styled): New functions.
10856 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10857 fput_command_name_styled.
10858 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10859 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10860
7aa1b46f
PW
108612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10862
10863 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10864 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10865 * command.h (cmd_show_list): Likewise.
10866 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10867 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10868
89bcba74
PW
108692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10870
10871 * unittests/command-def-selftests.c (traverse_command_structure):
10872 Verify all commands of a list have the same prefix command and
10873 that only the top cmdlist commands have a null prefix.
10874
3f4d92eb
PW
108752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10876
10877 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10878 as prefix, not one of its aliases.
10879 (set_cmd_prefix): Remove.
10880 (do_add_cmd): Centralize the setting of the prefix of a command, when
10881 command is defined after its full chain of prefix commands.
10882 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10883 (add_setshow_cmd_full): Likewise.
10884 (update_prefix_field_of_prefixed_commands): New function.
10885 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10886 update_prefix_field_of_prefixed_commands.
10887 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10888 addresses of remote_set_cmdlist and remote_show_cmdlist given
10889 as argument, not the address of an argument.
10890 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10891 * gdb/remote.c (_initialize_remote): Likewise.
10892
0605465f
PW
108932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10894
10895 * cli/cli-cmds.c (alias_command): Check for an existing alias
10896 using lookup_cmd_composition, as valid_command_p is too strict
10897 and forbids aliases that are the prefix of an existing alias
10898 or command.
10899 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10900 command is properly recognised as a valid command.
10901
58e6ac70
PW
109022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10903
10904 * unittests/help-doc-selftests.c: Rename to
10905 unittests/command-def-selftests.c
10906 * unittests/command-def-selftests.c (help_doc_tests): Update some
10907 comments.
10908 (command_structure_tests, traverse_command_structure): New namespace
10909 and function.
10910 (command_structure_invariants_tests): New function.
10911 (_initialize_command_def_selftests) Renamed from
10912 _initialize_help_doc_selftests, register command_structure_invariants
10913 selftest.
10914
a7b9ceb8
PW
109152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10916
10917 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10918 an alias of 'show'.
10919
b2188a06
JB
109202020-05-15 Joel Brobecker <brobecker@adacore.com>
10921
10922 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10923 ada_is_fixed_point_type. Update all callers.
10924 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10925 all callers.
10926 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10927 Update all callers.
10928 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10929 print_fixed_point_type. Update all callers.
10930 * ada-valprint.c (ada_value_print_num): Replace call to
10931 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10932
a51951c2
KB
109332020-05-14 Kevin Buettner <kevinb@redhat.com>
10934
10935 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10936 processors.
10937 (cpu_supports_bts): Add CV_AMD case.
10938
29d6859f
LM
109392020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10940 Simon Marchi <simon.marchi@efficios.com>
10941
10942 * infrun.c (stop_all_threads): Collect multiple wait events at
10943 each pass.
10944
78134374
SM
109452020-05-14 Simon Marchi <simon.marchi@efficios.com>
10946
10947 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10948 type::code instead.
10949
67607e24
SM
109502020-05-14 Simon Marchi <simon.marchi@efficios.com>
10951
10952 * gdbtypes.h (struct type) <code, set_code>: New methods.
10953 (TYPE_CODE): Use type::code. Change all call sites used to set
10954 the code to use type::set_code instead.
10955
a05575d3
TBA
109562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10957 Tom de Vries <tdevries@suse.de>
10958 Pedro Alves <palves@redhat.com>
10959
10960 PR threads/25478
10961 * infrun.c (stop_all_threads): Do NOT ignore
10962 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10963 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10964 received.
10965 (handle_no_resumed): Remove code handling a live inferior with no
10966 threads.
10967 * remote.c (has_single_non_exited_thread): New.
10968 (remote_target::update_thread_list): Do not delete a thread if is
10969 the last thread of the process.
10970 * thread.c (thread_select): Call delete_exited_threads instead of
10971 prune_threads.
10972
6ad82919
TBA
109732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10974
10975 * infrun.c (stop_all_threads): Enable/disable thread events of all
10976 targets. Move a debug message denoting the end of the function
10977 into the SCOPED_EXIT block.
10978
d890404b
TBA
109792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10980
10981 * process-stratum-target.h: Include <set>.
10982 (all_non_exited_process_targets, switch_to_target_no_thread): New
10983 function declarations.
10984 * process-stratum-target.c (all_non_exited_process_targets)
10985 (switch_to_target_no_thread): New function implementations.
10986
293b3ebc
TBA
109872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10988
10989 * infrun.c (handle_inferior_event): Extract out a piece of code
10990 into...
10991 (mark_non_executing_threads): ...this new function.
10992
7ca9b62a
TBA
109932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10994
10995 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10996 use.
10997
fc75c28b
TBA
109982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10999
11000 * regcache.c (regcache_read_pc_protected): New function
11001 implementation that returns 0 if the PC cannot read via
11002 'regcache_read_pc'.
11003 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11004 instead of 'regcache_read_pc'.
11005 (keep_going_pass_signal): Ditto.
11006
a89febbd
TT
110072020-05-13 Tom Tromey <tromey@adacore.com>
11008
11009 * ada-lang.c (align_value): Remove.
11010 (ada_template_to_fixed_record_type_1): Use align_up.
11011
f7e23710
TBA
110122020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11013
11014 * async-event.c: Update the copyright year.
11015 * async-event.h: Update the copyright year.
11016
02ff80c2
SM
110172020-05-12 Simon Marchi <simon.marchi@efficios.com>
11018
11019 * objfiles.h (is_addr_in_objfile,
11020 shared_objfile_contains_address_p): Return bool.
11021 * objfile.c (is_addr_in_objfile,
11022 shared_objfile_contains_address_p): Return bool.
11023
4fd6c7e8
TT
110242020-05-11 Tom Tromey <tromey@adacore.com>
11025
11026 * cli/cli-cmds.c (info_command): Restore.
11027 (_initialize_cli_cmds): Use add_prefix_command for "info".
11028 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11029
5eb68a39
TT
110302020-05-11 Tom Tromey <tromey@adacore.com>
11031
11032 * ada-lang.c (ada_value_primitive_field): Now public.
11033 * ada-lang.h (ada_value_primitive_field): Declare.
11034 * ada-valprint.c (print_field_values): Use
11035 ada_value_primitive_field for wrapper fields.
11036
7666722f
TV
110372020-05-11 Tom de Vries <tdevries@suse.de>
11038
11039 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11040 MODULE_DOMAIN.
11041
3ee6bb11
TV
110422020-05-11 Tom de Vries <tdevries@suse.de>
11043
11044 PR symtab/25941
11045 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11046 with length 0, if not gdb-produced.
11047 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11048
43434996
TV
110492020-05-09 Tom de Vries <tdevries@suse.de>
11050
11051 PR gdb/25955
11052 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11053 calculation.
11054
2f78cffc
TT
110552020-05-09 Tom Tromey <tom@tromey.com>
11056
11057 * top.c (server_command): Now bool.
11058 * top.h (server_command): Now bool.
11059
4f7bc5ed
TT
110602020-05-08 Tom Tromey <tromey@adacore.com>
11061
11062 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11063 already being processed.
11064
8be4b118
TT
110652020-05-08 Tom Tromey <tom@tromey.com>
11066
11067 * printcmd.c (struct display) <next>: Remove.
11068 <display>: New constructor.
11069 <exp_string>: Now a std::string.
11070 <enabled_p>: Now a bool.
11071 (display_number): Move definition earlier.
11072 (displays): Rename from display_chain. Now a std::vector.
11073 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11074 (display_command): Update.
11075 (do_one_display, disable_display)
11076 (enable_disable_display_command, do_enable_disable_display):
11077 Update.
11078 (free_display): Remove.
11079 (clear_displays): Rewrite.
11080 (delete_display): Update.
11081 (map_display_numbers): Use function_view. Remove "data"
11082 parameter. Update.
11083 (do_delete_display): Remove.
11084 (undisplay_command): Update.
11085 (do_one_display, do_displays, disable_display)
11086 (info_display_command): Update.
11087 (do_enable_disable_display): Remove.
11088 (enable_disable_display_command)
11089 (clear_dangling_display_expressions): Update.
11090
94c93c35
TT
110912020-05-08 Tom Tromey <tom@tromey.com>
11092
11093 * symtab.c (set_symbol_cache_size)
11094 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11095 (maintenance_print_symbol_cache_statistics): Update.
11096 * symmisc.c (print_symbol_bcache_statistics)
11097 (print_objfile_statistics, maintenance_print_objfiles)
11098 (maintenance_info_symtabs, maintenance_check_symtabs)
11099 (maintenance_expand_symtabs, maintenance_info_line_tables):
11100 Update.
11101 * symfile-debug.c (set_debug_symfile): Update.
11102 * source.c (forget_cached_source_info): Update.
11103 * python/python.c (gdbpy_progspaces): Update.
11104 * psymtab.c (maintenance_info_psymtabs): Update.
11105 * probe.c (parse_probes): Update.
11106 * linespec.c (iterate_over_all_matching_symtabs)
11107 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11108 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11109 * exec.c (exec_target::close): Update.
11110 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11111 * breakpoint.c (print_one_breakpoint_location)
11112 (create_longjmp_master_breakpoint)
11113 (create_std_terminate_master_breakpoint): Update.
11114 * progspace.c (program_spaces): Now a std::vector.
11115 (maybe_new_address_space): Update.
11116 (add_program_space): Remove.
11117 (program_space::program_space): Update.
11118 (remove_program_space): Update.
11119 (number_of_program_spaces): Remove.
11120 (print_program_space, update_address_spaces): Update.
11121 * progspace.h (program_spaces): Change type.
11122 (ALL_PSPACES): Remove.
11123 (number_of_program_spaces): Don't declare.
11124 (struct program_space) <next>: Remove.
11125
a1fd1ac9
TT
111262020-05-08 Tom Tromey <tom@tromey.com>
11127
11128 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11129 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11130 (enable_break): Update.
11131 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11132 (frv_fdpic_find_canonical_descriptor): Update.
11133 (frv_fetch_objfile_link_map): Update.
11134 * progspace.c (program_space::free_all_objfiles): Update.
11135 (program_space::solibs): New method.
11136 * progspace.h (struct program_space) <solibs>: New method.
11137 * solist.h (master_so_list): Don't declare.
11138 (ALL_SO_LIBS): Remove.
11139 * solib.h (so_list_head): Remove.
11140 (update_solib_list): Update comment.
11141 * solib.c (master_so_list): Remove.
11142 (solib_used, update_solib_list, solib_add)
11143 (info_sharedlibrary_command, clear_solib)
11144 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11145
38eae084
TT
111462020-05-08 Tom Tromey <tom@tromey.com>
11147
11148 * extension.c (extension_languages): Now a std::array.
11149 (ALL_EXTENSION_LANGUAGES): Remove.
11150 (get_ext_lang_defn, get_ext_lang_of_file)
11151 (eval_ext_lang_from_control_command): Update.
11152 (finish_ext_lang_initialization)
11153 (auto_load_ext_lang_scripts_for_objfile)
11154 (ext_lang_type_printers::ext_lang_type_printers)
11155 (apply_ext_lang_type_printers)
11156 (ext_lang_type_printers::~ext_lang_type_printers)
11157 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11158 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11159 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11160 (get_matching_xmethod_workers, ext_lang_colorize)
11161 (ext_lang_before_prompt): Update.
11162 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11163
596dc4ad
TT
111642020-05-08 Tom Tromey <tom@tromey.com>
11165
11166 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11167 overload.
11168 <swap_string, m_string>: Remove.
11169 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11170 Update.
11171 * stabsread.c (define_symbol, read_type): Update.
11172 * linespec.c (find_linespec_symbols): Update.
11173 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11174 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11175 * dbxread.c (read_dbx_symtab): Update.
11176 * cp-support.h (cp_canonicalize_string_full)
11177 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11178 Return unique_xmalloc_ptr.
11179 * cp-support.c (inspect_type): Update.
11180 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11181 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11182 Likewise.
11183 * c-typeprint.c (print_name_maybe_canonical): Update.
11184 * break-catch-throw.c (check_status_exception_catchpoint):
11185 Update.
11186
bf4cb9be
TV
111872020-05-08 Tom de Vries <tdevries@suse.de>
11188
11189 * infrun.c (follow_fork): Copy current_line and current_symtab to
11190 child thread.
11191
a1b68f28
SM
111922020-05-07 Simon Marchi <simon.marchi@efficios.com>
11193
11194 * async-event.c (struct async_signal_handler, struct
11195 async_event_handler): Reformat, remove typedef.
11196
98d48915
SM
111972020-05-07 Simon Marchi <simon.marchi@efficios.com>
11198
11199 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11200 access thistype->main_type->dyn_prop_list directly.
11201
7aa91313
SM
112022020-05-07 Simon Marchi <simon.marchi@efficios.com>
11203
11204 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11205 (remove_dyn_prop): Remove. Update all users to use
11206 type::remove_dyn_prop.
11207 * gdbtypes.c (remove_dyn_prop): Rename to...
11208 (type::remove_dyn_prop): ... this.
11209
5c54719c
SM
112102020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11211
11212 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11213 (add_dyn_prop): Remove. Update all users to use
11214 type::add_dyn_prop.
11215 * gdbtypes.c (add_dyn_prop): Rename to...
11216 (type::add_dyn_prop): ... this.
11217
24e99c6c
SM
112182020-05-07 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11221 (get_dyn_prop): Remove. Update all users to use
11222 type::dyn_prop.
11223 * gdbtypes.c (get_dyn_prop): Rename to...
11224 (type::dyn_prop): ... this.
11225
0d4bf016
SM
112262020-05-06 Simon Marchi <simon.marchi@efficios.com>
11227
11228 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11229
ac4a4f1c
SM
112302020-05-06 Simon Marchi <simon.marchi@efficios.com>
11231
11232 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11233 instruction, skip it if it's there.
11234
a3bbacc1
SM
112352020-05-05 Simon Marchi <simon.marchi@efficios.com>
11236
11237 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11238
c3236f84
SM
112392020-05-04 Simon Marchi <simon.marchi@efficios.com>
11240
11241 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11242 * gdbtypes.c (recursive_dump_type): Remove use of
11243 TYPE_INCOMPLETE.
11244
3b6acaee
TT
112452020-05-03 Tom Tromey <tom@tromey.com>
11246
11247 * breakpoint.c (catch_command, tcatch_command): Remove.
11248 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11249 add_show_prefix_cmd.
11250 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11251 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11252 Remove.
11253 (add_internal_problem_command): Use add_basic_prefix_cmd,
11254 add_show_prefix_cmd.
11255 * mips-tdep.c (set_mipsfpu_command): Remove.
11256 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11257 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11258 (_initialize_index_cache): Use add_basic_prefix_cmd.
11259 * memattr.c (dummy_cmd): Remove.
11260 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11261 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11262 (_initialize_tui_win): Use add_basic_prefix_cmd,
11263 add_show_prefix_cmd.
11264 * cli/cli-logging.c (set_logging_command): Remove.
11265 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11266 add_show_prefix_cmd.
11267 (show_logging_command): Remove.
11268 * target.c (target_command): Remove.
11269 (add_target): Use add_basic_prefix_cmd.
11270
a51119cd
HD
112712020-05-02 Hannes Domani <ssbssa@yahoo.de>
11272
11273 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11274
652fc23a 112752020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11276
652fc23a
PW
11277 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11278 info_command.
11279
117539e6
KR
112802020-04-30 Kamil Rytarowski <n54@gmx.com>
11281
11282 * nbsd-nat.c (nbsd_enable_proc_events)
11283 (nbsd_nat_target::post_startup_inferior): Add.
11284 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11285 (nbsd_nat_target::update_thread_list): Rewrite.
11286 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11287 "PTRACE_LWP_CREATE".
11288 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11289
102e38eb 112902020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11291
102e38eb
PW
11292 * stack.c (_initialize_stack): Remove duplicated creation
11293 of "frame" command and "f" alias.
11294
ee9d1e5f
HD
112952020-04-30 Hannes Domani <ssbssa@yahoo.de>
11296
11297 PR gdb/18706
11298 * gdbtypes.c (check_typedef): Calculate size of array of
11299 stubbed type.
11300
627c7fb8
HD
113012020-04-30 Hannes Domani <ssbssa@yahoo.de>
11302
11303 PR gdb/15559
11304 * i386-tdep.c (i386_push_dummy_call): Call
11305 i386_thiscall_push_dummy_call.
11306 (i386_thiscall_push_dummy_call): New function.
11307 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11308 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11309 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11310
ffc2844e
SM
113112020-04-29 Simon Marchi <simon.marchi@efficios.com>
11312
11313 * gdbarch.sh (do_read): Add shellcheck disable directive for
11314 warning SC2162.
11315
1207375d
SM
113162020-04-29 Simon Marchi <simon.marchi@efficios.com>
11317
11318 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11319 "referenced but not assigned" warning.
11320
9fdb2916
SM
113212020-04-29 Simon Marchi <simon.marchi@efficios.com>
11322
11323 * gdbarch.sh: Remove code that sets fallbackdefault.
11324
759cea5e
SM
113252020-04-29 Simon Marchi <simon.marchi@efficios.com>
11326
11327 * gdbarch.sh: Use shell operators && and || instead of
11328 -a and -o.
11329
cb02ab24
SM
113302020-04-29 Simon Marchi <simon.marchi@efficios.com>
11331
11332 * gdbarch.sh: Use $(...) instead of `...`.
11333
a6fc5ffc
SM
113342020-04-29 Simon Marchi <simon.marchi@efficios.com>
11335
11336 * gdbarch.sh: Use double quotes around variables.
11337
8d113d13
SM
113382020-04-29 Simon Marchi <simon.marchi@efficios.com>
11339
11340 * gdbarch.sh: Use %s with printf, instead of variables in the
11341 format string.
11342
ed6acedd
TT
113432020-04-29 Tom Tromey <tromey@adacore.com>
11344
11345 PR ada/25875:
11346 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11347 type fields here.
11348 (read_enumeration_type): Call
11349 update_enumeration_type_from_children later. Update comments.
11350 (process_enumeration_scope): Don't create type fields.
11351
b68b1b58
KR
113522020-04-29 Kamil Rytarowski <n54@gmx.com>
11353
11354 * nbsd-tdep.c: Include "xml-syscall.h".
11355 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11356
f94b2e03
KR
113572020-04-29 Kamil Rytarowski <n54@gmx.com>
11358
11359 * nbsd-nat.c: Include "sys/wait.h".
11360 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11361 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11362 (nbsd_nat_target::remove_exec_catchpoint)
11363 (nbsd_nat_target::set_syscall_catchpoint): Add.
11364 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11365 (nbsd_nat_target::insert_exec_catchpoint)
11366 (nbsd_nat_target::remove_exec_catchpoint)
11367 (nbsd_nat_target::set_syscall_catchpoint): Add.
11368 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11369 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11370 `nbsd_get_syscall_number'.
11371
fc49bc72
TT
113722020-04-29 Tom Tromey <tom@tromey.com>
11373
11374 * stack.c (print_block_frame_labels): Remove.
11375
d642b692
HD
113762020-04-29 Hannes Domani <ssbssa@yahoo.de>
11377
11378 PR gdb/17320
11379 * ada-valprint.c (val_print_packed_array_elements): Move array
11380 end bracket to new line.
11381 (ada_val_print_string): Remove extra spaces before first array
11382 element.
11383 * c-valprint.c (c_value_print_array): Likewise.
11384 * m2-valprint.c (m2_print_array_contents): Likewise.
11385 (m2_value_print_inner): Likewise.
11386 * p-valprint.c (pascal_value_print_inner): Likewise.
11387 * valprint.c (generic_val_print_array): Likewise.
11388 (value_print_array_elements): Move first array element and array
11389 end bracket to new line.
11390
ea90f227
TV
113912020-04-29 Tom de Vries <tdevries@suse.de>
11392
11393 PR symtab/25889
11394 * linespec.c (find_method): Fix ix calculation.
11395
4498ef4f
KR
113962020-04-28 Kamil Rytarowski <n54@gmx.com>
11397
11398 * syscalls/update-netbsd.sh: New file.
11399 * syscalls/netbsd.xml: Regenerate.
11400 * data-directory/Makefile.in: Register `netbsd.xml' in
11401 `SYSCALLS_FILES'.
11402
a55e30b5
SM
114032020-04-28 Simon Marchi <simon.marchi@efficios.com>
11404
11405 * syscalls/update-freebsd.sh: Add double quotes.
11406
2b2fbab8
TT
114072020-04-28 Tom Tromey <tom@tromey.com>
11408
11409 * NEWS: Update.
11410 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11411 (cmdpy_init): Allow class_tui.
11412
a65189c9
TV
114132020-04-28 Mark Williams <mark@myosotissp.com>
11414
11415 PR gdb/24480
11416 * dwarf2read.c: Add missing assingments to list_in_scope when
11417 start_symtab was already called.
11418
1b95cdb7
SM
114192020-04-28 Simon Marchi <simon.marchi@efficios.com>
11420
11421 PR gdb/25881
11422 * dwarf2/read.c (offset_map_type): Use
11423 gdb:hash_enum<sect_offset> as hash function.
11424
15cd93d0
TV
114252020-04-28 Tom de Vries <tdevries@suse.de>
11426
11427 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11428 with DW_AT_signature.
11429
1eb39914
SM
114302020-04-27 Simon Marchi <simon.marchi@efficios.com>
11431
11432 * configure.ac: Remove check for fs_base/gs_base in
11433 user_regs_struct.
11434 * configure: Re-generate.
11435 * config.in: Re-generate.
11436 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11437 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11438 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11439
991a3e2e
LM
114402020-04-27 Luis Machado <luis.machado@linaro.org>
11441
11442 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11443 problematic inline frame unwinding situation.
11444 * frame.c (frame_id_computed_p): New function.
11445 * frame.h (frame_id_computed_p): New prototype.
11446
361ba0e8
TT
114472020-04-26 Tom Tromey <tom@tromey.com>
11448
11449 * command.h (enum command_class) <class_pseudo>: Remove.
11450
bc3609fd
PW
114512020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11452
11453 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11454 and whitespace.
11455
b9771db7
KR
114562020-04-25 Kamil Rytarowski <n54@gmx.com>
11457
ec16513e
SM
11458 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11459 `PT_GET_PROCESS_STATE' block.
b9771db7 11460
7151c1af
TT
114612020-04-24 Tom Tromey <tom@tromey.com>
11462
11463 * symtab.h (symbol_get_demangled_name): Don't declare.
11464 * symtab.c (symbol_get_demangled_name): Remove.
11465 (general_symbol_info::natural_name)
11466 (general_symbol_info::demangled_name): Update.
11467
906bb4c5
TT
114682020-04-24 Tom Tromey <tom@tromey.com>
11469
11470 PR rust/25025:
11471 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11472
bcfe6157
TT
114732020-04-24 Tom Tromey <tom@tromey.com>
11474
11475 PR symtab/12707:
11476 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11477 exists.
11478 (new_symbol): Likewise.
11479 * compile/compile-object-load.c (get_out_value_type): Use
11480 symbol_matches_search_name.
11481
f049a313
TT
114822020-04-24 Tom Tromey <tom@tromey.com>
11483
11484 * dwarf2/read.c (add_partial_symbol): Do not call
11485 compute_and_set_names.
11486
76e288d1
TT
114872020-04-24 Tom Tromey <tom@tromey.com>
11488
11489 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11490 overload.
11491
2467f4f6
TT
114922020-04-24 Tom Tromey <tom@tromey.com>
11493
11494 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11495 (add_psymbol_to_list): New overload. Make old overload call new
11496 one.
11497 * psympriv.h (add_psymbol_to_list): New overload.
11498
e61108c9
TT
114992020-04-24 Tom Tromey <tom@tromey.com>
11500
11501 * dwarf2/read.c (partial_die_info::read) <case
11502 DW_AT_linkage_name>: Use value_as_string.
11503 (dwarf2_string_attr): Use value_as_string.
11504 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11505 method.
11506 * dwarf2/attribute.c (attribute::value_as_string): New method.
11507
8c87a452
TT
115082020-04-24 Tom Tromey <tom@tromey.com>
11509
11510 * symtab.c (general_symbol_info::natural_name)
11511 (general_symbol_info::demangled_name): Check for language_rust.
11512
787de330
TT
115132020-04-24 Tom Tromey <tom@tromey.com>
11514
11515 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11516 (dwarf2_physname): ... from here.
11517 (partial_die_info::read): Add Rust "{" hack.
11518
ff985671
TT
115192020-04-24 Tom Tromey <tom@tromey.com>
11520
11521 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11522 method.
11523 (symbol_set_demangled_name): Don't declare.
11524 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11525 symbol_set_demangled_name.
11526 (general_symbol_info::set_language)
11527 (general_symbol_info::compute_and_set_names): Update.
11528 * minsyms.c (minimal_symbol_reader::install): Update.
11529 * dwarf2/read.c (new_symbol): Update.
11530
1acda803
TT
115312020-04-24 Tom Tromey <tromey@adacore.com>
11532
11533 PR python/23662:
11534 * python/py-type.c (convert_field): Handle
11535 FIELD_LOC_KIND_DWARF_BLOCK.
11536 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11537 (typy_get_dynamic): Nw function.
11538 (type_object_getset): Add "dynamic".
11539 * NEWS: Add entry.
11540
d656f129
TT
115412020-04-24 Tom Tromey <tromey@adacore.com>
11542
11543 * ada-typeprint.c (print_choices, print_variant_part)
11544 (print_record_field_types_dynamic): New functions.
11545 (print_record_field_types): Use print_record_field_types_dynamic.
11546
7d79de9a
TT
115472020-04-24 Tom Tromey <tromey@adacore.com>
11548
11549 * dwarf2/read.c (handle_data_member_location): New overload.
11550 (dwarf2_add_field): Use it.
11551 (decode_locdesc): Add "computed" parameter. Update comment.
11552 * gdbtypes.c (is_dynamic_type_internal): Also look for
11553 FIELD_LOC_KIND_DWARF_BLOCK.
11554 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11555 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11556 virtual base classes.
11557 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11558 FIELD_LOC_KIND_DWARF_BLOCK.
11559
f8e89861
TT
115602020-04-24 Tom Tromey <tromey@adacore.com>
11561
11562 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11563 * gdbtypes.c (is_dynamic_type_internal): Check
11564 TYPE_HAS_DYNAMIC_LENGTH.
11565 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11566 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11567 New macros.
11568 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11569 constant.
11570
9c6a1327
TT
115712020-04-24 Tom Tromey <tromey@adacore.com>
11572
11573 * dwarf2/read.c (struct variant_field): Rewrite.
11574 (struct variant_part_builder): New.
11575 (struct nextfield): Remove "variant" field. Add "offset".
11576 (struct field_info): Add "current_variant_part" and
11577 "variant_parts".
11578 (alloc_discriminant_info): Remove.
11579 (alloc_rust_variant): New function.
11580 (quirk_rust_enum): Update.
11581 (dwarf2_add_field): Set "offset" member. Don't handle
11582 DW_TAG_variant_part.
11583 (offset_map_type): New typedef.
11584 (convert_variant_range, create_one_variant)
11585 (create_one_variant_part, create_variant_parts)
11586 (add_variant_property): New functions.
11587 (dwarf2_attach_fields_to_type): Call add_variant_property.
11588 (read_structure_type): Don't handle DW_TAG_variant_part.
11589 (handle_variant_part, handle_variant): New functions.
11590 (handle_struct_member_die): Use them.
11591 (process_structure_scope): Don't handle variant parts.
11592 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11593 (struct discriminant_info): Remove.
11594 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11595 (struct main_type) <flag_discriminated_union>: Remove.
11596 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11597 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11598 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11599 Update.
11600 * valops.c (value_union_variant): Remove.
11601 * value.h (value_union_variant): Don't declare.
11602
b249d2c2
TT
116032020-04-24 Tom Tromey <tromey@adacore.com>
11604
11605 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11606 (ada_value_primitive_packed_val): Update.
11607 * ada-valprint.c (ada_value_print_1): Update.
11608 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11609 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11610 just an address. Use evaluate_for_locexpr_baton.
11611 (dwarf2_evaluate_property): Update.
11612 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11613 array_view.
11614 * findvar.c (default_read_var_value): Update.
11615 * gdbtypes.c (compute_variant_fields_inner)
11616 (resolve_dynamic_type_internal): Update.
11617 (resolve_dynamic_type): Change type of valaddr parameter.
11618 * gdbtypes.h (resolve_dynamic_type): Update.
11619 * valarith.c (value_subscripted_rvalue): Update.
11620 * value.c (value_from_contents_and_address): Update.
11621
61122aa9
TT
116222020-04-24 Tom Tromey <tromey@adacore.com>
11623
11624 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11625 "push_initial_value" parameter.
11626 (dwarf2_evaluate_property): Likewise.
11627 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11628
ef83a141
TT
116292020-04-24 Tom Tromey <tromey@adacore.com>
11630
11631 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11632 (variant::matches, compute_variant_fields_recurse)
11633 (compute_variant_fields_inner, compute_variant_fields): New
11634 functions.
11635 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11636 Use resolved_type after type is made.
11637 (operator==): Add new cases.
11638 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11639 (struct discriminant_range, struct variant, struct variant_part):
11640 New.
11641 (union dynamic_prop_data) <variant_parts, original_type>: New
11642 members.
11643 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11644 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11645 constants.
11646 * value.c (unpack_bits_as_long): Now public.
11647 * value.h (unpack_bits_as_long): Declare.
11648
675127ec
TT
116492020-04-24 Tom Tromey <tromey@adacore.com>
11650
11651 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11652 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11653
9852ceef
HD
116542020-04-24 Hannes Domani <ssbssa@yahoo.de>
11655
11656 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11657
7632c6ce
KR
116582020-04-24 Kamil Rytarowski <n54@gmx.com>
11659
11660 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11661 (remove_fork_catchpoint, post_startup_inferior)
11662 (post_attach): Move...
11663 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11664 (remove_fork_catchpoint, post_startup_inferior)
11665 (post_attach): ...here.
11666 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11667 (remove_fork_catchpoint, post_startup_inferior)
11668 (post_attach): Move...
11669 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11670 (remove_fork_catchpoint, post_startup_inferior)
11671 (post_attach): ...here.
11672
7be2bb4f
TT
116732020-04-24 Tom Tromey <tromey@adacore.com>
11674
11675 * nat/windows-nat.h (struct windows_thread_info)
11676 <pc_adjusted>: New member.
11677 * windows-nat.c (windows_fetch_one_register): Check
11678 pc_adjusted.
11679 (windows_nat_target::get_windows_debug_event)
11680 (windows_nat_target::wait): Set pc_adjusted.
11681
f80cb3b4
TV
116822020-04-24 Tom de Vries <tdevries@suse.de>
11683
11684 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11685 Run gdb-add-index inside temp dir.
11686
29514b87
TT
116872020-04-23 Tom Tromey <tromey@adacore.com>
11688
11689 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11690 in loop.
11691
5939967b
LM
116922020-04-23 Luis Machado <luis.machado@linaro.org>
11693
11694 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11695 get_frame_register instead of gdbarch_unwind_pc.
11696
70bc38f5
TV
116972020-04-23 Tom de Vries <tdevries@suse.de>
11698
11699 * symtab.c (lookup_global_symbol): Prefer def over decl.
11700
de82891c
TV
117012020-04-23 Tom de Vries <tdevries@suse.de>
11702
11703 PR symtab/25807
11704 * block.c (best_symbol, better_symbol): Promote to external.
11705 * block.h (best_symbol, better_symbol): Declare.
11706 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11707 decl.
11708
ecc6c606
TT
117092020-04-23 Tom Tromey <tromey@adacore.com>
11710
11711 PR ada/25837:
11712 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11713 "const char *", not a "const std::string &".
11714 <name_and_matcher::operator==>: Update.
11715 * unittests/lookup_name_info-selftests.c: Change type of
11716 "result".
11717
740480b8
TT
117182020-04-23 Tom Tromey <tom@tromey.com>
11719
11720 * inferior.h (iterate_over_inferiors): Don't declare.
11721 * inferior.c (iterate_over_inferiors): Remove.
11722 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11723 Remove.
11724 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11725 use iterate_over_inferiors.
11726 (darwin_resume_inferior_it)
11727 (struct resume_inferior_threads_param)
11728 (darwin_resume_inferior_threads_it): Remove.
11729 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11730
ae3ab1f0
TV
117312020-04-23 Tom de Vries <tdevries@suse.de>
11732
11733 * blockframe.c (find_pc_partial_function): Use
11734 find_pc_sect_compunit_symtab rather than
11735 objfile->sf->qf->find_pc_sect_compunit_symtab.
11736
317d2668
TV
117372020-04-22 Tom de Vries <tdevries@suse.de>
11738
11739 PR symtab/25764
11740 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11741 in psymtabs.
11742
eea9e357
TV
117432020-04-22 Tom de Vries <tdevries@suse.de>
11744
11745 PR symtab/25801
11746 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11747 symtabs.
11748
3d5afab3
TV
117492020-04-22 Tom de Vries <tdevries@suse.de>
11750
11751 PR symtab/25700
11752 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11753 CU if already created.
11754
d43b7a2d
TBA
117552020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11756
11757 * infrun.c (displaced_step_fixup): Switch to the event_thread
11758 before calling displaced_step_restore, not after.
11759
d89edf9b
MM
117602020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11761
11762 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11763 its inferior is not recorded by us.
11764 (record_btrace_target_open): Replace call to
11765 all_non_exited_threads () with call to current_inferior
11766 ()->non_exited_threads ().
11767 (record_btrace_target::stop_recording): Likewise.
11768 (record_btrace_target::close): Likewise.
11769 (record_btrace_target::wait): Likewise.
11770 (record_btrace_target::record_stop_replaying): Likewise.
11771
5897fd49
MM
117722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11773
11774 * btrace.c (btrace_enable): Throw an error on double enables and
11775 when enabling recording fails.
11776 (btrace_disable): Throw an error if the thread is not recorded.
11777
1a476b6d
MM
117782020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11779
11780 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11781 request if we do not have a thread_info.
11782
4778a5f8
TV
117832020-04-21 Tom de Vries <tdevries@suse.de>
11784
11785 PR gdb/25471
11786 * thread.c
11787 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11788 exception in get_frame_id.
11789
0fa7617d
TT
117902020-04-20 Tom Tromey <tromey@adacore.com>
11791
11792 * python/python.c (struct gdbpy_event): Mark move constructor as
11793 noexcept.
11794 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11795 constructor as noexcept.
11796 * completer.h (struct completion_result): Mark move constructor as
11797 noexcept.
11798 * completer.c (completion_result::completion_result): Use
11799 initialization style. Don't call reset_match_list.
11800
ad23bda0
MS
118012020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11802
11803 * MAINTAINERS (Write After Approval): Add myself.
11804
45e1f031
TT
118052020-04-18 Tom Tromey <tom@tromey.com>
11806
11807 * windows-tdep.c (init_w32_command_list)
11808 (w32_prefix_command_valid): Restore.
11809 (_initialize_windows_tdep): Call init_w32_command_list.
11810
08feed99
TT
118112020-04-18 Tom Tromey <tom@tromey.com>
11812
11813 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11814 * value.c (value_fn_field): Update.
11815 * valops.c (find_function_in_inferior)
11816 (value_allocate_space_in_inferior): Update.
11817 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11818 Update.
11819 * tui/tui-source.c (tui_source_window::set_contents): Update.
11820 * symtab.c (lookup_global_or_static_symbol)
11821 (find_function_start_sal_1, skip_prologue_sal)
11822 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11823 * symmisc.c (dump_msymbols, dump_symtab_1)
11824 (maintenance_print_one_line_table): Update.
11825 * symfile.c (init_entry_point_info, section_is_mapped)
11826 (list_overlays_command, simple_read_overlay_table)
11827 (simple_overlay_update_1): Update.
11828 * stap-probe.c (handle_stap_probe): Update.
11829 * stabsread.c (dbx_init_float_type, define_symbol)
11830 (read_one_struct_field, read_enum_type, read_range_type): Update.
11831 * source.c (info_line_command): Update.
11832 * python/python.c (gdbpy_source_objfile_script)
11833 (gdbpy_execute_objfile_script): Update.
11834 * python/py-type.c (save_objfile_types): Update.
11835 * python/py-objfile.c (py_free_objfile): Update.
11836 * python/py-inferior.c (python_new_objfile): Update.
11837 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11838 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11839 (maintenance_check_psymtabs): Update.
11840 * printcmd.c (info_address_command): Update.
11841 * objfiles.h (struct objfile) <arch>: New method, from
11842 get_objfile_arch.
11843 (get_objfile_arch): Don't declare.
11844 * objfiles.c (get_objfile_arch): Remove.
11845 (filter_overlapping_sections): Update.
11846 * minsyms.c (msymbol_is_function): Update.
11847 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11848 (output_nondebug_symbol): Update.
11849 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11850 (mdebug_expand_psymtab): Update.
11851 * machoread.c (macho_add_oso_symfile): Update.
11852 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11853 Update.
11854 * linux-fork.c (checkpoint_command): Update.
11855 * linespec.c (convert_linespec_to_sals): Update.
11856 * jit.c (finalize_symtab): Update.
11857 * infrun.c (insert_exception_resume_from_probe): Update.
11858 * ia64-tdep.c (ia64_find_unwind_table): Update.
11859 * hppa-tdep.c (internalize_unwinds): Update.
11860 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11861 Update.
11862 * gcore.c (call_target_sbrk): Update.
11863 * elfread.c (record_minimal_symbol, elf_symtab_read)
11864 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11865 (elf_gnu_ifunc_resolve_by_got): Update.
11866 * dwarf2/read.c (create_addrmap_from_index)
11867 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11868 (read_debug_names_from_section)
11869 (process_psymtab_comp_unit_reader, add_partial_symbol)
11870 (add_partial_subprogram, process_full_comp_unit)
11871 (read_file_scope, read_func_scope, read_lexical_block_scope)
11872 (read_call_site_scope, dwarf2_ranges_read)
11873 (dwarf2_record_block_ranges, dwarf2_add_field)
11874 (mark_common_block_symbol_computed, read_tag_pointer_type)
11875 (read_tag_string_type, dwarf2_init_float_type)
11876 (dwarf2_init_complex_target_type, read_base_type)
11877 (partial_die_info::read, partial_die_info::read)
11878 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11879 (dwarf2_fetch_die_loc_sect_off): Update.
11880 * dwarf2/loc.c (dwarf2_find_location_expression)
11881 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11882 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11883 (dwarf2_loc_desc_get_symbol_read_needs)
11884 (locexpr_describe_location_piece, locexpr_describe_location_1)
11885 (loclist_describe_location): Update.
11886 * dwarf2/index-write.c (write_debug_names): Update.
11887 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11888 * dtrace-probe.c (dtrace_process_dof): Update.
11889 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11890 (process_one_symbol): Update.
11891 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11892 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11893 (coff_read_enum_type): Update.
11894 * cli/cli-cmds.c (edit_command, list_command): Update.
11895 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11896 * breakpoint.c (create_overlay_event_breakpoint)
11897 (create_longjmp_master_breakpoint)
11898 (create_std_terminate_master_breakpoint)
11899 (create_exception_master_breakpoint, get_sal_arch): Update.
11900 * block.c (block_gdbarch): Update.
11901 * annotate.c (annotate_source_line): Update.
11902
0743fc83
TT
119032020-04-17 Tom Tromey <tromey@adacore.com>
11904
11905 * auto-load.c (show_auto_load_cmd): Remove.
11906 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11907 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11908 (maintenance_print_arc_command): Remove.
11909 * tui/tui-win.c (tui_command): Remove.
11910 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11911 * tui/tui-layout.c (tui_layout_command): Remove.
11912 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11913 * python/python.c (user_set_python, user_show_python): Remove.
11914 (_initialize_python): Use add_basic_prefix_cmd,
11915 add_show_prefix_cmd.
11916 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11917 (install_gdb_commands): Use add_basic_prefix_cmd,
11918 add_show_prefix_cmd.
11919 (info_guile_command): Remove.
11920 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11921 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11922 add_show_prefix_cmd.
11923 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11924 Remove do_set and do_show parameters.
11925 * cli/cli-style.c (set_style, show_style): Remove.
11926 (_initialize_cli_style): Use add_basic_prefix_cmd,
11927 add_show_prefix_cmd.
11928 (cli_style_option::add_setshow_commands): Remove do_set and
11929 do_show parameters.
11930 (cli_style_option::add_setshow_commands): Use
11931 add_basic_prefix_cmd, add_show_prefix_cmd.
11932 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11933 (set_style_name): Remove.
11934 * cli/cli-dump.c (dump_command, append_command): Remove.
11935 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11936 (tekhex_dump_command, binary_dump_command)
11937 (binary_append_command): Remove.
11938 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11939 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11940 (init_w32_command_list): Remove; move into ...
11941 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11942 * valprint.c (set_print, show_print, set_print_raw)
11943 (show_print_raw): Remove.
11944 (_initialize_valprint): Use add_basic_prefix_cmd,
11945 add_show_prefix_cmd.
11946 * typeprint.c (set_print_type, show_print_type): Remove.
11947 (_initialize_typeprint): Use add_basic_prefix_cmd,
11948 add_show_prefix_cmd.
11949 * record.c (set_record_command, show_record_command): Remove.
11950 (_initialize_record): Use add_basic_prefix_cmd,
11951 add_show_prefix_cmd.
11952 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11953 add_show_prefix_cmd.
11954 (info_command, show_command, set_debug, show_debug): Remove.
11955 * top.h (set_history, show_history): Don't declare.
11956 * top.c (set_history, show_history): Remove.
11957 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11958 (unset_tdesc_cmd): Remove.
11959 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11960 add_show_prefix_cmd.
11961 * symtab.c (info_module_command): Remove.
11962 (_initialize_symtab): Use add_basic_prefix_cmd.
11963 * symfile.c (overlay_command): Remove.
11964 (_initialize_symfile): Use add_basic_prefix_cmd.
11965 * sparc64-tdep.c (info_adi_command): Remove.
11966 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11967 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11968 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11969 add_show_prefix_cmd.
11970 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11971 (_initialize_serial): Use add_basic_prefix_cmd,
11972 add_show_prefix_cmd.
11973 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11974 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11975 add_show_prefix_cmd.
11976 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11977 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11978 add_show_prefix_cmd.
11979 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11980 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11981 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11982 add_show_prefix_cmd.
11983 * remote.c (remote_command, set_remote_cmd): Remove.
11984 (_initialize_remote): Use add_basic_prefix_cmd.
11985 * record-full.c (set_record_full_command)
11986 (show_record_full_command): Remove.
11987 (_initialize_record_full): Use add_basic_prefix_cmd,
11988 add_show_prefix_cmd.
11989 * record-btrace.c (cmd_set_record_btrace)
11990 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11991 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11992 (cmd_show_record_btrace_pt): Remove.
11993 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11994 add_show_prefix_cmd.
11995 * ravenscar-thread.c (set_ravenscar_command)
11996 (show_ravenscar_command): Remove.
11997 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11998 add_show_prefix_cmd.
11999 * mips-tdep.c (show_mips_command, set_mips_command)
12000 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12001 add_show_prefix_cmd.
12002 * maint.c (maintenance_command, maintenance_info_command)
12003 (maintenance_check_command, maintenance_print_command)
12004 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12005 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12006 add_show_prefix_cmd.
12007 (show_per_command_cmd): Remove.
12008 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12009 Remove.
12010 (maintenance_show_test_settings_cmd): Remove.
12011 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12012 add_show_prefix_cmd.
12013 * maint-test-options.c (maintenance_test_options_command):
12014 Remove.
12015 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12016 * macrocmd.c (macro_command): Remove
12017 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12018 * language.c (set_check, show_check): Remove.
12019 (_initialize_language): Use add_basic_prefix_cmd,
12020 add_show_prefix_cmd.
12021 * infcmd.c (unset_command): Remove.
12022 (_initialize_infcmd): Use add_basic_prefix_cmd.
12023 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12024 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12025 add_show_prefix_cmd.
12026 * go32-nat.c (go32_info_dos_command): Remove.
12027 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12028 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12029 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12030 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12031 (_initialize_frame): Use add_basic_prefix_cmd,
12032 add_show_prefix_cmd.
12033 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12034 (_initialize_dcache): Use add_basic_prefix_cmd,
12035 add_show_prefix_cmd.
12036 * cp-support.c (maint_cplus_command): Remove.
12037 (_initialize_cp_support): Use add_basic_prefix_cmd.
12038 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12039 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12040 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12041 add_basic_prefix_cmd, add_show_prefix_cmd.
12042 * breakpoint.c (save_command): Remove.
12043 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12044 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12045 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12046 add_show_prefix_cmd.
12047 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12048 (set_ada_command, show_ada_command): Remove.
12049 (_initialize_ada_language): Use add_basic_prefix_cmd,
12050 add_show_prefix_cmd.
12051 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12052
3557f442
KR
120532020-04-16 Kamil Rytarowski <n54@gmx.com>
12054
12055 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12056 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12057
16197208
SM
120582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12059
12060 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12061 warning messages.
12062
00ac85d3
SM
120632020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12064
12065 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12066 import table is not at beginning of .idata section.
12067
381ce63f
PA
120682020-04-16 Pedro Alves <palves@redhat.com>
12069
12070 * inferior.c (delete_inferior): Use delete operator directly
12071 instead of delete_program_space.
12072 * progspace.c (add_program_space): New, factored out from
12073 program_space::program_space.
12074 (remove_program_space): New, factored out from
12075 delete_program_space.
12076 (program_space::program_space): Remove intro comment. Rewrite.
12077 (program_space::~program_space): Remove intro comment. Call
12078 remove_program_space.
12079 (delete_program_space): Delete.
12080 * progspace.h (program_space::program_space): Make explicit. Move
12081 intro comment here, adjusted.
12082 (program_space::~program_space): Move intro comment here,
12083 adjusted.
12084 (delete_program_space): Remove.
12085
a010605f
TT
120862020-04-16 Tom Tromey <tromey@adacore.com>
12087
12088 * windows-nat.c (windows_nat::handle_access_violation): New
12089 function.
12090 * nat/windows-nat.h (handle_access_violation): Declare.
12091 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12092 windows-nat.c. Call handle_access_violation.
12093
efba5c23
TV
120942020-04-16 Tom de Vries <tdevries@suse.de>
12095
12096 PR symtab/25791
12097 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12098 CUs without psymtab.
12099
97ed802d
KB
121002020-04-16 Kevin Buettner <kevinb@redhat.com>
12101
12102 * python/python.c (do_start_initialization): Don't call
12103 PyEval_InitThreads for Python 3.9 and beyond.
12104
c7d64809
KR
121052020-04-15 Kamil Rytarowski <n54@gmx.com>
12106
12107 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12108 thread functions.
12109 (obsd_nat_target::wait): Likewise.
12110
ce127a96
TT
121112020-04-15 Tom Tromey <tromey@adacore.com>
12112
12113 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12114 (DEBUG_EXCEPT): Use debug_printf.
12115
99f1bc6a
AB
121162020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12117
12118 * completer.c (class completion_tracker::completion_hash_entry)
12119 <hash_name>: New member function.
12120 (completion_tracker::discard_completions): New callback to hash a
12121 completion_hash_entry, pass this to htab_create_alloc.
12122
a0e9b532
JT
121232016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12124
12125 * windows-nat.c (windows_make_so): Warn rather than stopping with
12126 an error if realpath() fails.
12127
06ca5dd4
KR
121282020-04-14 Kamil Rytarowski <n54@gmx.com>
12129
12130 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12131 (nbsd_nat_target::info_proc): Add do_status.
12132
194d088f
TV
121332020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12134 Tom de Vries <tdevries@suse.de>
12135
12136 PR symtab/25718
12137 * psympriv.h (struct partial_symtab::read_symtab)
12138 (struct partial_symtab::expand_psymtab)
12139 (struct partial_symtab::read_dependencies): Update comments.
12140 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12141 read_symtab for includer.
12142 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12143 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12144 (struct dwarf2_include_psymtab::m_readin): Remove.
12145 (struct dwarf2_include_psymtab::includer): New member function.
12146 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12147
c1a66c06
TV
121482020-04-14 Tom de Vries <tdevries@suse.de>
12149
12150 PR symtab/25720
12151 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12152 with NULL symbol_matcher and lookup_name.
12153 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12154 and lookup_name.
12155 * dwarf2/read.c (dw2_expand_symtabs_matching)
12156 (dw2_debug_names_expand_symtabs_matching): Same.
12157 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12158 Make lookup_name a pointer. Update comment.
12159 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12160 lookup_name being a pointer.
12161 * symfile.c (expand_symtabs_matching): Same.
12162 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12163 * linespec.c (iterate_over_all_matching_symtabs): Same.
12164
400b5eca
TT
121652020-04-13 Tom Tromey <tom@tromey.com>
12166
12167 * run-on-main-thread.c: Update include.
12168 * unittests/main-thread-selftests.c: Update include.
12169 * tui/tui-win.c: Update include.
12170 * tui/tui-io.c: Update include.
12171 * tui/tui-interp.c: Update include.
12172 * tui/tui-hooks.c: Update include.
12173 * top.h: Update include.
12174 * top.c: Update include.
12175 * ser-base.c: Update include.
12176 * remote.c: Update include.
12177 * remote-notif.c: Update include.
12178 * remote-fileio.c: Update include.
12179 * record-full.c: Update include.
12180 * record-btrace.c: Update include.
12181 * python/python.c: Update include.
12182 * posix-hdep.c: Update include.
12183 * mingw-hdep.c: Update include.
12184 * mi/mi-main.c: Update include.
12185 * mi/mi-interp.c: Update include.
12186 * main.c: Update include.
12187 * linux-nat.c: Update include.
12188 * interps.c: Update include.
12189 * infrun.c: Update include.
12190 * inf-loop.c: Update include.
12191 * event-top.c: Update include.
12192 * event-loop.c: Move to ../gdbsupport/.
12193 * event-loop.h: Move to ../gdbsupport/.
12194 * async-event.h: Update include.
12195 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12196
93b54c8e
TT
121972020-04-13 Tom Tromey <tom@tromey.com>
12198
12199 * tui/tui-win.c: Include async-event.h.
12200 * remote.c: Include async-event.h.
12201 * remote-notif.c: Include async-event.h.
12202 * record-full.c: Include async-event.h.
12203 * record-btrace.c: Include async-event.h.
12204 * infrun.c: Include async-event.h.
12205 * event-top.c: Include async-event.h.
12206 * event-loop.h: Move some declarations to async-event.h.
12207 * event-loop.c: Don't include ser-event.h or top.h. Move some
12208 code to async-event.c.
12209 * async-event.h: New file.
12210 * async-event.c: New file.
12211 * Makefile.in (COMMON_SFILES): Add async-event.c.
12212 (HFILES_NO_SRCDIR): Add async-event.h.
12213
c1cd3163
TT
122142020-04-13 Tom Tromey <tom@tromey.com>
12215
12216 * utils.c (flush_streams): New function.
12217 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12218
29f2bf4f
TT
122192020-04-13 Tom Tromey <tom@tromey.com>
12220
12221 * event-loop.c (handle_file_event): Use warning, not
12222 printf_unfiltered.
12223
98029d02
TT
122242020-04-13 Tom Tromey <tom@tromey.com>
12225
12226 * event-loop.c: Include <chrono>.
12227
06cc9596
TT
122282020-04-13 Tom Tromey <tom@tromey.com>
12229
12230 * gdb_select.h: Move to ../gdbsupport/.
12231 * event-loop.c: Update include path.
12232 * top.c: Update include path.
12233 * ser-base.c: Update include path.
12234 * ui-file.c: Update include path.
12235 * ser-tcp.c: Update include path.
12236 * guile/scm-ports.c: Update include path.
12237 * posix-hdep.c: Update include path.
12238 * ser-unix.c: Update include path.
12239 * gdb_usleep.c: Update include path.
12240 * mingw-hdep.c: Update include path.
12241 * inflow.c: Update include path.
12242 * infrun.c: Update include path.
12243 * event-top.c: Update include path.
12244
8ae8e197
TT
122452020-04-13 Tom Tromey <tom@tromey.com>
12246
12247 * configure: Rebuild.
12248 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12249
58cf28e8
TT
122502020-04-13 Tom Tromey <tom@tromey.com>
12251
12252 * event-loop.h (start_event_loop): Don't declare.
12253 * event-loop.c (start_event_loop): Move...
12254 * main.c (start_event_loop): ...here. Now static.
12255
b7f999ae
SDJ
122562020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12257
12258 * MAINTAINERS: Update my email address.
12259
1085dfd4
KR
122602020-04-12 Kamil Rytarowski <n54@gmx.com>
12261
12262 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12263 IP_ALL.
12264
49d1d1f5
KR
122652020-04-12 Kamil Rytarowski <n54@gmx.com>
12266
12267 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12268 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12269
b4848d2a
KR
122702020-04-12 Kamil Rytarowski <n54@gmx.com>
12271
12272 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12273 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12274
51c133d5
KR
122752020-04-12 Kamil Rytarowski <n54@gmx.com>
12276
12277 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12278
54b8cbd0
KR
122792020-04-11 Kamil Rytarowski <n54@gmx.com>
12280
12281 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12282 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12283 (nbsd_nat_target::info_proc): New functions.
12284 * nbsd-nat.c (kinfo_get_vmmap): New function.
12285 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12286 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12287 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12288 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12289 functions.
12290 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12291 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12292 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12293 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12294 (KINFO_VME_FLAG_GROWS_DOWN): New.
12295
cf83625d
AS
122962020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12297
12298 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12299 bit shift.
12300
0c4311ab
TT
123012020-04-10 Tom Tromey <tromey@adacore.com>
12302
12303 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12304
3e65b3e9
TT
123052020-04-10 Tom Tromey <tromey@adacore.com>
12306
12307 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12308 separate debug files.
12309
13302e95
HD
123102020-04-10 Hannes Domani <ssbssa@yahoo.de>
12311
12312 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12313 Move to...
12314 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12315 ... here.
12316 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12317 Check for STATUS_WX86_BREAKPOINT.
12318 (windows_nat_target::wait): Same.
12319
bdfc1e8a
TV
123202020-04-10 Tom de Vries <tdevries@suse.de>
12321
12322 PR cli/25808
12323 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12324
f4460aec
SM
123252020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12326
12327 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12328 (Write After Approval): Remove Tom de Vries.
12329
a25198bb
BE
123302020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12331
12332 revert partially:
12333 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12334
aac66a4c
SM
12335 * buildsym.c (record_line): Fix undefined behavior and preserve
12336 lines at eof.
a25198bb 12337
206c98a6
KR
123382020-04-09 Kamil Rytarowski <n54@gmx.com>
12339
12340 * auxv.h (svr4_auxv_parse): New.
12341 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12342 and generic_auxv_parse.
12343 (svr4_auxv_parse): Add.
12344 * obsd-tdep.c: Include "auxv.h".
12345 (obsd_auxv_parse): Remove.
12346 (obsd_init_abi): Remove comment.
12347 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12348 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12349 * nbsd-tdep.c: Include "auxv.h".
12350 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12351
71fbdbaf
TT
123522020-04-08 Tom Tromey <tromey@adacore.com>
12353
12354 * nat/windows-nat.h (last_wait_event): Don't declare.
12355 (wait_for_debug_event): Update comment.
12356 * nat/windows-nat.c (last_wait_event): Now static.
12357
2c1d95e8
TT
123582020-04-08 Tom Tromey <tromey@adacore.com>
12359
12360 * windows-nat.c (wait_for_debug_event): Move to
12361 nat/windows-nat.c.
12362 * nat/windows-nat.h (wait_for_debug_event): Declare.
12363 * nat/windows-nat.c (wait_for_debug_event): Move from
12364 windows-nat.c. No longer static.
12365
d2977bc4
TT
123662020-04-08 Tom Tromey <tromey@adacore.com>
12367
12368 * windows-nat.c (get_windows_debug_event): Use
12369 fetch_pending_stop.
12370 * nat/windows-nat.h (fetch_pending_stop): Declare.
12371 * nat/windows-nat.c (fetch_pending_stop): New function.
12372
e758e19c
TT
123732020-04-08 Tom Tromey <tromey@adacore.com>
12374
12375 * windows-nat.c (windows_continue): Use matching_pending_stop and
12376 continue_last_debug_event.
12377 * nat/windows-nat.h (matching_pending_stop)
12378 (continue_last_debug_event): Declare.
12379 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12380 (matching_pending_stop, continue_last_debug_event): New
12381 functions.
12382
8d30e395
TT
123832020-04-08 Tom Tromey <tromey@adacore.com>
12384
12385 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12386 (handle_exception_result): Move to nat/windows-nat.h.
12387 (DEBUG_EXCEPTION_SIMPLE): Remove.
12388 (windows_nat::handle_ms_vc_exception): New function.
12389 (handle_exception): Move to nat/windows-nat.c.
12390 (get_windows_debug_event): Update.
12391 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12392 nat/windows-nat.c.
12393 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12394 (handle_exception_result): Move from windows-nat.c.
12395 (handle_exception): Declare.
12396 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12397 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12398 windows-nat.c.
12399
29de418d
TT
124002020-04-08 Tom Tromey <tromey@adacore.com>
12401
12402 * windows-nat.c (exception_count, event_count): Remove.
12403 (handle_exception, get_windows_debug_event)
12404 (do_initial_windows_stuff): Update.
12405
a816ba18
TT
124062020-04-08 Tom Tromey <tromey@adacore.com>
12407
12408 * windows-nat.c (windows_nat::handle_load_dll)
12409 (windows_nat::handle_unload_dll): Rename. No longer static.
12410 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12411 Declare.
12412
a00caa12
TT
124132020-04-08 Tom Tromey <tromey@adacore.com>
12414
12415 * complaints.h (stop_whining): Declare at top-level.
12416 (complaint): Don't declare stop_whining.
12417
d41b524f
TT
124182020-04-08 Tom Tromey <tromey@adacore.com>
12419
12420 * windows-nat.c (windows_nat::handle_output_debug_string):
12421 Rename. No longer static.
12422 * nat/windows-nat.h (handle_output_debug_string): Declare.
12423
3c76026d
TT
124242020-04-08 Tom Tromey <tromey@adacore.com>
12425
12426 * windows-nat.c (current_process_handle, current_process_id)
12427 (main_thread_id, last_sig, current_event, last_wait_event)
12428 (current_windows_thread, desired_stop_thread_id, pending_stops)
12429 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12430 (display_selectors, fake_create_process)
12431 (get_windows_debug_event): Update.
12432 * nat/windows-nat.h (current_process_handle, current_process_id)
12433 (main_thread_id, last_sig, current_event, last_wait_event)
12434 (current_windows_thread, desired_stop_thread_id, pending_stops)
12435 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12436 * nat/windows-nat.c (current_process_handle, current_process_id)
12437 (main_thread_id, last_sig, current_event, last_wait_event)
12438 (current_windows_thread, desired_stop_thread_id, pending_stops)
12439 (siginfo_er): New globals. Move from windows-nat.c.
12440
9d8679cc
TT
124412020-04-08 Tom Tromey <tromey@adacore.com>
12442
12443 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12444 (handle_load_dll): Update.
12445 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12446
28688adf
TT
124472020-04-08 Tom Tromey <tromey@adacore.com>
12448
12449 * windows-nat.c (enum thread_disposition_type): Move to
12450 nat/windows-nat.h.
12451 (windows_nat::thread_rec): Rename from thread_rec. No longer
12452 static.
12453 (windows_add_thread, windows_nat_target::fetch_registers)
12454 (windows_nat_target::store_registers, handle_exception)
12455 (windows_nat_target::resume, get_windows_debug_event)
12456 (windows_nat_target::get_tib_address)
12457 (windows_nat_target::thread_name)
12458 (windows_nat_target::thread_alive): Update.
12459 * nat/windows-nat.h (enum thread_disposition_type): Move from
12460 windows-nat.c.
12461 (thread_rec): Declare.
12462
4834dad0
TT
124632020-04-08 Tom Tromey <tromey@adacore.com>
12464
12465 * windows-nat.c: Add "using namespace".
12466 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12467 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12468
65bafd5b
TT
124692020-04-08 Tom Tromey <tromey@adacore.com>
12470
12471 * nat/windows-nat.h (struct windows_thread_info): Declare
12472 destructor.
12473 * nat/windows-nat.c (~windows_thread_info): New.
12474
0a4afda3
TT
124752020-04-08 Tom Tromey <tromey@adacore.com>
12476
12477 PR gdb/22992
12478 * windows-nat.c (current_event): Update comment.
12479 (last_wait_event, desired_stop_thread_id): New globals.
12480 (struct pending_stop): New.
12481 (pending_stops): New global.
12482 (windows_nat_target) <stopped_by_sw_breakpoint>
12483 <supports_stopped_by_sw_breakpoint>: New methods.
12484 (windows_fetch_one_register): Add assertions. Adjust PC.
12485 (windows_continue): Handle pending stops. Suspend other threads
12486 when stepping. Use last_wait_event
12487 (wait_for_debug_event): New function.
12488 (get_windows_debug_event): Use wait_for_debug_event. Handle
12489 pending stops. Queue spurious stops.
12490 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12491 (windows_nat_target::kill): Use wait_for_debug_event.
12492 * nat/windows-nat.h (struct windows_thread_info)
12493 <stopped_at_software_breakpoint>: New field.
12494 * nat/windows-nat.c (windows_thread_info::resume): Clear
12495 stopped_at_software_breakpoint.
12496
8e61ebec
TT
124972020-04-08 Tom Tromey <tromey@adacore.com>
12498
12499 * windows-nat.c (enum thread_disposition_type): New.
12500 (thread_rec): Replace "get_context" parameter with "disposition";
12501 change type.
12502 (windows_add_thread, windows_nat_target::fetch_registers)
12503 (windows_nat_target::store_registers, handle_exception)
12504 (windows_nat_target::resume, get_windows_debug_event)
12505 (windows_nat_target::get_tib_address)
12506 (windows_nat_target::thread_name)
12507 (windows_nat_target::thread_alive): Update.
12508
98a03287
TT
125092020-04-08 Tom Tromey <tromey@adacore.com>
12510
12511 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12512 (windows_continue): Use windows_continue::resume.
12513 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12514 resume>: Declare new methods.
12515 * nat/windows-nat.c: New file.
12516 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12517
7c7411bc
TT
125182020-04-08 Tom Tromey <tromey@adacore.com>
12519
12520 * windows-nat.c (windows_add_thread, windows_delete_thread)
12521 (windows_nat_target::fetch_registers)
12522 (windows_nat_target::store_registers, fake_create_process)
12523 (windows_nat_target::resume, windows_nat_target::resume)
12524 (get_windows_debug_event, windows_nat_target::wait)
12525 (windows_nat_target::pid_to_str)
12526 (windows_nat_target::get_tib_address)
12527 (windows_nat_target::get_ada_task_ptid)
12528 (windows_nat_target::thread_name)
12529 (windows_nat_target::thread_alive): Use lwp, not tid.
12530
2950fdf7
TT
125312020-04-08 Tom Tromey <tromey@adacore.com>
12532
12533 * windows-nat.c (handle_exception)
12534 (windows_nat_target::thread_name): Update.
12535 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12536 <name>: Now unique_xmalloc_ptr.
12537
62fe396b
TT
125382020-04-08 Tom Tromey <tromey@adacore.com>
12539
12540 * windows-nat.c (thread_rec)
12541 (windows_nat_target::fetch_registers): Update.
12542 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12543 Update comment.
12544 <debug_registers_changed, reload_context>: Now bool.
12545
e9534bd2
TT
125462020-04-08 Tom Tromey <tromey@adacore.com>
12547
12548 * windows-nat.c (windows_add_thread): Use new.
12549 (windows_init_thread_list, windows_delete_thread): Use delete.
12550 (get_windows_debug_event): Update.
12551 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12552 destructor, and initializers.
12553
ae1f8880
TT
125542020-04-08 Tom Tromey <tromey@adacore.com>
12555
12556 * windows-nat.c (struct windows_thread_info): Remove.
12557 * nat/windows-nat.h: New file.
12558
55a1e039
TT
125592020-04-08 Tom Tromey <tromey@adacore.com>
12560
12561 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12562 (thread_rec, windows_add_thread, windows_delete_thread)
12563 (windows_continue): Update.
12564
93366324
TT
125652020-04-08 Tom Tromey <tromey@adacore.com>
12566
12567 * windows-nat.c (struct windows_thread_info): Remove typedef.
12568 (thread_head): Remove.
12569 (thread_list): New global.
12570 (thread_rec, windows_add_thread, windows_init_thread_list)
12571 (windows_delete_thread, windows_continue): Update.
12572
0f2265e2
SM
125732020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12574
12575 * windows-tdep.h (windows_init_abi): Add comment.
12576 (cygwin_init_abi): New declaration.
12577 * windows-tdep.c: Split signal enumeration in two, one for
12578 Windows and one for Cygwin.
12579 (windows_gdb_signal_to_target): Only deal with signal of the
12580 Windows OS ABI.
12581 (cygwin_gdb_signal_to_target): New function.
12582 (windows_init_abi): Rename to windows_init_abi_common, don't set
12583 gdb_signal_to_target gdbarch method. Add new new function with
12584 this name.
12585 (cygwin_init_abi): New function.
12586 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12587 comment. Don't call windows_init_abi.
12588 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12589 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12590 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12591 i386_windows_init_abi_common, don't call windows_init_abi. Add
12592 a new function of this name.
12593 (i386_cygwin_init_abi): New function.
12594 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12595 OS ABI Cygwin.
12596
3810f182
SM
125972020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12598
12599 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12600 parameter.c.
12601 (dwarf2_read_gdb_index): Update.
12602
063f8e80
KR
126032020-04-07 Kamil Rytarowski <n54@gmx.com>
12604
12605 * nbsd-tdep.c: Include "objfiles.h".
12606 (nbsd_skip_solib_resolver): New.
12607 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12608
85a9510c 126092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12610
12611 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12612 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12613 with DW_LLE_base_addressx are being emitted in DWARFv5.
12614 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12615 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12616 unsigned integer.
12617
9fc3eaae 126182020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12619
12620 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12621 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12622 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12623 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12624 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12625 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12626 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12627
12628
41144253 126292020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12630
12631 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12632 (read_loclist_index): New function definition.
12633 (lookup_loclist_base): New function definition.
12634 (read_loclist_header): New function definition.
12635 (dwarf2_cu): Add loclist_base and loclist_header field.
12636 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12637 (read_full_die_1): Read the value of DW_AT_loclists_base.
12638 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12639 (read_attribute_value): Handle DW_FORM_loclistx.
12640 (skip_one_die): Handle DW_FORM_loclistx.
12641 (loclist_header): New structure declaration.
12642 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12643
9f4e76a4
SM
126442020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12645
12646 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12647 constructor. Remove `addr` parameter from other constructor and
12648 add `per_cu` parameter.
12649 * dwarf2/read.c (create_partial_symtab): Update.
12650
25c11aca
TV
126512020-04-07 Tom de Vries <tdevries@suse.de>
12652
12653 PR symtab/25796
12654 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12655 (partial_die_info::fixup): Inherit has_const_value.
12656
5707e24b
TV
126572020-04-07 Tom de Vries <tdevries@suse.de>
12658
12659 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12660 symbols without address.
12661
05f00e22
KR
126622020-04-06 Kamil Rytarowski <n54@gmx.com>
12663
12664 * nbsd-nat.h (struct thread_info): Add forward declaration.
12665 (nbsd_nat_target::thread_alive): Add.
12666 (nbsd_nat_target::thread_name): Likewise.
12667 (nbsd_nat_target::update_thread_list): Likewise.
12668 (update_thread_list::post_attach): Likewise.
12669 (post_attach::pid_to_str): Likewise.
12670 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12671 (nbsd_thread_lister): Add.
12672 (nbsd_nat_target::thread_alive): Likewise.
12673 (nbsd_nat_target::thread_name): Likewise.
12674 (nbsd_add_threads): Likewise.
12675 (update_thread_list::post_attach): Likewise.
12676 (nbsd_nat_target::update_thread_list): Likewise.
12677 (post_attach::pid_to_str): Likewise.
12678
6ee448cc
TT
126792020-04-06 Tom Tromey <tromey@adacore.com>
12680
12681 * ada-valprint.c (print_variant_part): Extract the variant field.
12682 (print_field_values): Use the field as the outer value when
12683 recursing.
12684
dea34e8c
TT
126852020-04-06 Tom Tromey <tromey@adacore.com>
12686
12687 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12688 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12689 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12690 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12691 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12692
93689ce9
TT
126932020-04-06 Tom Tromey <tromey@adacore.com>
12694
12695 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12696 TYPE_CODE_ERROR.
12697
79743962
KR
126982020-04-06 Kamil Rytarowski <n54@gmx.com>
12699
12700 * nbsd-tdep.c: Include "gdbarch.h".
12701 Define enum with NetBSD signal numbers.
12702 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12703 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12704 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12705 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12706 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12707 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12708 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12709 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12710 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12711 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12712 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12713 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12714
9e7c9a03
HD
127152020-04-03 Hannes Domani <ssbssa@yahoo.de>
12716
12717 PR gdb/25325
12718 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12719
d9e49b61
TT
127202020-04-03 Tom Tromey <tromey@adacore.com>
12721
12722 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12723 Read constant block.
12724
e0fc5c3f
SM
127252020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12726
12727 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12728 (gdb_bfd_get_full_section_contents): New declaration.
12729 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12730 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12731 gdb_bfd_get_full_section_contents.
12732
e2ff18a0
SM
127332020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12734
12735 * exec.c (build_section_table): Replace internal_error with
12736 gdb_assert.
12737 (section_table_xfer_memory_partial): Likewise.
12738 * mdebugread.c (parse_partial_symbols): Likewise.
12739 * psymtab.c (lookup_partial_symbol): Likewise.
12740 * utils.c (wrap_here): Likewise.
12741
0830d301
TT
127422020-04-02 Tom Tromey <tromey@adacore.com>
12743
12744 * f-lang.c (build_fortran_types): Use arch_type to initialize
12745 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12746
e7da7f8f
TT
127472020-04-02 Tom Tromey <tromey@adacore.com>
12748
12749 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12750 of attributes.
12751
c90d28ac
AB
127522020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12753 Bernd Edlinger <bernd.edlinger@hotmail.de>
12754 Tom Tromey <tromey@adacore.com>
12755
12756 * buildsym.c (buildsym_compunit::record_line): Remove
12757 deduplication code.
12758
1aa98955
TV
127592020-04-02 Tom de Vries <tdevries@suse.de>
12760
12761 PR ada/24671
12762 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12763
d3214198
TV
127642020-04-02 Tom de Vries <tdevries@suse.de>
12765
12766 * dwarf2/read.c (dwarf2_gdb_index_functions,
12767 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12768 NULL.
12769 * psymtab.c (psym_lookup_global_symbol_language): New function.
12770 (psym_functions): Init psym_lookup_global_symbol_language with
12771 psym_lookup_global_symbol_language.
12772 * symfile-debug.c (debug_sym_quick_functions): Init
12773 lookup_global_symbol_language with NULL.
12774 * symfile.c (set_initial_language): Remove fixme comment.
12775 * symfile.h (struct quick_symbol_functions): Add
12776 lookup_global_symbol_language.
12777 * symtab.c (find_quick_global_symbol_language): New function.
12778 (find_main_name): Use find_quick_global_symbol_language.
12779
2836752f
SM
127802020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12781
12782 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12783
64dc2d4b
BE
127842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12785
12786 * buildsym.c (record_line): Fix undefined behavior and preserve
12787 lines at eof.
12788
bbe3dc41
BE
127892020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12790
12791 * buildsym.c (record_line): Fix the resizing condition.
12792
6b4a335b
TT
127932020-04-01 Tom Tromey <tom@tromey.com>
12794
12795 * value.h (value_literal_complex): Add comment.
12796 * valops.c (value_literal_complex): Refer to value.h.
12797
3638a098
TT
127982020-04-01 Tom Tromey <tom@tromey.com>
12799
12800 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12801 (scalar_type): New rule, from typebase.
12802 (typebase): Use scalar_type. Recognize complex types.
12803 (field_name): Handle FLOAT_KEYWORD.
12804 (ident_tokens): Add _Complex and __complex__.
12805
c34e8714
TT
128062020-04-01 Tom Tromey <tom@tromey.com>
12807
12808 PR exp/25299:
12809 * valarith.c (promotion_type, complex_binop): New functions.
12810 (scalar_binop): Handle complex numbers. Use promotion_type.
12811 (value_pos, value_neg, value_complement): Handle complex numbers.
12812
fa649bb7
TT
128132020-04-01 Tom Tromey <tom@tromey.com>
12814
12815 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12816 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12817 (parse_number): Handle complex numbers.
12818
981c08ce
TT
128192020-04-01 Tom Tromey <tom@tromey.com>
12820
12821 * c-valprint.c (c_decorations): Change complex suffix to "i".
12822
4c99290d
TT
128232020-04-01 Tom Tromey <tom@tromey.com>
12824
12825 * valprint.c (generic_value_print_complex): Use accessors.
12826 * value.h (value_real_part, value_imaginary_part): Declare.
12827 * valops.c (value_real_part, value_imaginary_part): New
12828 functions.
12829 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12830
5b930b45
TT
128312020-04-01 Tom Tromey <tom@tromey.com>
12832
12833 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12834 (read_range_type): Update.
12835 * mdebugread.c (basic_type): Update.
12836 * go-lang.c (build_go_types): Use init_complex_type.
12837 * gdbtypes.h (struct main_type) <complex_type>: New member.
12838 (init_complex_type): Update.
12839 (arch_complex_type): Don't declare.
12840 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12841 Make name if none given. Use alloc_type_copy. Look for cached
12842 complex type.
12843 (arch_complex_type): Remove.
12844 (gdbtypes_post_init): Use init_complex_type.
12845 * f-lang.c (build_fortran_types): Use init_complex_type.
12846 * dwarf2/read.c (read_base_type): Update.
12847 * d-lang.c (build_d_types): Use init_complex_type.
12848 * ctfread.c (read_base_type): Update.
12849
53cccef1
TBA
128502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12851
12852 * infrun.c (stop_all_threads): Update assertion, plus when
12853 stopping threads, take into account that we might be trying
12854 to stop an all-stop target.
12855 (stop_waiting): Call 'stop_all_threads' if there exists a
12856 non-stop target.
12857
a0714d30
TBA
128582020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12859
12860 * target.h (exists_non_stop_target): New function declaration.
12861 * target.c (exists_non_stop_target): New function.
12862
60e22c1e
HD
128632020-04-01 Hannes Domani <ssbssa@yahoo.de>
12864
12865 PR gdb/24789
12866 * eval.c (is_integral_or_integral_reference): New function.
12867 (evaluate_subexp_standard): Allow integer references in
12868 pointer arithmetic.
12869
e139a727
TBA
128702020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12871
12872 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12873 check for no ptid in the stop reply when the target is non-stop.
12874
e0802d59
TT
128752020-04-01 Tom Tromey <tromey@adacore.com>
12876
12877 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12878 "name" parameter to rvalue reference. Initialize m_name_holder.
12879 <lookup_name_info>: New overloads.
12880 <name>: Return gdb::string_view.
12881 <c_str>: New method.
12882 <make_ignore_params>: Update.
12883 <search_name_hash>: Update.
12884 <language_lookup_name>: Return const char *.
12885 <m_name>: Change type.
12886 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12887 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12888 (lookup_name_info::match_any): Update.
12889 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12890 Update.
12891 * minsyms.c (linkage_name_str): Update.
12892 * language.c (default_symbol_name_matcher): Update.
12893 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12894 Update.
12895 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12896 (ada_lookup_name_info::ada_lookup_name_info): Update.
12897 (literal_symbol_name_matcher): Update.
12898
8c072cb6
TT
128992020-04-01 Tom Tromey <tromey@adacore.com>
12900
12901 * psymtab.c (psymtab_search_name): Remove function.
12902 (psym_lookup_symbol): Create search name and lookup name here.
12903 (lookup_partial_symbol): Remove "name" parameter; add
12904 lookup_name.
12905 (psym_expand_symtabs_for_function): Update.
12906
6f29a534
TT
129072020-03-31 Joel Jones <joelkevinjones@gmail.com>
12908
12909 PR tui/25597:
12910 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12911
af62665e
TT
129122020-03-31 Tom Tromey <tromey@adacore.com>
12913
12914 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12915 memcpy.
12916
d1a89da5
NC
129172020-03-30 Nelson Chu <nelson.chu@sifive.com>
12918
12919 * features/riscv/32bit-csr.xml: Regenerated.
12920 * features/riscv/64bit-csr.xml: Regenerated.
12921
d8af9068
TT
129222020-03-30 Tom Tromey <tromey@adacore.com>
12923
12924 * ada-valprint.c (print_variant_part): Update.
12925 * ada-lang.h (ada_which_variant_applies): Update.
12926 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12927 outer_valaddr parameters; replace with "outer" value parameter.
12928 (to_fixed_variant_branch_type): Update.
12929
227c0bf4
PFC
129302020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12931
12932 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12933 <list>. Remove inclusion of observable.h.
12934 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12935 (struct arch_lwp_info): New struct.
12936 (class ppc_linux_dreg_interface): New class.
12937 (struct ppc_linux_process_info): New struct.
12938 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12939 <low_new_clone, low_forget_process, low_prepare_to_resume>
12940 <copy_thread_dreg_state, mark_thread_stale>
12941 <mark_debug_registers_changed, register_hw_breakpoint>
12942 <clear_hw_breakpoint, register_wp, clear_wp>
12943 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12944 <num_memory_accesses, get_trigger_type>
12945 <create_watchpoint_request, hwdebug_point_cmp>
12946 <init_arch_lwp_info, get_arch_lwp_info>
12947 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12948 methods.
12949 <struct ptid_hash>: New inner struct.
12950 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12951 members.
12952 (saved_dabr_value, hwdebug_info, max_slots_number)
12953 (struct hw_break_tuple, struct thread_points, ppc_threads)
12954 (have_ptrace_hwdebug_interface)
12955 (hwdebug_find_thread_points_by_tid)
12956 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12957 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12958 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12959 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12960 use m_dreg_interface.
12961 (hwdebug_point_cmp): Change to...
12962 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12963 reference arguments instead of pointers.
12964 (ppc_linux_nat_target::ranged_break_num_registers): Use
12965 m_dreg_interface.
12966 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12967 m_dreg_interface. Call register_hw_breakpoint.
12968 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12969 m_dreg_interface. Call clear_hw_breakpoint.
12970 (get_trigger_type): Change to...
12971 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12972 comment.
12973 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12974 use m_dreg_interface. Call register_hw_breakpoint.
12975 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12976 use m_dreg_interface. Call clear_hw_breakpoint.
12977 (can_use_watchpoint_cond_accel): Change to...
12978 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12979 method. Update comment, use m_dreg_interface and
12980 m_process_info.
12981 (calculate_dvc): Change to...
12982 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12983 m_dreg_interface.
12984 (num_memory_accesses): Change to...
12985 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12986 (check_condition): Change to...
12987 (ppc_linux_nat_target::check_condition): ...this method.
12988 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12989 comment, use m_dreg_interface.
12990 (create_watchpoint_request): Change to...
12991 (ppc_linux_nat_target::create_watchpoint_request): ...this
12992 method. Use m_dreg_interface.
12993 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12994 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12995 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12996 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12997 (ppc_linux_nat_target::low_forget_process)
12998 (ppc_linux_nat_target::low_new_fork)
12999 (ppc_linux_nat_target::low_new_clone)
13000 (ppc_linux_nat_target::low_delete_thread)
13001 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13002 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13003 only call mark_thread_stale.
13004 (ppc_linux_thread_exit): Remove.
13005 (ppc_linux_nat_target::stopped_data_address): Change to...
13006 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13007 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13008 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13009 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13010 comment. Call low_stopped_data_address.
13011 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13012 m_dreg_interface.
13013 (ppc_linux_nat_target::masked_watch_num_registers): Use
13014 m_dreg_interface.
13015 (ppc_linux_nat_target::copy_thread_dreg_state)
13016 (ppc_linux_nat_target::mark_thread_stale)
13017 (ppc_linux_nat_target::mark_debug_registers_changed)
13018 (ppc_linux_nat_target::register_hw_breakpoint)
13019 (ppc_linux_nat_target::clear_hw_breakpoint)
13020 (ppc_linux_nat_target::register_wp)
13021 (ppc_linux_nat_target::clear_wp)
13022 (ppc_linux_nat_target::init_arch_lwp_info)
13023 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13024 (_initialize_ppc_linux_nat): Remove observer callback.
13025
4db10d8f
PFC
130262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13027
13028 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13029 (ppc_linux_nat_target::auxv_parse)
13030 (ppc_linux_nat_target::read_description)
13031 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13032 Move up.
13033
1310c1b0
PFC
130342020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13035
13036 * linux-nat.h (low_new_clone): New method.
13037 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13038
69b037c3
SM
130392020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13040
13041 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13042 (dbx_expand_psymtab): ... this.
13043 (start_psymtab): Update.
13044 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13045 (mdebug_expand_psymtab): ... this.
13046 (parse_partial_symbols): Update.
13047 (new_psymtab): Update.
13048 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13049 (xcoff_expand_psymtab): ... this.
13050 (xcoff_start_psymtab): Update.
13051
48993951
SM
130522020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13053
13054 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13055 <expand_dependencies>: ... this.
13056 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13057 (partial_symtab::expand_dependencies): ... this.
13058 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13059 Update.
13060 (dwarf2_psymtab::expand_psymtab): Update.
13061 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13062 * mdebugread.c (psymtab_to_symtab_1): Update.
13063 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13064
3ad83046
SM
130652020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13066
13067 * psympriv.h (discard_psymtab): Remove.
13068 * dbxread.c (dbx_end_psymtab): Update.
13069 * xcoffread.c (xcoff_end_psymtab): Update.
13070
4d1b9ab6
TT
130712020-03-28 Tom Tromey <tom@tromey.com>
13072
13073 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13074 comment.
13075
f1749218
TT
130762020-03-28 Tom Tromey <tom@tromey.com>
13077
13078 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13079
ebea7626
HD
130802020-03-27 Hannes Domani <ssbssa@yahoo.de>
13081
13082 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13083
a879b4d5
JB
130842020-03-26 John Baldwin <jhb@FreeBSD.org>
13085
13086 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13087
0826b30a
TT
130882020-03-26 Tom Tromey <tom@tromey.com>
13089
13090 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13091 (mark_common_block_symbol_computed, read_tag_string_type)
13092 (attr_to_dynamic_prop, read_subrange_type): Update.
13093 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13094 to be methods on struct attribute.
13095 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13096 (read_call_site_scope, partial_die_info::read)
13097 (partial_die_info::read, lookup_die_type, follow_die_ref):
13098 Update.
13099 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13100 from dwarf2_get_ref_die_offset.
13101 (attribute::constant_value): New method, from
13102 dwarf2_get_attr_constant_value.
13103 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13104 Declare method.
13105 <constant_value>: New method.
13106
2b2558bf
TT
131072020-03-26 Tom Tromey <tom@tromey.com>
13108
13109 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13110 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13111 (dwarf_type_encoding_name): Move to stringify.c.
13112 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13113 * dwarf2/stringify.c: New file.
13114 * dwarf2/stringify.h: New file.
13115
eeb64781
TT
131162020-03-26 Tom Tromey <tom@tromey.com>
13117
13118 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13119 Rewrite.
13120
a39fdb41
TT
131212020-03-26 Tom Tromey <tom@tromey.com>
13122
13123 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13124 methods.
13125 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13126 (lookup_ranges_base): Likewise.
13127 (read_cutu_die_from_dwo, read_full_die_1): Update.
13128
436c571c
TT
131292020-03-26 Tom Tromey <tom@tromey.com>
13130
13131 * dwarf2/read.c (read_import_statement, read_file_scope)
13132 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13133 (read_lexical_block_scope, read_call_site_scope)
13134 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13135 (handle_struct_member_die, process_structure_scope)
13136 (update_enumeration_type_from_children)
13137 (process_enumeration_scope, read_array_type, read_common_block)
13138 (read_namespace, read_module, read_subroutine_type): Update.
13139 (sibling_die): Remove.
13140
052c8bb8
TT
131412020-03-26 Tom Tromey <tom@tromey.com>
13142
13143 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13144 (build_type_psymtabs_reader, read_structure_type)
13145 (read_enumeration_type, read_full_die_1): Update.
13146 (dwarf2_attr_no_follow): Move to die.h.
13147 * dwarf2/die.h (struct die_info) <attr>: New method.
13148
2b24b6e4
TT
131492020-03-26 Tom Tromey <tom@tromey.com>
13150
13151 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13152 <base_address>: Now an optional.
13153 (dwarf2_find_base_address, dwarf2_rnglists_process)
13154 (dwarf2_ranges_process, fill_in_loclist_baton)
13155 (dwarf2_symbol_mark_computed): Update.
13156
c2d50fd0
TT
131572020-03-26 Tom Tromey <tom@tromey.com>
13158
13159 * dwarf2/read.c (struct die_info): Move to die.h.
13160 * dwarf2/die.h: New file.
13161
0df7ad3a
TT
131622020-03-26 Tom Tromey <tom@tromey.com>
13163
13164 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13165 * dwarf2/read.c
13166 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13167 Move to line-header.c.
13168 (read_checked_initial_length_and_offset, read_formatted_entries):
13169 Likewise.
13170 (dwarf_decode_line_header): Split into two.
13171 * dwarf2/line-header.c
13172 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13173 Move from read.c.
13174 (read_checked_initial_length_and_offset, read_formatted_entries):
13175 Likewise.
13176 (dwarf_decode_line_header): New function, split from read.c.
13177
86c0bb4c
TT
131782020-03-26 Tom Tromey <tom@tromey.com>
13179
13180 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13181 Declare method.
13182 * dwarf2/read.c (read_attribute_value): Update.
13183 (dwarf2_per_objfile::read_line_string): Rename from
13184 read_indirect_line_string.
13185 (read_formatted_entries): Update.
13186
2ef46c2f
TT
131872020-03-26 Tom Tromey <tom@tromey.com>
13188
13189 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13190 variable.
13191
4f9c1eda
TT
131922020-03-26 Tom Tromey <tom@tromey.com>
13193
13194 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13195 const.
13196 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13197 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13198 parameter const.
13199
5a0e026f
TT
132002020-03-26 Tom Tromey <tom@tromey.com>
13201
13202 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13203 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13204 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13205 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13206
8844c11b
TT
132072020-03-26 Tom Tromey <tom@tromey.com>
13208
13209 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13210 file_names_size, file_full_name, file_file_name>: Use const.
13211 <file_name_at, file_names>: Add const overload.
13212 * dwarf2/line-header.c (line_header::file_file_name)
13213 (line_header::file_full_name): Update.
13214
c90ec28a
TT
132152020-03-26 Tom Tromey <tom@tromey.com>
13216
13217 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13218 (macro_start_file, consume_improper_spaces)
13219 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13220 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13221 (dwarf_decode_macros): Move to macro.c.
13222 * dwarf2/macro.c: New file.
13223 * dwarf2/macro.h: New file.
13224 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13225
4f44ae6c
TT
132262020-03-26 Tom Tromey <tom@tromey.com>
13227
13228 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13229 method.
13230 * dwarf2/section.c: New method. From
13231 read_indirect_string_at_offset_from.
13232 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13233 (read_indirect_string_at_offset_from): Move to section.c.
13234 (read_indirect_string_at_offset): Rewrite.
13235 (read_indirect_line_string_at_offset): Remove.
13236 (read_indirect_string, read_indirect_line_string)
13237 (dwarf_decode_macro_bytes): Update.
13238
a0194fa8
TT
132392020-03-26 Tom Tromey <tom@tromey.com>
13240
13241 * dwarf2/section.h (struct dwarf2_section_info)
13242 <overload_complaint>: Declare.
13243 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13244 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13245 Rename from dwarf2_section_buffer_overflow_complaint.
13246 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13247 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13248
3d27bbdb
TT
132492020-03-26 Tom Tromey <tom@tromey.com>
13250
13251 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13252 Declare.
13253 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13254 Move from read.c.
13255 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13256 to section.c.
13257
9eac9650
TT
132582020-03-26 Tom Tromey <tom@tromey.com>
13259
13260 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13261
bf80d710
TT
132622020-03-26 Tom Tromey <tom@tromey.com>
13263
13264 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13265 "builder".
13266 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13267 parameter.
13268 (dwarf_decode_macros): Update.
13269
0314b390
TT
132702020-03-26 Tom Tromey <tom@tromey.com>
13271
13272 * dwarf2/read.c (read_attribute_value): Update.
13273 (read_indirect_string_from_dwz): Move to dwz.c; change into
13274 method.
13275 (dwarf_decode_macro_bytes): Update.
13276 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13277 * dwarf2/dwz.c: New file.
13278 * Makefile.in (COMMON_SFILES): Add dwz.c.
13279
9fda78b6
TT
132802020-03-26 Tom Tromey <tom@tromey.com>
13281
13282 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13283 * dwarf2/read.c: Add include.
13284 * dwarf2/index-write.c: Add include.
13285 * dwarf2/index-cache.c: Add include.
13286 * dwarf2/dwz.h: New file.
13287
33aa3c10
TT
132882020-03-25 Tom Tromey <tom@tromey.com>
13289
13290 * compile/compile-object-load.c (get_out_value_type): Mention
13291 correct symbol name in error message.
13292
d503b685
HD
132932020-03-25 Hannes Domani <ssbssa@yahoo.de>
13294
13295 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13296
7b1eff95
TV
132972020-03-25 Tom de Vries <tdevries@suse.de>
13298
13299 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13300 * symmisc.c (dump_symtab_1): Print user and includes fields.
13301 (maintenance_info_symtabs): Same.
13302
dd895392
AB
133032020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13304
13305 PR gdb/25534
13306 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13307 (riscv_regcache_cooked_write): New function.
13308 (riscv_push_dummy_call): Use new function.
13309 (riscv_return_value): Likewise.
13310
5ab2fbf1
SM
133112020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13312
13313 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13314 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13315 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13316 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13317 * infrun.c (follow_fork): Likewise.
13318 (follow_fork_inferior): Likewise.
13319 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13320 * linux-nat.h (class linux_nat_target): Likewise.
13321 * remote.c (class remote_target) <follow_fork>: Likewise.
13322 (remote_target::follow_fork): Likewise.
13323 * target-delegates.c: Re-generate.
13324 * target.c (default_follow_fork): Likewise.
13325 (target_follow_fork): Likewise.
13326 * target.h (struct target_ops) <follow_fork>: Likewise.
13327 (target_follow_fork): Likewise.
13328
a64fafb5
TV
133292020-03-24 Tom de Vries <tdevries@suse.de>
13330
13331 * psymtab.c (maintenance_info_psymtabs): Print user field.
13332
fe26d3a3
TT
133332020-03-20 Tom Tromey <tromey@adacore.com>
13334
13335 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13336 const.
13337 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13338 const.
13339
c884cc46
SM
133402020-03-20 Simon Marchi <simon.marchi@efficios.com>
13341
13342 * ptrace.m4: Don't check for ptrace declaration.
13343 * config.in: Re-generate.
13344 * configure: Re-generate.
13345 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13346 not defined.
13347
1ff700c2
KR
133482020-03-20 Kamil Rytarowski <n54@gmx.com>
13349
13350 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13351 `PTRACE_TYPE_RET'.
13352 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13353 * sparc-nat.c (gdb_ptrace): Likewise.
13354 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13355
f7d4f0b1
TT
133562020-03-20 Tom Tromey <tromey@adacore.com>
13357
13358 * c-exp.y (lex_one_token): Fix assert.
13359
f67210ff
TT
133602020-03-20 Tom Tromey <tromey@adacore.com>
13361
13362 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13363 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13364 strncpy call.
13365
1773be9e
TT
133662020-03-20 Tom Tromey <tromey@adacore.com>
13367
13368 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13369
70304be9
TT
133702020-03-20 Tom Tromey <tromey@adacore.com>
13371
13372 * ada-valprint.c (print_variant_part): Remove parameters; switch
13373 to value-based API.
13374 (print_field_values): Likewise.
13375 (ada_val_print_struct_union): Likewise.
13376 (ada_value_print_1): Update.
13377
9faa006d
KR
133782020-03-20 Kamil Rytarowski <n54@gmx.com>
13379
13380 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13381 nbsd_nat_target instead of inf_ptrace_target.
13382 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13383 nbsd_nat_target.
13384
4a90f062
KR
133852020-03-20 Kamil Rytarowski <n54@gmx.com>
13386
13387 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13388 it to the ptrace call.
13389 * (store_registers): Likewise.
13390
133912020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13392
13393 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13394 it to the ptrace call.
13395 * (store_registers): Likewise.
13396
2d07da27
LM
133972020-03-19 Luis Machado <luis.machado@linaro.org>
13398
13399 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13400 valid, fetch vg value from ptrace.
13401
f09db380
KR
134022020-03-19 Kamil Rytarowski <n54@gmx.com>
13403 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13404 * inf-ptrace.c: Likewise.
13405 * (gdb_ptrace): Add.
13406 * (inf_ptrace_target::resume): Update.
13407 * (inf_ptrace_target::xfer_partial): Likewise.
13408 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13409 * (inf_ptrace_peek_poke): Update.
13410
fcc7376e
KR
134112020-03-19 Kamil Rytarowski <n54@gmx.com>
13412
13413 * x86-bsd-nat.c (gdb_ptrace): New.
13414 * (x86bsd_dr_set): Add new argument `ptid'.
13415 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13416 x86bsd_dr_set_addr): Update.
13417
cada5fc9
AB
134182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13419
13420 * remote.c (remote_target::process_stop_reply): Handle events for
13421 all threads differently.
13422
19a2740f
AB
134232020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13424
13425 * completer.c (completion_tracker::remove_completion): Define new
13426 function.
13427 * completer.h (completion_tracker::remove_completion): Declare new
13428 function.
13429 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13430 when adding a C++ function symbol.
13431
724fd9ba
AB
134322020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13433
13434 * completer.c (completion_tracker::completion_hash_entry): Define
13435 new class.
13436 (advance_to_filename_complete_word_point): Call
13437 recompute_lowest_common_denominator.
13438 (completion_tracker::completion_tracker): Call discard_completions
13439 to setup the hash table.
13440 (completion_tracker::discard_completions): Allow for being called
13441 from the constructor, pass new equal function, and element deleter
13442 when constructing the hash table. Initialise new class member
13443 variables.
13444 (completion_tracker::maybe_add_completion): Remove use of
13445 m_entries_vec, and store more information into m_entries_hash.
13446 (completion_tracker::recompute_lcd_visitor): New function, most
13447 content taken from...
13448 (completion_tracker::recompute_lowest_common_denominator):
13449 ...here, this now just visits each item in the hash calling the
13450 above visitor.
13451 (completion_tracker::build_completion_result): Remove use of
13452 m_entries_vec, call recompute_lowest_common_denominator.
13453 * completer.h (completion_tracker::have_completions): Remove use
13454 of m_entries_vec.
13455 (completion_tracker::completion_hash_entry): Declare new class.
13456 (completion_tracker::recompute_lowest_common_denominator): Change
13457 function signature.
13458 (completion_tracker::recompute_lcd_visitor): Declare new function.
13459 (completion_tracker::m_entries_vec): Delete.
13460 (completion_tracker::m_entries_hash): Initialize to NULL.
13461 (completion_tracker::m_lowest_common_denominator_valid): New
13462 member variable.
13463 (completion_tracker::m_lowest_common_denominator_max_length): New
13464 member variable.
13465
5a82b8a1
KR
134662020-03-17 Kamil Rytarowski <n54@gmx.com>
13467
13468 * regformats/regdef.h: Put reg in gdb namespace.
13469
fb516a69
KR
134702020-03-17 Kamil Rytarowski <n54@gmx.com>
13471
13472 * i386-bsd-nat.c (gdb_ptrace): New.
13473 * (i386bsd_fetch_inferior_registers,
13474 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13475 * (i386bsd_fetch_inferior_registers,
13476 i386bsd_store_inferior_registers) Use gdb_ptrace.
13477
1c0aa1fb
KR
134782020-03-17 Kamil Rytarowski <n54@gmx.com>
13479
13480 * amd64-bsd-nat.c (gdb_ptrace): New.
13481 * (amd64bsd_fetch_inferior_registers,
13482 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13483 * (amd64bsd_fetch_inferior_registers,
13484 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13485
5ccd2fb7
KR
134862020-03-17 Kamil Rytarowski <n54@gmx.com>
13487
13488 * user-regs.c (user_reg::read): Rename to...
13489 (user_reg::xread): ...this.
13490 * (append_user_reg): Rename argument `read' to `xread'.
13491 * (user_reg_add_builtin): Likewise.
13492 * (user_reg_add): Likewise.
13493 * (value_of_user_reg): Likewise.
13494
2108a63a
KR
134952020-03-17 Kamil Rytarowski <n54@gmx.com>
13496
13497 * sparc-nat.c (gdb_ptrace): New.
13498 * sparc-nat.c (sparc_fetch_inferior_registers)
13499 (sparc_store_inferior_registers) Remove obsolete comment.
13500 * sparc-nat.c (sparc_fetch_inferior_registers)
13501 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13502 * sparc-nat.c (sparc_fetch_inferior_registers)
13503 (sparc_store_inferior_registers) Use gdb_ptrace.
13504
a225c9a8
KR
135052020-03-17 Kamil Rytarowski <n54@gmx.com>
13506
13507 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13508 it to the ptrace call.
13509 * sh-nbsd-nat.c (store_registers): Likewise.
13510
98097623
KR
135112020-03-17 Kamil Rytarowski <n54@gmx.com>
13512
13513 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13514 nbsd_nat_target instead of inf_ptrace_target.
13515 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13516 nbsd_nat_target.
13517
9e38d619
KR
135182020-03-17 Kamil Rytarowski <n54@gmx.com>
13519
13520 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13521
a2ecbe9f
KR
135222020-03-17 Kamil Rytarowski <n54@gmx.com>
13523
13524 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13525 <sys/sysctl.h>.
13526 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13527
58990295
TV
135282020-03-17 Tom de Vries <tdevries@suse.de>
13529
13530 PR gdb/23710
13531 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13532 fields.
13533 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13534 fields.
13535 (process_imported_unit_die): Skip import of c++ CUs.
13536
771dd3a8
TT
135372020-03-16 Tom Tromey <tom@tromey.com>
13538
13539 * p-valprint.c (pascal_object_print_value): Initialize
13540 base_value.
13541
817a7585
AK
135422020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13543 Shahab Vahedi <shahab@synopsys.com>
13544
13545 * Makefile.in: Add arch/arc.o
13546 * configure.tgt: Likewise.
13547 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13548 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13549 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13550 * arc-tdep.h (arc_read_description): Add proto type.
13551 * arch/arc.c: New file.
13552 * arch/arc.h: Likewise.
13553 * features/Makefile: Replace old target descriptions with new.
13554 * features/arc-arcompact.c: Remove.
13555 * features/arc-arcompact.xml: Likewise.
13556 * features/arc-v2.c: Likewise
13557 * features/arc-v2.xml: Likewise
13558 * features/arc/aux-arcompact.xml: New file.
13559 * features/arc/aux-v2.xml: Likewise.
13560 * features/arc/core-arcompact.xml: Likewise.
13561 * features/arc/core-v2.xml: Likewise.
13562 * features/arc/aux-arcompact.c: Generate.
13563 * features/arc/aux-v2.c: Likewise.
13564 * features/arc/core-arcompact.c: Likewise.
13565 * features/arc/core-v2.c: Likewise.
13566 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13567
67430cd0
TT
135682020-03-16 Tom Tromey <tromey@adacore.com>
13569
13570 PR gdb/25663:
13571 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13572 putting value into bcache.
13573
30efb6c7
SM
135742020-03-16 Simon Marchi <simon.marchi@efficios.com>
13575
13576 PR gdb/21500
13577 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13578 to...
13579 (amd64_windows_init_abi_common): ... this. Don't set size of
13580 long type.
13581 (amd64_windows_init_abi): New function.
13582 (amd64_cygwin_init_abi): New function.
13583 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13584 the Cygwin OS ABI.
13585 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13586 comment.
13587
8db52437
SM
135882020-03-16 Simon Marchi <simon.marchi@efficios.com>
13589
13590 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13591 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13592 (pe_import_directory_entry): New struct type.
13593 (is_linked_with_cygwin_dll): New function.
13594 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13595 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13596 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13597
5982a56a
SM
135982020-03-16 Simon Marchi <simon.marchi@efficios.com>
13599
13600 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13601 i386_cygwin_core_osabi_sniffer.
13602
7a1998df
SM
136032020-03-16 Simon Marchi <simon.marchi@efficios.com>
13604
13605 * i386-cygwin-tdep.c: Rename to...
13606 * i386-windows-tdep.c: ... this.
13607 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13608 i386-windows-tdep.c.
13609 * configure.tgt: Likewise.
13610
053205cc
SM
136112020-03-16 Simon Marchi <simon.marchi@efficios.com>
13612
13613 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13614 * osabi.c (gdb_osabi_names): Add "Windows".
13615 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13616 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13617 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13618 i386_cygwin_osabi_sniffer.
13619 (_initialize_i386_cygwin_tdep): Register OS ABI
13620 GDB_OSABI_WINDOWS for i386.
13621 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13622 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13623 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13624 for x86-64.
13625 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13626 when the target matches '*-*-mingw*'.
13627
fe4b2ee6
SM
136282020-03-16 Simon Marchi <simon.marchi@efficios.com>
13629
13630 * defs.h (enum gdb_osabi): Move to...
13631 * osabi.h (enum gdb_osabi): ... here.
13632 * gdbarch.sh: Include osabi.h in gdbarch.h.
13633 * gdbarch.h: Re-generate.
13634
cb9b645d
SM
136352020-03-16 Simon Marchi <simon.marchi@efficios.com>
13636
13637 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13638 function.
13639 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13640
3293bbaf
TT
136412020-03-14 Tom Tromey <tom@tromey.com>
13642
13643 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13644 for C++.
13645 (c_type_print_modifier): Likewise. Add "language" parameter.
13646 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13647 (c_type_print_base_1): Update.
13648 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13649 constants.
13650 * type-stack.c (type_stack::insert): Handle tp_atomic and
13651 tp_restrict.
13652 (type_stack::follow_type_instance_flags): Likewise.
13653 (type_stack::follow_types): Likewise. Merge type-following code.
13654 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13655 (space_identifier, cv_with_space_id)
13656 (const_or_volatile_or_space_identifier_noopt)
13657 (const_or_volatile_or_space_identifier): Remove.
13658 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13659 rules.
13660 (ptr_operator, typebase): Update.
13661 (enum token_flag) <FLAG_C>: New constant.
13662 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13663 "_Atomic".
13664 (lex_one_token): Handle FLAG_C.
13665
154151a6
KR
136662020-03-14 Kamil Rytarowski <n54@gmx.com>
13667
13668 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13669 it to the ptrace call.
13670 * m68k-bsd-nat.c (store_registers): Likewise.
13671
bc107784
KR
136722020-03-14 Kamil Rytarowski <n54@gmx.com>
13673
13674 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13675 gdb_byte *.
13676 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13677 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13678 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13679
01a80117
KR
136802020-03-14 Kamil Rytarowski <n54@gmx.com>
13681
13682 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13683 nbsd_nat_target instead of inf_ptrace_target.
13684 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13685 nbsd_nat_target.
13686
f90280ca
KR
136872020-03-14 Kamil Rytarowski <n54@gmx.com>
13688
13689 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13690 register_t.
13691
6def66f1
KR
136922020-03-14 Kamil Rytarowski <n54@gmx.com>
13693
13694 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13695 it to the ptrace call.
13696 * alpha-bsd-nat.c (store_registers): Likewise.
13697
66eaca97
KR
136982020-03-14 Kamil Rytarowski <n54@gmx.com>
13699
13700 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13701 includes.
13702 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13703 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13704 fill_fpregset): Likewise.
13705
4fed520b
KR
137062020-03-14 Kamil Rytarowski <n54@gmx.com>
13707
13708 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13709 nbsd_nat_target instead of inf_ptrace_target.
13710 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13711 nbsd_nat_target.
13712
2190cf06
KR
137132020-03-14 Kamil Rytarowski <n54@gmx.com>
13714
13715 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13716 register_t.
13717
75c56d3d
KR
137182020-03-14 Kamil Rytarowski <n54@gmx.com>
13719
13720 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13721 it to the ptrace call.
13722 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13723 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13724 * arm-nbsd-nat.c (store_register): Likewise.
13725 * arm-nbsd-nat.c (store_regs): Likewise.
13726 * arm-nbsd-nat.c (store_fp_register): Likewise.
13727 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13728
6018d381
KR
137292020-03-14 Kamil Rytarowski <n54@gmx.com>
13730
13731 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13732 nbsd_nat_target instead of inf_ptrace_target.
13733 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13734 nbsd_nat_target.
13735
013f99f0
KR
137362020-03-14 Kamil Rytarowski <n54@gmx.com>
13737
13738 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13739 it to the ptrace call.
13740 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13741
12753073
KR
137422020-03-14 Kamil Rytarowski <n54@gmx.com>
13743
6227b330
KR
13744 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13745 it to the ptrace call.
13746 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13747
137482020-03-14 Kamil Rytarowski <n54@gmx.com>
13749
13750 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13751 gdb_byte *.
12753073
KR
13752 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13753
d5be5fa4
KR
137542020-03-14 Kamil Rytarowski <n54@gmx.com>
13755
13756 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13757 instead of inf_ptrace_target.
13758 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13759 nbsd_nat_target.
13760
8110f842
KR
137612020-03-14 Kamil Rytarowski <n54@gmx.com>
13762
13763 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13764 register_t.
13765
52feded7
KR
137662020-03-14 Kamil Rytarowski <n54@gmx.com>
13767
13768 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13769 register_t.
13770
25567eee
KR
137712020-03-14 Kamil Rytarowski <n54@gmx.com>
13772
13773 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13774 register_t.
13775
426a9c18
TT
137762020-03-13 Tom Tromey <tom@tromey.com>
13777
13778 * value.h (val_print): Don't declare.
13779 * valprint.h (val_print_array_elements)
13780 (val_print_scalar_formatted, generic_val_print): Don't declare.
13781 * valprint.c (generic_val_print_array): Take a struct value.
13782 (generic_val_print_ptr, generic_val_print_memberptr)
13783 (generic_val_print_bool, generic_val_print_int)
13784 (generic_val_print_char, generic_val_print_complex)
13785 (generic_val_print): Remove.
13786 (generic_value_print): Update.
13787 (do_val_print): Remove unused parameters. Don't call
13788 la_val_print.
13789 (val_print): Remove.
13790 (common_val_print): Update. Don't call value_check_printable.
13791 (val_print_scalar_formatted, val_print_array_elements): Remove.
13792 * rust-lang.c (rust_val_print): Remove.
13793 (rust_language_defn): Update.
13794 * p-valprint.c (pascal_val_print): Remove.
13795 (pascal_value_print_inner): Update.
13796 (pascal_object_print_val_fields, pascal_object_print_val):
13797 Remove.
13798 (pascal_object_print_static_field): Update.
13799 * p-lang.h (pascal_val_print): Don't declare.
13800 * p-lang.c (pascal_language_defn): Update.
13801 * opencl-lang.c (opencl_language_defn): Update.
13802 * objc-lang.c (objc_language_defn): Update.
13803 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13804 * m2-lang.h (m2_val_print): Don't declare.
13805 * m2-lang.c (m2_language_defn): Update.
13806 * language.h (struct language_defn) <la_val_print>: Remove.
13807 * language.c (unk_lang_value_print_inner): Rename. Change
13808 argument types.
13809 (unknown_language_defn, auto_language_defn): Update.
13810 * go-valprint.c (go_val_print): Remove.
13811 * go-lang.h (go_val_print): Don't declare.
13812 * go-lang.c (go_language_defn): Update.
13813 * f-valprint.c (f_val_print): Remove.
13814 * f-lang.h (f_value_print): Don't declare.
13815 * f-lang.c (f_language_defn): Update.
13816 * d-valprint.c (d_val_print): Remove.
13817 * d-lang.h (d_value_print): Don't declare.
13818 * d-lang.c (d_language_defn): Update.
13819 * cp-valprint.c (cp_print_value_fields)
13820 (cp_print_value_fields_rtti, cp_print_value): Remove.
13821 (cp_print_static_field): Update.
13822 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13823 (c_val_print_struct, c_val_print_union, c_val_print_int)
13824 (c_val_print_memberptr, c_val_print): Remove.
13825 * c-lang.h (c_val_print_array, cp_print_value_fields)
13826 (cp_print_value_fields_rtti): Don't declare.
13827 * c-lang.c (c_language_defn, cplus_language_defn)
13828 (asm_language_defn, minimal_language_defn): Update.
13829 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13830 (ada_val_print_enum): Take a struct value.
13831 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13832 (ada_val_print): Remove.
13833 (ada_value_print_1): Update.
13834 (printable_val_type): Remove.
13835 * ada-lang.h (ada_val_print): Don't declare.
13836 * ada-lang.c (ada_language_defn): Update.
13837
42331a1e
TT
138382020-03-13 Tom Tromey <tom@tromey.com>
13839
13840 * valprint.c (do_val_print): Update.
13841 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13842 a struct value.
13843 (value_to_value_object_no_release): Declare.
13844 * python/py-value.c (value_to_value_object_no_release): New
13845 function.
13846 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13847 struct value.
13848 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13849 function.
13850 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13851 a struct value.
13852 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13853 Declare.
13854 (gdbscm_apply_val_pretty_printer): Take a struct value.
13855 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13856 value.
13857 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13858 value.
13859 * extension-priv.h (struct extension_language_ops)
13860 <apply_val_pretty_printer>: Take a struct value.
13861 * cp-valprint.c (cp_print_value): Create a struct value.
13862 (cp_print_value): Update.
13863
3a916a97
TT
138642020-03-13 Tom Tromey <tom@tromey.com>
13865
13866 * ada-valprint.c (print_field_values): Call common_val_print.
13867
b59eac37
TT
138682020-03-13 Tom Tromey <tom@tromey.com>
13869
13870 * ada-valprint.c (val_print_packed_array_elements): Remove
13871 bitoffset and val parameters. Call common_val_print.
13872 (ada_val_print_string): Remove offset, address, and original_value
13873 parameters.
13874 (ada_val_print_array): Update.
13875 (ada_value_print_array): New function.
13876 (ada_value_print_1): Call it.
13877
03371129
TT
138782020-03-13 Tom Tromey <tom@tromey.com>
13879
13880 * ada-valprint.c (ada_value_print): Use common_val_print.
13881
2e088f8b
TT
138822020-03-13 Tom Tromey <tom@tromey.com>
13883
13884 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13885
39ef85a8
TT
138862020-03-13 Tom Tromey <tom@tromey.com>
13887
13888 * ada-valprint.c (ada_value_print_num): New function.
13889 (ada_value_print_1): Use it.
13890
b9fa6e07
TT
138912020-03-13 Tom Tromey <tom@tromey.com>
13892
13893 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13894
416595d6
TT
138952020-03-13 Tom Tromey <tom@tromey.com>
13896
13897 * ada-valprint.c (ada_value_print_ptr): New function.
13898 (ada_value_print_1): Use it.
13899
5b5e15ec
TT
139002020-03-13 Tom Tromey <tom@tromey.com>
13901
13902 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13903 call common_val_print.
13904 (ada_val_print_1): Update.
13905 (ada_value_print_1): New function.
13906 (ada_value_print_inner): Rewrite.
13907
fbf54e75
TT
139082020-03-13 Tom Tromey <tom@tromey.com>
13909
13910 * cp-valprint.c (cp_print_value_fields): Update.
13911 (cp_print_value): New function.
13912
64b653ca
TT
139132020-03-13 Tom Tromey <tom@tromey.com>
13914
13915 * m2-valprint.c (m2_value_print_inner): Use
13916 cp_print_value_fields.
13917 * cp-valprint.c (cp_print_value_fields): New function.
13918 * c-valprint.c (c_value_print_struct): New function.
13919 (c_value_print_inner): Use c_value_print_struct.
13920 * c-lang.h (cp_print_value_fields): Declare.
13921
6999f067
TT
139222020-03-13 Tom Tromey <tom@tromey.com>
13923
13924 * c-valprint.c (c_value_print_array): New function.
13925 (c_value_print_inner): Use it.
13926
ce80b8bd
TT
139272020-03-13 Tom Tromey <tom@tromey.com>
13928
13929 * c-valprint.c (c_value_print_memberptr): New function.
13930 (c_value_print_inner): Use it.
13931
2faac269
TT
139322020-03-13 Tom Tromey <tom@tromey.com>
13933
13934 * c-valprint.c (c_value_print_int): New function.
13935 (c_value_print_inner): Use it.
13936
da3e2c29
TT
139372020-03-13 Tom Tromey <tom@tromey.com>
13938
13939 * c-valprint.c (c_value_print_ptr): New function.
13940 (c_value_print_inner): Use it.
13941
50836231
TT
139422020-03-13 Tom Tromey <tom@tromey.com>
13943
13944 * c-valprint.c (c_value_print_inner): Rewrite.
13945
4f412b6e
TT
139462020-03-13 Tom Tromey <tom@tromey.com>
13947
13948 * valprint.c (generic_value_print_complex): New function.
13949 (generic_value_print): Use it.
13950
f5354008
TT
139512020-03-13 Tom Tromey <tom@tromey.com>
13952
13953 * valprint.c (generic_val_print_float): Don't call
13954 val_print_scalar_formatted.
13955 (generic_val_print, generic_value_print): Update.
13956
3eec3b05
TT
139572020-03-13 Tom Tromey <tom@tromey.com>
13958
13959 * valprint.c (generic_value_print_char): New function
13960 (generic_value_print): Use it.
13961
fdddfccb
TT
139622020-03-13 Tom Tromey <tom@tromey.com>
13963
13964 * valprint.c (generic_value_print_int): New function.
13965 (generic_value_print): Use it.
13966
6dde7521
TT
139672020-03-13 Tom Tromey <tom@tromey.com>
13968
13969 * valprint.c (generic_value_print_bool): New function.
13970 (generic_value_print): Use it.
13971
4112d2e6
TT
139722020-03-13 Tom Tromey <tom@tromey.com>
13973
13974 * valprint.c (generic_val_print_func): Simplify.
13975 (generic_val_print, generic_value_print): Update.
13976
65786af6
TT
139772020-03-13 Tom Tromey <tom@tromey.com>
13978
13979 * valprint.c (generic_val_print_flags): Remove.
13980 (generic_val_print, generic_value_print): Update.
13981 (val_print_type_code_flags): Add original_value parameter.
13982
40f3ce18
TT
139832020-03-13 Tom Tromey <tom@tromey.com>
13984
13985 * valprint.c (generic_val_print): Update.
13986 (generic_value_print): Update.
13987 * valprint.c (generic_val_print_enum): Don't call
13988 val_print_scalar_formatted.
13989
2a5b130b
TT
139902020-03-13 Tom Tromey <tom@tromey.com>
13991
13992 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13993 * valprint.c (generic_value_print_ptr): New function.
13994
abc66ce9
TT
139952020-03-13 Tom Tromey <tom@tromey.com>
13996
13997 * valprint.c (generic_value_print): Rewrite.
13998
07a32858
TT
139992020-03-13 Tom Tromey <tom@tromey.com>
14000
14001 * p-valprint.c (pascal_object_print_value_fields)
14002 (pascal_object_print_value): New functions.
14003
64d64d3a
TT
140042020-03-13 Tom Tromey <tom@tromey.com>
14005
14006 * p-valprint.c (pascal_value_print_inner): Rewrite.
14007
6a95a1f5
TT
140082020-03-13 Tom Tromey <tom@tromey.com>
14009
14010 * f-valprint.c (f_value_print_innner): Rewrite.
14011
59fcdac6
TT
140122020-03-13 Tom Tromey <tom@tromey.com>
14013
14014 * m2-valprint.c (m2_print_unbounded_array): New overload.
14015 (m2_print_unbounded_array): Update.
14016 (m2_print_array_contents): Take a struct value.
14017 (m2_value_print_inner): Rewrite.
14018
d133c3e1
TT
140192020-03-13 Tom Tromey <tom@tromey.com>
14020
14021 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14022 (d_value_print_inner): New function.
14023 * d-lang.h (d_value_print_inner): Declare.
14024 * d-lang.c (d_language_defn): Use d_value_print_inner.
14025
23b0f06b
TT
140262020-03-13 Tom Tromey <tom@tromey.com>
14027
14028 * go-valprint.c (go_value_print_inner): New function.
14029 * go-lang.h (go_value_print_inner): Declare.
14030 * go-lang.c (go_language_defn): Use go_value_print_inner.
14031
5f56f7cb
TT
140322020-03-13 Tom Tromey <tom@tromey.com>
14033
14034 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14035 API.
14036 (rust_val_print): Rewrite.
14037 (rust_value_print_inner): New function, from rust_val_print.
14038 (rust_language_defn): Use rust_value_print_inner.
14039
26792ee0
TT
140402020-03-13 Tom Tromey <tom@tromey.com>
14041
14042 * ada-valprint.c (ada_value_print_inner): New function.
14043 * ada-lang.h (ada_value_print_inner): Declare.
14044 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14045
24051bbe
TT
140462020-03-13 Tom Tromey <tom@tromey.com>
14047
14048 * f-valprint.c (f_value_print_innner): New function.
14049 * f-lang.h (f_value_print_innner): Declare.
14050 * f-lang.c (f_language_defn): Use f_value_print_innner.
14051
c0941be6
TT
140522020-03-13 Tom Tromey <tom@tromey.com>
14053
14054 * p-valprint.c (pascal_value_print_inner): New function.
14055 * p-lang.h (pascal_value_print_inner): Declare.
14056 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14057
62c4663d
TT
140582020-03-13 Tom Tromey <tom@tromey.com>
14059
14060 * m2-valprint.c (m2_value_print_inner): New function.
14061 * m2-lang.h (m2_value_print_inner): Declare.
14062 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14063
62182190
TT
140642020-03-13 Tom Tromey <tom@tromey.com>
14065
14066 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14067 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14068 * c-valprint.c (c_value_print_inner): New function.
14069 * c-lang.h (c_value_print_inner): Declare.
14070 * c-lang.c (c_language_defn, cplus_language_defn)
14071 (asm_language_defn, minimal_language_defn): Use
14072 c_value_print_inner.
14073
1e592a8a
TT
140742020-03-13 Tom Tromey <tom@tromey.com>
14075
14076 * p-valprint.c (pascal_object_print_value_fields): Now static.
14077 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14078
7fe471e9
TT
140792020-03-13 Tom Tromey <tom@tromey.com>
14080
14081 * c-valprint.c (c_val_print_array): Simplify.
14082
d121c6ce
TT
140832020-03-13 Tom Tromey <tom@tromey.com>
14084
14085 * valprint.c (value_print_array_elements): New function.
14086 * valprint.h (value_print_array_elements): Declare.
14087
4dba70ee
TT
140882020-03-13 Tom Tromey <tom@tromey.com>
14089
14090 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14091 * mips-tdep.c (mips_print_register): Use
14092 value_print_scalar_formatted.
14093
4f9ae810
TT
140942020-03-13 Tom Tromey <tom@tromey.com>
14095
14096 * valprint.h (value_print_scalar_formatted): Declare.
14097 * valprint.c (value_print_scalar_formatted): New function.
14098
156bfec9
TT
140992020-03-13 Tom Tromey <tom@tromey.com>
14100
14101 * valprint.h (generic_value_print): Declare.
14102 * valprint.c (generic_value_print): New function.
14103
2b4e573d
TT
141042020-03-13 Tom Tromey <tom@tromey.com>
14105
14106 * valprint.c (do_val_print): Call la_value_print_inner, if
14107 available.
14108 * rust-lang.c (rust_language_defn): Update.
14109 * p-lang.c (pascal_language_defn): Update.
14110 * opencl-lang.c (opencl_language_defn): Update.
14111 * objc-lang.c (objc_language_defn): Update.
14112 * m2-lang.c (m2_language_defn): Update.
14113 * language.h (struct language_defn) <la_value_print_inner>: New
14114 member.
14115 * language.c (unknown_language_defn, auto_language_defn): Update.
14116 * go-lang.c (go_language_defn): Update.
14117 * f-lang.c (f_language_defn): Update.
14118 * d-lang.c (d_language_defn): Update.
14119 * c-lang.c (c_language_defn, cplus_language_defn)
14120 (asm_language_defn, minimal_language_defn): Update.
14121 * ada-lang.c (ada_language_defn): Update.
14122
a1f6a07c
TT
141232020-03-13 Tom Tromey <tom@tromey.com>
14124
14125 * c-valprint.c (c_value_print): Use common_val_print.
14126
410cf315
TT
141272020-03-13 Tom Tromey <tom@tromey.com>
14128
14129 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14130
72a45c93
TT
141312020-03-13 Tom Tromey <tom@tromey.com>
14132
14133 * f-valprint.c (f77_print_array_1, f_val_print): Use
14134 common_val_print.
14135
040f66bd
TT
141362020-03-13 Tom Tromey <tom@tromey.com>
14137
14138 * riscv-tdep.c (riscv_print_one_register_info): Use
14139 common_val_print.
14140
a6e05a6c
TT
141412020-03-13 Tom Tromey <tom@tromey.com>
14142
14143 * mi/mi-main.c (output_register): Use common_val_print.
14144
3444c526
TT
141452020-03-13 Tom Tromey <tom@tromey.com>
14146
14147 * infcmd.c (default_print_one_register_info): Use
14148 common_val_print.
14149
c2a44efe
TT
141502020-03-13 Tom Tromey <tom@tromey.com>
14151
14152 * valprint.h (common_val_print_checked): Declare.
14153 * valprint.c (common_val_print_checked): New function.
14154 * stack.c (print_frame_arg): Use common_val_print_checked.
14155
b0c26e99
TT
141562020-03-13 Tom Tromey <tom@tromey.com>
14157
14158 * valprint.c (do_val_print): New function, from val_print.
14159 (val_print): Use do_val_print.
14160 (common_val_print): Use do_val_print.
14161
ce3acbe9
TT
141622020-03-13 Tom Tromey <tom@tromey.com>
14163
14164 * valprint.c (value_print): Use scoped_value_mark.
14165
96c7f873
TV
141662020-03-13 Tom de Vries <tdevries@suse.de>
14167
14168 PR symtab/25646
14169 * psymtab.c (partial_symtab::partial_symtab): Don't set
14170 globals_offset and statics_offset. Push element onto
14171 current_global_psymbols and current_static_psymbols stacks.
14172 (concat): New function.
14173 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14174 element from current_global_psymbols and current_static_psymbols
14175 stacks. Concat popped elements to global_psymbols and
14176 static_symbols.
14177 (add_psymbol_to_list): Use current_global_psymbols and
14178 current_static_psymbols stacks.
14179 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14180 current_static_psymbols fields.
14181
6ba0a321
CB
141822020-03-12 Christian Biesinger <cbiesinger@google.com>
14183
14184 * corelow.c (sniff_core_bfd): Remove.
14185 (class core_target) <m_core_vec>: Remove.
14186 (core_target::core_target): Update.
14187 (core_file_fns): Remove.
14188 (deprecated_add_core_fns): Remove.
14189 (default_core_sniffer): Remove.
14190 (sniff_core_bfd): Remove.
14191 (default_check_format): Remove.
14192 (gdb_check_format): Remove.
14193 (core_target_open): Update.
14194 (core_target::get_core_register_section): Update.
14195 (get_core_registers_cb): Update.
14196 (core_target::fetch_registers): Update.
14197 * gdbcore.h (struct core_fns): Remove.
14198 (deprecated_add_core_fns): Remove.
14199 (default_core_sniffer): Remove.
14200 (default_check_format): Remove.
14201
227031b2
TT
142022020-03-12 Tom Tromey <tom@tromey.com>
14203
14204 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14205 CORE_ADDR.
14206 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14207
53807e9f
TT
142082020-03-12 Tom Tromey <tom@tromey.com>
14209
14210 * remote.c (remote_target::download_tracepoint)
14211 (remote_target::enable_tracepoint)
14212 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14213 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14214 sprintf_vma.
14215
64f25102
TT
142162020-03-12 Tom Tromey <tom@tromey.com>
14217
14218 * symfile-mem.c: Update CORE_ADDR size assert.
14219
272cd5a3
SM
142202020-03-12 Simon Marchi <simon.marchi@efficios.com>
14221
14222 * selftest.m4: Move to gdbsupport/.
14223 * acinclude.m4: Update path to selftest.m4.
14224
74cd3f9d
SM
142252020-03-12 Simon Marchi <simon.marchi@efficios.com>
14226
14227 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14228 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14229 gdbarch-selfselftests.c and selftest-arch.c.
14230 (SUBDIR_UNITTESTS_OBS): Rename to...
14231 (SELFTESTS_OBS): ... this.
14232 (COMMON_SFILES): Remove disasm-selftests.c and
14233 gdbarch-selftests.c.
14234 * configure.ac: Don't add selftest-arch.{c,o} to
14235 CONFIG_{SRCS,OBS}.
14236 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14237 preprocessor conditions.
14238
db6878ac
SM
142392020-03-12 Simon Marchi <simon.marchi@efficios.com>
14240
14241 * configure.ac: Don't source bfd/development.sh.
14242 * selftest.m4: Modify comment.
14243 * configure: Re-generate.
14244
4d696a5c
SM
142452020-03-12 Simon Marchi <simon.marchi@efficios.com>
14246
14247 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14248 not "true" or "false".
14249 * configure: Re-generate.
14250
8dd8e1c7
CB
142512020-03-12 Christian Biesinger <cbiesinger@google.com>
14252
14253 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14254 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14255 renamed to arm_nbsd_supply_gregset.
14256 (fetch_register): Update to call arm_nbsd_supply_gregset.
14257 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14258 (arm_netbsd_nat_target::fetch_registers): Update.
14259 (fetch_elfcore_registers): Removed.
14260 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14261 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14262 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14263 not require NetBSD system headers.
14264 (arm_nbsd_regset): New struct.
14265 (arm_nbsd_iterate_over_regset_sections): New function.
14266 (arm_netbsd_init_abi_common): Updated to call
14267 set_gdbarch_iterate_over_regset_sections.
14268 * arm-nbsd-tdep.h: New file.
14269
dd69bf7a
KB
142702020-03-11 Kevin Buettner <kevinb@redhat.com>
14271
14272 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14273 recursion.
14274
a0761e34
SM
142752020-03-11 Simon Marchi <simon.marchi@efficios.com>
14276
14277 * configure: Re-generate.
14278
e7a82140
TT
142792020-03-11 Tom Tromey <tromey@adacore.com>
14280
14281 * ada-typeprint.c (print_choices): Fix comment.
14282
dcc050c8
AB
142832020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14284
14285 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14286 previous item in the list, when the list has no items.
14287
1c33af77
TV
142882020-03-11 Tom de Vries <tdevries@suse.de>
14289
14290 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14291 PROP_LOCLIST handling code.
14292
8c95582d
AB
142932020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14294
14295 * buildsym-legacy.c (record_line): Pass extra parameter to
14296 record_line.
14297 * buildsym.c (buildsym_compunit::record_line): Take an extra
14298 parameter, reduce duplication in the line table, and record the
14299 is_stmt flag in the line table.
14300 * buildsym.h (buildsym_compunit::record_line): Add extra
14301 parameter.
14302 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14303 non-statement lines.
14304 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14305 this to the symtab builder.
14306 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14307 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14308 through to dwarf_record_line_1.
14309 * infrun.c (process_event_stop_test): When stepping, don't stop at
14310 a non-statement instruction, and only refresh the step info when
14311 we land in the middle of a line's range. Also add an extra
14312 comment.
14313 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14314 field.
14315 * record-btrace.c (btrace_find_line_range): Only record lines
14316 marked as is-statement.
14317 * stack.c (frame_show_address): Show the frame address if we are
14318 in a non-statement sal.
14319 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14320 (maintenance_print_one_line_table): Print a header for the is_stmt
14321 column, and include is_stmt information in the output.
14322 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14323 preference to non-statements.
14324 (find_pcs_for_symtab_line): Prefer is-statement entries.
14325 (find_line_common): Likewise.
14326 * symtab.h (struct linetable_entry): Add is_stmt field.
14327 (struct symtab_and_line): Likewise.
14328 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14329 arranging the line table.
14330
e4003a34
TV
143312020-03-07 Tom de Vries <tdevries@suse.de>
14332
14333 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14334 DIE.
14335
e8932576
TT
143362020-03-07 Tom Tromey <tom@tromey.com>
14337
14338 * valops.c (value_literal_complex): Remove obsolete comment.
14339 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14340 comment.
14341
29734269
SM
143422020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14343
14344 * infrun.h: Forward-declare thread_info.
14345 (set_step_info): Add thread_info parameter, add doc.
14346 * infrun.c (set_step_info): Add thread_info parameter, move doc
14347 to header.
14348 * infrun.c (process_event_stop_test): Pass thread to
14349 set_step_info call.
14350 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14351 set_step_info.
14352 (prepare_one_step): Add thread_info parameter, pass it to
14353 set_step_frame and prepare_one_step (recursive) call.
14354 (step_1): Pass thread to prepare_one_step call.
14355 (step_command_fsm::should_stop): Pass thread to
14356 prepare_one_step.
14357 (until_next_fsm): Pass thread to set_step_frame call.
14358 (finish_command): Pass thread to set_step_info call.
14359
b7d64b29
HD
143602020-03-06 Hannes Domani <ssbssa@yahoo.de>
14361
14362 * windows-tdep.c (windows_solib_create_inferior_hook):
14363 Check if inferior is running.
14364
09f2921c
TV
143652020-03-06 Tom de Vries <tdevries@suse.de>
14366
14367 * NEWS: Fix "the the".
14368 * ctfread.c: Same.
14369
fd760e79
TV
143702020-03-06 Tom de Vries <tdevries@suse.de>
14371
14372 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14373
20ea4a60
AB
143742020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14375
14376 * .dir-locals.el: Add a comment referencing the other copies of
14377 this file.
14378
0afbabf0
JB
143792020-03-05 John Baldwin <jhb@FreeBSD.org>
14380
14381 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14382 psargs.
14383
842806cb
TBA
143842020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14385
14386 * .gitattributes: New file.
14387
be1e3d3e
TT
143882020-03-04 Tom Tromey <tom@tromey.com>
14389
14390 * symmisc.c (print_symbol_bcache_statistics)
14391 (print_objfile_statistics): Update.
14392 * symfile.c (allocate_symtab): Use intern.
14393 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14394 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14395 macro_cache>: Remove.
14396 <string_cache>: New member.
14397 (struct objfile) <intern>: New methods.
14398 * elfread.c (elf_symtab_read): Use intern.
14399 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14400 (dwarf2_compute_name, dwarf2_physname)
14401 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14402 names.
14403 (guess_partial_die_structure_name): Update.
14404 (partial_die_info::fixup): Intern name.
14405 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14406 name.
14407 (dwarf2_name): Intern name. Update.
14408 * buildsym.c (buildsym_compunit::get_macro_table): Use
14409 string_cache.
14410
4e7625fd
TT
144112020-03-04 Tom Tromey <tom@tromey.com>
14412
14413 * jit.c (bfd_open_from_target_memory): Make "target" const.
14414 * corefile.c (gnutarget): Now const.
14415 * gdbcore.h (gnutarget): Now const.
14416
46f9f931
HD
144172020-03-04 Hannes Domani <ssbssa@yahoo.de>
14418
14419 * NEWS: Mention support for WOW64 processes.
14420 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14421 (amd64_windows_segment_register_p): Remove static.
14422 (_initialize_amd64_windows_nat): Update.
14423 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14424 * i386-windows-nat.c (context_offset): Update.
14425 (i386_mappings): Rename and remove static.
14426 (i386_windows_segment_register_p): Remove static.
14427 (_initialize_i386_windows_nat): Update.
14428 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14429 (STATUS_WX86_SINGLE_STEP): New macro.
14430 (EnumProcessModulesEx): New macro.
14431 (Wow64SuspendThread): New macro.
14432 (Wow64GetThreadContext): New macro.
14433 (Wow64SetThreadContext): New macro.
14434 (Wow64GetThreadSelectorEntry): New macro.
14435 (windows_set_context_register_offsets): Add static.
14436 (windows_set_segment_register_p): Likewise.
14437 (windows_add_thread): Adapt for WOW64 processes.
14438 (windows_fetch_one_register): Likewise.
14439 (windows_nat_target::fetch_registers): Likewise.
14440 (windows_store_one_register): Likewise.
14441 (display_selector): Likewise.
14442 (display_selectors): Likewise.
14443 (handle_exception): Likewise.
14444 (windows_continue): Likewise.
14445 (windows_nat_target::resume): Likewise.
14446 (windows_add_all_dlls): Likewise.
14447 (do_initial_windows_stuff): Likewise.
14448 (windows_nat_target::attach): Likewise.
14449 (windows_get_exec_module_filename): Likewise.
14450 (windows_nat_target::create_inferior): Likewise.
14451 (windows_xfer_siginfo): Likewise.
14452 (_initialize_loadable): Initialize Wow64SuspendThread,
14453 Wow64GetThreadContext, Wow64SetThreadContext,
14454 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14455 * windows-nat.h (windows_set_context_register_offsets):
14456 Remove declaration.
14457 (windows_set_segment_register_p): Likewise.
14458 (i386_windows_segment_register_p): Add declaration.
14459 (amd64_windows_segment_register_p): Likewise.
14460
440cf44e
LM
144612020-03-04 Luis Machado <luis.machado@linaro.org>
14462
14463 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14464 in "info registers" for AArch64/ARM.
14465
14466 The change caused "info registers" to not print GPR's.
14467
14468 gdb/ChangeLog:
14469
14470 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14471
14472 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14473 when reg->group is empty and reggroup is not.
14474
1009d92f
TT
144752020-03-03 Tom Tromey <tromey@adacore.com>
14476
14477 * dwarf2/frame.c (struct dwarf2_frame_cache)
14478 <checked_tailcall_bottom, entry_cfa_sp_offset,
14479 entry_cfa_sp_offset_p>: Remove members.
14480 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14481 (dwarf2_frame_prev_register): Don't call
14482 dwarf2_tailcall_sniffer_first.
14483 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14484 * frame-unwind.c (add_unwinder): New fuction.
14485 (frame_unwind_init): Use it. Add tailcall unwinder.
14486
5e5d66b6
AB
144872020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14488 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14489
14490 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14491 value should be printed as true.
14492
584cf46d
HD
144932020-03-03 Hannes Domani <ssbssa@yahoo.de>
14494
14495 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14496 (windows_init_abi): Set and use windows_so_ops.
14497
7b973adc
SDJ
144982020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14499
14500 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14501 when verifying if dealing with a convenience variable.
14502
bb7b70ab
LM
145032020-03-03 Luis Machado <luis.machado@linaro.org>
14504
14505 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14506
9822cb57
SM
145072020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14508
14509 * infrun.c (gdbarch_supports_displaced_stepping): New.
14510 (use_displaced_stepping): Break up conditions in smaller pieces.
14511 Use gdbarch_supports_displaced_stepping.
14512 (displaced_step_prepare_throw): Use
14513 gdbarch_supports_displaced_stepping.
14514
63e163f2
AB
145152020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14516
14517 * NEWS: Mention new behaviour of the history filename.
14518 * top.c (write_history_p): Add comment.
14519 (show_write_history_p): Add header comment, give a different
14520 message when history writing is on, but the history filename is
14521 empty.
14522 (history_filename): Add comment.
14523 (history_filename_empty): New function.
14524 (show_history_filename): Add header comment, give a different
14525 message when the filename is empty.
14526 (init_history): Compare history_filename against nullptr, and only
14527 read history if the filename is not empty.
14528 (set_history_filename): Add header comment, and only make
14529 non-empty filenames absolute.
14530 (init_main): Make the filename argument to 'set history filename'
14531 optional.
14532
81b86b97
CB
145332020-03-02 Christian Biesinger <cbiesinger@google.com>
14534
14535 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14536 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14537 (fetch_fp_register): Update.
14538 (fetch_fp_regs): Update.
14539 (store_fp_register): Update.
14540 (store_fp_regs): Update.
14541 (arm_netbsd_nat_target::read_description): New function.
14542 (fetch_elfcore_registers): Update.
14543
24ed6739
AB
145442020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14545
14546 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14547 general_thread if the stop reply is missing a thread-id.
14548 (remote_target::process_stop_reply): Use the first non-exited
14549 thread if the target didn't pass a thread-id.
14550 * infrun.c (do_target_wait): Move call to
14551 switch_to_inferior_no_thread to ....
14552 (do_target_wait_1): ... here.
14553
a84bb2a0
JT
145542020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14555
14556 * debuginfod-support.c: Include defs.h first.
14557
658dadf0
TV
145582020-02-28 Tom de Vries <tdevries@suse.de>
14559
14560 * symfile.c (set_initial_language): Use default language for lookup.
14561
4ebe4877
SM
145622020-02-28 Simon Marchi <simon.marchi@efficios.com>
14563
14564 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14565 reader variable, pass `this` to read_cutu_die_from_dwo.
14566
e5da1139
AM
145672020-02-27 Aaron Merey <amerey@redhat.com>
14568
14569 * source.c (open_source_file): Check for nullptr when computing
14570 srcpath.
14571
317f7127
TT
145722020-02-27 Tom Tromey <tromey@adacore.com>
14573
14574 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14575 member.
14576 (dwarf2_add_field): Don't update nfields.
14577 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14578
3104d9ee
AB
145792020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14580
14581 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14582 abs.
14583
b83470bf
TT
145842020-02-26 Tom Tromey <tom@tromey.com>
14585
14586 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14587 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14588 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14589 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14590 per_cu_data.
14591
edfe0a0c
TT
145922020-02-26 Tom Tromey <tom@tromey.com>
14593
14594 * dwarf2/index-write.c (psym_index_map): Change type.
14595 (add_address_entry_worker, write_one_signatured_type)
14596 (recursively_count_psymbols, recursively_write_psymbols)
14597 (class debug_names, psyms_seen_size, write_gdbindex)
14598 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14599
0d79cdc4
AM
146002020-02-26 Aaron Merey <amerey@redhat.com>
14601
14602 * Makefile.in: Handle optional debuginfod support.
14603 * NEWS: Update.
14604 * README: Add --with-debuginfod summary.
14605 * config.in: Regenerate.
14606 * configure: Regenerate.
14607 * configure.ac: Handle optional debuginfod support.
14608 * debuginfod-support.c: debuginfod helper functions.
14609 * debuginfod-support.h: Ditto.
14610 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14611 summary.
14612 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14613 when a dwz file cannot be found.
14614 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14615 debuginfo file cannot be found.
14616 * source.c (open_source_file): Query debuginfod servers when a
14617 source file cannot be found.
14618 * top.c (print_gdb_configuration): Include
14619 --{with,without}-debuginfod in the output.
14620
b65ce565
JG
146212020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14622
14623 * thread.c (thr_try_catch_cmd): Print thread name.
14624
d4c9a4f8
SM
146252020-02-26 Simon Marchi <simon.marchi@efficios.com>
14626
14627 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14628 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14629 dwarf2_fetch_die_type_sect_off): Move to...
14630 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14631 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14632 dwarf2_fetch_die_type_sect_off): ... here.
14633 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14634 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14635 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14636
0dce4280
TV
146372020-02-26 Tom de Vries <tdevries@suse.de>
14638
14639 PR gdb/25603
14640 * symfile.c (set_initial_language): Exit-early if
14641 language_mode == language_mode_manual.
14642
450a1bfc
SM
146432020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14644
14645 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14646 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14647 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14648
9e80cfa1
AB
146492020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14650
14651 * gdbtypes.c (create_array_type_with_stride): Handle negative
14652 array strides.
14653 * valarith.c (value_subscripted_rvalue): Likewise.
14654
09624f1f
LM
146552020-02-25 Luis Machado <luis.machado@linaro.org>
14656
14657 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14658
8cb5117c
SM
146592020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14660
14661 * loc.h (dwarf2_get_die_type): Move to...
14662 * read.h (dwarf2_get_die_type): ... here.
14663 * read.c (dwarf2_get_die_type): Move doc to header.
14664
c325c44e
JB
146652020-02-25 Joel Brobecker <brobecker@adacore.com>
14666
14667 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14668 'gnulib/Makefile.in' to the list.
14669
4ac93832
TT
146702020-02-24 Tom Tromey <tom@tromey.com>
14671
14672 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14673 Remove.
14674 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14675 XOBNEWVEC.
14676
197400e8
TT
146772020-02-24 Tom Tromey <tom@tromey.com>
14678
14679 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14680 New method.
14681 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14682 (dw2_do_instantiate_symtab, dw2_get_file_names)
14683 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14684
76935768
TT
146852020-02-24 Tom Tromey <tom@tromey.com>
14686
14687 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14688 make_scoped_restore.
14689 (dwarf2_psymtab::read_symtab): Don't clear
14690 reading_partial_symbols.
14691
a88ef40d
TV
146922020-02-24 Tom de Vries <tdevries@suse.de>
14693
14694 PR gdb/25592
14695 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14696
c9af6521
TV
146972020-02-24 Tom de Vries <tdevries@suse.de>
14698
14699 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14700 commands layout next/prev/regs.
14701
5707a07a
TT
147022020-02-22 Tom Tromey <tom@tromey.com>
14703
14704 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14705 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14706
3b0fb49e
TT
147072020-02-22 Tom Tromey <tom@tromey.com>
14708
14709 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14710
283be8bf
TT
147112020-02-22 Tom Tromey <tom@tromey.com>
14712
14713 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14714 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14715 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14716 * tui/tui.c (_initialize_tui): Add usage text.
14717
ca793b96
TT
147182020-02-22 Tom Tromey <tom@tromey.com>
14719
14720 * tui/tui-win.c (tui_set_focus_command)
14721 (tui_set_win_height_command): Use error_no_arg.
14722 (_initialize_tui_win): Update help text.
14723 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14724
432b5c40
TT
147252020-02-22 Tom Tromey <tom@tromey.com>
14726
14727 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14728 * tui/tui-disasm.h (struct tui_disasm_window)
14729 <display_start_addr>: Declare.
14730 * tui/tui-source.h (struct tui_source_window)
14731 <display_start_addr>: Declare.
14732 * tui/tui-winsource.h (struct tui_source_window_base)
14733 <show_source_line, display_start_addr>: New methods.
14734 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14735 Rename and move to protected section.
14736 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14737 (tui_source_window_base::do_erase_source_content): Update.
14738 (tui_source_window_base::show_source_line): Now a method.
14739 (tui_source_window_base::show_source_content)
14740 (tui_source_window_base::tui_source_window_base)
14741 (tui_source_window_base::rerender)
14742 (tui_source_window_base::refill)
14743 (tui_source_window_base::do_scroll_horizontal)
14744 (tui_source_window_base::set_is_exec_point_at)
14745 (tui_source_window_base::update_breakpoint_info)
14746 (tui_source_window_base::update_exec_info): Update.
14747 * tui/tui-source.c (tui_source_window::set_contents)
14748 (tui_source_window::showing_source_p)
14749 (tui_source_window::do_scroll_vertical)
14750 (tui_source_window::location_matches_p)
14751 (tui_source_window::line_is_displayed): Update.
14752 (tui_source_window::display_start_addr): New method.
14753 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14754 (tui_disasm_window::do_scroll_vertical)
14755 (tui_disasm_window::location_matches_p): Update.
14756 (tui_disasm_window::display_start_addr): New method.
14757
01b1af32
TT
147582020-02-22 Tom Tromey <tom@tromey.com>
14759
14760 * NEWS: Add entry for gdb.register_window_type.
14761 * tui/tui-layout.h (window_factory): New typedef.
14762 (tui_register_window): Declare.
14763 * tui/tui-layout.c (saved_tui_windows): New global.
14764 (tui_apply_current_layout): Use it.
14765 (tui_register_window): New function.
14766 * python/python.c (do_start_initialization): Call
14767 gdbpy_initialize_tui.
14768 (python_GdbMethods): Add "register_window_type" function.
14769 * python/python-internal.h (gdbpy_register_tui_window)
14770 (gdbpy_initialize_tui): Declare.
14771 * python/py-tui.c: New file.
14772 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14773
fc96d20b
TT
147742020-02-22 Tom Tromey <tom@tromey.com>
14775
14776 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14777
935c78c0
TT
147782020-02-22 Tom Tromey <tom@tromey.com>
14779
14780 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14781 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14782 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14783 (tui_set_win_focus_to): Move from tui-win.c.
14784
0240c8f1
TT
147852020-02-22 Tom Tromey <tom@tromey.com>
14786
14787 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14788 functions.
14789 (known_window_types): New global.
14790 (tui_get_window_by_name): Reimplement.
14791 (initialize_known_windows): New function.
14792 (validate_window_name): Rewrite.
14793 (_initialize_tui_layout): Call initialize_known_windows.
14794
fdb01f0c
TT
147952020-02-22 Tom Tromey <tom@tromey.com>
14796
14797 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14798 Remove constants.
14799 * tui/tui-winsource.h (struct tui_source_window_base)
14800 <tui_source_window_base>: Remove parameter.
14801 * tui/tui-winsource.c
14802 (tui_source_window_base::tui_source_window_base): Remove
14803 parameter.
14804 (tui_source_window_base::refill): Update.
14805 * tui/tui-stack.h (struct tui_locator_window)
14806 <tui_locator_window>: Update.
14807 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14808 Default the constructor.
14809 * tui/tui-regs.h (struct tui_data_item_window)
14810 <tui_data_item_window>: Default the constructor.
14811 (struct tui_data_window) <tui_data_window>: Likewise.
14812 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14813 Default the constructor.
14814 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14815 Default the constructor.
14816 <type>: Remove.
14817 (struct tui_win_info) <tui_win_info>: Default the constructor.
14818 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14819 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14820 Default the constructor.
14821
865a5aec
TT
148222020-02-22 Tom Tromey <tom@tromey.com>
14823
14824 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14825 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14826 * tui/tui-win.c (tui_resize_all): Don't call
14827 tui_delete_invisible_windows.
14828 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14829 done.
14830 (tui_set_layout): Update.
14831 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14832 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14833 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14834
e098d18c
TT
148352020-02-22 Tom Tromey <tom@tromey.com>
14836
14837 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14838 correctly.
14839
eb9c8874
TT
148402020-02-22 Tom Tromey <tom@tromey.com>
14841
14842 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14843
7eed1a8e
TT
148442020-02-22 Tom Tromey <tom@tromey.com>
14845
14846 * tui/tui-winsource.h (struct tui_source_window_iterator)
14847 <inner_iterator>: New etytypedef.
14848 <tui_source_window_iterator>: Take "end" parameter.
14849 <tui_source_window_iterator>: Take iterator.
14850 <operator*, advance>: Update.
14851 <m_iter>: Change type.
14852 <m_end>: New field.
14853 (struct tui_source_windows) <begin, end>: Update.
14854 * tui/tui-layout.c (tui_windows): New global.
14855 (tui_apply_current_layout): Clear tui_windows.
14856 (tui_layout_window::apply): Update tui_windows.
14857 * tui/tui-data.h (tui_windows): Declare.
14858 (all_tui_windows): Now inline function.
14859 (class tui_window_iterator, struct all_tui_windows): Remove.
14860
7c043ba6
TT
148612020-02-22 Tom Tromey <tom@tromey.com>
14862
14863 PR tui/17850:
14864 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14865 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14866 "height" argument.
14867 (class tui_layout_window) <get_sizes>: Likewise.
14868 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14869 argument.
14870 <get_sizes>: Add "height" argument.
14871 <m_vertical>: New field.
14872 * tui/tui-layout.c (tui_layout_split::clone): Update.
14873 (tui_layout_split::get_sizes): Add "height" argument.
14874 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14875 (tui_new_layout_command): Parse "-horizontal".
14876 (_initialize_tui_layout): Update help string.
14877 (tui_layout_split::specification): Add "-horizontal" when needed.
14878 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14879 argument.
14880 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14881 New methods.
14882
6bc56648
TT
148832020-02-22 Tom Tromey <tom@tromey.com>
14884
14885 * tui/tui-layout.h (enum tui_adjust_result): New.
14886 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14887 (class tui_layout_window) <adjust_size>: Return
14888 tui_adjust_result. Rewrite.
14889 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14890 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14891
c22fef7e
TT
148922020-02-22 Tom Tromey <tom@tromey.com>
14893
14894 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14895 parameter and return types.
14896 (class tui_layout_base) <specification>: Add "depth".
14897 (class tui_layout_window) <specification>: Add "depth".
14898 (class tui_layout_split) <specification>: Add "depth".
14899 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14900 and return types.
14901 (tui_new_layout_command): Parse sub-layouts.
14902 (_initialize_tui_layout): Update help string.
14903 (tui_layout_window::specification): Add "depth".
14904 (add_layout_command): Update.
14905
ee325b61
TT
149062020-02-22 Tom Tromey <tom@tromey.com>
14907
14908 * NEWS: Add "tui new-layout" item.
14909 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14910 Add new-layout command to help text.
14911 (validate_window_name): New function.
14912 (tui_new_layout_command): New function.
14913 (_initialize_tui_layout): Register "new-layout".
14914 (tui_layout_window::specification): New method.
14915 (tui_layout_window::specification): New method.
14916 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14917 method.
14918 (class tui_layout_window) <specification>: New method.
14919 (class tui_layout_split) <specification>: New method.
14920
416eb92d
TT
149212020-02-22 Tom Tromey <tom@tromey.com>
14922
14923 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14924 * tui/tui-win.c (window_name_completer): Update comment.
14925 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14926 Declare method.
14927 (class tui_layout_window) <replace_window>: Likewise.
14928 (class tui_layout_split) <replace_window>: Likewise.
14929 (tui_set_layout): Don't declare.
14930 (tui_set_initial_layout): Declare function.
14931 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14932 (asm_regs_layout): New globals.
14933 (tui_current_layout, show_layout): Remove.
14934 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14935 (find_layout, tui_apply_layout): New function.
14936 (layout_completer): Remove.
14937 (tui_next_layout): Reimplement.
14938 (tui_next_layout_command): New function.
14939 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14940 (tui_regs_layout): Reimplement.
14941 (tui_regs_layout_command): New function.
14942 (extract_display_start_addr): Rewrite.
14943 (next_layout, prev_layout): Remove.
14944 (tui_layout_window::replace_window): New method.
14945 (tui_layout_split::replace_window): New method.
14946 (destroy_layout): New function.
14947 (layout_list): New global.
14948 (add_layout_command): New function.
14949 (initialize_layouts): Update.
14950 (tui_layout_command): New function.
14951 (_initialize_tui_layout): Install "layout" commands.
14952 * tui/tui-data.h (enum tui_layout_type): Remove.
14953 (tui_current_layout): Don't declare.
14954
0dbc2fc7
TT
149552020-02-22 Tom Tromey <tom@tromey.com>
14956
14957 * tui/tui-regs.c (tui_reg_layout): Remove.
14958 (tui_reg_command): Use tui_regs_layout.
14959 * tui/tui-layout.h (tui_reg_command): Declare.
14960 * tui/tui-layout.c (tui_reg_command): New function.
14961
5afe342e
TT
149622020-02-22 Tom Tromey <tom@tromey.com>
14963
14964 * tui/tui.c (tui_rl_delete_other_windows): Call
14965 tui_remove_some_windows.
14966 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14967 Declare method.
14968 (class tui_layout_window) <remove_windows>: New method.
14969 (class tui_layout_split) <remove_windows>: Declare.
14970 (tui_remove_some_windows): Declare.
14971 * tui/tui-layout.c (tui_remove_some_windows): New function.
14972 (tui_layout_split::remove_windows): New method.
14973
427326a8
TT
149742020-02-22 Tom Tromey <tom@tromey.com>
14975
14976 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14977 * tui/tui-layout.h (tui_next_layout): Declare.
14978 * tui/tui-layout.c (tui_next_layout): New function.
14979
3fe12b6d
TT
149802020-02-22 Tom Tromey <tom@tromey.com>
14981
14982 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14983 correct coordinates.
14984
59b8b5d2
TT
149852020-02-22 Tom Tromey <tom@tromey.com>
14986
14987 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14988 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14989 DATA_WIN case.
14990
2a3d458b
TT
149912020-02-22 Tom Tromey <tom@tromey.com>
14992
14993 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14994 TUI_DISASM_WIN, not tui_win_list.
14995
3f0cbb04
TT
149962020-02-22 Tom Tromey <tom@tromey.com>
14997
14998 * valprint.c (generic_val_print_enum_1)
14999 (val_print_type_code_flags): Style member names.
15000 * rust-lang.c (val_print_struct, rust_print_enum)
15001 (rust_print_struct_def, rust_internal_print_type): Style member
15002 names.
15003 * p-valprint.c (pascal_object_print_value_fields): Style member
15004 names. Only call fprintf_symbol_filtered for static members.
15005 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15006 * f-valprint.c (f_val_print): Style member names.
15007 * f-typeprint.c (f_type_print_base): Style member names.
15008 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15009 call fprintf_symbol_filtered for static members.
15010 (cp_print_class_member): Style member names.
15011 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15012 member names.
15013 * ada-valprint.c (ada_print_scalar): Style enum names.
15014 (ada_val_print_enum): Likewise.
15015 * ada-typeprint.c (print_enum_type): Style enum names.
15016
d4d947ae
TT
150172020-02-21 Tom Tromey <tom@tromey.com>
15018
15019 * psympriv.h (struct partial_symtab): Update comment.
15020
e94e944b
TT
150212020-02-21 Tom Tromey <tromey@adacore.com>
15022
15023 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15024 type is CORE_ADDR.
15025
1eb73179
TV
150262020-02-21 Tom de Vries <tdevries@suse.de>
15027
15028 PR gdb/25534
15029 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15030 if dependencies[i]->user != NULL.
15031
4f180d53
AT
150322020-02-21 Ali Tamur <tamur@google.com>
15033
15034 * dwarf2/read.c (dwarf2_name): Add null check.
15035
22b6cd70
TT
150362020-02-20 Tom Tromey <tom@tromey.com>
15037
15038 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15039 ">=", in binary search.
15040 (dwarf2_find_containing_comp_unit): New overload.
15041 (run_test): New self-test.
15042 (_initialize_dwarf2_read): Register new test.
15043
bd0cf5a6
NC
150442020-02-20 Nelson Chu <nelson.chu@sifive.com>
15045
15046 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15047 * riscv-tdep.h: Likewise.
15048 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15049 rv32-only CSR.
15050 * features/riscv/64bit-csr.xml: Regenerated.
15051
3f702acd
SDJ
150522020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15053 Tom Tromey <tom@tromey.com>
15054
15055 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15056 of 'fputc_unfiltered'.
15057 (putchar_unfiltered): Call 'fputc_unfiltered'.
15058 (fputc_unfiltered): Call 'fputs_unfiltered'.
15059
d13c7322
AB
150602020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15061
15062 * config.in: Regenerate.
15063 * configure: Regenerate.
15064 * configure.ac: Add --with-python-libdir option.
15065 * main.c: Use WITH_PYTHON_LIBDIR.
15066
869d8950
TT
150672020-02-19 Tom Tromey <tom@tromey.com>
15068
15069 * symtab.c (general_symbol_info::compute_and_set_names): Use
15070 obstack_strndup. Simplify call to symbol_set_demangled_name.
15071
298e9637
SM
150722020-02-19 Simon Marchi <simon.marchi@efficios.com>
15073
15074 * dwarf2/read.c (allocate_signatured_type_table,
15075 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15076 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15077 Remove objfile parameter, update all callers.
15078
08410482
DE
150792020-02-19 Doug Evans <dje@google.com>
15080
15081 PR rust/25535
15082 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15083 rust_enum_variant calculation.
15084
dfdeeca1
TT
150852020-02-19 Tom Tromey <tromey@adacore.com>
15086
15087 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15088
2ef5453b
TT
150892020-02-19 Tom Tromey <tromey@adacore.com>
15090
15091 * ada-lang.c (cache_symbol): Use obstack_strdup.
15092
9f1528a1
AB
150932020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15094
15095 * configure: Regenerate.
15096
d3c22fa8
TT
150972020-02-19 Tom Tromey <tromey@adacore.com>
15098
15099 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15100 NULL check.
15101
bf84f706
MR
151022020-02-19 Maciej W. Rozycki <macro@wdc.com>
15103
15104 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15105
d1c9b20f
AB
151062020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15107
15108 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15109 if GDBSERVER is not defined.
15110 (riscv_tdesc_cache): Likewise, also store const target_desc.
15111 (STATIC_IN_GDB): Define.
15112 (riscv_create_target_description): Update declaration with
15113 STATIC_IN_GDB.
15114 (riscv_lookup_target_description): New function, only define if
15115 GDBSERVER is not defined.
15116 * arch/riscv.h (riscv_create_target_description): Declare only
15117 when GDBSERVER is defined.
15118 (riscv_lookup_target_description): New declaration when GDBSERVER
15119 is not defined.
15120 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15121 (riscv_linux_read_features): ...this, and return
15122 riscv_gdbarch_features instead of target_desc.
15123 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15124 (riscv_linux_read_description): Rename to...
15125 (riscv_linux_read_features): ...this.
15126 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15127 Update to use riscv_gdbarch_features and
15128 riscv_lookup_target_description.
15129 * riscv-tdep.c (riscv_find_default_target_description): Use
15130 riscv_lookup_target_description instead of
15131 riscv_create_target_description.
15132
373d7ac0
SM
151332020-02-18 Simon Marchi <simon.marchi@efficios.com>
15134
15135 * valprint.c (generic_val_print_enum_1): When printing a flag
15136 enum with value 0 and there is no enumerator with value 0, print
15137 just "0" instead of "(unknown: 0x0)".
15138
b29a2df0
SM
151392020-02-18 Simon Marchi <simon.marchi@efficios.com>
15140
15141 * valprint.c (generic_val_print_enum_1): Print unknown part of
15142 flag enum in hex.
15143
6740f0cc
SM
151442020-02-18 Simon Marchi <simon.marchi@efficios.com>
15145
15146 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15147 flag enums to contain duplicate enumerators.
15148 * valprint.c (generic_val_print_enum_1): Update comment.
15149
edd45eb0
SM
151502020-02-18 Simon Marchi <simon.marchi@efficios.com>
15151
15152 * dwarf2/read.c: Include "count-one-bits.h".
15153 (update_enumeration_type_from_children): If an enumerator has
15154 multiple bits set, don't treat the enumeration as a "flag enum".
15155 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15156 of flag enums have 0 or 1 bit set.
15157
6d0cf446
BE
151582020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15159
15160 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15161 conversion.
15162 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15163 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15164 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15165 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15166 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15167
7001c1b7
SM
151682020-02-18 Simon Marchi <simon.marchi@efficios.com>
15169
15170 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15171
fdb61c6c
SM
151722020-02-14 Simon Marchi <simon.marchi@efficios.com>
15173
15174 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15175 displaced_step_closure_up.
15176 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15177 (struct displaced_step_closure_up):
15178 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15179 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15180 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15181 Likewise.
15182 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15183 * gdbarch.c, gdbarch.h: Re-generate.
15184 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15185 displaced_step_closure_up.
15186 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15187 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15188 * infrun.h (displaced_step_closure_up): New type alias.
15189 (struct displaced_step_inferior_state) <step_closure>: Change
15190 type to displaced_step_closure_up.
15191 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15192 displaced_step_closure_up.
15193 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15194
a4a38eb4
TT
151952020-02-14 Tom Tromey <tom@tromey.com>
15196
15197 * minidebug.c (gnu_debug_key): New global.
15198 (find_separate_debug_file_in_section): Use it.
15199
e8217e61
SM
152002020-02-14 Simon Marchi <simon.marchi@efficios.com>
15201
15202 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15203 std::unique_ptr.
15204 * gdbarch.c: Re-generate.
15205 * gdbarch.h: Re-generate.
15206 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15207 change.
15208 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15209 type to std::unique_ptr.
15210 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15211 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15212 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15213 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15214 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15215 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15216 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15217 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15218 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15219
d8d83535
SM
152202020-02-14 Simon Marchi <simon.marchi@efficios.com>
15221
15222 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15223 std::unique_ptr.
15224 (displaced_step_clear): Rename to...
15225 (displaced_step_reset): ... this. Just call displaced->reset ().
15226 (displaced_step_clear_cleanup): Rename to...
15227 (displaced_step_reset_cleanup): ... this.
15228 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15229 (displaced_step_fixup): Likewise.
15230 (resume_1): Likewise.
15231 (handle_inferior_event): Restore child's memory before calling
15232 displaced_step_fixup on the parent.
15233 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15234 to std::unique_ptr.
15235 <step_closure>: Change type to std::unique_ptr.
15236
5f661e03
SM
152372020-02-14 Simon Marchi <simon.marchi@efficios.com>
15238
15239 * arm-tdep.c: Include count-one-bits.h.
15240 (cleanup_block_store_pc): Use count_one_bits.
15241 (cleanup_block_load_pc): Use count_one_bits.
15242 (arm_copy_block_xfer): Use count_one_bits.
15243 (thumb2_copy_block_xfer): Use count_one_bits.
15244 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15245 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15246 (thumb_get_next_pcs_raw): Use count_one_bits.
15247 (arm_get_next_pcs_raw): Use count_one_bits_l.
15248 * arch/arm.c (bitcount): Remove.
15249 * arch/arm.h (bitcount): Remove.
15250
8084e579
TT
152512020-02-14 Tom Tromey <tromey@adacore.com>
15252
15253 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15254 Update.
15255 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15256 * dwarf2/loc.c (call_site_find_chain_1): Return
15257 unique_xmalloc_ptr.
15258 (call_site_find_chain): Likewise.
15259
258bf0ee
RB
152602020-02-14 Richard Biener <rguenther@suse.de>
15261
15262 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15263 on expression with division operators.
15264
f98a8458
AKS
152652020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15266
15267 * MAINTAINERS (Write After Approval): Adding myself.
15268
d1437c0e
TT
152692020-02-12 Tom Tromey <tom@tromey.com>
15270
15271 * event-loop.c (event_data, gdb_event, event_handler_func):
15272 Remove.
15273
3d4560f7
TT
152742020-02-12 Tom Tromey <tom@tromey.com>
15275
15276 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15277 (dwarf2_frame_objfile_data): Add comment.
15278 (find_comp_unit, set_comp_unit): New functions.
15279 (dwarf2_frame_find_fde): Use find_comp_unit.
15280 (dwarf2_build_frame_info): Use set_comp_unit.
15281
21982304
TT
152822020-02-12 Tom Tromey <tom@tromey.com>
15283
15284 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15285 (comp_unit): Don't initialize objfile.
15286 (execute_cfa_program): Add text_offset parameter.
15287 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15288 (dwarf2_frame_cache): Update.
15289 (dwarf2_build_frame_info): Don't set "objfile" member.
15290
4debb237
TT
152912020-02-12 Tom Tromey <tom@tromey.com>
15292
15293 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15294 (decode_frame_entry): Likewise.
15295 (dwarf2_build_frame_info): Update.
15296
0d404d44
TT
152972020-02-12 Tom Tromey <tom@tromey.com>
15298
15299 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15300 (decode_frame_entry_1): Use the comp_unit obstack.
15301
a7a3ae5c
TT
153022020-02-12 Tom Tromey <tom@tromey.com>
15303
15304 * dwarf2/frame.c (struct comp_unit): Add initializers and
15305 constructor.
15306 (dwarf2_frame_objfile_data): Store a comp_unit.
15307 (dwarf2_frame_find_fde): Update.
15308 (dwarf2_build_frame_info): Use "new".
15309
a9d65418
TT
153102020-02-12 Tom Tromey <tom@tromey.com>
15311
15312 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15313 (dwarf2_fde_table): Typedef for std::vector.
15314 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15315 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15316 (decode_frame_entry): Update.
15317 (dwarf2_build_frame_info): Use "new".
15318
7559c217
CB
153192020-02-12 Christian Biesinger <cbiesinger@google.com>
15320
15321 * arm-tdep.c (arm_gdbarch_init): Update.
15322 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15323 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15324 have_neon, is_m>: Change to bool.
15325
aeefc73c
CB
153262020-02-12 Christian Biesinger <cbiesinger@google.com>
15327
15328 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15329
d27b8e5f
TT
153302020-02-12 Tom Tromey <tom@tromey.com>
15331
15332 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15333
cd5900f3
HD
153342020-02-12 Hannes Domani <ssbssa@yahoo.de>
15335
15336 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15337 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15338
f056b22b
TT
153392020-02-11 Tom Tromey <tom@tromey.com>
15340
15341 * psymtab.h: Update comment.
15342
f92ff6b5
TT
153432020-02-11 Tom Tromey <tom@tromey.com>
15344
15345 * gdb_obstack.h (struct auto_obstack): Use
15346 DISABLE_COPY_AND_ASSIGN.
15347
3fd6912b
TT
153482020-02-11 Tom Tromey <tom@tromey.com>
15349
15350 * dwarf2/frame.h (struct objfile): Don't forward declare.
15351
69ed9b74
CB
153522020-02-11 Christian Biesinger <cbiesinger@google.com>
15353
15354 * cris-tdep.c (cris_supply_gregset): Change signature to match
15355 what struct regset expects.
15356 (cris_regset): New struct.
15357 (fetch_core_registers): Remove.
15358 (cris_iterate_over_regset_sections): New function.
15359 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15360 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15361
bda874f6
CB
153622020-02-11 Christian Biesinger <cbiesinger@google.com>
15363
15364 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15365 registers.
15366
754e1564
CB
153672020-02-11 Christian Biesinger <cbiesinger@google.com>
15368
15369 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15370
8ddd8e0e
SM
153712020-02-11 Simon Marchi <simon.marchi@efficios.com>
15372
15373 * configure: Re-generate.
15374
898e7f60
SM
153752020-02-11 Simon Marchi <simon.marchi@efficios.com>
15376
15377 * configure: Re-generate.
15378
58df732b
SM
153792020-02-11 Simon Marchi <simon.marchi@efficios.com>
15380
15381 * acinclude: Update warning.m4 path.
15382 * warning.m4: Move to gdbsupport.
15383
da5bd37e
TT
153842020-02-11 Tom Tromey <tromey@adacore.com>
15385
15386 * remote.c (remote_console_output): Update.
15387 * printcmd.c (printf_command): Update.
15388 * event-loop.c (gdb_wait_for_event): Update.
15389 * linux-nat.c (sigchld_handler): Update.
15390 * remote-sim.c (gdb_os_write_stdout): Update.
15391 (gdb_os_flush_stdout): Update.
15392 (gdb_os_flush_stderr): Update.
15393 (gdb_os_write_stderr): Update.
15394 * exceptions.c (print_exception): Update.
15395 * remote-fileio.c (remote_fileio_func_read): Update.
15396 (remote_fileio_func_write): Update.
15397 * tui/tui.c (tui_enable): Update.
15398 * tui/tui-interp.c (tui_interp::init): Update.
15399 * utils.c (init_page_info): Update.
15400 (putchar_unfiltered, fputc_unfiltered): Update.
15401 (gdb_flush): Update.
15402 (emit_style_escape): Update.
15403 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15404 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15405 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15406 (stderr_file::write): Update.
15407 (stderr_file::puts): Update.
15408 * ui-file.h (ui_file_isatty, ui_file_write)
15409 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15410 (ui_file_puts): Don't declare.
15411
85f0dd3c
TV
154122020-02-10 Tom de Vries <tdevries@suse.de>
15413
15414 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15415 sentinel to char *.
15416
2e927613
TV
154172020-02-09 Tom de Vries <tdevries@suse.de>
15418
15419 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15420 filename if it matches "<artificial>".
15421
6bafc845
HD
154222020-02-09 Hannes Domani <ssbssa@yahoo.de>
15423
15424 * windows-tdep.c (struct enum_value_name): New struct.
15425 (create_enum): New function.
15426 (windows_get_siginfo_type): Create and use enum types.
15427
7928d571
HD
154282020-02-09 Hannes Domani <ssbssa@yahoo.de>
15429
15430 * NEWS: Mention $_siginfo support for Windows.
15431 * windows-nat.c (handle_exception): Set siginfo_er.
15432 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15433 (windows_xfer_siginfo): New function.
15434 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15435 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15436 (init_windows_gdbarch_data): New function.
15437 (get_windows_gdbarch_data): New function.
15438 (windows_get_siginfo_type): New function.
15439 (windows_init_abi): Register windows_get_siginfo_type.
15440 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15441
6751ebae
TT
154422020-02-08 Tom Tromey <tom@tromey.com>
15443
15444 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15445 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15446 <keep>: Declare method.
15447 <m_keep>: Remove member.
15448 <~cutu_reader>: Remove.
15449 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15450 (cutu_reader::cutu_reader): Update.
15451 (cutu_reader::keep): Rename from ~cutu_reader.
15452 (process_psymtab_comp_unit, build_type_psymtabs_1)
15453 (process_skeletonless_type_unit, load_partial_comp_unit)
15454 (load_full_comp_unit, dwarf2_read_addr_index)
15455 (read_signatured_type): Update.
15456
135f5437
TT
154572020-02-08 Tom Tromey <tom@tromey.com>
15458
15459 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15460 "want_partial_unit" parameter.
15461 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15462 Inline check for DW_TAG_partial_unit.
15463 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15464
9f66ff1c
TT
154652020-02-08 Tom Tromey <tom@tromey.com>
15466
15467 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15468 read.c.
15469 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15470 read.c.
15471
c8a7a66f
TT
154722020-02-08 Tom Tromey <tom@tromey.com>
15473
15474 * dwarf2/read.c (read_address): Move to comp-unit.c.
15475 (dwarf2_rnglists_process, dwarf2_ranges_process)
15476 (read_attribute_value, dwarf_decode_lines_1)
15477 (var_decode_location, decode_locdesc): Update.
15478 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15479 read.c. Remove "cu" parameter.
15480 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15481 method.
15482
8266302d
TT
154832020-02-08 Tom Tromey <tom@tromey.com>
15484
15485 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15486 (read_indirect_line_string): Update.
15487 * dwarf2/comp-unit.c (read_offset): Remove.
15488 (read_comp_unit_head): Update.
15489 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15490 method.
15491 (read_offset): Don't declare.
15492
4057dfde
TT
154932020-02-08 Tom Tromey <tom@tromey.com>
15494
15495 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15496 * dwarf2/read.c (struct comp_unit_head): Move to
15497 dwarf2/comp-unit.h.
15498 (enum class rcuh_kind): Move to comp-unit.h.
15499 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15500 (read_comp_unit_head, error_check_comp_unit_head)
15501 (read_and_check_comp_unit_head): Move to comp-unit.c.
15502 (read_offset, dwarf_unit_type_name): Likewise.
15503 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15504 (cutu_reader::cutu_reader, read_call_site_scope)
15505 (find_partial_die, follow_die_offset): Update.
15506 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15507
24aa364d
TT
155082020-02-08 Tom Tromey <tom@tromey.com>
15509
15510 * dwarf2/read.c (read_offset_1): Move to leb.c.
15511 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15512 (dwarf_decode_macro_bytes): Update.
15513 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15514 * dwarf2/leb.h (read_offset): Declare.
15515
2c7d5afc
TT
155162020-02-08 Tom Tromey <tom@tromey.com>
15517
15518 * dwarf2/read.c (dwarf2_section_size): Remove.
15519 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15520 Update.
15521 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15522
4075cb26
TT
155232020-02-08 Tom Tromey <tom@tromey.com>
15524
15525 * dwarf2/read.c (read_initial_length): Move to leb.c.
15526 * dwarf2/leb.h (read_initial_length): Declare.
15527 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15528 handle_nonstd parameter.
15529 * dwarf2/frame.c (read_initial_length): Remove.
15530 (decode_frame_entry_1): Update.
15531
09ba997f
TT
155322020-02-08 Tom Tromey <tom@tromey.com>
15533
15534 * dwarf2/loc.c (dwarf2_find_location_expression)
15535 (dwarf_evaluate_loc_desc::get_tls_address)
15536 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15537 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15538 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15539 (dwarf2_compile_property_to_c)
15540 (dwarf2_loc_desc_get_symbol_read_needs)
15541 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15542 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15543 (loclist_describe_location, loclist_tracepoint_var_ref)
15544 (loclist_generate_c_location): Update.
15545 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15546 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15547 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15548 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15549 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15550 (dwarf2_per_cu_data::addr_size)
15551 (dwarf2_per_cu_data::ref_addr_size)
15552 (dwarf2_per_cu_data::text_offset)
15553 (dwarf2_per_cu_data::addr_type): Now methods.
15554 (per_cu_header_read_in): Make per_cu "const".
15555 (dwarf2_version): Remove.
15556 (dwarf2_per_cu_data::int_type): Now a method.
15557 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15558 (set_die_type, read_array_type, read_subrange_index_type)
15559 (read_tag_string_type, read_subrange_type): Update.
15560 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15561 offset_size, ref_addr_size, text_offset, addr_type, version,
15562 objfile, int_type, addr_sized_int_type>: Declare methods.
15563
96c738c0
TT
155642020-02-08 Tom Tromey <tom@tromey.com>
15565
15566 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15567 Move earlier.
15568
8fdd972c
TT
155692020-02-08 Tom Tromey <tom@tromey.com>
15570
15571 * dwarf2/read.h (dwarf_line_debug): Declare.
15572 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15573 * dwarf2/read.c: Move line_header code to new files.
15574 (dwarf_line_debug): No longer static.
15575 * dwarf2/line-header.c: New file.
15576 * dwarf2/line-header.h: New file.
15577
03075812
TT
155782020-02-08 Tom Tromey <tom@tromey.com>
15579
15580 * dwarf2/read.c (struct line_header) <file_full_name,
15581 file_file_name>: Return unique_xmalloc_ptr.
15582 (line_header::file_file_name): Update.
15583 (line_header::file_full_name): Update.
15584 (dw2_get_file_names_reader): Update.
15585 (macro_start_file): Update.
15586
bb822404
TT
155872020-02-08 Tom Tromey <tom@tromey.com>
15588
15589 * dwarf2/read.c (struct line_header) <file_full_name,
15590 file_file_name>: Declare methods.
15591 (dw2_get_file_names_reader): Update.
15592 (file_file_name): Now a method.
15593 (file_full_name): Likewise.
15594 (macro_start_file): Update.
15595
009b64fc
TT
155962020-02-08 Tom Tromey <tom@tromey.com>
15597
15598 * dwarf2/read.c (dwarf_always_disassemble)
15599 (show_dwarf_always_disassemble): Move to loc.c.
15600 (_initialize_dwarf2_read): Move "always-disassemble" registration
15601 to loc.c.
15602 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15603 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15604 static.
15605 (show_dwarf_always_disassemble): Move from read.c.
15606 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15607
5895093f
TT
156082020-02-08 Tom Tromey <tom@tromey.com>
15609
15610 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15611 (create_quick_file_names_table): Return htab_up.
15612 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15613 Update.
15614 * dwarf2/read.h (struct dwarf2_per_objfile)
15615 <quick_file_names_table>: Now htab_up.
15616
b3b32279
TT
156172020-02-08 Tom Tromey <tom@tromey.com>
15618
15619 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15620
1d33d811
TT
156212020-02-08 Tom Tromey <tom@tromey.com>
15622
15623 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15624 Rewrite.
15625 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15626 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15627 (abbrev_table::abbrev_table): No longer inline.
15628 (ABBREV_HASH_SIZE): Remove.
15629 (abbrev_table::m_abbrevs): Now an htab_up.
15630
86de1d91
TT
156312020-02-08 Tom Tromey <tom@tromey.com>
15632
15633 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15634 (cutu_reader): Update.
15635 (build_type_psymtabs_1): Update.
15636 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15637 (abbrev_table::alloc_abbrev): Update.
15638 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15639 (abbrev_table::read): New static method, renamed from
15640 abbrev_table_read_table.
15641 (abbrev_table::alloc_abbrev)
15642 (abbrev_table::add_abbrev): Now private.
15643 (abbrev_table::abbrev_table): Now private.
15644 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15645
0335378b
TT
156462020-02-08 Tom Tromey <tom@tromey.com>
15647
15648 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15649 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15650 htab_up.
15651
48b490f2
TT
156522020-02-08 Tom Tromey <tom@tromey.com>
15653
15654 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15655 htab_up.
15656 (lookup_dwo_unit_in_dwp): Update.
15657 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15658 on obstack.
15659
bc68fb19
TT
156602020-02-08 Tom Tromey <tom@tromey.com>
15661
15662 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15663 obstack.
15664
d15acc42
TT
156652020-02-08 Tom Tromey <tom@tromey.com>
15666
15667 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15668 line_header_hash.
15669 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15670 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15671 Change type to htab_up.
15672
eaa5fa8b
TT
156732020-02-08 Tom Tromey <tom@tromey.com>
15674
15675 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15676 htab_up. Don't allocate on obstack.
15677 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15678 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15679 Change type to htab_up.
15680
b0b6a987
TT
156812020-02-08 Tom Tromey <tom@tromey.com>
15682
15683 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15684 Change type to htab_up.
15685 * dwarf2/read.c (create_signatured_type_table_from_index)
15686 (create_signatured_type_table_from_debug_names)
15687 (create_all_type_units, add_type_unit)
15688 (lookup_dwo_signatured_type, lookup_signatured_type)
15689 (process_skeletonless_type_unit): Update.
15690 (create_debug_type_hash_table, create_debug_types_hash_table):
15691 Change type of types_htab.
15692 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15693 htab_up. Don't allocate on obstack.
15694 (create_cus_hash_table): Change type of cus_htab parameter.
15695 (struct dwo_file) <cus, tus>: Now htab_up.
15696 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15697 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15698 (queue_and_load_all_dwo_tus): Update.
15699 * dwarf2/index-write.c (write_gdbindex): Update.
15700 (write_debug_names): Update.
15701
39856def
TT
157022020-02-08 Tom Tromey <tom@tromey.com>
15703
15704 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15705 dwarf2/read.c. Remove "next" member. Add constructor ntad
15706 destructor.
15707 (struct dwarf2_per_objfile) <queue>: New member.
15708 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15709 dwarf2/read.h.
15710 (dwarf2_queue, dwarf2_queue_tail): Remove.
15711 (class dwarf2_queue_guard): Add parameter to constructor. Use
15712 DISABLE_COPY_AND_ASSIGN.
15713 <m_per_objfile>: New member.
15714 <~dwarf2_queue_guard>: Rewrite.
15715 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15716 Update.
15717 (~dwarf2_queue_item): New.
15718
3e225074
TT
157192020-02-08 Tom Tromey <tom@tromey.com>
15720
15721 * dwarf2/read.c (struct die_info) <has_children>: New member.
15722 (dw2_get_file_names_reader): Remove has_children.
15723 (dw2_get_file_names): Update.
15724 (read_cutu_die_from_dwo): Remove has_children.
15725 (cutu_reader::init_tu_and_read_dwo_dies)
15726 (cutu_reader::cutu_reader): Update.
15727 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15728 Remove has_children.
15729 (build_type_psymtabs_1, process_skeletonless_type_unit)
15730 (load_partial_comp_unit, load_full_comp_unit): Update.
15731 (create_dwo_cu_reader): Remove has_children.
15732 (create_cus_hash_table, read_die_and_children): Update.
15733 (read_full_die_1,read_full_die): Remove has_children.
15734 (read_signatured_type): Update.
15735 (class cutu_reader) <has_children>: Remove.
15736
82ca8957
TT
157372020-02-08 Tom Tromey <tom@tromey.com>
15738
15739 * dwarf2/expr.c: Rename from dwarf2expr.c.
15740 * dwarf2/expr.h: Rename from dwarf2expr.h.
15741 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15742 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15743 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15744 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15745 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15746 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15747 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15748 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15749 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15750 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15751 * dwarf2/loc.c: Rename from dwarf2loc.c.
15752 * dwarf2/loc.h: Rename from dwarf2loc.h.
15753 * dwarf2/read.c: Rename from dwarf2read.c.
15754 * dwarf2/read.h: Rename from dwarf2read.h.
15755 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15756 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15757 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15758 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15759 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15760 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15761 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15762 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15763 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15764 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15765 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15766 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15767 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15768 Update.
15769 * Makefile.in (COMMON_SFILES): Update.
15770 (HFILES_NO_SRCDIR): Update.
15771
9e35d499
TT
157722020-02-08 Tom Tromey <tom@tromey.com>
15773
15774 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15775 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15776
1eba2311
TT
157772020-02-08 Tom Tromey <tom@tromey.com>
15778
15779 * dwarf2read.h (struct die_info): Don't declare.
15780
e41c2da2
TT
157812020-02-08 Tom Tromey <tom@tromey.com>
15782
15783 * dwarf2read.h (die_info_ptr): Remove typedef.
15784
4fc6c0d5
TT
157852020-02-08 Tom Tromey <tom@tromey.com>
15786
15787 * dwarf2read.c (read_call_site_scope)
15788 (handle_data_member_location, dwarf2_add_member_fn)
15789 (mark_common_block_symbol_computed, read_common_block)
15790 (attr_to_dynamic_prop, partial_die_info::read)
15791 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15792 (dwarf2_symbol_mark_computed, set_die_type): Update.
15793 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15794 method.
15795 (attr_form_is_block): Don't declare.
15796 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15797
cd6c91b4
TT
157982020-02-08 Tom Tromey <tom@tromey.com>
15799
15800 * dwarf2read.c (dwarf2_find_base_address, )
15801 (read_call_site_scope, rust_containing_type)
15802 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15803 (handle_data_member_location, dwarf2_add_member_fn)
15804 (get_alignment, read_structure_type, process_structure_scope)
15805 (mark_common_block_symbol_computed, read_common_block)
15806 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15807 (partial_die_info::read, read_attribute_value, new_symbol)
15808 (lookup_die_type, dwarf2_get_ref_die_offset)
15809 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15810 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15811 (dwarf2_symbol_mark_computed): Update.
15812 * dwarf2/attribute.h (struct attribute) <value_as_address,
15813 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15814 methods.
15815 (value_as_address, attr_form_is_section_offset)
15816 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15817 * dwarf2/attribute.c (attribute::value_as_address)
15818 (attribute::form_is_section_offset, attribute::form_is_constant)
15819 (attribute::form_is_ref): Now methods.
15820
162dce55
TT
158212020-02-08 Tom Tromey <tom@tromey.com>
15822
15823 * dwarf2read.c (struct attribute, DW_STRING)
15824 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15825 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15826 (attr_form_is_block, attr_form_is_section_offset)
15827 (attr_form_is_constant, attr_form_is_ref): Move.
15828 * dwarf2/attribute.h: New file.
15829 * dwarf2/attribute.c: New file, from dwarf2read.c.
15830 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15831
3054dd54
TT
158322020-02-08 Tom Tromey <tom@tromey.com>
15833
15834 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15835 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15836 Move.
15837 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15838 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15839 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15840 abbrev.c.
15841 * dwarf2/abbrev.h: New file.
15842 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15843 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15844
96b79293
TT
158452020-02-08 Tom Tromey <tom@tromey.com>
15846
15847 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15848 (dwarf2_section_size, dwarf2_get_section_info)
15849 (create_signatured_type_table_from_debug_names)
15850 (create_addrmap_from_aranges, read_debug_names_from_section)
15851 (get_gdb_index_contents_from_section, read_comp_unit_head)
15852 (error_check_comp_unit_head, read_abbrev_offset)
15853 (create_debug_type_hash_table, init_cu_die_reader)
15854 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15855 (read_comp_units_from_section, create_cus_hash_table)
15856 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15857 (create_dwp_v2_section, dwarf2_rnglists_process)
15858 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15859 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15860 (read_indirect_string_from_dwz, read_addr_index_1)
15861 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15862 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15863 (fill_in_loclist_baton): Update.
15864 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15865 get_containing_section, get_bfd_owner, get_bfd_section,
15866 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15867 (dwarf2_read_section, get_section_name, get_section_file_name)
15868 (get_containing_section, get_section_bfd_owner)
15869 (get_section_bfd_section, get_section_name, get_section_file_name)
15870 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15871 declare.
15872 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15873 (dwarf2_section_info::get_bfd_owner)
15874 (dwarf2_section_info::get_bfd_section)
15875 (dwarf2_section_info::get_name)
15876 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15877 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15878 (dwarf2_section_info::read): Now methods.
15879 * dwarf-index-write.c (class debug_names): Update.
15880
2c86cff9
TT
158812020-02-08 Tom Tromey <tom@tromey.com>
15882
15883 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15884 Move to dwarf2/section.h.
15885 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15886 (get_section_bfd_section, get_section_name)
15887 (get_section_file_name, get_section_id, get_section_flags)
15888 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15889 dwarf2/section.c.
15890 * dwarf2/section.h: New file.
15891 * dwarf2/section.c: New file, from dwarf2read.c.
15892 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15893
f4382c45
TT
158942020-02-08 Tom Tromey <tom@tromey.com>
15895
15896 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15897 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15898 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15899 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15900 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15901 * dwarf2/leb.h: New file, from dwarf2read.c.
15902 * dwarf2/leb.c: New file, from dwarf2read.c.
15903 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15904 Remove.
15905 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15906 (COMMON_SFILES): Add dwarf2/leb.c.
15907
01840b7a
JB
159082020-02-08 Joel Brobecker <brobecker@adacore.com>
15909
15910 GDB 9.1 released.
15911
dfcb27e4
IB
159122020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15913
15914 PR gdb/25190:
aac66a4c
SM
15915 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15916 * gdb/remote.c (remote_console_output): Update.
15917 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15918 (ui_file_puts): ...this.
15919 * gdb/ui-file.h (ui_file_puts): Add declaration.
15920 * gdb/utils.c (emit_style_escape): Update.
15921 (flush_wrap_buffer): Update.
15922 (fputs_maybe_filtered): Update.
15923 (fputs_unfiltered): Add function.
dfcb27e4 15924
faa17681
IB
159252020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15926
aac66a4c
SM
15927 * gdb/event-loop.c (gdb_wait_for_event): Update.
15928 * gdb/printcmd.c (printf_command): Update.
15929 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15930 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15931 (gdb_os_flush_stderr): Update.
15932 * gdb/remote.c (remote_console_output): Update.
15933 * gdb/ui-file.c (gdb_flush): Rename to...
15934 (ui_file_flush): ...this.
15935 (stderr_file::write): Update.
15936 (stderr_file::puts): Update.
15937 * gdb/ui-file.h (gdb_flush): Rename to...
15938 (ui_file_flush): ...this.
15939 * gdb/utils.c (gdb_flush): Add function.
15940 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15941
5abbbe1d
TT
159422020-02-07 Tom Tromey <tromey@adacore.com>
15943
15944 PR breakpoints/24915:
15945 * source.c (find_and_open_source): Do not check basenames_may_differ.
15946
919adfe8
TT
159472020-02-07 Tom Tromey <tom@tromey.com>
15948
15949 * README: Update gdbserver documentation.
15950 * gdbserver: Move to top level.
15951 * configure.tgt (build_gdbserver): Remove.
15952 * configure.ac: Remove --enable-gdbserver.
15953 * configure: Rebuild.
15954 * Makefile.in (distclean): Don't mention gdbserver.
15955
1d5d29e7
SV
159562020-02-06 Shahab Vahedi <shahab@synopsys.com>
15957
15958 * source-cache.c (source_cache::ensure): Surround
15959 get_plain_source_lines with a try/catch.
15960 (source_cache::get_line_charpos): Get rid of try/catch
15961 and only check for the return value of "ensure".
15962 * tui/tui-source.c (tui_source_window::set_contents):
15963 Simplify "nlines" calculation.
15964
6eb1129c
SV
159652020-02-06 Shahab Vahedi <shahab@synopsys.com>
15966
15967 * MAINTAINERS (Write After Approval): Add myself.
15968
c6a42d11
CB
159692020-02-05 Christian Biesinger <cbiesinger@google.com>
15970
15971 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15972 function call.
15973
c8ecdda6
CB
159742020-02-05 Christian Biesinger <cbiesinger@google.com>
15975
15976 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15977
f6480e70
MR
159782020-02-05 Maciej W. Rozycki <macro@wdc.com>
15979
15980 * nat/riscv-linux-tdesc.h: New file.
15981 * nat/riscv-linux-tdesc.c: New file, taking code from...
15982 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15983 ... here.
15984 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15985 NATDEPFILES.
15986
dcc9fbc6
AB
159872020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15988
15989 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15990 we don't set the fake simulator ptid to the null_ptid.
15991
719546c4
SM
159922020-02-03 Simon Marchi <simon.marchi@efficios.com>
15993
15994 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15995 * gdbthread.h (class thread_info) <resumed>: Likewise.
15996 * infrun.c (resume_1): Likewise.
15997 (proceed): Likewise.
15998 (infrun_thread_stop_requested): Likewise.
15999 (stop_all_threads): Likewise.
16000 (handle_inferior_event): Likewise.
16001 (restart_threads): Likewise.
16002 (finish_step_over): Likewise.
16003 (keep_going_stepped_thread): Likewise.
16004 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16005 (linux_handle_extended_wait): Likewise.
16006 * record-btrace.c (get_thread_current_frame_id): Likewise.
16007 * record-full.c (record_full_wait_1): Likewise.
16008 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16009 * target.c (target_resume): Likewise.
16010 * thread.c (set_running_thread): Likewise.
16011
e409c542
AKS
160122020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16013
16014 * f-valprint.c (f77_print_array_1): Changed datatype of index
16015 variable to LONGEST from int to enable it to contain bound
16016 values correctly.
16017
ee98c0da
MR
160182020-02-03 Maciej W. Rozycki <macro@wdc.com>
16019
16020 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16021 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16022 offsets according to FLEN determined.
16023 (riscv_linux_nat_target::read_description): Determine FLEN
16024 dynamically.
16025 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16026 according to FLEN determined.
16027 (riscv_linux_nat_target::store_registers): Likewise.
16028
aa66aac4
SV
160292020-02-01 Shahab Vahedi <shahab@synopsys.com>
16030
16031 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16032 when reg->group is empty and reggroup is not.
16033
fd9faca8
TT
160342020-01-31 Tom Tromey <tromey@adacore.com>
16035
16036 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16037 Call beneath target's mourn_inferior after unpushing.
16038
42330a68
AB
160392020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16040
16041 PR tui/9765
16042 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16043 have enough lines to fill the screen, still return the lowest
16044 address we found.
16045
7a27a45b
AB
160462020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16047
16048 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16049 '-', '<', and '>' commands.
16050
c47f70e2
PA
160512020-01-29 Pedro Alves <palves@redhat.com>
16052 Sergio Durigan Junior <sergiodj@redhat.com>
16053
16054 * infcmd.c (construct_inferior_arguments): Assert that
16055 'argc' is greater than 0.
16056
5133a315
LM
160572020-01-29 Luis Machado <luis.machado@linaro.org>
16058
16059 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16060 (BRK_INSN_MASK): Define to 0xd4200000.
16061 (aarch64_program_breakpoint_here_p): New function.
16062 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16063 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16064 breakpoint.c.
16065 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16066 breakpoint.h
16067 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16068 call gdbarch_program_breakpoint_here_p.
16069 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16070 default_program_breakpoint_here_p, changed return type to bool and
16071 simplified.
16072 * breakpoint.h (program_breakpoint_here): Moved prototype to
16073 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16074 return type to bool.
16075 * gdbarch.c: Regenerate.
16076 * gdbarch.h: Regenerate.
16077 * gdbarch.sh (program_breakpoint_here_p): New method.
16078 * infrun.c (handle_signal_stop): Call
16079 gdbarch_program_breakpoint_here_p.
16080
168f8c6b
TT
160812020-01-26 Tom Tromey <tom@tromey.com>
16082
16083 * ctfread.c (struct ctf_fp_info): Reindent.
16084 (_initialize_ctfread): Remove.
16085
128a391f
TT
160862020-01-26 Tom Tromey <tom@tromey.com>
16087
16088 * psymtab.c (partial_map_expand_apply)
16089 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16090 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16091 (psym_print_stats, psym_expand_symtabs_for_function)
16092 (psym_map_symbol_filenames, psym_map_matching_symbols)
16093 (psym_expand_symtabs_matching)
16094 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16095 (maintenance_check_psymtabs): Use new methods.
16096 * psympriv.h (struct partial_symtab) <readin_p,
16097 get_compunit_symtab>: New methods.
16098 <readin, compunit_symtab>: Remove members.
16099 (struct standard_psymtab): New.
16100 (struct legacy_psymtab): Derive from standard_psymtab.
16101 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16102 standard_psymtab.
16103 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16104
0494dbec
TT
161052020-01-26 Tom Tromey <tom@tromey.com>
16106
16107 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16108 read_dependencies. Add assert.
16109 * psymtab.c (partial_symtab::read_dependencies): New method.
16110 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16111 method.
16112 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16113 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16114 read_dependencies.
16115 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16116 Add assert.
16117
8566b89b
TT
161182020-01-26 Tom Tromey <tom@tromey.com>
16119
16120 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16121 Call expand_psymtab.
16122 (xcoff_read_symtab): Call expand_psymtab.
16123 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16124 legacy_expand_psymtab.
16125 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16126 method.
16127 (struct legacy_psymtab) <expand_psymtab>: Implement.
16128 <legacy_expand_psymtab>: New member.
16129 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16130 (parse_partial_symbols): Set legacy_expand_psymtab.
16131 (psymtab_to_symtab_1): Change argument order. Call
16132 expand_psymtab.
16133 (new_psymtab): Set legacy_expand_psymtab.
16134 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16135 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16136 expand_psymtab.
16137 (dwarf2_psymtab::expand_psymtab): Rename from
16138 psymtab_to_symtab_1. Call expand_psymtab.
16139 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16140 (dbx_end_psymtab): Likewise.
16141 (dbx_psymtab_to_symtab_1): Change argument order. Call
16142 expand_psymtab.
16143 (dbx_read_symtab): Call expand_psymtab.
16144 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16145 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16146 (ctf_psymtab::read_symtab): Call expand_psymtab.
16147
077cbab2
TT
161482020-01-26 Tom Tromey <tom@tromey.com>
16149
16150 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16151 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16152 messages.
16153 * mdebugread.c (mdebug_read_symtab): Remove prints.
16154 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16155 assert.
16156 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16157
891813be
TT
161582020-01-26 Tom Tromey <tom@tromey.com>
16159
16160 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16161 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16162 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16163 legacy_symtab.
16164 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16165 * psymtab.c (psymtab_to_symtab): Call method.
16166 (dump_psymtab): Update.
16167 * psympriv.h (struct partial_symtab): Add virtual destructor.
16168 <read_symtab>: New method.
16169 (struct legacy_symtab): New.
16170 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16171 (struct pst_map) <pst>: Now a legacy_psymtab.
16172 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16173 (new_psymtab): Use legacy_psymtab.
16174 * dwarf2read.h (struct dwarf2_psymtab): New.
16175 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16176 * dwarf2read.c (dwarf2_create_include_psymtab)
16177 (dwarf2_build_include_psymtabs, create_type_unit_group)
16178 (create_partial_symtab, process_psymtab_comp_unit_reader)
16179 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16180 (set_partial_user): Use dwarf2_psymtab.
16181 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16182 (psymtab_to_symtab_1, process_full_comp_unit)
16183 (process_full_type_unit, dwarf2_ranges_read)
16184 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16185 (dwarf_decode_lines): Use dwarf2_psymtab.
16186 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16187 (add_address_entry_worker, write_one_signatured_type)
16188 (recursively_count_psymbols, recursively_write_psymbols)
16189 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16190 (write_debug_names): Likewise.
16191 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16192 <pst>: Now a legacy_psymtab.
16193 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16194 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16195 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16196 * ctfread.c (struct ctf_psymtab): New.
16197 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16198 ctf_psymtab.
16199 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16200 (create_partial_symtab): Return a ctf_psymtab.
16201 (scan_partial_symbols): Update.
16202
c3693a1d
TT
162032020-01-26 Tom Tromey <tom@tromey.com>
16204
16205 * xcoffread.c (xcoff_start_psymtab): Use new.
16206 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16207 renamed from start_psymtab_common.
16208 * psympriv.h (struct partial_symtab): Add new constructor.
16209 (start_psymtab_common): Don't declare.
16210 * mdebugread.c (parse_partial_symbols): Use new.
16211 * dwarf2read.c (create_partial_symtab): Use new.
16212 * dbxread.c (start_psymtab): Use new.
16213 * ctfread.c (create_partial_symtab): Use new.
16214
32caafd0
TT
162152020-01-26 Tom Tromey <tom@tromey.com>
16216
16217 * xcoffread.c (xcoff_end_psymtab): Use new.
16218 * psymtab.c (start_psymtab_common): Use new.
16219 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16220 Update.
16221 * psympriv.h (struct partial_symtab): Add parameters to
16222 constructor. Don't inline.
16223 (allocate_psymtab): Don't declare.
16224 * mdebugread.c (new_psymtab): Use new.
16225 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16226 * dbxread.c (dbx_end_psymtab): Use new.
16227
abaa2f23
TT
162282020-01-26 Tom Tromey <tom@tromey.com>
16229
16230 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16231 allocate_psymtab. Update documentation.
16232 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16233 allocate_psymtab. Do not use new.
16234 (allocate_psymtab): Use new. Update.
16235
6d94535f
TT
162362020-01-26 Tom Tromey <tom@tromey.com>
16237
16238 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16239 * psymtab.c (psym_print_stats): Update.
16240 * psympriv.h (struct partial_symtab) <readin,
16241 psymtabs_addrmap_supported, anonymous>: Now bool.
16242 * mdebugread.c (psymtab_to_symtab_1): Update.
16243 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16244 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16245 (process_full_comp_unit, process_full_type_unit): Update.
16246 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16247 * ctfread.c (psymtab_to_symtab): Update.
16248
6f17252b
TT
162492020-01-26 Tom Tromey <tom@tromey.com>
16250
16251 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16252 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16253 * psymtab.c (psymtab_storage): Delete psymtabs.
16254 (psymtab_storage::allocate_psymtab): Use new.
16255 (psymtab_storage::discard_psymtab): Use delete.
16256 * psympriv.h (struct partial_symtab): Add constructor and
16257 initializers.
16258
f6f1cebc
TT
162592020-01-26 Tom Tromey <tom@tromey.com>
16260
16261 * machoread.c: Do not include psympriv.h.
16262
e47e48f6
PW
162632020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16264
16265 * NEWS: Mention the new option and the set/show commands.
16266
a2fedca9
PW
162672020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16268
16269 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16270 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16271 (validate_exec_file): New variables, enums, functions.
16272 (exec_file_locate_attach, print_section_info): Style the filenames.
16273 (_initialize_exec): Install show_exec_file_mismatch_command and
16274 set_exec_file_mismatch_command.
16275 * gdbcore.h (validate_exec_file): Declare.
16276 * infcmd.c (attach_command): Call validate_exec_file.
16277 * remote.c ( remote_target::remote_add_inferior): Likewise.
16278
7ffa82e1
AB
162792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16280
16281 * frame.c (find_frame_sal): Move call to get_next_frame into more
16282 inner scope.
16283 * inline-frame.c (inilne_state) <inline_state>: Update argument
16284 types.
16285 (inilne_state) <skipped_symbol>: Rename to...
16286 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16287 (skip_inline_frames): Build vector of skipped symbols and use this
16288 to reate the inline_state.
16289 (inline_skipped_symbol): Add a comment and some assertions, fetch
16290 skipped symbol from the list.
16291
3d92a3e3
AB
162922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16293
16294 * buildsym.c (lte_is_less_than): Delete.
16295 (buildsym_compunit::end_symtab_with_blockvector): Create local
16296 lambda function to sort line table entries, and use
16297 std::stable_sort instead of std::sort.
16298 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16299 markers when looking for a previous line.
16300
94a72be7
AB
163012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16302
16303 * dwarf2read.c (lnp_state_machine::record_line): Include
16304 end_sequence parameter in debug print out. Record the line if we
16305 are at an end_sequence marker even if it's not the start of a
16306 statement.
16307 * symmisc.c (maintenance_print_one_line_table): Print end of
16308 sequence markers with 'END' not '0'.
16309
53af73bf
PA
163102020-01-24 Pedro Alves <palves@redhat.com>
16311
16312 PR gdb/25410
16313 * thread.c (scoped_restore_current_thread::restore): Use
16314 switch_to_inferior_no_thread.
16315 * exec.c: Include "progspace-and-thread.h".
16316 (add_target_sections, remove_target_sections):
16317 scoped_restore_current_pspace_and_thread instead of
16318 scoped_restore_current_thread.
16319 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16320 and aspace to the inferior before calling clone_program_space.
16321 Remove stale comment.
16322
3050c6f4
CB
163232020-01-24 Christian Biesinger <cbiesinger@google.com>
16324
16325 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16326 (arm_netbsd_nat_target::fetch_registers): ...this.
16327 (arm_nbsd_nat_target::store_registers): Rename to...
16328 (arm_netbsd_nat_target::store_registers): ...this.
16329
73685c7e
CB
163302020-01-24 Christian Biesinger <cbiesinger@google.com>
16331
16332 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16333 register_t.
16334
89203d40
CB
163352020-01-24 Christian Biesinger <cbiesinger@google.com>
16336
16337 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16338 Update comment.
16339 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16340 Likewise.
16341 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16342 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16343 the correct replacement (iterate_over_regset_sections).
16344 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16345 Update comment.
16346
1ba1ac88
AB
163472020-01-24 Graham Markall <graham.markall@embecosm.com>
16348
16349 PR gdb/23718
16350 * gdb/python/python.c (execute_gdb_command): Call
16351 async_enable_stdin in catch block.
16352
f3364a6d
AB
163532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16354
16355 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16356 SWITCH_THRU_ALL_UIS.
16357
733d0a67
AB
163582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16359
16360 PR tui/9765
16361 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16362 comment, add extra parameter, and update to store previous symbol
16363 when appropriate.
16364 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16365 add extra parameter.
16366 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16367 remove unneeded parameter, add try/catch around gdb_print_insn,
16368 rewrite to add items to asm_lines vector.
16369 (tui_find_backward_disassembly_start_address): New function.
16370 (tui_find_disassembly_address): Updated throughout.
16371 (tui_disasm_window::set_contents): Update for changes to
16372 tui_disassemble.
16373 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16374 number of lines to scroll.
16375
b3b3bada
SM
163762020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16377
16378 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16379 (SECT_OFF_DATA): Likewise.
16380 (SECT_OFF_RODATA): Likewise.
16381 (SECT_OFF_TEXT): Likewise.
16382 (SECT_OFF_BSS): Likewise.
16383 (struct objfile) <text_section_offset, data_section_offset>: New
16384 methods.
16385 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16386 objfile::text_section_offset.
16387 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16388 * coffread.c (coff_symtab_read): Likewise.
16389 (enter_linenos): Likewise.
16390 (process_coff_symbol): Likewise.
16391 * ctfread.c (get_objfile_text_range): Likewise.
16392 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16393 Use objfile::data_section_offset.
16394 * dwarf2-frame.c (execute_cfa_program): Use
16395 objfile::text_section_offset.
16396 (dwarf2_frame_find_fde): Likewise.
16397 * dwarf2read.c (create_addrmap_from_index): Likewise.
16398 (create_addrmap_from_aranges): Likewise.
16399 (dw2_find_pc_sect_compunit_symtab): Likewise.
16400 (process_psymtab_comp_unit_reader): Likewise.
16401 (add_partial_symbol): Likewise.
16402 (add_partial_subprogram): Likewise.
16403 (process_full_comp_unit): Likewise.
16404 (read_file_scope): Likewise.
16405 (read_func_scope): Likewise.
16406 (read_lexical_block_scope): Likewise.
16407 (read_call_site_scope): Likewise.
16408 (dwarf2_rnglists_process): Likewise.
16409 (dwarf2_ranges_process): Likewise.
16410 (dwarf2_ranges_read): Likewise.
16411 (dwarf_decode_lines_1): Likewise.
16412 (new_symbol): Likewise.
16413 (dwarf2_fetch_die_loc_sect_off): Likewise.
16414 (dwarf2_per_cu_text_offset): Likewise.
16415 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16416 * hppa-tdep.c (read_unwind_info): Likewise.
16417 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16418 * psympriv.h (struct partial_symtab): Likewise.
16419 * psymtab.c (find_pc_sect_psymtab): Likewise.
16420 * solib-svr4.c (enable_break): Likewise.
16421 * stap-probe.c (relocate_address): Use
16422 objfile::data_section_offset.
16423 * xcoffread.c (enter_line_range): Use
16424 objfile::text_section_offset.
16425 (read_xcoff_symtab): Likewise.
16426
ab53f382
SM
164272020-01-23 Simon Marchi <simon.marchi@efficios.com>
16428
16429 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16430 declaration to narrower scopes.
16431
e7eee665
SM
164322020-01-23 Simon Marchi <simon.marchi@efficios.com>
16433
16434 * darwin-nat.h (struct darwin_exception_msg, enum
16435 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16436 Move up.
16437 (class darwin_nat_target) <wait_1, check_new_threads,
16438 decode_exception_message, decode_message, stop_inferior,
16439 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16440 * darwin-nat.c (darwin_check_new_threads): Rename to...
16441 (darwin_nat_target::check_new_threads): ... this.
16442 (darwin_suspend_inferior_it): Remove.
16443 (darwin_decode_exception_message): Rename to...
16444 (darwin_nat_target::decode_exception_message): ... this.
16445 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16446 (darwin_decode_message): Rename to...
16447 (darwin_nat_target::decode_message): ... this.
16448 (cancel_breakpoint): Rename to...
16449 (darwin_nat_target::cancel_breakpoint): ... this.
16450 (darwin_wait): Rename to...
16451 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16452 instead of iterate_over_inferiors.
16453 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16454 (darwin_stop_inferior): Rename to...
16455 (darwin_nat_target::stop_inferior): ... this.
16456 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16457 (darwin_init_thread_list): Rename to...
16458 (darwin_nat_target::init_thread_list): ... this.
16459 (darwin_ptrace_him): Rename to...
16460 (darwin_nat_target::ptrace_him): ... this.
16461 (darwin_nat_target::create_inferior): Pass lambda function to
16462 fork_inferior.
16463 (darwin_nat_target::detach): Call stop_inferior instead of
16464 darwin_stop_inferior.
16465 * fork-inferior.h (fork_inferior): Change init_trace_fun
16466 parameter to gdb::function_view.
16467 * fork-inferior.c (fork_inferior): Likewise.
16468
c162ed3e
HD
164692020-01-23 Hannes Domani <ssbssa@yahoo.de>
16470
16471 * i386-cygwin-tdep.c (core_process_module_section): Update.
16472 * windows-nat.c (struct lm_info_windows): Add text_offset.
16473 (windows_xfer_shared_libraries): Update.
16474 * windows-tdep.c (windows_xfer_shared_library):
16475 Add text_offset_cached argument.
16476 * windows-tdep.h (windows_xfer_shared_library): Update.
16477
a1237872
SM
164782020-01-21 Simon Marchi <simon.marchi@efficios.com>
16479
16480 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16481
b3ee6dd9
SM
164822020-01-21 Simon Marchi <simon.marchi@efficios.com>
16483
16484 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16485 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16486 replace with range-based for.
16487 (gdbsim_interrupt_inferior): Remove.
16488 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16489 with a range-based for. Inline code from
16490 gdbsim_interrupt_inferior.
16491
f9fac3c8
SM
164922020-01-21 Simon Marchi <simon.marchi@efficios.com>
16493
16494 * infrun.c (proceed): Fix indentation.
16495
f6474de9
TT
164962020-01-21 Tom Tromey <tromey@adacore.com>
16497
16498 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16499 * python/python.c (python_extension_ops): Update.
16500 (gdbpy_colorize): New function.
16501 * python/lib/gdb/__init__.py (colorize): New function.
16502 * extension.h (ext_lang_colorize): Declare.
16503 * extension.c (ext_lang_colorize): New function.
16504 * extension-priv.h (struct extension_language_ops) <colorize>: New
16505 member.
16506 * cli/cli-style.c (_initialize_cli_style): Update help text.
16507
f0c702d4
LM
165082020-01-21 Luis Machado <luis.machado@linaro.org>
16509
16510 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16511 <cond>: Change type to bool.
16512 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16513 (aarch64_displaced_step_cb): Likewise.
16514 (aarch64_displaced_step_tb): Likewise.
16515
1ab139e5
LM
165162020-01-21 Luis Machado <luis.machado@linaro.org>
16517
16518 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16519 output.
16520
0c271889
LM
165212020-01-21 Luis Machado <luis.machado@linaro.org>
16522
16523 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16524 <pc_adjust>: Adjust the documentation.
16525 (aarch64_displaced_step_fixup): Check if PC really moved before
16526 adjusting it.
16527
4d89c1c7
TT
165282020-01-19 Tom Tromey <tom@tromey.com>
16529
16530 * disasm.c (~gdb_disassembler): New destructor.
16531 (gdb_buffered_insn_length): Call disassemble_free_target.
16532 * disasm.h (class gdb_disassembler): Declare destructor. Use
16533 DISABLE_COPY_AND_ASSIGN.
16534
c0ab21c2
TT
165352020-01-19 Tom Tromey <tom@tromey.com>
16536
16537 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16538 (die_reader_func_ftype): Remove.
16539 (cutu_reader): New class.
16540 (dw2_get_file_names_reader): Remove "data" parameter.
16541 (dw2_get_file_names): Use cutu_reader.
16542 (create_debug_type_hash_table): Update.
16543 (read_cutu_die_from_dwo): Update comment.
16544 (lookup_dwo_unit): Add dwo_name parameter.
16545 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16546 die_reader_func_ftype and data parameters.
16547 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16548 Remove die_reader_func_ftype and data parameters.
16549 (~cutu_reader): New; from init_cutu_and_read_dies.
16550 (cutu_reader::cutu_reader): Rename from
16551 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16552 and data parameters.
16553 (init_cutu_and_read_dies_simple): Remove.
16554 (struct process_psymtab_comp_unit_data): Remove.
16555 (process_psymtab_comp_unit_reader): Remove data parameter; add
16556 want_partial_unit and pretend_language parameters.
16557 (process_psymtab_comp_unit): Use cutu_reader.
16558 (build_type_psymtabs_reader): Remove data parameter.
16559 (build_type_psymtabs_1): Use cutu_reader.
16560 (process_skeletonless_type_unit): Likewise.
16561 (load_partial_comp_unit_reader): Remove.
16562 (load_partial_comp_unit): Use cutu_reader.
16563 (load_full_comp_unit_reader): Remove.
16564 (load_full_comp_unit): Use cutu_reader.
16565 (struct create_dwo_cu_data): Remove.
16566 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16567 dwo_unit parameters.
16568 (create_cus_hash_table): Use cutu_reader.
16569 (struct dwarf2_read_addr_index_data): Remove.
16570 (dwarf2_read_addr_index_reader): Remove.
16571 (dwarf2_read_addr_index): Use cutu_reader.
16572 (read_signatured_type_reader): Remove.
16573 (read_signatured_type): Use cutu_reader.
16574
45bbae5c
TT
165752020-01-19 Tom Tromey <tom@tromey.com>
16576
16577 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16578 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16579 (tui_wrefresh): Declare.
16580 * tui/tui-wingeneral.c (suppress_output): New global.
16581 (tui_suppress_output, ~tui_suppress_output): New constructor and
16582 destructor.
16583 (tui_wrefresh): New function.
16584 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16585 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16586 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16587 method.
16588 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16589 tui_wrefresh.
16590 (tui_data_window::no_refresh): New method.
16591 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16592 (tui_reg_command): Use tui_suppress_output
16593 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16594 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16595 method.
16596 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16597
4f13c1c0
TT
165982020-01-19 Tom Tromey <tom@tromey.com>
16599
16600 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16601 Handle case where symtab is null.
16602
fa47e446
SM
166032020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16604
16605 * linux-fork.c (one_fork_p): Simplify.
16606
26f42329
SM
166072020-01-17 Simon Marchi <simon.marchi@efficios.com>
16608
16609 * top.c (struct qt_args): Remove.
16610 (kill_or_detach): Change return type to void, replace `void *`
16611 parameter with a proper one.
16612 (print_inferior_quit_action): Likewise.
16613 (quit_confirm): Use range-based for loop to iterate over inferiors.
16614 (quit_force): Likewise.
16615
a9ac81b1
SM
166162020-01-17 Simon Marchi <simon.marchi@efficios.com>
16617
16618 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16619 `void *` parameter with proper parameters.
16620 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16621 (print_one_inferior): Change return type to void, replace `void *`
16622 parameter with proper parameters.
16623 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16624 inferiors.
16625 (get_other_inferior): Remove.
16626 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16627 inferiors.
16628
788eca49
SM
166292020-01-17 Simon Marchi <simon.marchi@efficios.com>
16630
16631 * mi/mi-interp.c (report_initial_inferior): Remove.
16632 (mi_interp::init): Use range-based for to iterate over inferiors.
16633
d9bc85b6
SM
166342020-01-17 Simon Marchi <simon.marchi@efficios.com>
16635
16636 * python/py-inferior.c (build_inferior_list): Remove.
16637 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16638
40c94099
CB
166392020-01-16 Christian Biesinger <cbiesinger@google.com>
16640
16641 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16642 (btrace_stitch_trace): Likewise.
16643 * charset.c (intermediate_encoding): Likewise (vaild).
16644 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16645 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16646 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16647
e0cdfe3c
HD
166482020-01-16 Hannes Domani <ssbssa@yahoo.de>
16649
16650 * windows-tdep.c (windows_get_tlb_type):
16651 Add rtl_user_process_parameters type.
16652
790f1718 166532020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16654 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16655
16656 PR build/24805
16657 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16658 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16659 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16660 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16661 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16662 (ps_plog): Redeclare exported functions with default visibility.
16663
3112ed97
NA
166642020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16665
16666 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16667 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16668
8dc3273e
SM
166692020-01-15 Simon Marchi <simon.marchi@efficios.com>
16670
16671 * infcmd.c (post_create_inferior): Use get_thread_regcache
16672 instead of get_current_regcache.
16673
ff47f4f0
TT
166742020-01-14 Tom Tromey <tom@tromey.com>
16675
16676 PR symtab/12535:
16677 * python/python.c (gdbpy_decode_line): Treat empty string the same
16678 as no argument.
16679
975f45b7
TT
166802020-01-14 Tom Tromey <tom@tromey.com>
16681
16682 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16683
25e57356
TT
166842020-01-14 Tom Tromey <tom@tromey.com>
16685
16686 * nat/linux-btrace.c: Don't include <config.h>.
16687 * nat/linux-ptrace.c: Don't include <config.h>.
16688 * nat/x86-linux-dregs.c: Don't include <config.h>.
16689
05ea2a05
TT
166902020-01-14 Tom Tromey <tom@tromey.com>
16691
16692 * configure: Rebuild.
16693 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16694
01027315
TT
166952020-01-14 Tom Tromey <tom@tromey.com>
16696
16697 * nat/x86-linux-dregs.c: Include configh.h.
16698 * nat/linux-ptrace.c: Include configh.h.
16699 * nat/linux-btrace.c: Include configh.h.
16700 * defs.h: Include config.h, bfd.h.
16701 * configure.ac: Don't source common.host.
16702 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16703 * configure: Rebuild.
16704 * acinclude.m4: Update path.
16705 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16706 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16707 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16708 (CLIBS): Add LIBSUPPORT.
16709 (CDEPS): Likewise.
16710 (COMMON_SFILES): Remove gdbsupport files.
16711 (HFILES_NO_SRCDIR): Likewise.
16712 (stamp-version): Update path to create-version.sh.
16713 (ALLDEPFILES): Remove gdbsupport files.
16714
b2ceabe8
TT
167152020-01-14 Tom Tromey <tom@tromey.com>
16716
16717 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16718 USE_WIN32API when needed.
16719 * configure.ac (USE_WIN32API): Don't define.
16720 (WIN32LIBS): Use WIN32APILIBS.
16721 * configure: Rebuild.
16722
25c51f71
TT
167232020-01-14 Tom Tromey <tom@tromey.com>
16724
16725 * configure: Rebuild.
16726 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16727
717c684d
BE
167282020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16729
16730 * skip.c (skip_function_command): Make skip w/o arguments use the
16731 name of the inlined function if pc is inside any inlined function.
16732
7da6a5b9
LM
167332020-01-14 Luis Machado <luis.machado@linaro.org>
16734
16735 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16736 * infrun.c (resume_1): Likewise.
16737 (handle_inferior_event): Remove stale comment.
16738 * linux-nat.c (linux_nat_target::resume): Update comments.
16739 (save_stop_reason): Likewise.
16740 (linux_nat_filter_event): Likewise.
16741 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16742
44e4c775
AB
167432020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16744
16745 * elfread.c (record_minimal_symbol): Set section index to 0 for
16746 non-allocatable sections.
16747
18a8505e
AT
16748
167492020-01-13 Ali Tamur <tamur@google.com>
16750
16751 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16752 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16753 to gdb::optional. Update comments.
16754 (dwo_file): Update comments.
16755 (read_attribute): Update API to take an additional out parameter,
16756 need_reprocess. This is used to mark attributes that need other
16757 attributes (e.g. str_offsets_base) for correct computation which may not
16758 have been read yet.
16759 (read_attribute_reprocess): New function declaration.
16760 (read_addr_index): Likewise.
16761 (read_dwo_str_index): Likewise.
16762 (read_stub_str_index): Likewise.
16763 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16764 (lookup_addr_base): New function definition.
16765 (lookup_ranges_base): Likewise.
16766 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16767 lookup_ranges_base.
16768 (init_cutu_and_read_dies): Update comments.
16769 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16770 unit. This is used to inherit parent's str_offsets_base and addr_base.
16771 Update comments.
16772 (init_cutu_and_read_dies_simple): Reflect API changes.
16773 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16774 (create_cus_hash_table): Change API to take parent compile unit.
16775 Reflect API changes.
16776 (open_and_init_dwo_file): Reflect API changes.
16777 (dwarf2_get_pc_bounds): Update comments.
16778 (dwarf2_record_block_ranges): Likewise.
16779 (read_full_die_1): Change implementation to reprocess attributes that
16780 need str_offsets_base and addr_base.
16781 (partial_die_info::read): Likewise.
16782 (read_attribute_reprocess): New function definition.
16783 (read_attribute_value): Change API to take an additional out parameter,
16784 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16785 when a non-dwo compile unit has index based attributes.
16786 (read_attribute): Reflect API changes.
16787 (read_addr_index_1): Reflect API changes. Update comments.
16788 (dwarf2_read_addr_index_data): Reflect API changes.
16789 (dwarf2_read_addr_index): Likewise.
16790 (read_str_index): Change API and implementation. This becomes a helper
16791 to be used by the new string index related methods. Update error
16792 message and comments.
16793 (read_dwo_str_index): New function definition.
16794 (read_stub_str_index): Likewise.
16795 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16796 * symfile.h (dwarf2_debug_sections): Likewise.
16797 * xcoffread.c (dwarf2_debug_sections): Likewise.
16798
0cac9354
SM
167992020-01-13 Simon Marchi <simon.marchi@efficios.com>
16800
16801 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16802 core_reg_sect type to gdb_byte *.
16803 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16804 * cris-tdep.c (fetch_core_registers): Likewise.
16805 * corelow.c (core_target::get_core_register_section): Change
16806 type of `contents` to gdb::byte_vector.
16807
9a6d629c
AB
168082020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16809
16810 * tui/tui-wingeneral.c (box_win): Position the title in the center
16811 of the border.
16812
d8b2f9e3
SM
168132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16814
16815 * corelow.c (core_target::get_core_register_section): Use
16816 std::vector instead of alloca.
16817
bb564c58
SM
168182020-01-13 Simon Marchi <simon.marchi@efficios.com>
16819
16820 * warning.m4: Add -Wmissing-declarations to build_warnings.
16821 * configure: Re-generate.
16822
6b366111
SM
168232020-01-13 Simon Marchi <simon.marchi@efficios.com>
16824
16825 * python/python.c (init__gdb_module): Add declaration.
16826
6c265988
SM
168272020-01-13 Simon Marchi <simon.marchi@efficios.com>
16828
16829 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16830 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16831 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16832 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16833 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16834 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16835 * ada-exp.y (_initialize_ada_exp): Add declaration.
16836 * ada-lang.c (_initialize_ada_language): Add declaration.
16837 * ada-tasks.c (_initialize_tasks): Add declaration.
16838 * agent.c (_initialize_agent): Add declaration.
16839 * aix-thread.c (_initialize_aix_thread): Add declaration.
16840 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16841 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16842 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16843 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16844 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16845 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16846 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16847 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16848 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16849 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16850 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16851 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16852 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16853 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16854 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16855 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16856 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16857 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16858 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16859 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16860 * annotate.c (_initialize_annotate): Add declaration.
16861 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16862 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16863 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16864 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16865 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16866 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16867 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16868 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16869 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16870 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16871 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16872 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16873 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16874 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16875 * auto-load.c (_initialize_auto_load): Add declaration.
16876 * auxv.c (_initialize_auxv): Add declaration.
16877 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16878 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16879 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16880 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16881 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16882 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16883 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16884 * breakpoint.c (_initialize_breakpoint): Add declaration.
16885 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16886 * btrace.c (_initialize_btrace): Add declaration.
16887 * charset.c (_initialize_charset): Add declaration.
16888 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16889 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16890 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16891 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16892 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16893 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16894 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16895 * coffread.c (_initialize_coffread): Add declaration.
16896 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16897 * compile/compile.c (_initialize_compile): Add declaration.
16898 * complaints.c (_initialize_complaints): Add declaration.
16899 * completer.c (_initialize_completer): Add declaration.
16900 * copying.c (_initialize_copying): Add declaration.
16901 * corefile.c (_initialize_core): Add declaration.
16902 * corelow.c (_initialize_corelow): Add declaration.
16903 * cp-abi.c (_initialize_cp_abi): Add declaration.
16904 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16905 * cp-support.c (_initialize_cp_support): Add declaration.
16906 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16907 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16908 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16909 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16910 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16911 * ctfread.c (_initialize_ctfread): Add declaration.
16912 * d-lang.c (_initialize_d_language): Add declaration.
16913 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16914 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16915 * dbxread.c (_initialize_dbxread): Add declaration.
16916 * dcache.c (_initialize_dcache): Add declaration.
16917 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16918 * disasm.c (_initialize_disasm): Add declaration.
16919 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16920 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16921 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16922 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16923 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16924 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16925 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16926 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16927 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16928 * elfread.c (_initialize_elfread): Add declaration.
16929 * exec.c (_initialize_exec): Add declaration.
16930 * extension.c (_initialize_extension): Add declaration.
16931 * f-lang.c (_initialize_f_language): Add declaration.
16932 * f-valprint.c (_initialize_f_valprint): Add declaration.
16933 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16934 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16935 * filesystem.c (_initialize_filesystem): Add declaration.
16936 * findcmd.c (_initialize_mem_search): Add declaration.
16937 * findvar.c (_initialize_findvar): Add declaration.
16938 * fork-child.c (_initialize_fork_child): Add declaration.
16939 * frame-base.c (_initialize_frame_base): Add declaration.
16940 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16941 * frame.c (_initialize_frame): Add declaration.
16942 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16943 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16944 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16945 * gcore.c (_initialize_gcore): Add declaration.
16946 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16947 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16948 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16949 * gdbarch.c (_initialize_gdbarch): Add declaration.
16950 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16951 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16952 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16953 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16954 * go-lang.c (_initialize_go_language): Add declaration.
16955 * go32-nat.c (_initialize_go32_nat): Add declaration.
16956 * guile/guile.c (_initialize_guile): Add declaration.
16957 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16958 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16959 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16960 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16961 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16962 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16963 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16964 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16965 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16966 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16967 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16968 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16969 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16970 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16971 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16972 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16973 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16974 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16975 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16976 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16977 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16978 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16979 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16980 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16981 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16982 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16983 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16984 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16985 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16986 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16987 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16988 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16989 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16990 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16991 * infcall.c (_initialize_infcall): Add declaration.
16992 * infcmd.c (_initialize_infcmd): Add declaration.
16993 * inflow.c (_initialize_inflow): Add declaration.
16994 * infrun.c (_initialize_infrun): Add declaration.
16995 * interps.c (_initialize_interpreter): Add declaration.
16996 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16997 * jit.c (_initialize_jit): Add declaration.
16998 * language.c (_initialize_language): Add declaration.
16999 * linux-fork.c (_initialize_linux_fork): Add declaration.
17000 * linux-nat.c (_initialize_linux_nat): Add declaration.
17001 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17002 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17003 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17004 * m2-lang.c (_initialize_m2_language): Add declaration.
17005 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17006 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17007 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17008 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17009 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17010 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17011 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17012 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17013 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17014 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17015 * machoread.c (_initialize_machoread): Add declaration.
17016 * macrocmd.c (_initialize_macrocmd): Add declaration.
17017 * macroscope.c (_initialize_macroscope): Add declaration.
17018 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17019 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17020 * maint.c (_initialize_maint_cmds): Add declaration.
17021 * mdebugread.c (_initialize_mdebugread): Add declaration.
17022 * memattr.c (_initialize_mem): Add declaration.
17023 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17024 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17025 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17026 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17027 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17028 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17029 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17030 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17031 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17032 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17033 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17034 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17035 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17036 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17037 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17038 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17039 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17040 * mipsread.c (_initialize_mipsread): Add declaration.
17041 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17042 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17043 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17044 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17045 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17046 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17047 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17048 * nto-procfs.c (_initialize_procfs): Add declaration.
17049 * objc-lang.c (_initialize_objc_language): Add declaration.
17050 * observable.c (_initialize_observer): Add declaration.
17051 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17052 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17053 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17054 * osabi.c (_initialize_gdb_osabi): Add declaration.
17055 * osdata.c (_initialize_osdata): Add declaration.
17056 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17057 * parse.c (_initialize_parse): Add declaration.
17058 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17059 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17060 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17061 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17062 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17063 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17064 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17065 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17066 * printcmd.c (_initialize_printcmd): Add declaration.
17067 * probe.c (_initialize_probe): Add declaration.
17068 * proc-api.c (_initialize_proc_api): Add declaration.
17069 * proc-events.c (_initialize_proc_events): Add declaration.
17070 * proc-service.c (_initialize_proc_service): Add declaration.
17071 * procfs.c (_initialize_procfs): Add declaration.
17072 * producer.c (_initialize_producer): Add declaration.
17073 * psymtab.c (_initialize_psymtab): Add declaration.
17074 * python/python.c (_initialize_python): Add declaration.
17075 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17076 * record-btrace.c (_initialize_record_btrace): Add declaration.
17077 * record-full.c (_initialize_record_full): Add declaration.
17078 * record.c (_initialize_record): Add declaration.
17079 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17080 * regcache.c (_initialize_regcache): Add declaration.
17081 * reggroups.c (_initialize_reggroup): Add declaration.
17082 * remote-notif.c (_initialize_notif): Add declaration.
17083 * remote-sim.c (_initialize_remote_sim): Add declaration.
17084 * remote.c (_initialize_remote): Add declaration.
17085 * reverse.c (_initialize_reverse): Add declaration.
17086 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17087 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17088 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17089 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17090 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17091 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17092 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17093 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17094 Add declaration.
17095 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17096 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17097 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17098 * rust-exp.y (_initialize_rust_exp): Add declaration.
17099 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17100 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17101 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17102 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17103 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17104 * score-tdep.c (_initialize_score_tdep): Add declaration.
17105 * ser-go32.c (_initialize_ser_dos): Add declaration.
17106 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17107 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17108 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17109 * ser-uds.c (_initialize_ser_socket): Add declaration.
17110 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17111 * serial.c (_initialize_serial): Add declaration.
17112 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17113 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17114 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17115 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17116 * skip.c (_initialize_step_skip): Add declaration.
17117 * sol-thread.c (_initialize_sol_thread): Add declaration.
17118 * solib-aix.c (_initialize_solib_aix): Add declaration.
17119 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17120 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17121 * solib-frv.c (_initialize_frv_solib): Add declaration.
17122 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17123 * solib-target.c (_initialize_solib_target): Add declaration.
17124 * solib.c (_initialize_solib): Add declaration.
17125 * source-cache.c (_initialize_source_cache): Add declaration.
17126 * source.c (_initialize_source): Add declaration.
17127 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17128 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17129 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17130 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17131 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17132 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17133 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17134 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17135 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17136 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17137 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17138 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17139 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17140 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17141 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17142 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17143 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17144 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17145 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17146 * stabsread.c (_initialize_stabsread): Add declaration.
17147 * stack.c (_initialize_stack): Add declaration.
17148 * stap-probe.c (_initialize_stap_probe): Add declaration.
17149 * std-regs.c (_initialize_frame_reg): Add declaration.
17150 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17151 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17152 * symfile.c (_initialize_symfile): Add declaration.
17153 * symmisc.c (_initialize_symmisc): Add declaration.
17154 * symtab.c (_initialize_symtab): Add declaration.
17155 * target.c (_initialize_target): Add declaration.
17156 * target-connection.c (_initialize_target_connection): Add
17157 declaration.
17158 * target-dcache.c (_initialize_target_dcache): Add declaration.
17159 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17160 * thread.c (_initialize_thread): Add declaration.
17161 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17162 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17163 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17164 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17165 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17166 * tracectf.c (_initialize_ctf): Add declaration.
17167 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17168 * tracefile.c (_initialize_tracefile): Add declaration.
17169 * tracepoint.c (_initialize_tracepoint): Add declaration.
17170 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17171 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17172 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17173 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17174 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17175 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17176 * tui/tui.c (_initialize_tui): Add declaration.
17177 * typeprint.c (_initialize_typeprint): Add declaration.
17178 * ui-style.c (_initialize_ui_style): Add declaration.
17179 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17180 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17181 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17182 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17183 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17184 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17185 * unittests/filtered_iterator-selftests.c
17186 (_initialize_filtered_iterator_selftests): Add declaration.
17187 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17188 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17189 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17190 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17191 * unittests/main-thread-selftests.c
17192 (_initialize_main_thread_selftests): Add declaration.
17193 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17194 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17195 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17196 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17197 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17198 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17199 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17200 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17201 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17202 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17203 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17204 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17205 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17206 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17207 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17208 declaration.
17209 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17210 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17211 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17212 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17213 * user-regs.c (_initialize_user_regs): Add declaration.
17214 * utils.c (_initialize_utils): Add declaration.
17215 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17216 * valops.c (_initialize_valops): Add declaration.
17217 * valprint.c (_initialize_valprint): Add declaration.
17218 * value.c (_initialize_values): Add declaration.
17219 * varobj.c (_initialize_varobj): Add declaration.
17220 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17221 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17222 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17223 * windows-nat.c (_initialize_windows_nat): Add declaration.
17224 (_initialize_check_for_gdb_ini): Add declaration.
17225 (_initialize_loadable): Add declaration.
17226 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17227 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17228 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17229 * xcoffread.c (_initialize_xcoffread): Add declaration.
17230 * xml-support.c (_initialize_xml_support): Add declaration.
17231 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17232 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17233 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17234 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17235
e2de1eec
SM
172362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17237
17238 * regformats/regdat.sh: Generate declaration for init function.
17239
e0037b4c
SM
172402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17241
17242 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17243 up.
17244 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17245 close_one_inferior>: New methods.
17246 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17247 pass down target to find_inferior_pid.
17248 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17249 Pass down target to find_inferior_ptid.
17250 (gdbsim_target::create_inferior): Pass down target to
17251 add_thread_silent.
17252 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17253 target down to find_inferior_ptid and switch_to_thread.
17254 (gdbsim_target::close): Update to call close_one_inferior.
17255 (struct resume_data): Remove.
17256 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17257 directly, rather than through a void pointer.
17258 (gdbsim_target::resume): Update to call resume_one_inferior.
17259
58920b5b
SM
172602020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17261
17262 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17263
4ec89149
PA
172642020-01-12 Pedro Alves <palves@redhat.com>
17265
17266 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17267 directly for the current inferior instead of
17268 discard_all_inferiors.
17269 (discard_all_inferiors): Delete.
17270
7c392d1d
TT
172712020-01-11 Tom Tromey <tom@tromey.com>
17272
17273 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17274 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17275 deprecated_safe_get_selected_frame.
17276
d9ebdab7
TBA
172772020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17278
17279 * inferior.c (print_inferior): Switch inferior before printing it.
17280
f3c469b9
PA
172812020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17282 Pedro Alves <palves@redhat.com>
17283
17284 * progspace-and-thread.c (switch_to_program_space_and_thread):
17285 Assert there's an inferior for PSPACE. Use
17286 switch_to_inferior_no_thread to switch the inferior too.
17287 * progspace.c (program_space::~program_space): Call
17288 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17289 (program_space::free_all_objfiles): Don't call clear_symtab_users
17290 here.
17291 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17292
65c574f6
PA
172932020-01-10 Pedro Alves <palves@redhat.com>
17294
17295 * NEWS: Mention multi-target debugging, "info connections", and
17296 "add-inferior -no-connection".
17297
2f4fcf00
PA
172982020-01-10 Pedro Alves <palves@redhat.com>
17299
17300 * infrun.c: Include "target-connection.h".
17301 (check_multi_target_resumption): New.
17302 (proceed): Call it.
17303 * target-connection.c (make_target_connection_string): Make
17304 extern.
17305 * target-connection.h (make_target_connection_string): Declare.
17306
121b3efd
PA
173072020-01-10 Pedro Alves <palves@redhat.com>
17308
17309 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17310 * inferior.c (uiout_field_connection): New function.
17311 (print_inferior): Add new "connection-id" column.
17312 (add_inferior_command): Show connection number/string of added
17313 inferior.
17314 * process-stratum-target.h
17315 (process_stratum_target::connection_string): New virtual method.
17316 (process_stratum_target::connection_number): New field.
17317 * remote.c (remote_target::connection_string): New override.
17318 * target-connection.c: New file.
17319 * target-connection.h: New file.
17320 * target.c (decref_target): Remove process_stratum targets from
17321 the connection list.
17322 (target_stack::push): Add process_stratum targets to the
17323 connection list.
17324
4f837581
PA
173252020-01-10 Pedro Alves <palves@redhat.com>
17326
17327 Revert:
17328 2016-04-12 Pedro Alves <palves@redhat.com>
17329 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17330 Remove references to name.
17331 * serial.h (struct serial) <name>: Delete.
17332
f4ec508e
PA
173332020-01-10 Pedro Alves <palves@redhat.com>
17334
17335 * gdbarch-selftests.c (register_to_value_test): Remove "target
17336 already pushed" check.
17337
5b6d1e4f
PA
173382020-01-10 Pedro Alves <palves@redhat.com>
17339 John Baldwin <jhb@FreeBSD.org>
17340
17341 * aarch64-linux-nat.c
17342 (aarch64_linux_nat_target::thread_architecture): Adjust.
17343 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17344 (task_command_1): Likewise.
17345 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17346 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17347 (aix_thread_target::store_registers)
17348 (aix_thread_target::thread_alive): Adjust.
17349 * amd64-fbsd-tdep.c: Include "inferior.h".
17350 (amd64fbsd_get_thread_local_address): Pass down target.
17351 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17352 thread's gdbarch instead of target_gdbarch.
17353 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17354 get_last_target_status.
17355 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17356 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17357 inferiors.
17358 (update_inserted_breakpoint_locations): Skip if inferiors with no
17359 execution.
17360 (update_global_location_list): When handling moribund locations,
17361 find representative inferior for location's pspace, and use thread
17362 count of its process_stratum target.
17363 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17364 * bsd-uthread.c (bsd_uthread_target::wait): Use
17365 as_process_stratum_target and adjust thread_change_ptid and
17366 add_thread calls.
17367 (bsd_uthread_target::update_thread_list): Use
17368 as_process_stratum_target and adjust find_thread_ptid,
17369 thread_change_ptid and add_thread calls.
17370 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17371 find_thread_ptid call.
17372 * corelow.c (add_to_thread_list): Adjust add_thread call.
17373 (core_target_open): Adjust add_thread_silent and thread_count
17374 calls.
17375 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17376 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17377 * event-top.c (async_disconnect): Pop targets from all inferiors.
17378 * exec.c (add_target_sections): Push exec target on all inferiors
17379 sharing the program space.
17380 (remove_target_sections): Remove the exec target from all
17381 inferiors sharing the program space.
17382 (exec_on_vfork): New.
17383 * exec.h (exec_on_vfork): Declare.
17384 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17385 Pass it down.
17386 (fbsd_nat_target::update_thread_list): Adjust.
17387 (fbsd_nat_target::resume): Adjust.
17388 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17389 down.
17390 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17391 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17392 get_thread_arch_regcache call.
17393 * fork-child.c (gdb_startup_inferior): Pass target down to
17394 startup_inferior and set_executing.
17395 * gdbthread.h (struct process_stratum_target): Forward declare.
17396 (add_thread, add_thread_silent, add_thread_with_info)
17397 (in_thread_list): Add process_stratum_target parameter.
17398 (find_thread_ptid(inferior*, ptid_t)): New overload.
17399 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17400 parameter.
17401 (all_threads()): Delete overload.
17402 (all_threads, all_non_exited_threads): Add process_stratum_target
17403 parameter.
17404 (all_threads_safe): Use brace initialization.
17405 (thread_count): Add process_stratum_target parameter.
17406 (set_resumed, set_running, set_stop_requested, set_executing)
17407 (threads_are_executing, finish_thread_state): Add
17408 process_stratum_target parameter.
17409 (switch_to_thread): Use is_current_thread.
17410 * i386-fbsd-tdep.c: Include "inferior.h".
17411 (i386fbsd_get_thread_local_address): Pass down target.
17412 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17413 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17414 have_inferiors check.
17415 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17416 (inf_ptrace_target::attach): Adjust.
17417 * infcall.c (run_inferior_call): Adjust.
17418 * infcmd.c (run_command_1): Pass target to
17419 scoped_finish_thread_state.
17420 (proceed_thread_callback): Skip inferiors with no execution.
17421 (continue_command): Rename 'all_threads' local to avoid hiding
17422 'all_threads' function. Adjust get_last_target_status call.
17423 (prepare_one_step): Adjust set_running call.
17424 (signal_command): Use user_visible_resume_target. Compare thread
17425 pointers instead of inferior_ptid.
17426 (info_program_command): Adjust to pass down target.
17427 (attach_command): Mark target's 'thread_executing' flag.
17428 (stop_current_target_threads_ns): New, factored out from ...
17429 (interrupt_target_1): ... this. Switch inferior before making
17430 target calls.
17431 * inferior-iter.h
17432 (struct all_inferiors_iterator, struct all_inferiors_range)
17433 (struct all_inferiors_safe_range)
17434 (struct all_non_exited_inferiors_range): Filter on
17435 process_stratum_target too. Remove explicit.
17436 * inferior.c (inferior::inferior): Push dummy target on target
17437 stack.
17438 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17439 Add process_stratum_target parameter, and pass it down.
17440 (have_live_inferiors): Adjust.
17441 (switch_to_inferior_and_push_target): New.
17442 (add_inferior_command, clone_inferior_command): Handle
17443 "-no-connection" parameter. Use
17444 switch_to_inferior_and_push_target.
17445 (_initialize_inferior): Mention "-no-connection" option in
17446 the help of "add-inferior" and "clone-inferior" commands.
17447 * inferior.h: Include "process-stratum-target.h".
17448 (interrupt_target_1): Use bool.
17449 (struct inferior) <push_target, unpush_target, target_is_pushed,
17450 find_target_beneath, top_target, process_target, target_at,
17451 m_stack>: New.
17452 (discard_all_inferiors): Delete.
17453 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17454 (all_inferiors, all_non_exited_inferiors): Add
17455 process_stratum_target parameter.
17456 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17457 (target_last_proc_target): New global.
17458 (follow_fork_inferior): Push target on new inferior. Pass target
17459 to add_thread_silent. Call exec_on_vfork. Handle target's
17460 reference count.
17461 (follow_fork): Adjust get_last_target_status call. Also consider
17462 target.
17463 (follow_exec): Push target on new inferior.
17464 (struct execution_control_state) <target>: New field.
17465 (user_visible_resume_target): New.
17466 (do_target_resume): Call target_async.
17467 (resume_1): Set target's threads_executing flag. Consider resume
17468 target.
17469 (commit_resume_all_targets): New.
17470 (proceed): Also consider resume target. Skip threads of inferiors
17471 with no execution. Commit resumtion in all targets.
17472 (start_remote): Pass current inferior to wait_for_inferior.
17473 (infrun_thread_stop_requested): Consider target as well. Pass
17474 thread_info pointer to clear_inline_frame_state instead of ptid.
17475 (infrun_thread_thread_exit): Consider target as well.
17476 (random_pending_event_thread): New inferior parameter. Use it.
17477 (do_target_wait): Rename to ...
17478 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17479 down.
17480 (threads_are_resumed_pending_p, do_target_wait): New.
17481 (prepare_for_detach): Adjust calls.
17482 (wait_for_inferior): New inferior parameter. Handle it. Use
17483 do_target_wait_1 instead of do_target_wait.
17484 (fetch_inferior_event): Adjust. Switch to representative
17485 inferior. Pass target down.
17486 (set_last_target_status): Add process_stratum_target parameter.
17487 Save target in global.
17488 (get_last_target_status): Add process_stratum_target parameter and
17489 handle it.
17490 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17491 (context_switch): Check inferior_ptid == null_ptid before calling
17492 inferior_thread().
17493 (get_inferior_stop_soon): Pass down target.
17494 (wait_one): Rename to ...
17495 (poll_one_curr_target): ... this.
17496 (struct wait_one_event): New.
17497 (wait_one): New.
17498 (stop_all_threads): Adjust.
17499 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17500 event's target.
17501 (switch_back_to_stepped_thread): Also consider target.
17502 (print_stop_event): Update.
17503 (normal_stop): Update. Also consider the resume target.
17504 * infrun.h (wait_for_inferior): Remove declaration.
17505 (user_visible_resume_target): New declaration.
17506 (get_last_target_status, set_last_target_status): New
17507 process_stratum_target parameter.
17508 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17509 process_stratum_target parameter, and use it.
17510 (clear_inline_frame_state (thread_info*)): New.
17511 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17512 process_stratum_target parameter.
17513 (clear_inline_frame_state (thread_info*)): Declare.
17514 * linux-fork.c (delete_checkpoint_command): Pass target down to
17515 find_thread_ptid.
17516 (checkpoint_command): Adjust.
17517 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17518 instead of just tweaking inferior_ptid.
17519 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17520 (exit_lwp): Pass target down to find_thread_ptid.
17521 (attach_proc_task_lwp_callback): Pass target down to
17522 add_thread/set_running/set_executing.
17523 (linux_nat_target::attach): Pass target down to
17524 thread_change_ptid.
17525 (get_detach_signal): Pass target down to find_thread_ptid.
17526 Consider last target status's target.
17527 (linux_resume_one_lwp_throw, resume_lwp)
17528 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17529 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17530 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17531 (linux_nat_target::async_wait_fd): New.
17532 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17533 target down.
17534 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17535 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17536 * linux-thread-db.c (struct thread_db_info::process_target): New
17537 field.
17538 (add_thread_db_info): Save target.
17539 (get_thread_db_info): New process_stratum_target parameter. Also
17540 match target.
17541 (delete_thread_db_info): New process_stratum_target parameter.
17542 Also match target.
17543 (thread_from_lwp): Adjust to pass down target.
17544 (thread_db_notice_clone): Pass down target.
17545 (check_thread_db_callback): Pass down target.
17546 (try_thread_db_load_1): Always push the thread_db target.
17547 (try_thread_db_load, record_thread): Pass target down.
17548 (thread_db_target::detach): Pass target down. Always unpush the
17549 thread_db target.
17550 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17551 target down. Always unpush the thread_db target.
17552 (find_new_threads_callback, thread_db_find_new_threads_2)
17553 (thread_db_target::update_thread_list): Pass target down.
17554 (thread_db_target::pid_to_str): Pass current inferior down.
17555 (thread_db_target::get_thread_local_address): Pass target down.
17556 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17557 target down.
17558 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17559 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17560 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17561 (procfs_init_inferior): Rename to ...
17562 (procfs_target::procfs_init_inferior): ... this and adjust.
17563 (procfs_target::create_inferior, procfs_notice_thread)
17564 (procfs_do_thread_registers): Adjust.
17565 * ppc-fbsd-tdep.c: Include "inferior.h".
17566 (ppcfbsd_get_thread_local_address): Pass down target.
17567 * proc-service.c (ps_xfer_memory): Switch current inferior and
17568 program space as well.
17569 (get_ps_regcache): Pass target down.
17570 * process-stratum-target.c
17571 (process_stratum_target::thread_address_space)
17572 (process_stratum_target::thread_architecture): Pass target down.
17573 * process-stratum-target.h
17574 (process_stratum_target::threads_executing): New field.
17575 (as_process_stratum_target): New.
17576 * ravenscar-thread.c
17577 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17578 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17579 down.
17580 * record-btrace.c (record_btrace_target::info_record): Adjust.
17581 (record_btrace_target::record_method)
17582 (record_btrace_target::record_is_replaying)
17583 (record_btrace_target::fetch_registers)
17584 (get_thread_current_frame_id, record_btrace_target::resume)
17585 (record_btrace_target::wait, record_btrace_target::stop): Pass
17586 target down.
17587 * record-full.c (record_full_wait_1): Switch to event thread.
17588 Pass target down.
17589 * regcache.c (regcache::regcache)
17590 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17591 process_stratum_target parameter and handle it.
17592 (current_thread_target): New global.
17593 (get_thread_regcache): Add process_stratum_target parameter and
17594 handle it. Switch inferior before calling target method.
17595 (get_thread_regcache): Pass target down.
17596 (get_thread_regcache_for_ptid): Pass target down.
17597 (registers_changed_ptid): Add process_stratum_target parameter and
17598 handle it.
17599 (registers_changed_thread, registers_changed): Pass target down.
17600 (test_get_thread_arch_aspace_regcache): New.
17601 (current_regcache_test): Define a couple local test_target_ops
17602 instances and use them for testing.
17603 (readwrite_regcache): Pass process_stratum_target parameter.
17604 (cooked_read_test, cooked_write_test): Pass mock_target down.
17605 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17606 (get_thread_arch_aspace_regcache): Add process_stratum_target
17607 parameter.
17608 (regcache::target): New method.
17609 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17610 (regcache::registers_changed_ptid): Add process_stratum_target
17611 parameter.
17612 (regcache::m_target): New field.
17613 (registers_changed_ptid): Add process_stratum_target parameter.
17614 * remote.c (remote_state::supports_vCont_probed): New field.
17615 (remote_target::async_wait_fd): New method.
17616 (remote_unpush_and_throw): Add remote_target parameter.
17617 (get_current_remote_target): Adjust.
17618 (remote_target::remote_add_inferior): Push target.
17619 (remote_target::remote_add_thread)
17620 (remote_target::remote_notice_new_inferior)
17621 (get_remote_thread_info): Pass target down.
17622 (remote_target::update_thread_list): Skip threads of inferiors
17623 bound to other targets. (remote_target::close): Don't discard
17624 inferiors. (remote_target::add_current_inferior_and_thread)
17625 (remote_target::process_initial_stop_replies)
17626 (remote_target::start_remote)
17627 (remote_target::remote_serial_quit_handler): Pass down target.
17628 (remote_target::remote_unpush_target): New remote_target
17629 parameter. Unpush the target from all inferiors.
17630 (remote_target::remote_unpush_and_throw): New remote_target
17631 parameter. Pass it down.
17632 (remote_target::open_1): Check whether the current inferior has
17633 execution instead of checking whether any inferior is live. Pass
17634 target down.
17635 (remote_target::remote_detach_1): Pass down target. Use
17636 remote_unpush_target.
17637 (extended_remote_target::attach): Pass down target.
17638 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17639 (remote_target::append_resumption): Pass down target.
17640 (remote_target::append_pending_thread_resumptions)
17641 (remote_target::remote_resume_with_hc, remote_target::resume)
17642 (remote_target::commit_resume): Pass down target.
17643 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17644 (remote_target::interrupt_query)
17645 (remote_target::remove_new_fork_children)
17646 (remote_target::check_pending_events_prevent_wildcard_vcont)
17647 (remote_target::remote_parse_stop_reply)
17648 (remote_target::process_stop_reply): Pass down target.
17649 (first_remote_resumed_thread): New remote_target parameter. Pass
17650 it down.
17651 (remote_target::wait_as): Pass down target.
17652 (unpush_and_perror): New remote_target parameter. Pass it down.
17653 (remote_target::readchar, remote_target::remote_serial_write)
17654 (remote_target::getpkt_or_notif_sane_1)
17655 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17656 down target.
17657 (remote_target::mourn_inferior): Pass down target. Use
17658 remote_unpush_target.
17659 (remote_target::core_of_thread)
17660 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17661 (remote_target::pid_to_exec_file)
17662 (remote_target::thread_handle_to_thread_info): Pass down target.
17663 (remote_target::async_wait_fd): New.
17664 * riscv-fbsd-tdep.c: Include "inferior.h".
17665 (riscv_fbsd_get_thread_local_address): Pass down target.
17666 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17667 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17668 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17669 Adjust.
17670 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17671 * solib-svr4.c (enable_break): Pass down target.
17672 * spu-multiarch.c (parse_spufs_run): Pass down target.
17673 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17674 * target-delegates.c: Regenerate.
17675 * target.c (g_target_stack): Delete.
17676 (current_top_target): Return the current inferior's top target.
17677 (target_has_execution_1): Refer to the passed-in inferior's top
17678 target.
17679 (target_supports_terminal_ours): Check whether the initial
17680 inferior was already created.
17681 (decref_target): New.
17682 (target_stack::push): Incref/decref the target.
17683 (push_target, push_target, unpush_target): Adjust.
17684 (target_stack::unpush): Defref target.
17685 (target_is_pushed): Return bool. Adjust to refer to the current
17686 inferior's target stack.
17687 (dispose_inferior): Delete, and inline parts ...
17688 (target_preopen): ... here. Only dispose of the current inferior.
17689 (target_detach): Hold strong target reference while detaching.
17690 Pass target down.
17691 (target_thread_name): Add assertion.
17692 (target_resume): Pass down target.
17693 (target_ops::beneath, find_target_at): Adjust to refer to the
17694 current inferior's target stack.
17695 (get_dummy_target): New.
17696 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17697 has a thread running.
17698 (initialize_targets): Rename to ...
17699 (_initialize_target): ... this.
17700 * target.h: Include "gdbsupport/refcounted-object.h".
17701 (struct target_ops): Inherit refcounted_object.
17702 (target_ops::shortname, target_ops::longname): Make const.
17703 (target_ops::async_wait_fd): New method.
17704 (decref_target): Declare.
17705 (struct target_ops_ref_policy): New.
17706 (target_ops_ref): New typedef.
17707 (get_dummy_target): Declare function.
17708 (target_is_pushed): Return bool.
17709 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17710 (all_matching_threads_iterator::all_matching_threads_iterator):
17711 Handle filter target.
17712 * thread-iter.h (struct all_matching_threads_iterator, struct
17713 all_matching_threads_range, class all_non_exited_threads_range):
17714 Filter by target too. Remove explicit.
17715 * thread.c (threads_executing): Delete.
17716 (inferior_thread): Pass down current inferior.
17717 (clear_thread_inferior_resources): Pass down thread pointer
17718 instead of ptid_t.
17719 (add_thread_silent, add_thread_with_info, add_thread): Add
17720 process_stratum_target parameter. Use it for thread and inferior
17721 searches.
17722 (is_current_thread): New.
17723 (thread_info::deletable): Use it.
17724 (find_thread_ptid, thread_count, in_thread_list)
17725 (thread_change_ptid, set_resumed, set_running): New
17726 process_stratum_target parameter. Pass it down.
17727 (set_executing): New process_stratum_target parameter. Pass it
17728 down. Adjust reference to 'threads_executing'.
17729 (threads_are_executing): New process_stratum_target parameter.
17730 Adjust reference to 'threads_executing'.
17731 (set_stop_requested, finish_thread_state): New
17732 process_stratum_target parameter. Pass it down.
17733 (switch_to_thread): Also match inferior.
17734 (switch_to_thread): New process_stratum_target parameter. Pass it
17735 down.
17736 (update_threads_executing): Reimplement.
17737 * top.c (quit_force): Pop targets from all inferior.
17738 (gdb_init): Don't call initialize_targets.
17739 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17740 Declare.
17741 (windows_add_thread, windows_delete_thread): Adjust.
17742 (get_windows_debug_event): Rename to ...
17743 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17744 * tracefile-tfile.c (tfile_target_open): Pass down target.
17745 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17746 Forward declare.
17747 (switch_to_thread): Add process_stratum_target parameter.
17748 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17749 parameter. Use it.
17750 (mi_on_resume): Pass target down.
17751 * nat/fork-inferior.c (startup_inferior): Add
17752 process_stratum_target parameter. Pass it down.
17753 * nat/fork-inferior.h (startup_inferior): Add
17754 process_stratum_target parameter.
17755 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17756
75c6c844
PA
177572020-01-10 Pedro Alves <palves@redhat.com>
17758
17759 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17760 directly. Instead find the first thread in the thread list and
17761 use switch_to_thread.
17762
78f2c40a
PA
177632020-01-10 Pedro Alves <palves@redhat.com>
17764
17765 * remote.c (remote_target::remote_add_inferior): Don't bind a
17766 process to the current inferior if the current inferior is already
17767 bound to a process.
17768
e7af6c70
TBA
177692020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17770 Pedro Alves <palves@redhat.com>
17771
17772 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17773 If no process is specified, return null_ptid instead of
17774 inferior_ptid.
17775 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17776 TARGET_WAITKIND_SIGNALLED with no pid.
17777
31ba933e
PA
177782020-01-10 Pedro Alves <palves@redhat.com>
17779
17780 * remote.c (first_remote_resumed_thread): New.
17781 (remote_target::wait_as): Use it as default event_ptid instead of
17782 inferior_ptid.
17783
735fc2ca
PA
177842020-01-10 Pedro Alves <palves@redhat.com>
17785
17786 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17787
c17e02e1
PA
177882020-01-10 Pedro Alves <palves@redhat.com>
17789
17790 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17791 not -1.
17792
ab1ddbcf
PA
177932020-01-10 Pedro Alves <palves@redhat.com>
17794
17795 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17796 ptid to get_last_target_status.
17797 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17798 ptid to get_last_target_status.
17799 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17800 get_last_target_status.
17801 (info_program_command): Don't pass a target_waitstatus to
17802 get_last_target_status.
17803 * infrun.c (init_wait_for_inferior): Use
17804 nullify_last_target_wait_ptid.
17805 (get_last_target_status): Handle nullptr arguments.
17806 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17807 (print_stop_event): Don't pass a ptid to get_last_target_status.
17808 (normal_stop): Don't pass a ptid to get_last_target_status.
17809 * infrun.h (get_last_target_status, set_last_target_status): Move
17810 comments here and update.
17811 (nullify_last_target_wait_ptid): Declare.
17812 * linux-fork.c (fork_load_infrun_state): Remove local extern
17813 declaration of nullify_last_target_wait_ptid.
17814 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17815 to get_last_target_status.
17816
f3f8ece4
PA
178172020-01-10 Pedro Alves <palves@redhat.com>
17818
17819 * gdbthread.h (scoped_restore_current_thread)
17820 <dont_restore, restore, m_dont_restore>: Declare.
17821 * thread.c (thread_alive): Add assertion. Return bool.
17822 (switch_to_thread_if_alive): New.
17823 (prune_threads): Switch inferior/thread.
17824 (print_thread_info_1): Switch thread before calling target methods.
17825 (scoped_restore_current_thread::restore): New, factored out from
17826 ...
17827 (scoped_restore_current_thread::~scoped_restore_current_thread):
17828 ... this.
17829 (scoped_restore_current_thread::scoped_restore_current_thread):
17830 Add assertion.
17831 (thread_apply_all_command, thread_select): Use
17832 switch_to_thread_if_alive.
17833 * infrun.c (proceed, restart_threads, handle_signal_stop)
17834 (switch_back_to_stepped_thread): Switch current thread before
17835 calling target methods.
17836
db2d40f7
PA
178372020-01-10 Pedro Alves <palves@redhat.com>
17838
17839 * inferior.c (switch_to_inferior_no_thread): New function,
17840 factored out from ...
17841 (inferior_command): ... here.
17842 * inferior.h (switch_to_inferior_no_thread): Declare.
17843 * mi/mi-main.c (run_one_inferior): Use
17844 switch_to_inferior_no_thread.
17845
bd420a2d
PA
178462020-01-10 Pedro Alves <palves@redhat.com>
17847
17848 * infcmd.c (kill_command): Remove dead code.
17849
ddf5db90
PA
178502020-01-10 Pedro Alves <palves@redhat.com>
17851
17852 * remote.c (remote_target::mourn_inferior): No longer check
17853 whether the target is running.
17854
5018ce90
PA
178552020-01-10 Pedro Alves <palves@redhat.com>
17856
17857 * corelow.c (core_target::has_execution): Change parameter type to
17858 inferior pointer.
17859 * inferior.c (number_of_live_inferiors): Use
17860 inferior::has_execution instead of target_has_execution_1.
17861 * inferior.h (inferior::has_execution): New.
17862 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17863 inferior::has_execution instead of target_has_execution_1.
17864 * process-stratum-target.c
17865 (process_stratum_target::has_execution): Change parameter type to
17866 inferior pointer. Check the inferior's PID instead of
17867 inferior_ptid.
17868 * process-stratum-target.h
17869 (process_stratum_target::has_execution): Change parameter type to
17870 inferior pointer.
17871 * record-full.c (record_full_core_target::has_execution): Change
17872 parameter type to inferior pointer.
17873 * target.c (target_has_execution_1): Change parameter type to
17874 inferior pointer.
17875 (target_has_execution_current): Adjust.
17876 * target.h (target_ops::has_execution): Change parameter type to
17877 inferior pointer.
17878 (target_has_execution_1): Change parameter type to inferior
17879 pointer. Change return type to bool.
17880 * tracefile.h (tracefile_target::has_execution): Change parameter
17881 type to inferior pointer.
17882
74375d18
PA
178832020-01-10 Pedro Alves <palves@redhat.com>
17884
17885 * exceptions.c (print_flush): Remove current_top_target() check.
17886
acdf84a6
PA
178872020-01-10 Pedro Alves <palves@redhat.com>
17888
17889 * remote.c (show_remote_exec_file): Show the current inferior's
17890 exec-file instead of the command variable's value.
17891
ec506636
PA
178922020-01-10 Pedro Alves <palves@redhat.com>
17893
17894 * record-full.c (record_full_resume_ptid): New global.
17895 (record_full_target::resume): Set it.
17896 (record_full_wait_1): Use record_full_resume_ptid instead of
17897 inferior_ptid.
17898
873657b9
PA
178992020-01-10 Pedro Alves <palves@redhat.com>
17900
17901 * gdbthread.h (scoped_restore_current_thread)
17902 <dont_restore, restore, m_dont_restore>: Declare.
17903 * thread.c (thread_alive): Add assertion. Return bool.
17904 (switch_to_thread_if_alive): New.
17905 (prune_threads): Switch inferior/thread.
17906 (print_thread_info_1): Switch thread before calling target methods.
17907 (scoped_restore_current_thread::restore): New, factored out from
17908 ...
17909 (scoped_restore_current_thread::~scoped_restore_current_thread):
17910 ... this.
17911 (scoped_restore_current_thread::scoped_restore_current_thread):
17912 Add assertion.
17913 (thread_apply_all_command, thread_select): Use
17914 switch_to_thread_if_alive.
17915
7f0ae84c
GB
179162020-01-10 George Barrett <bob@bob131.so>
17917
17918 * stap-probe.c (stap_modify_semaphore): Don't check for null
17919 semaphores.
17920 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17921 for null semaphores.
17922
f5a7c406
AB
179232020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17924
17925 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17926 all source windows, and maintain horizontal scroll status while
17927 doing so.
17928
9ae6bf64
TT
179292020-01-09 Tom Tromey <tom@tromey.com>
17930
17931 PR tui/18932:
17932 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17933 update_source_window, not print_source_lines.
17934
b2efe70c
AB
179352020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17936
17937 * tui/tui.c (tui_enable): Register tui hooks after calling
17938 tui_display_main.
17939
5f23a082
CB
179402020-01-09 Christian Biesinger <cbiesinger@google.com>
17941
17942 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17943
3061113b
SM
179442020-01-08 Simon Marchi <simon.marchi@efficios.com>
17945
17946 * thread.c (print_thread_info_1): Fix indentation.
17947
57d75002
CB
179482020-01-09 Christian Biesinger <cbiesinger@google.com>
17949
17950 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17951 unique_xmalloc_ptr outside the if to always free the demangled name.
17952
6a053cb1
TT
179532020-01-08 Tom Tromey <tromey@adacore.com>
17954
17955 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17956 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17957 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17958 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17959 Remove.
17960 (section_offsets): New typedef.
17961 * symtab.c (fixup_section, get_msymbol_address): Update.
17962 * symmisc.c (dump_msymbols): Update.
17963 * symfile.h (relative_addr_info_to_section_offsets)
17964 (symfile_map_offsets_to_segments): Update.
17965 * symfile.c (build_section_addr_info_from_objfile)
17966 (init_objfile_sect_indices): Update.
17967 (struct place_section_arg): Change type of "offsets".
17968 (place_section): Update.
17969 (relative_addr_info_to_section_offsets): Change type of
17970 "section_offsets". Remove "num_sections" parameter.
17971 (default_symfile_offsets, syms_from_objfile_1)
17972 (set_objfile_default_section_offset): Update.
17973 (reread_symbols): No need to preserve section offsets by hand.
17974 (symfile_map_offsets_to_segments): Change type of "offsets".
17975 * stap-probe.c (relocate_address): Update.
17976 * stabsread.h (process_one_symbol): Update.
17977 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17978 (solib_target_relocate_section_addresses): Update.
17979 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17980 Update.
17981 * solib-frv.c (frv_relocate_main_executable): Update.
17982 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17983 * solib-aix.c (solib_aix_get_section_offsets): Change return
17984 type.
17985 (solib_aix_solib_create_inferior_hook): Update.
17986 * remote.c (remote_target::get_offsets): Update.
17987 * psymtab.c (find_pc_sect_psymtab): Update.
17988 * psympriv.h (struct partial_symbol) <address, text_low,
17989 text_high>: Update.
17990 * objfiles.h (obj_section_offset): Update.
17991 (struct objfile) <section_offsets>: Change type.
17992 <num_sections>: Remove.
17993 (objfile_relocate): Update.
17994 * objfiles.c (entry_point_address_query): Update
17995 (relocate_one_symbol): Change type of "section_offsets".
17996 (objfile_relocate1, objfile_relocate1): Change type of
17997 "new_offsets".
17998 (objfile_rebase1): Update.
17999 * mipsread.c (mipscoff_symfile_read): Update.
18000 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18001 parameter.
18002 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18003 (parse_external, psymtab_to_symtab_1): Update.
18004 * machoread.c (macho_symfile_offsets): Update.
18005 * ia64-tdep.c (ia64_find_unwind_table): Update.
18006 * hppa-tdep.c (read_unwind_info): Update.
18007 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18008 * dwarf2read.c (create_addrmap_from_index)
18009 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18010 (process_psymtab_comp_unit_reader, add_partial_symbol)
18011 (add_partial_subprogram, process_full_comp_unit)
18012 (read_file_scope, read_func_scope, read_lexical_block_scope)
18013 (read_call_site_scope, dwarf2_rnglists_process)
18014 (dwarf2_ranges_process, dwarf2_ranges_read)
18015 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18016 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18017 Update.
18018 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18019 Update.
18020 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18021 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18022 (process_one_symbol): Change type of "section_offsets".
18023 * ctfread.c (get_objfile_text_range): Update.
18024 * coffread.c (coff_symtab_read, enter_linenos)
18025 (process_coff_symbol): Update.
18026 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18027 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18028
456e800a
TT
180292020-01-08 Tom Tromey <tromey@adacore.com>
18030
18031 * dwarf2read.c (parse_macro_definition): Use std::string.
18032 (parse_macro_definition): Likewise.
18033
6dfa2fc2
TT
180342020-01-08 Tom Tromey <tromey@adacore.com>
18035
18036 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18037 (ATTR_ALLOC_CHUNK): Remove.
18038
421d1616
TT
180392020-01-08 Tom Tromey <tromey@adacore.com>
18040
18041 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18042
43816ebc
TT
180432020-01-08 Tom Tromey <tromey@adacore.com>
18044
18045 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18046 (dwarf2_compute_name, open_dwo_file): Likewise.
18047 (process_enumeration_scope): Use std::vector.
18048 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18049 (partial_die_info::fixup, dwarf2_start_subfile)
18050 (guess_full_die_structure_name, dwarf2_name): Likewise.
18051 (determine_prefix): Update.
18052 (guess_full_die_structure_name): Make return type const.
18053 (partial_die_full_name): Return unique_xmalloc_ptr.
18054 (DW_FIELD_ALLOC_CHUNK): Remove.
18055
4212d509
TT
180562020-01-07 Tom Tromey <tromey@adacore.com>
18057
18058 PR build/24937:
18059 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18060
06a6207a
JT
180612020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18062
18063 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18064
153d79c4
AB
180652020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18066
18067 * stack.c (print_frame_info): Move disassemble_next_line code
18068 inside source_print block.
18069
66182876
EZ
180702020-01-06 Eli Zaretskii <eliz@gnu.org>
18071
18072 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18073 gdb/signals.h, as we are now using native signal symbols.
18074
cbfa8581
SV
180752020-01-06 Shahab Vahedi <shahab@synopsys.com>
18076
18077 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18078 overflow by an early check of content vs threshold.
aac66a4c 18079 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18080 Likewise.
18081
3f602821
EZ
180822020-01-06 Eli Zaretskii <eliz@gnu.org>
18083
18084 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18085
a08c904d
JT
180862020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18087
18088 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18089 export table if no section contains it's RVA.
18090
89a65580
EZ
180912020-01-06 Eli Zaretskii <eliz@gnu.org>
18092
18093 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18094
8b7fcda2
HD
180952020-01-06 Hannes Domani <ssbssa@yahoo.de>
18096
18097 * source.c (print_source_lines_base): Set last_line_listed.
18098
a61b4f69
SV
180992020-01-06 Shahab Vahedi <shahab@synopsys.com>
18100
18101 * tui/tui-disasm.c: Remove trailing spaces.
18102
559e7e50
EZ
181032020-01-06 Eli Zaretskii <eliz@gnu.org>
18104 Pedro Alves <palves@redhat.com>
18105
18106 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18107 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18108 (windows_gdb_signal_to_target): New function, uses the above
18109 enumeration to convert GDB internal signal codes to equivalent
18110 Windows codes.
18111 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18112 * windows-nat.c: Include "gdb_wait.h".
18113 (get_windows_debug_event): Extract the fatal exception from the
18114 exit status and convert to the equivalent Posix signal number.
18115 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18116 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18117 * gdbsupport/gdb_wait.c: New file, implements
18118 windows_status_to_termsig.
18119 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18120 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18121
f2302a34
AB
181222020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18123
18124 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18125 show_layout.
18126
6a5206eb
LM
181272020-01-05 Luis Machado <luis.machado@linaro.org>
18128
18129 * aarch64-linux-nat.c
18130 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18131 and bfd_mach_aarch64.
18132
6ec1d75e
PW
181332020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18134
18135 * ui-file.c (stdio_file::can_emit_style_escape)
18136 (tee_file::can_emit_style_escape): Ensure style is used also on
18137 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18138 to gdb_stdout.
18139 * main.c (set_gdb_data_directory): Use file style to output the
18140 warning that the given pathname is not a directory.
18141 * top.c (show_history_filename, gdb_safe_append_history)
18142 (show_gdb_datadir): Use file style.
18143
44f81a76
HD
181442020-01-03 Hannes Domani <ssbssa@yahoo.de>
18145
18146 * solib-target.c (struct lm_info_target):
18147 Change offsets to be a unique_xmalloc_ptr.
18148 (solib_target_relocate_section_addresses): Update.
18149
25057eb0
HD
181502020-01-03 Hannes Domani <ssbssa@yahoo.de>
18151
18152 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18153
6e2118f5
BE
181542020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18155
18156 * MAINTAINERS (Write After Approval): Add myself.
18157
8133c7dc
LM
181582020-01-02 Luis Machado <luis.machado@linaro.org>
18159
18160 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18161 Cell BE architecture.
18162 * target.h (struct target_ops) <thread_architecture>: Likewise.
18163
48189bec
HD
181642020-01-01 Hannes Domani <ssbssa@yahoo.de>
18165
18166 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18167
ead1063b
HD
181682020-01-01 Hannes Domani <ssbssa@yahoo.de>
18169
18170 * MAINTAINERS (Write After Approval): Add myself.
18171
e5d78223
JB
181722020-01-01 Joel Brobecker <brobecker@adacore.com>
18173
18174 * gdbarch.sh: Update copyright year range of generated files.
18175
b811d2c2
JB
181762020-01-01 Joel Brobecker <brobecker@adacore.com>
18177
18178 Update copyright year range in all GDB files.
18179
5f4def5c
JB
181802020-01-01 Joel Brobecker <brobecker@adacore.com>
18181
18182 * copyright.py: Convert to Python 3.
18183
51fd4002
JB
181842020-01-01 Joel Brobecker <brobecker@adacore.com>
18185
18186 * copyright.py: Adapt after move of gnulib directory from gdb
18187 directory to toplevel directory.
18188
5fb651f2
JB
181892020-01-01 Joel Brobecker <brobecker@adacore.com>
18190
18191 * copyright.py (main): Exit if run from the wrong directory.
18192
5dd8bf88
JB
181932020-01-01 Joel Brobecker <brobecker@adacore.com>
18194
18195 * top.c (print_gdb_version): Change copyright year to 2020.
18196
9f71dacb 181972020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18198
9f71dacb 18199 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18200
9f71dacb 18201For older changes see ChangeLog-2019.
c906108c
SS
18202\f
18203Local Variables:
18204mode: change-log
18205left-margin: 8
18206fill-column: 74
18207version-control: never
57da7796 18208coding: utf-8
c906108c 18209End:
This page took 3.250647 seconds and 4 git commands to generate.