]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Change varobj_dynamic::saved_item to unique_ptr
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
74462664
TT
12020-12-11 Tom Tromey <tom@tromey.com>
2
3 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
4 (varobj_clear_saved_item, update_dynamic_varobj_children):
5 Update.
6
60ee72f6
TT
72020-12-11 Tom Tromey <tom@tromey.com>
8
9 * varobj.c (update_dynamic_varobj_children): Update.
10 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
11 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
12 type.
13 (py_varobj_iter::next): Likewise.
14
54746ce3
TT
152020-12-11 Tom Tromey <tom@tromey.com>
16
17 * varobj.c (update_dynamic_varobj_children, install_visualizer)
18 (varobj::~varobj): Update.
19 * varobj-iter.h (struct varobj_iter): Change to interface class.
20 (struct varobj_iter_ops): Remove.
21 (varobj_iter_next, varobj_iter_delete): Remove.
22 * python/py-varobj.c (struct py_varobj_iter): Derive from
23 varobj_iter. Add constructor, destructor. Rename members.
24 (py_varobj_iter::~py_varobj_iter): Rename from
25 py_varobj_iter_dtor.
26 (py_varobj_iter::next): Rename from py_varobj_iter_next.
27 (py_varobj_iter_ops): Remove.
28 (py_varobj_iter): Rename from py_varobj_iter_ctor.
29 (py_varobj_iter_new): Remove.
30 (py_varobj_get_iterator): Update.
31
d8f168dd
TT
322020-12-11 Tom Tromey <tom@tromey.com>
33
34 * varobj.h (all_root_varobjs): Take a function_view.
35 * varobj.c (all_root_varobjs): Take a function_view.
36 (varobj_invalidate_iter): Remove unused parameter.
37 (varobj_invalidate): Update.
38 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
39 (mi_cmd_var_update_iter): Change parameters.
40
76deb5d9
TT
412020-12-11 Tom Tromey <tom@tromey.com>
42
43 * varobj.c (struct varobj_root) <next>: Remove.
44 (struct vlist): Remove.
45 (rootlist): Now a std::list.
46 (install_variable, uninstall_variable, all_root_varobjs): Update.
47
2c1413a9
TT
482020-12-11 Tom Tromey <tom@tromey.com>
49
50 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
51 (varobj_table): Now htab_t.
52 (varobj_get_handle, install_variable, uninstall_variable):
53 Update.
54 (hash_varobj, eq_varobj_and_string): New functions.
55 (hash_varobj): Update.
56
b6433ede
TT
572020-12-11 Tom Tromey <tom@tromey.com>
58
59 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
60 * ada-lang.c (check_status_exception): Update.
61 * breakpoint.c (free_bp_location): Remove.
62 (decref_bp_location): Use bp_location_ref_policy.
63 (bpstats::bpstats): Don't call incref_bp_location.
64 (bpstats::~bpstats): Remove.
65 (bpstats::bpstats): Update.
66 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
67 (bp_location::bp_location): Update.
68 (incref_bp_location): Remove.
69 (bkpt_print_it): Update.
70 * breakpoint.h (class bp_location): Derive from
71 refcounted_object.
72 (struct bpstats): Remove destructor.
73 <bp_location_at>: Now a bp_location_ref_ptr.
74 <refc>: Remove.
75 (bp_location_ref_ptr): New typedef.
76 (struct bp_location_ref_policy): New.
77
bfcb9db8
TT
782020-12-11 Tom Tromey <tom@tromey.com>
79
80 * thread.c (class scoped_inc_dec_ref): Remove.
81 (tp_array_compar_ascending, tp_array_compar_descending): Change
82 parameter types.
83 (thread_apply_all_command): Use thread_info_ref.
84
d634cd0b
TT
852020-12-11 Tom Tromey <tom@tromey.com>
86
87 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
88 (stop_context::stop_context): Update.
89 (stop_context::~stop_context): Remove.
90
51107df5
TT
912020-12-11 Tom Tromey <tom@tromey.com>
92
93 * inferior.c (current_inferior_): Change type.
94 (current_inferior, set_current_inferior, initialize_inferiors):
95 Update.
96
15f4dddd
TT
972020-12-11 Tom Tromey <tom@tromey.com>
98
99 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
100 Change type.
101
a9f14fa5
TT
1022020-12-11 Tom Tromey <tromey@adacore.com>
103
104 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
105 field.
106 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
107 (read_atcb): Use cpu_id_offset.
108
2ccee230
KB
1092020-12-10 Kevin Buettner <kevinb@redhat.com>
110
111 * ada-lang.c (ada_fold_name): Fix off-by-one error.
112
ae1f4d2d
LM
1132020-12-10 Luis Machado <luis.machado@linaro.org>
114
115 * breakpoint.c (should_be_inserted): Don't output newline.
116
6afcd2d4
LM
1172020-12-10 Luis Machado <luis.machado@linaro.org>
118
119 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
120 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
121 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
122 * arch/aarch64.h: ... here.
123 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
124 (aarch64_maybe_swab128): New function.
125 (aarch64_sve_regs_copy_to_reg_buf)
126 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
127 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
128 the data field.
129 (TF_REG_VALUE_BYTES): New enum value.
130 (trad_frame_value_bytes_p): New function.
131 (trad_frame_set_value_bytes): New function.
132 (trad_frame_set_reg_value_bytes): New function.
133 (trad_frame_get_prev_register): Handle register values saved as bytes.
134 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
135 (struct trad_frame_saved_reg) <data>: New field.
136 (trad_frame_set_value_bytes): New prototype.
137 (trad_frame_value_bytes_p): New prototype.
138
15cc148f
MS
1392020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
140
141 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
142 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
143 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
144
12932e2c
TT
1452020-12-09 Tom Tromey <tromey@adacore.com>
146
147 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
148
5cde1d82
TT
1492020-12-09 Tom Tromey <tromey@adacore.com>
150
151 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
152 and "denominator" to gdb_mpz. Handle block forms.
153 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
154 "denominator" to gdb_mpz.
155 (finish_fixed_point_type): Update.
156 (has_zero_over_zero_small_attribute): Update.
157
d9c3a9c0
TT
1582020-12-09 Tom Tromey <tromey@adacore.com>
159
160 * expprint.c (op_name): Update.
161 * expression.h (enum exp_opcode): Update.
162 * std-operator.def: Add more opcodes.
163 * ada-operator.def, fortran-operator.def: Remove, moving contents
164 into std-operator.def.
165
6ad368b8
SM
1662020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
167
168 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
169 Return {} instead of false.
170 (get_discrete_bounds): Compute high bound only if low bound is
171 valid.
172
5b56203a
SM
1732020-12-09 Simon Marchi <simon.marchi@efficios.com>
174
175 PR 26875, PR 26901
176 * gdbtypes.c (get_discrete_low_bound): Make non-static.
177 (get_discrete_high_bound): Make non-static.
178 * gdbtypes.h (get_discrete_low_bound): New declaration.
179 (get_discrete_high_bound): New declaration.
180 * valarith.c (value_subscript): Only fetch high bound if
181 necessary.
182
14c09924
SM
1832020-12-09 Simon Marchi <simon.marchi@efficios.com>
184
185 * gdbtypes.c (get_discrete_bounds): Implement with
186 get_discrete_low_bound and get_discrete_high_bound.
187 (get_discrete_low_bound): New.
188 (get_discrete_high_bound): New.
189
1f8d2881
SM
1902020-12-09 Simon Marchi <simon.marchi@efficios.com>
191
192 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
193 callers.
194 * gdbtypes.c (get_discrete_bounds): Return bool.
195
6244c119
SM
1962020-12-09 Simon Marchi <simon.marchi@efficios.com>
197
198 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
199 (ada_value_slice): Adjust.
200 (pos_atr): Adjust.
201 * gdbtypes.c (get_discrete_bounds): Adjust.
202 (discrete_position): Return optional.
203 * gdbtypes.h (discrete_position): Return optional.
204
a4915e8d
TT
2052020-12-07 Tom Tromey <tromey@adacore.com>
206
207 * maint.c (_initialize_maint_cmds): Use expression command
208 completer for "maint print type".
209
1f58f6c2
TBA
2102020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
211
212 * completer.c (complete_explicit_location): Also add keywords
213 that start with '-' to the completion list.
214
5759831a
TBA
2152020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
216
217 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
218 keyword may be followed by any keyword.
219 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
220 'toklen' in the case for "-force-condition".
221
21e051b3
TBA
2222020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
223
224 * main.c (catch_command_errors): Add a flag parameter; invoke
225 `bpstat_do_actions` if the flag is set.
226 (execute_cmdargs): Update a call to `catch_command_errors`.
227
f51f9f1d
TV
2282020-12-07 Tom de Vries <tdevries@suse.de>
229
230 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
231
00158a68
TT
2322020-12-06 Tom Tromey <tom@tromey.com>
233
234 PR ada/26999
235 * ada-lang.c (replace_operator_with_call): Rewrite.
236
296cfb88
GF
2372020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
238
239 PR breakpoints/27009
240 * s390-tdep.h (op_bc): Correct BC opcode value.
241
63c457b9
JB
2422020-12-06 Joel Brobecker <brobecker@adacore.com>
243
244 * gmp-utils.h (gdb_mpz::safe_export): New private method.
245 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
246 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
247 (gdb_mpz::safe_export): New method.
248 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
249 Update function description.
250 (check_as_integer_raises_out_of_range_error): New function.
251 (gdb_mpz_as_integer_out_of_range): New function.
252 (_initialize_gmp_utils_selftests): Register
253 gdb_mpz_as_integer_out_of_range as a selftest.
254
3c7ba803
JB
2552020-12-05 Joel Brobecker <brobecker@adacore.com>
256
257 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
258 TARGET_CHAR_BIT.
259 (gdb_mpz::write): Likewise.
260
372ff58f
SM
2612020-12-04 Simon Marchi <simon.marchi@efficios.com>
262
263 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
264 number of displaced step buffers.
265
480af54c
SM
2662020-12-04 Simon Marchi <simon.marchi@efficios.com>
267
268 * displaced-stepping.h (struct displaced_step_buffer): Rename
269 to...
270 (struct displaced_step_buffers): ... this.
271 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
272 <struct displaced_step_buffer>: New inner class.
273 <m_buffers>: New.
274 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
275 to...
276 (displaced_step_buffers::prepare): ... this, adjust for multiple
277 buffers.
278 (displaced_step_buffer::finish): Rename to...
279 (displaced_step_buffers::finish): ... this, adjust for multiple
280 buffers.
281 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
282 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
283 adjust for multiple buffers.
284 (displaced_step_buffer::restore_in_ptid): Rename to...
285 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
286 multiple buffers.
287 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
288 for num_disp_step_buffers.
289 * linux-tdep.c (struct linux_gdbarch_data)
290 <num_disp_step_buffers>: New field.
291 (struct linux_info) <disp_step_buf>: Rename to...
292 <disp_step_bufs>: ... this, change type to
293 displaced_step_buffers.
294 (linux_displaced_step_prepare): Use
295 linux_gdbarch_data::num_disp_step_buffers to create that number
296 of buffers.
297 (linux_displaced_step_finish): Adjust.
298 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
299 (linux_displaced_step_restore_all_in_ptid): Adjust.
300 (linux_init_abi): Change supports_displaced_step parameter for
301 num_disp_step_buffers, save it in linux_gdbarch_data.
302 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
303 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
304 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
305 supports_displaced_step parameter for num_disp_step_buffers.
306 (amd64_linux_init_abi): Adjust.
307 (amd64_x32_linux_init_abi): Adjust.
308 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
309 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
310 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
311 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
312 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
313 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
314 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
315 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
316 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
317 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
318 * m68k-linux-tdep.c (m68k_linux_init_abi):
319 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
320 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
321 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
322 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
323 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
324 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
325 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
326 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
327 Change type to displaced_step_buffers.
328 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
329 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
330 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
331 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
332 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
333 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
334 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
335
d9655058
SM
3362020-12-04 Simon Marchi <simon.marchi@efficios.com>
337
338 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
339 obkstack.
340 (_initialize_linux_tdep): Register pre-init gdb data instead of
341 post-init.
342
187b041e
SM
3432020-12-04 Simon Marchi <simon.marchi@efficios.com>
344
345 * displaced-stepping.h (struct
346 displaced_step_copy_insn_closure): Adjust comments.
347 (struct displaced_step_inferior_state) <step_thread,
348 step_gdbarch, step_closure, step_original, step_copy,
349 step_saved_copy>: Remove fields.
350 (struct displaced_step_thread_state): New.
351 (struct displaced_step_buffer): New.
352 * displaced-stepping.c (displaced_step_buffer::prepare): New.
353 (write_memory_ptid): Move from infrun.c.
354 (displaced_step_instruction_executed_successfully): New,
355 factored out of displaced_step_finish.
356 (displaced_step_buffer::finish): New.
357 (displaced_step_buffer::copy_insn_closure_by_addr): New.
358 (displaced_step_buffer::restore_in_ptid): New.
359 * gdbarch.sh (displaced_step_location): Remove.
360 (displaced_step_prepare, displaced_step_finish,
361 displaced_step_copy_insn_closure_by_addr,
362 displaced_step_restore_all_in_ptid): New.
363 * gdbarch.c: Re-generate.
364 * gdbarch.h: Re-generate.
365 * gdbthread.h (class thread_info) <displaced_step_state>: New
366 field.
367 (thread_step_over_chain_remove): New declaration.
368 (thread_step_over_chain_next): New declaration.
369 (thread_step_over_chain_length): New declaration.
370 * thread.c (thread_step_over_chain_remove): Make non-static.
371 (thread_step_over_chain_next): New.
372 (global_thread_step_over_chain_next): Use
373 thread_step_over_chain_next.
374 (thread_step_over_chain_length): New.
375 (global_thread_step_over_chain_enqueue): Add debug print.
376 (global_thread_step_over_chain_remove): Add debug print.
377 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
378 Remove.
379 * infrun.c (get_displaced_stepping_state): New.
380 (displaced_step_in_progress_any_inferior): Remove.
381 (displaced_step_in_progress_thread): Adjust.
382 (displaced_step_in_progress): Adjust.
383 (displaced_step_in_progress_any_thread): New.
384 (get_displaced_step_copy_insn_closure_by_addr): Remove.
385 (gdbarch_supports_displaced_stepping): Use
386 gdbarch_displaced_step_prepare_p.
387 (displaced_step_reset): Change parameter from inferior to
388 thread.
389 (displaced_step_prepare_throw): Implement using
390 gdbarch_displaced_step_prepare.
391 (write_memory_ptid): Move to displaced-step.c.
392 (displaced_step_restore): Remove.
393 (displaced_step_finish): Implement using
394 gdbarch_displaced_step_finish.
395 (start_step_over): Allow starting more than one displaced step.
396 (prepare_for_detach): Handle possibly multiple threads doing
397 displaced steps.
398 (handle_inferior_event): Handle possibility that fork event
399 happens while another thread displaced steps.
400 * linux-tdep.h (linux_displaced_step_prepare): New.
401 (linux_displaced_step_finish): New.
402 (linux_displaced_step_copy_insn_closure_by_addr): New.
403 (linux_displaced_step_restore_all_in_ptid): New.
404 (linux_init_abi): Add supports_displaced_step parameter.
405 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
406 (linux_displaced_step_prepare): New.
407 (linux_displaced_step_finish): New.
408 (linux_displaced_step_copy_insn_closure_by_addr): New.
409 (linux_displaced_step_restore_all_in_ptid): New.
410 (linux_init_abi): Add supports_displaced_step parameter,
411 register displaced step methods if true.
412 (_initialize_linux_tdep): Register inferior_execd observer.
413 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
414 supports_displaced_step parameter, adjust call to
415 linux_init_abi. Remove call to
416 set_gdbarch_displaced_step_location.
417 (amd64_linux_init_abi): Adjust call to
418 amd64_linux_init_abi_common.
419 (amd64_x32_linux_init_abi): Likewise.
420 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
421 linux_init_abi. Remove call to
422 set_gdbarch_displaced_step_location.
423 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
424 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
425 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
426 linux_init_abi.
427 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
428 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
429 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
430 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
431 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
432 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
433 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
434 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
435 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
436 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
437 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
438 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
439 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
440 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
441 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
442 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
443 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
444 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
445 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
446 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
447 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
448 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
449 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
450 linux_init_abi. Remove call to
451 set_gdbarch_displaced_step_location.
452 * arm-tdep.c (arm_pc_is_thumb): Call
453 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
454 get_displaced_step_copy_insn_closure_by_addr.
455 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
456 clear gdbarch methods.
457 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
458 (get_ppc_per_inferior): New function.
459 (ppc_displaced_step_prepare): New function.
460 (ppc_displaced_step_finish): New function.
461 (ppc_displaced_step_restore_all_in_ptid): New function.
462 (rs6000_gdbarch_init): Register new gdbarch methods.
463 * s390-tdep.c (s390_gdbarch_init): Don't call
464 set_gdbarch_displaced_step_location, set new gdbarch methods.
465
c7acb87b
SM
4662020-12-04 Simon Marchi <simon.marchi@efficios.com>
467
468 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
469 * aarch64-tdep.h: Include displaced-stepping.h.
470 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
471 Move here.
472 (displaced_step_copy_insn_closure_up): Move here.
473 (struct buf_displaced_step_copy_insn_closure): Move here.
474 (struct displaced_step_inferior_state): Move here.
475 (debug_displaced): Move here.
476 (displaced_debug_printf_1): Move here.
477 (displaced_debug_printf): Move here.
478 * displaced-stepping.c: New file.
479 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
480 * gdbarch.h: Re-generate.
481 * inferior.h: Include displaced-stepping.h.
482 * infrun.h (debug_displaced): Move to displaced-stepping.h.
483 (displaced_debug_printf_1): Likewise.
484 (displaced_debug_printf): Likewise.
485 (struct displaced_step_copy_insn_closure): Likewise.
486 (displaced_step_copy_insn_closure_up): Likewise.
487 (struct buf_displaced_step_copy_insn_closure): Likewise.
488 (struct displaced_step_inferior_state): Likewise.
489 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
490 (displaced_debug_printf_1): Likewise.
491 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
492 Likewise.
493 (_initialize_infrun): Don't register "set/show debug displaced".
494
94b24c74
SM
4952020-12-04 Simon Marchi <simon.marchi@efficios.com>
496
497 * linux-tdep.c (get_linux_inferior_data): Add inferior
498 parameter.
499 (linux_vsyscall_range): Pass current inferior.
500
bab37966
SM
5012020-12-04 Simon Marchi <simon.marchi@efficios.com>
502
503 * infrun.c (displaced_step_prepare_throw): Change return type to
504 displaced_step_prepare_status.
505 (displaced_step_prepare): Likewise.
506 (displaced_step_finish): Change return type to
507 displaced_step_finish_status.
508 (resume_1): Adjust.
509 (stop_all_threads): Adjust.
510 * displaced-stepping.h: New file.
511
7def77a1
SM
5122020-12-04 Simon Marchi <simon.marchi@efficios.com>
513
514 * infrun.c (displaced_step_fixup): Rename to...
515 (displaced_step_finish): ... this, update all callers.
516
1152d984
SM
5172020-12-04 Simon Marchi <simon.marchi@efficios.com>
518
519 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
520 (get_displaced_step_copy_insn_closure_by_addr): ... this.
521 Update all users.
522 (displaced_step_closure): Rename to...
523 (displaced_step_copy_insn_closure): ... this. Update all users.
524 (displaced_step_closure_up): Rename to...
525 (displaced_step_copy_insn_closure_up). ... this. Update all
526 users.
527 (buf_displaced_step_closure): Rename to...
528 (buf_displaced_step_copy_insn_closure): ... this. Update all
529 users.
530 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
531 (get_displaced_step_copy_insn_closure_by_addr): ... this.
532 Update all users.
533 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
534 (aarch64_displaced_step_copy_insn_closure): ... this. Update
535 all users.
536 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
537 (amd64_displaced_step_copy_insn_closure): ... this. Update all
538 users.
539 * arm-tdep.h (arm_displaced_step_closure): Rename to...
540 (arm_displaced_step_copy_insn_closure): ... this. Update all
541 users.
542 * i386-tdep.h (i386_displaced_step_closure): Rename to...
543 (i386_displaced_step_copy_insn_closure): ... this. Update all
544 users.
545 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
546 (ppc_displaced_step_copy_insn_closure): ... this. Update all
547 users.
548 * s390-tdep.c (s390_displaced_step_closure): Rename to...
549 (s390_displaced_step_copy_insn_closure): ... this. Update all
550 users.
551 * gdbarch.h: Re-generate.
552 * gdbarch.c: Re-generate.
553
28d5518b
SM
5542020-12-04 Simon Marchi <simon.marchi@efficios.com>
555
556 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
557 (global_thread_step_over_chain_enqueue): ... this. Update all
558 users.
559 (thread_step_over_chain_remove): Rename to...
560 (global_thread_step_over_chain_remove): ... this. Update all
561 users.
562 (thread_step_over_chain_next): Rename to...
563 (global_thread_step_over_chain_next): ... this. Update all
564 users.
565 * infrun.h (step_over_queue_head): Rename to...
566 (global_thread_step_over_chain_head): ... this. Update all
567 users.
568 * infrun.c (step_over_queue_head): Rename to...
569 (global_thread_step_over_chain_head): ... this. Update all
570 users.
571 * thread.c (step_over_chain_remove): Rename to...
572 (thread_step_over_chain_remove): ... this. Update all users.
573 (thread_step_over_chain_next): Rename to...
574 (global_thread_step_over_chain_next): ... this. Update all
575 users.
576 (thread_step_over_chain_enqueue): Rename to...
577 (global_thread_step_over_chain_enqueue): ... this. Update all
578 users.
579 (thread_step_over_chain_remove): Rename to...
580 (global_thread_step_over_chain_remove): ... this. Update all
581 users.
582
f5f01699
SM
5832020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
584
585 * infrun.c (get_displaced_stepping_state): Remove, change
586 callers to access the field directly.
587
c0aba012
SM
5882020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
589
590 * infrun.c (handle_inferior_event): Restore displaced step
591 buffer bytes in child process when handling fork, even if fork
592 happened in another thread than the displaced-stepping one.
593
3b7a962d
SM
5942020-12-04 Simon Marchi <simon.marchi@efficios.com>
595
596 * infrun.c (infrun_inferior_execd): New function.
597 (_initialize_infrun): Attach inferior_execd observer.
598
42a4fec5
SM
5992020-12-04 Simon Marchi <simon.marchi@efficios.com>
600
601 * observable.h (inferior_execd): Declare new observable.
602 * observable.c (inferior_execd): Declare new observable.
603 * infrun.c (follow_exec): Notify inferior_execd observer.
604 * jit.c (jit_inferior_created_hook): Make static.
605 (_initialize_jit): Register inferior_execd observer.
606 * jit.h (jit_inferior_created_hook): Remove declaration.
607 * solib.c (_initialize_solib): Register inferior_execd observer.
608
aafdfb4e
TV
6092020-12-04 Tom de Vries <tdevries@suse.de>
610
611 PR gdb/27003
612 * completer.c (completion_tracker::build_completion_result): Don't
613 access match_list[0][-1].
614
f99b5177
TT
6152020-12-04 Tom Tromey <tromey@adacore.com>
616
617 * linespec.c (struct linespec_token): Rename; remove typedef.
618 * guile/scm-block.c (struct block_smob): Remove typedef.
619 (struct block_syms_progress_smob): Likewise.
620 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
621 * guile/scm-symtab.c (symtab_smob): Remove typedef.
622 (struct sal_smob): Remove typedef.
623 * guile/scm-param.c (struct param_smob): Remove typedef.
624 * guile/scm-progspace.c (struct pspace_smob): Rename.
625 * guile/scm-objfile.c (struct objfile_smob): Rename.
626 * guile/scm-iterator.c (struct iterator_smob): Rename.
627 * guile/scm-frame.c (struct frame_smob): Rename.
628 * guile/scm-arch.c (struct arch_smob): Rename.
629 * guile/scm-type.c (struct field_smob): Remove typedef.
630 (struct type_smob): Rename.
631 * guile/scm-cmd.c (struct command_smob): Remove typedef.
632 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
633 * guile/scm-value.c (struct value_smob): Remove typedef.
634 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
635 * guile/guile-internal.h (struct scheme_variable)
636 (struct scheme_function, struct scheme_integer_constant)
637 (struct gdb_smob, struct chained_gdb_smob)
638 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
639 (objfile_smob, pspace_smob, type_smob): Remove typedef.
640 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
641 (struct pretty_printer_worker_smob): Remove typedef.
642 * guile/scm-exception.c (struct exception_smob): Remove typedef.
643 * python/py-block.c (struct block_object): Remove typedef.
644 (block_syms_iterator_object): Update.
645 (set_block): Update.
646 (block_syms_iterator_object): Remove typedef.
647 * python/py-inferior.c (struct membuf_object): Remove typedef.
648 * python/py-symtab.c (struct symtab_object): Remove typedef.
649 (set_symtab): Update.
650 (sal_object): Remove typedef.
651 (set_sal): Update.
652 * python/py-frame.c (frame_object): Remove typedef.
653 * python/py-record-btrace.c (struct btpy_list_object): Remove
654 typedef.
655 * python/py-arch.c (struct arch_object): Remove typedef.
656 * python/py-linetable.c (struct linetable_entry_object)
657 (linetable_object, struct ltpy_iterator_object): Remove typedef.
658 * python/py-events.h (eventregistry_object): Remove typedef.
659 (struct events_object): Remove typedef.
660 * python/python-internal.h (gdbpy_breakpoint_object): Remove
661 typedef.
662 (thread_object): Remove typedef.
663 * python/py-progspace.c (pspace_object): Remove typedef.
664 * python/py-value.c (struct value_object): Remove typedef.
665 * python/py-record.h (recpy_record_object): Remove typedef.
666 (struct recpy_element_object): Remove typedef.
667 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
668 * python/py-objfile.c (objfile_object): Remove typedef.
669 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
670 * python/py-type.c (type_object): Remove typedef.
671 (typy_iterator_object): Update.
672 (set_type): Update.
673 (field_object): Remove typedef.
674 (typy_iterator_object): Remove typedef.
675 * python/py-registers.c (register_descriptor_iterator_object):
676 Remove typedef.
677 (struct register_descriptor_object)
678 (struct reggroup_iterator_object, struct reggroup_object): Remove
679 typedef.
680 * python/py-record.c (recpy_gap_object): Remove typedef.
681 * python/py-symbol.c (symbol_object): Remove typedef.
682 (set_symbol): Update.
683 * python/py-event.h (event_object): Remove typedef.
684 * python/py-param.c (parmpy_object): Remove typedef.
685 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
686 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
687 (unwind_info_object, struct cached_frame_info): Likewise.
688
91f87213
TT
6892020-12-04 Tom Tromey <tromey@adacore.com>
690
691 * value.c (value_internal_function_name): Make return type const.
692 * value.h (value_internal_function_name): Make return type const.
693
5382f971
LM
6942020-12-04 Luis Machado <luis.machado@linaro.org>
695
696 * aarch64-tdep.c (submask, bit, bits): Remove.
697 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
698 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
699 (aarch64_decode_cb, aarch64_decode_tb)
700 (aarch64_decode_ldr_literal): Use sbits to extract a signed
701 immediate.
702 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
703
b6a6aa07
TV
7042020-12-04 Tom de Vries <tdevries@suse.de>
705
706 PR tdep/27007
707 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
708
0bc2e38d
SM
7092020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
710
711 PR gdb/26876
712 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
713 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
714
25428040
AB
7152020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
716
717 * arch/riscv.c: Include 'rv32e-xregs.c'.
718 (riscv_create_target_description): Update to handle rv32e.
719 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
720 member variable.
721 <operator==>: Update to account for new field.
722 <hash>: Likewise.
723 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
724 * features/riscv/rv32e-xregs.c: Generated.
725 * features/riscv/rv32e-xregs.xml: New file.
726 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
727 file.
728 (riscv_debug_infcall): Likewise.
729 (riscv_debug_unwinder): Likewise.
730 (riscv_debug_gdbarch): Likewise.
731 (enum riscv_register_required_status): Delete.
732 (struct riscv_register_feature): Add constructor, delete default
733 constructor, copy, and assign constructors.
734 (struct riscv_register_feature::register_info) <required>: Delete.
735 <check>: Update comment and arguments.
736 (struct riscv_register_feature) <name>: Change to member function.
737 <prefer_first_name>: Delete.
738 <tdesc_feature>: New member function.
739 <registers>: Rename to...
740 <m_registers>: ...this.
741 <m_feature_name>: New member variable.
742 (riscv_register_feature::register_info::check): Update arguments.
743 (riscv_xreg_feature): Rewrite as class, create a single static
744 instance of the class.
745 (riscv_freg_feature): Likewise.
746 (riscv_virtual_feature): Likewise.
747 (riscv_csr_feature): Likewise.
748 (riscv_create_csr_aliases): Has become a member function inside
749 riscv_csr_feature class.
750 (riscv_abi_embedded): New function definition.
751 (riscv_register_name): Adjust to use new feature objects.
752 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
753 and adjust available argument registers.
754 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
755 (riscv_check_tdesc_feature): Delete.
756 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
757 (riscv_gdbarch_init): Delete target description checking code, and
758 instead call to the new feature objects to perform the checks.
759 Reorder handling of no abi information case, allows small code
760 simplification.
761 (_initialize_riscv_tdep): Remove call, this is now done in the
762 riscv_csr_feature constructor.
763 * riscv-tdep.h (riscv_abi_embedded): Declare.
764
533b2ae0
AB
7652020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
768 DECLARE_CSR_ALIAS.
769
e4502042
AB
7702020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
771
772 * riscv-tdep.c (riscv_is_unknown_csr): New function,
773 implementation moved from riscv_register_reggroup_p.
774 (riscv_register_reggroup_p): Update group handling for unknown
775 CSRs.
776
2bf3b79d
SDJ
7772020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
778
779 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
780 (dwarf2_get_dwz_file): Convert 'filename' to a
781 std::string. Use dwz_search_other_debugdirs to search for DWZ
782 files in the debug-file-directories provided by the user as well.
783
77bf7e99
TT
7842020-12-01 Tom Tromey <tom@tromey.com>
785
786 * parse.c (expr_builder::expr_builder): Initialize expout.
787 (expr_builder::release): Use expression::resize.
788 (expression::expression, expression::~expression)
789 (expression::resize): New methods.
790 (write_exp_elt): Use expression::resize.
791 (prefixify_expression): Update.
792 (increase_expout_size): Use expression::resize.
793 * expression.h (struct expression): Add constructor, destructor.
794 <resize>: New method.
795 (expression_up): Change type.
796
539d71e8
RA
7972020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
798 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
799 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
800 set region.
801
7ce05d21
TV
8022020-11-30 Tom de Vries <tdevries@suse.de>
803
804 PR symtab/26905
805 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
806 is_reference parameter.
807 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
808
88b91969
TT
8092020-11-30 Tom Tromey <tom@tromey.com>
810
811 * rust-lang.c (rust_op_name): Remove.
812 (exp_descriptor_rust): Update.
813 * parser-defs.h (op_name_standard): Don't declare.
814 (struct exp_descriptor) <op_name>: Remove.
815 * parse.c (exp_descriptor_standard): Update.
816 * opencl-lang.c (exp_descriptor_opencl): Update.
817 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
818 * f-lang.c (op_name_f): Remove.
819 (f_language::exp_descriptor_tab): Update.
820 * expression.h (op_name): Update.
821 * expprint.c (op_name): Rewrite.
822 (op_name_standard): Remove.
823 (dump_raw_expression, dump_subexp): Update.
824 * c-lang.c (exp_descriptor_c): Update.
825 * ax-gdb.c (gen_expr): Update.
826 * ada-lang.c (ada_op_name): Remove.
827 (ada_exp_descriptor): Update.
828
1cd49c43
TT
8292020-11-30 Tom Tromey <tom@tromey.com>
830
831 * eval.c (init_array_element): Remove.
832 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
833
96fb9086
HD
8342020-11-29 Hannes Domani <ssbssa@yahoo.de>
835
836 PR tui/26973
837 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
838 static locator win info.
839
b4132322
AR
8402020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
841
842 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
843 program.
844
3df8c6af
AB
8452020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
848 is always initialized.
849
0ae45769
RA
8502020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
851 * MAINTAINERS (Write After Approval): Add myself.
852
239ca5e4
PW
8532020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
854
855 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
856 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
857
cbfa382a
TT
8582020-11-25 Tom Tromey <tom@tromey.com>
859
860 * eval.c (evaluate_subexp_standard): Remove unnecessary
861 variables.
862
af30c400
TT
8632020-11-25 Tom Tromey <tom@tromey.com>
864
865 * d-lang.c: Include parser-defs.h.
866 * rust-lang.c: Include parser-defs.h.
867 * c-lang.h: Do not include parser-defs.h.
868
1c64f6cb
SM
8692020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
870
871 * regcache.h (struct cached_reg): Remove typedef.
872
2c20a601
JB
8732020-11-24 Joel Brobecker <brobecker@adacore.com>
874
875 * README: Fix the URL of the MPFR library.
876
c609df64
JB
8772020-11-24 Joel Brobecker <brobecker@adacore.com>
878
879 * README: Document the --with-libgmp-prefix configure option.
880
fa123c32
JB
8812020-11-24 Joel Brobecker <brobecker@adacore.com>
882
883 * NEWS: Add entry documenting support for DWARF-based fixed
884 point types.
885
0fb8bb02
JB
8862020-11-24 Joel Brobecker <brobecker@adacore.com>
887
888 * NEWS: Document that building GDB now requires GMP.
889
4afa9fd9
JB
8902020-11-24 Joel Brobecker <brobecker@adacore.com>
891
892 * typeprint.c (print_type_scalar): Add handling of
893 TYPE_CODE_FIXED_POINT.
894
af619ce9
JB
8952020-11-24 Joel Brobecker <brobecker@adacore.com>
896
897 * valarith.c (fixed_point_binop): Replace the
898 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
899 users accordingly.
900
e6fcee3a
JB
9012020-11-24 Joel Brobecker <brobecker@adacore.com>
902
903 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
904 replacing fixed_point_scaling_factor. All callers updated
905 throughout this project.
906 (fixed_point_scaling_factor): Delete declaration.
907 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
908 fixed_point_scaling_factor. Adjust implementation accordingly.
909
d19937a7
JB
9102020-11-24 Joel Brobecker <brobecker@adacore.com>
911
912 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
913 replacing the fixed_point_type_base_type function. All callers
914 updated throughout this project.
915 (fixed_point_type_base_type): Remove declaration.
916 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
917 fixed_point_type_base_type. Adjust implementation accordingly.
918
2a12c336
JB
9192020-11-24 Joel Brobecker <brobecker@adacore.com>
920
921 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
922 New methods.
923 (INIT_FIXED_POINT_SPECIFIC): Adjust.
924 (TYPE_FIXED_POINT_INFO): Delete macro.
925 (allocate_fixed_point_type_info): Change return type to void.
926 * gdbtypes.c (copy_type_recursive): Replace the use of
927 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
928 (fixed_point_scaling_factor): Likewise.
929 (allocate_fixed_point_type_info): Change return type to void.
930 Adjust implementation accordingly.
931 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
932 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
933
c9f0b43f
JB
9342020-11-24 Joel Brobecker <brobecker@adacore.com>
935
936 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
937 into one single gdb::array_view parameter.
938 (gdb_mpz::write): Likewise.
939 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
940 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
941 into one single gdb::array_view parameter.
942 Adjust implementation accordingly.
943 (gdb_mpz::write): Likewise.
944 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
945 * unittests/gmp-utils-selftests.c: Adapt following changes above.
946 * valarith.c, valops.c, valprint.c, value.c: Likewise.
947
987b6703
JB
9482020-11-24 Joel Brobecker <brobecker@adacore.com>
949
950 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
951 Change return type to std::string. Update all callers.
952 * gmp-utils.c (gmp_string_printf): Likewise.
953
4fbb7cce
JB
9542020-11-24 Joel Brobecker <brobecker@adacore.com>
955
956 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
957 instead of mpq_set_ui to initialize our GMP rational.
958
d6ab69dd
TV
9592020-11-23 Tom de Vries <tdevries@suse.de>
960
961 * debuginfod-support.c (debuginfod_source_query)
962 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
963
dab72643
TT
9642020-11-21 Tom Tromey <tom@tromey.com>
965
966 * breakpoint.c (watchpoint_exp_is_const): Return bool.
967
c0ad05d5
SM
9682020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
969
970 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
971 Pass 2.0 to pow.
972 (gdb_mpz_write_all_from_small): Likewise.
973
a43b29c9
SM
9742020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
975
976 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
977 of abs.
978
ae41200b
NA
9792020-11-20 Nick Alcock <nick.alcock@oracle.com>
980
981 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
982 ctf_arc_open_by_name.
983
139633c3
NA
9842020-11-20 Nick Alcock <nick.alcock@oracle.com>
985
986 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
987 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
988
cbbcd7a7
PA
9892020-11-20 Pedro Alves <pedro@palves.net>
990
991 * language.c (language_arch_info::lookup_primitive_type): Use
992 gdb::function_view instead of gdb::function.
993 (template language_lookup_primitive_type): Rename to ...
994 (language_lookup_primitive_type_1): ... this, and make static.
995 (language_lookup_primitive_type(const struct language_defn *,
996 struct gdbarch *, const char *): Make non-template.
997 (language_lookup_primitive_type(const struct language_defn *,
998 struct gdbarch *, std::function<bool (struct type *)>): Make
999 non-template and use gdb::function_view.
1000 * language.h (language_arch_info::lookup_primitive_type): Use
1001 gdb::function_view instead of std::function.
1002 (language_lookup_primitive_type): No longer template.
1003 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1004 lambda instead of a std::function.
1005
d5ef21c3
AA
10062020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1007
1008 PR tdep/26916
1009 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1010 and STOCFH.
1011
a5adb8f3
SM
10122020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1013
1014 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1015
70125a45
SM
10162020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1019 in `loop_cb` parameter.
1020 * gdbarch.c: Re-generate.
1021 * gdbarch.h: Re-generate.
1022 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1023 parameter.
1024 * arch-utils.h (default_read_core_file_mappings): Likewise.
1025 * corelow.c (core_target::build_file_mappings): Likewise.
1026 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1027 (linux_core_info_proc_mappings): Likewise.
1028
a5c641b5
AB
10292020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1032 * NEWS: Mention new options.
1033 * f-array-walker.h: New file.
1034 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1035 (repack_array_slices): New static global.
1036 (show_repack_array_slices): New function.
1037 (fortran_array_slicing_debug): New static global.
1038 (show_fortran_array_slicing_debug): New function.
1039 (value_f90_subarray): Delete.
1040 (skip_undetermined_arglist): Delete.
1041 (class fortran_array_repacker_base_impl): New class.
1042 (class fortran_lazy_array_repacker_impl): New class.
1043 (class fortran_array_repacker_impl): New class.
1044 (fortran_value_subarray): Complete rewrite.
1045 (set_fortran_list): New static global.
1046 (show_fortran_list): Likewise.
1047 (_initialize_f_language): Register new commands.
1048 (fortran_adjust_dynamic_array_base_address_hack): New function.
1049 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1050 Declare.
1051 * f-valprint.c: Include 'f-array-walker.h'.
1052 (class fortran_array_printer_impl): New class.
1053 (f77_print_array_1): Delete.
1054 (f77_print_array): Delete.
1055 (fortran_print_array): New.
1056 (f_value_print_inner): Update to call fortran_print_array.
1057 * gdbtypes.c: Include 'f-lang.h'.
1058 (resolve_dynamic_type_internal): Call
1059 fortran_adjust_dynamic_array_base_address_hack.
1060
a15a5258
AB
10612020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1062
1063 * breakpoint.c (struct watch_options): New struct.
1064 (watch_option_defs): New static global.
1065 (make_watch_options_def_group): New function.
1066 (watch_maybe_just_location): Convert option parsing.
1067 (watch_command_completer): New function.
1068 (_initialize_breakpoint): Build help text using options mechanism.
1069
2e362716
AB
10702020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1071
1072 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1073 (watch_command_1): Update parameter types. Convert locals to
1074 bool.
1075 (watch_command_wrapper): Change parameter type.
1076 (watch_maybe_just_location): Change locals to bool.
1077 (rwatch_command_wrapper): Update parameter type.
1078 (awatch_command_wrapper): Update parameter type.
1079 * breakpoint.h (watch_command_wrapper): Change parameter type.
1080 (rwatch_command_wrapper): Update parameter type.
1081 (awatch_command_wrapper): Update parameter type.
1082 * eval.c (fetch_subexp_value): Change parameter type.
1083 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1084 'false' not '0'.
1085 * value.h (fetch_subexp_value): Change parameter type in
1086 declaration.
1087
b3ff61f8
AB
10882020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1091 skip_spaces.
1092
5b7d45d3
KS
10932020-11-18 Keith Seitz <keiths@redhat.com>
1094
1095 * linux-tdep.c (dump_note_entry_p): Return true instead of
1096 checking `filename'.
1097
c44191f8
TV
10982020-11-18 Tom de Vries <tdevries@suse.de>
1099
1100 * debuginfod-support.c (debuginfod_source_query)
1101 (debuginfod_debuginfo_query): Also do early exit if
1102 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1103
5d8254e1
TV
11042020-11-18 Tom de Vries <tdevries@suse.de>
1105
1106 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1107 warning.
1108
584903d3
SM
11092020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1110
1111 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1112 callers. Move doc here.
1113 * gdbtypes.c (get_array_bounds): Return bool
1114
6f2643db
AB
11152020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1118 assert.
1119 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1120 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1121 case to the default.
1122
037d7135
AB
11232020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1124
1125 * printcmd.c: Include 'safe-ctype.c'.
1126 (skip_over_slash_fmt): New function.
1127 (print_command_completer): Call skip_over_slash_fmt.
1128 (display_and_x_command_completer): New function.
1129 (_initialize_printcmd): Add command completion for 'x' and
1130 'display'.
1131
2b3cb400
PA
11322020-11-16 Pedro Alves <pedro@palves.net>
1133
1134 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1135 (get_prev_frame_always_1): ... to here.
1136 * inline-frame.c (inline_frame_this_id): Mention
1137 get_prev_frame_always_1 in comment.
1138
b74dbc20
JB
11392020-11-15 Joel Brobecker <brobecker@adacore.com>
1140
1141 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1142 handling.
1143 (value_less): Add fixed-point handling.
1144
0a12719e
JB
11452020-11-15 Joel Brobecker <brobecker@adacore.com>
1146
1147 * eval.c (binop_promote): Add fixed-point type handling.
1148 * valarith.c (fixed_point_binop): New function.
1149 (scalar_binop): Add fixed-point type handling.
1150 (value_neg): Add fixed-point type handling.
1151 * valops.c (value_cast_to_fixed_point): New function.
1152 (value_cast): Add fixed-point type handling.
1153
0c9150e4
JB
11542020-11-15 Joel Brobecker <brobecker@adacore.com>
1155
1156 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1157 range types.
1158 * c-typeprint.c (c_type_print_varspec_prefix)
1159 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1160 TYPE_CODE_FIXED_POINT handling.
1161 * p-typeprint.c (pascal_type_print_varspec_prefix)
1162 (pascal_type_print_varspec_suffix): Likewise.
1163 * typeprint.c (print_type_fixed_point): New function.
1164 * typeprint.h (print_type_fixed_point): Add declaration.
1165
b26daff9
JB
11662020-11-15 Joel Brobecker <brobecker@adacore.com>
1167
1168 * printcmd.c (print_scalar_formatted): Add fixed-point type
1169 handling when options->format is set.
1170
09584414
JB
11712020-11-15 Joel Brobecker <brobecker@adacore.com>
1172
1173 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1174 * dwarf2/read.c (get_dwarf2_rational_constant)
1175 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1176 (has_zero_over_zero_small_attribute): New functions.
1177 read_base_type, set_die_type): Add fixed-point type handling.
1178 * gdb-gdb.py.in: Add fixed-point type handling.
1179 * gdbtypes.c: #include "gmp-utils.h".
1180 (create_range_type, set_type_code): Add fixed-point type handling.
1181 (init_fixed_point_type): New function.
1182 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1183 (print_fixed_point_type_info): New function.
1184 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1185 handling.
1186 (fixed_point_type_storage): New typedef.
1187 (fixed_point_objfile_key): New static global.
1188 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1189 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1190 functions.
1191 * gdbtypes.h: #include "gmp-utils.h".
1192 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1193 (union type_specific) <fixed_point_info>: New field.
1194 (struct fixed_point_type_info): New struct.
1195 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1196 (init_fixed_point_type, is_fixed_point_type)
1197 (fixed_point_type_base_type, fixed_point_scaling_factor)
1198 (allocate_fixed_point_type_info): Add declarations.
1199 * valprint.c (generic_val_print_fixed_point): New function.
1200 (generic_value_print): Add fixed-point type handling.
1201 * value.c (value_as_address, unpack_long): Add fixed-point type
1202 handling.
1203
e55c6530
JB
12042020-11-15 Joel Brobecker <brobecker@adacore.com>
1205
1206 * utils.h (uinteger_pow): Add declaration.
1207 * utils.c (uinteger_pow): Moved here (without changes)...
1208 * valarith.c (uinteger_pow): ... from here.
1209
b34c74ab
JB
12102020-11-15 Joel Brobecker <brobecker@adacore.com>
1211
40d9d2fd 1212 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1213 * unittests/gmp-utils-selftests.c: New file.
1214 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1215 unittests/gmp-utils-selftests.c.
1216 (COMMON_SFILES) Add gmp-utils.c.
1217 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1218
1b4ac058
JB
12192020-11-15 Joel Brobecker <brobecker@adacore.com>
1220
1221 * configure.ac: Generate an error if a usable GMP library
1222 could not be found.
1223 * configure: Regenerate.
1224
2c947d9b
JB
12252020-11-15 Joel Brobecker <brobecker@adacore.com>
1226
1227 * configure.ac: Add support for --with-libgmp-prefix.
1228 * Makefile.in (LIBGMP): New variable.
1229 (CLIBS): Include $(LIBGMP).
1230 * configure, config.in: Regenerate
1231
9dd02fc0
AB
12322020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 PR cli/26879
1235 * f-exp.y (COMPLETE): New token.
1236 (exp): Two new rules for tab-completion.
1237 (saw_name_at_eof): New static global.
1238 (last_was_structop): Likewise.
1239 (yylex): Set new variables, and return COMPLETE token at the end
1240 of the input stream in some cases.
1241
758cb810
TT
12422020-11-14 Tom Tromey <tom@tromey.com>
1243
1244 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1245
749065b7
TT
12462020-11-14 Tom Tromey <tom@tromey.com>
1247
1248 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1249
2c5b1849
SM
12502020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1251
1252 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1253
e8b2f0d9
TT
12542020-11-13 Tom Tromey <tom@tromey.com>
1255
1256 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1257 (convert_escape, parse_one_string): Constify.
1258
25f4c262
KS
12592020-11-13 Keith Seitz <keiths@redhat.com>
1260
1261 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1262 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1263 outside of ELF segments" warning for debugin
1264
9d3ab915
KS
12652020-11-13 Keith Seitz <keiths@redhat.com>
1266
1267 PR gdb/23034
1268 * elfread.c (elf_symfile_segments): Output a BFD file name
1269 for the "Loadable section ... outside of ELF segments" warning.
1270
9ecab40c
SM
12712020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1272
1273 PR gdb/26835
1274 * arm-tdep.c (class arm_instruction_reader): New.
1275 (target_arm_instruction_reader): New.
1276 (arm_analyze_prologue): Add instruction reader parameter and use
1277 it. Use arm_expand_immediate.
1278 (class target_arm_instruction_reader): Adjust.
1279 (arm_skip_prologue): Adjust.
1280 (arm_expand_immediate): New.
1281 (arm_scan_prologue): Adjust.
1282 (arm_analyze_prologue_test): New.
1283 (class test_arm_instruction_reader): New.
1284
5a7cf527
AB
12852020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1286
1287 * f-lang.c (fortran_argument_convert): Add declaration. Add
1288 header comment, taken from f-lang.h. Make static.
1289 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1290 (fortran_argument_convert): Delete declaration.
1291
7bea47f0
AB
12922020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * ada-exp.y (find_primitive_type): Make parameter const.
1295 * ada-lang.c (enum ada_primitive_types): Delete.
1296 (ada_language::language_arch_info): Update.
1297 * c-lang.c (enum c_primitive_types): Delete.
1298 (c_language_arch_info): Update.
1299 (enum cplus_primitive_types): Delete.
1300 (cplus_language::language_arch_info): Update.
1301 * d-lang.c (enum d_primitive_types): Delete.
1302 (d_language::language_arch_info): Update.
1303 * f-lang.c (enum f_primitive_types): Delete.
1304 (f_language::language_arch_info): Update.
1305 * go-lang.c (enum go_primitive_types): Delete.
1306 (go_language::language_arch_info): Update.
1307 * language.c (auto_or_unknown_language::language_arch_info):
1308 Update.
1309 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1310 (language_string_char_type): Add header comment, call function in
1311 language_arch_info.
1312 (language_bool_type): Likewise
1313 (language_arch_info::bool_type): Define.
1314 (language_lookup_primitive_type_1): Delete.
1315 (language_lookup_primitive_type): Rewrite as a templated function
1316 to call function in language_arch_info, then instantiate twice.
1317 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1318 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1319 (language_arch_info::lookup_primitive_type): Define twice with
1320 different signatures.
1321 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1322 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1323 member function in language_arch_info.
1324 * language.h (language_arch_info): Complete rewrite.
1325 (language_lookup_primitive_type): Make templated.
1326 * m2-lang.c (enum m2_primitive_types): Delete.
1327 (m2_language::language_arch_info): Update.
1328 * opencl-lang.c (OCL_P_TYPE): Delete.
1329 (enum opencl_primitive_types): Delete.
1330 (opencl_type_data): Delete.
1331 (builtin_opencl_type): Delete.
1332 (lookup_opencl_vector_type): Update.
1333 (opencl_language::language_arch_info): Update, lots of content
1334 moved from...
1335 (build_opencl_types): ...here. This function is now deleted.
1336 (_initialize_opencl_language): Delete.
1337 * p-lang.c (enum pascal_primitive_types): Delete.
1338 (pascal_language::language_arch_info): Update.
1339 * rust-lang.c (enum rust_primitive_types): Delete.
1340 (rust_language::language_arch_info): Update.
1341
bf6e5d01
SM
13422020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1343
1344 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1345 dwarf2_queue_guard.
1346
1350c3b4
SM
13472020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1350 comment.
1351
6f738b01
SM
13522020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1353
1354 * dwarf2/read.c (dwarf_read_debug_printf,
1355 dwarf_read_debug_printf_v): New macros, use throughout the file.
1356
10c19fad
SV
13572020-11-12 Shahab Vahedi <shahab@synopsys.com>
1358
10806efd 1359 PR tdep/27015
10c19fad
SV
1360 * arc-linux-tdep.c (collect_register): Populate "eret" by
1361 "pc" value from the regcache when asked for "pc" value.
1362
1f2624a3
TT
13632020-11-12 Tom Tromey <tom@tromey.com>
1364
1365 PR rust/26799:
1366 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1367 exist.
1368
ab33b152
AB
13692020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1370
1371 * features/Makefile (XMLTOC): Add rx.xml.
1372 (FEATURE_XMLFILES): Remove rx.xml.
1373 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1374 * features/rx.c: Regenerate.
1375 * features/rx.xml: Wrap in `target` tags, and reindent.
1376 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1377 structure.
1378 (maint_print_c_tdesc_opt_def): New typedef.
1379 (maint_print_c_tdesc_opt_defs): New static global.
1380 (make_maint_print_c_tdesc_options_def_group): New function.
1381 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1382 print single feature C file for target descriptions containing a
1383 single feature.
1384 (maint_print_c_tdesc_cmd_completer): New function.
1385 (_initialize_target_descriptions): Update call to register command
1386 completer, and include command line flag in help text.
1387
550820e1
AB
13882020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1391 numbers.
1392 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1393 enum values.
1394
baf20f76
TT
13952020-11-10 Tom Tromey <tom@tromey.com>
1396
1397 * value.h (internalvar_name): Update.
1398 * value.c (internalvar_name): Make return type const.
1399
caaece0e
TT
14002020-11-10 Tom Tromey <tom@tromey.com>
1401
1402 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1403 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1404 const.
1405
8e20b4be
TT
14062020-11-10 Tom Tromey <tom@tromey.com>
1407
1408 * objc-lang.h (value_nsstring): Update.
1409 * objc-lang.c (value_nsstring): Make "ptr" const.
1410
86775fab
AB
14112020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * expprint.c (print_subexp_funcall): Increment expression position
1414 after reading argument count.
1415 * f-lang.c (print_subexp_f): Skip over opcode before calling
1416 common function.
1417 (dump_subexp_body_f): Likewise.
1418
3fed4c0b
RG
14192020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1420
1421 PR python/26832
1422 * configure: Regenerate.
1423 * configure.ac: Check for python modules ctypes instead of
1424 itertools.
1425
ac3d4064
PA
14262020-11-06 Pedro Alves <pedro@palves.net>
1427
1428 * macroexp.c (struct macro_buffer): Split in two classes. Add
1429 uses adjusted.
1430 (struct shared_macro_buffer): New, factored out from struct
1431 macro_buffer.
1432 (struct growable_macro_buffer): New, factored out from struct
1433 macro_buffer.
1434 (set_token, get_comment, get_identifier, get_pp_number)
1435 (get_character_constant, get_string_literal, get_punctuator)
1436 (get_next_token_for_substitution): Constify parameters.
1437 (substitute_args): Constify locals.
1438
606decb2
TT
14392020-11-05 Tom Tromey <tom@tromey.com>
1440
1441 * dwarf2/read.c (read_cutu_die_from_dwo)
1442 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1443 (build_type_psymtabs_1): Update.
1444 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1445 parameter.
1446 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1447 Don't read section. Add assert.
1448
9c91c725
TT
14492020-11-04 Tom Tromey <tromey@adacore.com>
1450
1451 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1452
8d9fd3a1
TT
14532020-11-04 Tom Tromey <tromey@adacore.com>
1454
1455 * ada-typeprint.c (ada_print_type): Handle __T types.
1456
d8f62e84
TT
14572020-11-04 Tom Tromey <tromey@adacore.com>
1458
1459 * dwarf2/read.c (add_partial_symbol, process_die):
1460 Handle DW_TAG_array_type.
1461 (is_type_tag_for_partial): Add "lang" parameter.
1462 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1463
7ff5b937
TT
14642020-11-04 Tom Tromey <tromey@adacore.com>
1465
1466 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1467
10f6a3ad
TT
14682020-11-04 Tom Tromey <tromey@adacore.com>
1469
1470 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1471 array.
1472
b72795a8
TT
14732020-11-04 Tom Tromey <tromey@adacore.com>
1474
1475 * gdbtypes.c (update_static_array_size): Handle bit stride.
1476
24aa1b02
TT
14772020-11-04 Tom Tromey <tromey@adacore.com>
1478
1479 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1480
c9a28cbe
TT
14812020-11-04 Tom Tromey <tromey@adacore.com>
1482
1483 * ada-lang.c (ada_is_any_packed_array_type): New function.
1484 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1485
57567375
TT
14862020-11-04 Tom Tromey <tromey@adacore.com>
1487
1488 * dwarf2/read.c (recognize_bound_expression)
1489 (quirk_ada_thick_pointer): New functions.
1490 (read_array_type): Call quirk_ada_thick_pointer.
1491 (set_die_type): Add "skip_data_location" parameter.
1492 (quirk_ada_thick_pointer): New function.
1493 (process_structure_scope): Call quirk_ada_thick_pointer.
1494 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1495 (decode_packed_array_bitsize): Handle thick pointers without
1496 parallel types.
1497 (ada_is_gnat_encoded_packed_array_type): Rename from
1498 ada_is_packed_array_type.
1499 (ada_is_constrained_packed_array_type): Update.
1500 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1501 (ada_value_print_1): Use ada_get_decoded_value.
1502
a7400e44
TT
15032020-11-04 Tom Tromey <tromey@adacore.com>
1504
1505 * ada-lang.c (recursively_update_array_bitsize): New function.
1506 (decode_constrained_packed_array_type): Call it.
1507
75fd6a26
TT
15082020-11-04 Tom Tromey <tromey@adacore.com>
1509
1510 * ada-lang.c (to_fixed_array_type): Error if
1511 decode_constrained_packed_array_type returns NULL.
1512
93f9561e
TT
15132020-11-04 Tom Tromey <tromey@adacore.com>
1514
1515 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1516
257e02d8
TT
15172020-11-02 Tom Tromey <tromey@adacore.com>
1518
1519 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1520 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1521 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1522 * amd64-ravenscar-thread.c: New file.
1523 * amd64-ravenscar-thread.h: New file.
1524 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1525 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1526
74d877e5
AB
15272020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * main.c (execute_cmdargs): New function.
1530 (captured_main_1): Make use of execute_cmdargs.
1531
64aaad63
AB
15322020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * NEWS: Mention changes to config file search path.
1535 * main.c
1536
5b3d3560
TT
15372020-11-02 Tom Tromey <tromey@adacore.com>
1538
1539 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1540 (python_GdbModuleDef): Move earlier. Now static.
1541 (do_start_initialization): Consolidate some IS_PY3K blocks.
1542
dda83cd7
SM
15432020-11-02 Simon Marchi <simon.marchi@efficios.com>
1544
1545 * aarch64-linux-tdep.c: Fix indentation.
1546 * aarch64-ravenscar-thread.c: Fix indentation.
1547 * aarch64-tdep.c: Fix indentation.
1548 * aarch64-tdep.h: Fix indentation.
1549 * ada-lang.c: Fix indentation.
1550 * ada-lang.h: Fix indentation.
1551 * ada-tasks.c: Fix indentation.
1552 * ada-typeprint.c: Fix indentation.
1553 * ada-valprint.c: Fix indentation.
1554 * ada-varobj.c: Fix indentation.
1555 * addrmap.c: Fix indentation.
1556 * addrmap.h: Fix indentation.
1557 * agent.c: Fix indentation.
1558 * aix-thread.c: Fix indentation.
1559 * alpha-bsd-nat.c: Fix indentation.
1560 * alpha-linux-tdep.c: Fix indentation.
1561 * alpha-mdebug-tdep.c: Fix indentation.
1562 * alpha-nbsd-tdep.c: Fix indentation.
1563 * alpha-obsd-tdep.c: Fix indentation.
1564 * alpha-tdep.c: Fix indentation.
1565 * amd64-bsd-nat.c: Fix indentation.
1566 * amd64-darwin-tdep.c: Fix indentation.
1567 * amd64-linux-nat.c: Fix indentation.
1568 * amd64-linux-tdep.c: Fix indentation.
1569 * amd64-nat.c: Fix indentation.
1570 * amd64-obsd-tdep.c: Fix indentation.
1571 * amd64-tdep.c: Fix indentation.
1572 * amd64-windows-tdep.c: Fix indentation.
1573 * annotate.c: Fix indentation.
1574 * arc-tdep.c: Fix indentation.
1575 * arch-utils.c: Fix indentation.
1576 * arch/arm-get-next-pcs.c: Fix indentation.
1577 * arch/arm.c: Fix indentation.
1578 * arm-linux-nat.c: Fix indentation.
1579 * arm-linux-tdep.c: Fix indentation.
1580 * arm-nbsd-tdep.c: Fix indentation.
1581 * arm-pikeos-tdep.c: Fix indentation.
1582 * arm-tdep.c: Fix indentation.
1583 * arm-tdep.h: Fix indentation.
1584 * arm-wince-tdep.c: Fix indentation.
1585 * auto-load.c: Fix indentation.
1586 * auxv.c: Fix indentation.
1587 * avr-tdep.c: Fix indentation.
1588 * ax-gdb.c: Fix indentation.
1589 * ax-general.c: Fix indentation.
1590 * bfin-linux-tdep.c: Fix indentation.
1591 * block.c: Fix indentation.
1592 * block.h: Fix indentation.
1593 * blockframe.c: Fix indentation.
1594 * bpf-tdep.c: Fix indentation.
1595 * break-catch-sig.c: Fix indentation.
1596 * break-catch-syscall.c: Fix indentation.
1597 * break-catch-throw.c: Fix indentation.
1598 * breakpoint.c: Fix indentation.
1599 * breakpoint.h: Fix indentation.
1600 * bsd-uthread.c: Fix indentation.
1601 * btrace.c: Fix indentation.
1602 * build-id.c: Fix indentation.
1603 * buildsym-legacy.h: Fix indentation.
1604 * buildsym.c: Fix indentation.
1605 * c-typeprint.c: Fix indentation.
1606 * c-valprint.c: Fix indentation.
1607 * c-varobj.c: Fix indentation.
1608 * charset.c: Fix indentation.
1609 * cli/cli-cmds.c: Fix indentation.
1610 * cli/cli-decode.c: Fix indentation.
1611 * cli/cli-decode.h: Fix indentation.
1612 * cli/cli-script.c: Fix indentation.
1613 * cli/cli-setshow.c: Fix indentation.
1614 * coff-pe-read.c: Fix indentation.
1615 * coffread.c: Fix indentation.
1616 * compile/compile-cplus-types.c: Fix indentation.
1617 * compile/compile-object-load.c: Fix indentation.
1618 * compile/compile-object-run.c: Fix indentation.
1619 * completer.c: Fix indentation.
1620 * corefile.c: Fix indentation.
1621 * corelow.c: Fix indentation.
1622 * cp-abi.h: Fix indentation.
1623 * cp-namespace.c: Fix indentation.
1624 * cp-support.c: Fix indentation.
1625 * cp-valprint.c: Fix indentation.
1626 * cris-linux-tdep.c: Fix indentation.
1627 * cris-tdep.c: Fix indentation.
1628 * darwin-nat-info.c: Fix indentation.
1629 * darwin-nat.c: Fix indentation.
1630 * darwin-nat.h: Fix indentation.
1631 * dbxread.c: Fix indentation.
1632 * dcache.c: Fix indentation.
1633 * disasm.c: Fix indentation.
1634 * dtrace-probe.c: Fix indentation.
1635 * dwarf2/abbrev.c: Fix indentation.
1636 * dwarf2/attribute.c: Fix indentation.
1637 * dwarf2/expr.c: Fix indentation.
1638 * dwarf2/frame.c: Fix indentation.
1639 * dwarf2/index-cache.c: Fix indentation.
1640 * dwarf2/index-write.c: Fix indentation.
1641 * dwarf2/line-header.c: Fix indentation.
1642 * dwarf2/loc.c: Fix indentation.
1643 * dwarf2/macro.c: Fix indentation.
1644 * dwarf2/read.c: Fix indentation.
1645 * dwarf2/read.h: Fix indentation.
1646 * elfread.c: Fix indentation.
1647 * eval.c: Fix indentation.
1648 * event-top.c: Fix indentation.
1649 * exec.c: Fix indentation.
1650 * exec.h: Fix indentation.
1651 * expprint.c: Fix indentation.
1652 * f-lang.c: Fix indentation.
1653 * f-typeprint.c: Fix indentation.
1654 * f-valprint.c: Fix indentation.
1655 * fbsd-nat.c: Fix indentation.
1656 * fbsd-tdep.c: Fix indentation.
1657 * findvar.c: Fix indentation.
1658 * fork-child.c: Fix indentation.
1659 * frame-unwind.c: Fix indentation.
1660 * frame-unwind.h: Fix indentation.
1661 * frame.c: Fix indentation.
1662 * frv-linux-tdep.c: Fix indentation.
1663 * frv-tdep.c: Fix indentation.
1664 * frv-tdep.h: Fix indentation.
1665 * ft32-tdep.c: Fix indentation.
1666 * gcore.c: Fix indentation.
1667 * gdb_bfd.c: Fix indentation.
1668 * gdbarch.sh: Fix indentation.
1669 * gdbarch.c: Re-generate
1670 * gdbarch.h: Re-generate.
1671 * gdbcore.h: Fix indentation.
1672 * gdbthread.h: Fix indentation.
1673 * gdbtypes.c: Fix indentation.
1674 * gdbtypes.h: Fix indentation.
1675 * glibc-tdep.c: Fix indentation.
1676 * gnu-nat.c: Fix indentation.
1677 * gnu-nat.h: Fix indentation.
1678 * gnu-v2-abi.c: Fix indentation.
1679 * gnu-v3-abi.c: Fix indentation.
1680 * go32-nat.c: Fix indentation.
1681 * guile/guile-internal.h: Fix indentation.
1682 * guile/scm-cmd.c: Fix indentation.
1683 * guile/scm-frame.c: Fix indentation.
1684 * guile/scm-iterator.c: Fix indentation.
1685 * guile/scm-math.c: Fix indentation.
1686 * guile/scm-ports.c: Fix indentation.
1687 * guile/scm-pretty-print.c: Fix indentation.
1688 * guile/scm-value.c: Fix indentation.
1689 * h8300-tdep.c: Fix indentation.
1690 * hppa-linux-nat.c: Fix indentation.
1691 * hppa-linux-tdep.c: Fix indentation.
1692 * hppa-nbsd-nat.c: Fix indentation.
1693 * hppa-nbsd-tdep.c: Fix indentation.
1694 * hppa-obsd-nat.c: Fix indentation.
1695 * hppa-tdep.c: Fix indentation.
1696 * hppa-tdep.h: Fix indentation.
1697 * i386-bsd-nat.c: Fix indentation.
1698 * i386-darwin-nat.c: Fix indentation.
1699 * i386-darwin-tdep.c: Fix indentation.
1700 * i386-dicos-tdep.c: Fix indentation.
1701 * i386-gnu-nat.c: Fix indentation.
1702 * i386-linux-nat.c: Fix indentation.
1703 * i386-linux-tdep.c: Fix indentation.
1704 * i386-nto-tdep.c: Fix indentation.
1705 * i386-obsd-tdep.c: Fix indentation.
1706 * i386-sol2-nat.c: Fix indentation.
1707 * i386-tdep.c: Fix indentation.
1708 * i386-tdep.h: Fix indentation.
1709 * i386-windows-tdep.c: Fix indentation.
1710 * i387-tdep.c: Fix indentation.
1711 * i387-tdep.h: Fix indentation.
1712 * ia64-libunwind-tdep.c: Fix indentation.
1713 * ia64-libunwind-tdep.h: Fix indentation.
1714 * ia64-linux-nat.c: Fix indentation.
1715 * ia64-linux-tdep.c: Fix indentation.
1716 * ia64-tdep.c: Fix indentation.
1717 * ia64-tdep.h: Fix indentation.
1718 * ia64-vms-tdep.c: Fix indentation.
1719 * infcall.c: Fix indentation.
1720 * infcmd.c: Fix indentation.
1721 * inferior.c: Fix indentation.
1722 * infrun.c: Fix indentation.
1723 * iq2000-tdep.c: Fix indentation.
1724 * language.c: Fix indentation.
1725 * linespec.c: Fix indentation.
1726 * linux-fork.c: Fix indentation.
1727 * linux-nat.c: Fix indentation.
1728 * linux-tdep.c: Fix indentation.
1729 * linux-thread-db.c: Fix indentation.
1730 * lm32-tdep.c: Fix indentation.
1731 * m2-lang.c: Fix indentation.
1732 * m2-typeprint.c: Fix indentation.
1733 * m2-valprint.c: Fix indentation.
1734 * m32c-tdep.c: Fix indentation.
1735 * m32r-linux-tdep.c: Fix indentation.
1736 * m32r-tdep.c: Fix indentation.
1737 * m68hc11-tdep.c: Fix indentation.
1738 * m68k-bsd-nat.c: Fix indentation.
1739 * m68k-linux-nat.c: Fix indentation.
1740 * m68k-linux-tdep.c: Fix indentation.
1741 * m68k-tdep.c: Fix indentation.
1742 * machoread.c: Fix indentation.
1743 * macrocmd.c: Fix indentation.
1744 * macroexp.c: Fix indentation.
1745 * macroscope.c: Fix indentation.
1746 * macrotab.c: Fix indentation.
1747 * macrotab.h: Fix indentation.
1748 * main.c: Fix indentation.
1749 * mdebugread.c: Fix indentation.
1750 * mep-tdep.c: Fix indentation.
1751 * mi/mi-cmd-catch.c: Fix indentation.
1752 * mi/mi-cmd-disas.c: Fix indentation.
1753 * mi/mi-cmd-env.c: Fix indentation.
1754 * mi/mi-cmd-stack.c: Fix indentation.
1755 * mi/mi-cmd-var.c: Fix indentation.
1756 * mi/mi-cmds.c: Fix indentation.
1757 * mi/mi-main.c: Fix indentation.
1758 * mi/mi-parse.c: Fix indentation.
1759 * microblaze-tdep.c: Fix indentation.
1760 * minidebug.c: Fix indentation.
1761 * minsyms.c: Fix indentation.
1762 * mips-linux-nat.c: Fix indentation.
1763 * mips-linux-tdep.c: Fix indentation.
1764 * mips-nbsd-tdep.c: Fix indentation.
1765 * mips-tdep.c: Fix indentation.
1766 * mn10300-linux-tdep.c: Fix indentation.
1767 * mn10300-tdep.c: Fix indentation.
1768 * moxie-tdep.c: Fix indentation.
1769 * msp430-tdep.c: Fix indentation.
1770 * namespace.h: Fix indentation.
1771 * nat/fork-inferior.c: Fix indentation.
1772 * nat/gdb_ptrace.h: Fix indentation.
1773 * nat/linux-namespaces.c: Fix indentation.
1774 * nat/linux-osdata.c: Fix indentation.
1775 * nat/netbsd-nat.c: Fix indentation.
1776 * nat/x86-dregs.c: Fix indentation.
1777 * nbsd-nat.c: Fix indentation.
1778 * nbsd-tdep.c: Fix indentation.
1779 * nios2-linux-tdep.c: Fix indentation.
1780 * nios2-tdep.c: Fix indentation.
1781 * nto-procfs.c: Fix indentation.
1782 * nto-tdep.c: Fix indentation.
1783 * objfiles.c: Fix indentation.
1784 * objfiles.h: Fix indentation.
1785 * opencl-lang.c: Fix indentation.
1786 * or1k-tdep.c: Fix indentation.
1787 * osabi.c: Fix indentation.
1788 * osabi.h: Fix indentation.
1789 * osdata.c: Fix indentation.
1790 * p-lang.c: Fix indentation.
1791 * p-typeprint.c: Fix indentation.
1792 * p-valprint.c: Fix indentation.
1793 * parse.c: Fix indentation.
1794 * ppc-linux-nat.c: Fix indentation.
1795 * ppc-linux-tdep.c: Fix indentation.
1796 * ppc-nbsd-nat.c: Fix indentation.
1797 * ppc-nbsd-tdep.c: Fix indentation.
1798 * ppc-obsd-nat.c: Fix indentation.
1799 * ppc-ravenscar-thread.c: Fix indentation.
1800 * ppc-sysv-tdep.c: Fix indentation.
1801 * ppc64-tdep.c: Fix indentation.
1802 * printcmd.c: Fix indentation.
1803 * proc-api.c: Fix indentation.
1804 * producer.c: Fix indentation.
1805 * producer.h: Fix indentation.
1806 * prologue-value.c: Fix indentation.
1807 * prologue-value.h: Fix indentation.
1808 * psymtab.c: Fix indentation.
1809 * python/py-arch.c: Fix indentation.
1810 * python/py-bpevent.c: Fix indentation.
1811 * python/py-event.c: Fix indentation.
1812 * python/py-event.h: Fix indentation.
1813 * python/py-finishbreakpoint.c: Fix indentation.
1814 * python/py-frame.c: Fix indentation.
1815 * python/py-framefilter.c: Fix indentation.
1816 * python/py-inferior.c: Fix indentation.
1817 * python/py-infthread.c: Fix indentation.
1818 * python/py-objfile.c: Fix indentation.
1819 * python/py-prettyprint.c: Fix indentation.
1820 * python/py-registers.c: Fix indentation.
1821 * python/py-signalevent.c: Fix indentation.
1822 * python/py-stopevent.c: Fix indentation.
1823 * python/py-stopevent.h: Fix indentation.
1824 * python/py-threadevent.c: Fix indentation.
1825 * python/py-tui.c: Fix indentation.
1826 * python/py-unwind.c: Fix indentation.
1827 * python/py-value.c: Fix indentation.
1828 * python/py-xmethods.c: Fix indentation.
1829 * python/python-internal.h: Fix indentation.
1830 * python/python.c: Fix indentation.
1831 * ravenscar-thread.c: Fix indentation.
1832 * record-btrace.c: Fix indentation.
1833 * record-full.c: Fix indentation.
1834 * record.c: Fix indentation.
1835 * reggroups.c: Fix indentation.
1836 * regset.h: Fix indentation.
1837 * remote-fileio.c: Fix indentation.
1838 * remote.c: Fix indentation.
1839 * reverse.c: Fix indentation.
1840 * riscv-linux-tdep.c: Fix indentation.
1841 * riscv-ravenscar-thread.c: Fix indentation.
1842 * riscv-tdep.c: Fix indentation.
1843 * rl78-tdep.c: Fix indentation.
1844 * rs6000-aix-tdep.c: Fix indentation.
1845 * rs6000-lynx178-tdep.c: Fix indentation.
1846 * rs6000-nat.c: Fix indentation.
1847 * rs6000-tdep.c: Fix indentation.
1848 * rust-lang.c: Fix indentation.
1849 * rx-tdep.c: Fix indentation.
1850 * s12z-tdep.c: Fix indentation.
1851 * s390-linux-tdep.c: Fix indentation.
1852 * score-tdep.c: Fix indentation.
1853 * ser-base.c: Fix indentation.
1854 * ser-mingw.c: Fix indentation.
1855 * ser-uds.c: Fix indentation.
1856 * ser-unix.c: Fix indentation.
1857 * serial.c: Fix indentation.
1858 * sh-linux-tdep.c: Fix indentation.
1859 * sh-nbsd-tdep.c: Fix indentation.
1860 * sh-tdep.c: Fix indentation.
1861 * skip.c: Fix indentation.
1862 * sol-thread.c: Fix indentation.
1863 * solib-aix.c: Fix indentation.
1864 * solib-darwin.c: Fix indentation.
1865 * solib-frv.c: Fix indentation.
1866 * solib-svr4.c: Fix indentation.
1867 * solib.c: Fix indentation.
1868 * source.c: Fix indentation.
1869 * sparc-linux-tdep.c: Fix indentation.
1870 * sparc-nbsd-tdep.c: Fix indentation.
1871 * sparc-obsd-tdep.c: Fix indentation.
1872 * sparc-ravenscar-thread.c: Fix indentation.
1873 * sparc-tdep.c: Fix indentation.
1874 * sparc64-linux-tdep.c: Fix indentation.
1875 * sparc64-nbsd-tdep.c: Fix indentation.
1876 * sparc64-obsd-tdep.c: Fix indentation.
1877 * sparc64-tdep.c: Fix indentation.
1878 * stabsread.c: Fix indentation.
1879 * stack.c: Fix indentation.
1880 * stap-probe.c: Fix indentation.
1881 * stubs/ia64vms-stub.c: Fix indentation.
1882 * stubs/m32r-stub.c: Fix indentation.
1883 * stubs/m68k-stub.c: Fix indentation.
1884 * stubs/sh-stub.c: Fix indentation.
1885 * stubs/sparc-stub.c: Fix indentation.
1886 * symfile-mem.c: Fix indentation.
1887 * symfile.c: Fix indentation.
1888 * symfile.h: Fix indentation.
1889 * symmisc.c: Fix indentation.
1890 * symtab.c: Fix indentation.
1891 * symtab.h: Fix indentation.
1892 * target-float.c: Fix indentation.
1893 * target.c: Fix indentation.
1894 * target.h: Fix indentation.
1895 * tic6x-tdep.c: Fix indentation.
1896 * tilegx-linux-tdep.c: Fix indentation.
1897 * tilegx-tdep.c: Fix indentation.
1898 * top.c: Fix indentation.
1899 * tracefile-tfile.c: Fix indentation.
1900 * tracepoint.c: Fix indentation.
1901 * tui/tui-disasm.c: Fix indentation.
1902 * tui/tui-io.c: Fix indentation.
1903 * tui/tui-regs.c: Fix indentation.
1904 * tui/tui-stack.c: Fix indentation.
1905 * tui/tui-win.c: Fix indentation.
1906 * tui/tui-winsource.c: Fix indentation.
1907 * tui/tui.c: Fix indentation.
1908 * typeprint.c: Fix indentation.
1909 * ui-out.h: Fix indentation.
1910 * unittests/copy_bitwise-selftests.c: Fix indentation.
1911 * unittests/memory-map-selftests.c: Fix indentation.
1912 * utils.c: Fix indentation.
1913 * v850-tdep.c: Fix indentation.
1914 * valarith.c: Fix indentation.
1915 * valops.c: Fix indentation.
1916 * valprint.c: Fix indentation.
1917 * valprint.h: Fix indentation.
1918 * value.c: Fix indentation.
1919 * value.h: Fix indentation.
1920 * varobj.c: Fix indentation.
1921 * vax-tdep.c: Fix indentation.
1922 * windows-nat.c: Fix indentation.
1923 * windows-tdep.c: Fix indentation.
1924 * xcoffread.c: Fix indentation.
1925 * xml-syscall.c: Fix indentation.
1926 * xml-tdesc.c: Fix indentation.
1927 * xstormy16-tdep.c: Fix indentation.
1928 * xtensa-config.c: Fix indentation.
1929 * xtensa-linux-nat.c: Fix indentation.
1930 * xtensa-linux-tdep.c: Fix indentation.
1931 * xtensa-tdep.c: Fix indentation.
1932
e1f57067
AB
19332020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1934 Craig Blackmore <craig.blackmore@embecosm.com>
1935
1936 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1937 as an unsigned value.
1938
ae7754b2
TT
19392020-11-01 Tom Tromey <tom@tromey.com>
1940
1941 * dbxread.c (dbx_end_psymtab): Update.
1942 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1943 (build_type_psymtabs_reader): Update.
1944 * xcoffread.c (xcoff_end_psymtab): Update.
1945 * ctfread.c (scan_partial_symbols): Update.
1946 * psymtab.c (sort_pst_symbols): Remove.
1947 (partial_symtab::end): Rename from end_psymtab_common. Inline
1948 sort_pst_symbols.
1949 * psympriv.h (struct partial_symtab) <end>: New method.
1950 (end_psymtab_common): Don't declare.
1951
0684bb51
TT
19522020-11-01 Tom Tromey <tom@tromey.com>
1953
1954 * symmisc.c (count_psyms): New function.
1955 (print_objfile_statistics): Use it.
1956 * psymtab.c (append_psymbol_to_list): Remove.
1957 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1958 * objfiles.h (struct objstats) <n_psyms>: Remove.
1959
089002bb
TT
19602020-11-01 Tom Tromey <tom@tromey.com>
1961
1962 * dbxread.c (dbx_end_psymtab): Update.
1963 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1964 (build_type_psymtabs_reader): Update.
1965 * xcoffread.c (xcoff_end_psymtab): Update.
1966 * ctfread.c (scan_partial_symbols): Update.
1967 * psympriv.h (end_psymtab_common): Update.
1968 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1969 (sort_pst_symbols): Likewise.
1970
525454d6
TT
19712020-11-01 Tom Tromey <tom@tromey.com>
1972
1973 * dbxread.c (dbx_symfile_read): Update.
1974 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1975 * xcoffread.c (xcoff_initial_scan): Update.
1976 * psympriv.h (init_psymbol_list): Don't declare.
1977 * psymtab.c (init_psymbol_list): Remove.
1978
60bd1d53
JB
19792020-11-01 Joel Brobecker <brobecker@adacore.com>
1980
1981 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1982 gnat_encoded_fixed_type_info. Update all callers.
1983
db99d0d0
JB
19842020-11-01 Joel Brobecker <brobecker@adacore.com>
1985
1986 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1987 line too long.
1988
75f24e86
JB
19892020-11-01 Joel Brobecker <brobecker@adacore.com>
1990
1991 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1992 cast_from_fixed. Update all callers.
1993 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1994 Update all callers.
1995 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1996 Update all callers.
1997 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1998 ada_scaling_factor.
1999 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2000 to print_gnat_encoded_fixed_point_type.
2001 * ada-valprint.c: Likewise.
2002
4f0469cd
AB
20032020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2006 (debug_prefixed_printf): Add check of debug_displaced flag.
2007 * linux-nat.c (linux_nat_debug_printf): Add check of
2008 debug_linux_nat flag.
2009
17417fb0
SM
20102020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * infrun.c (infrun_debug_printf_1): Remove.
2013 (displaced_debug_printf_1): Remove.
2014 (stop_all_threads): Use debug_prefixed_printf.
2015 * infrun.h (infrun_debug_printf_1): Remove.
2016 (infrun_debug_printf): Use debug_prefixed_printf.
2017 (displaced_debug_printf_1): Remove.
2018 (displaced_debug_printf): Use debug_prefixed_printf.
2019 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2020 (linux_nat_debug_printf): Use debug_prefixed_printf.
2021
ad6dba1c
SM
20222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2023
2024 * configure: Re-generate.
2025 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2026 AC_LANG_PROGRAM.
2027
b6fb30ed
SM
20282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2029
2030 * configure: Re-generate.
2031
5164c117
SM
20322020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2033
2034 * configure: Re-generate.
2035
864ca435
SM
20362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2037
2038 * configure: Re-generate.
2039
b9442ec1
SM
20402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * configure: Re-generate.
2043
294f2697
SM
20442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * acinclude.m4: Modernize.
2047 * configure: Re-generate.
2048
5593a99a
SM
20492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2050
2051 * configure.ac: Modernize.
2052 * configure: Re-generate.
2053
e41fda1d
SM
20542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2055
2056 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2057 * configure: Re-generate.
2058 * configure.ac: Remove AM_PROG_CC_STDC.
2059
91e1a0ed
SM
20602020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2061
2062 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2063 AC_CANONICAL_SYSTEM.
2064 * configure: Re-generate.
2065
136821d9
SM
20662020-10-30 Simon Marchi <simon.marchi@efficios.com>
2067
2068 * infrun.h (displaced_debug_printf): New macro. Replace
2069 displaced debug prints throughout to use it.
2070 (displaced_debug_printf_1): New declaration.
2071 (displaced_step_dump_bytes): Return string, remove ui_file
2072 parameter, update all callers.
2073 * infrun.c (displaced_debug_printf_1): New function.
2074 (displaced_step_dump_bytes): Return string, remove ui_file
2075 parameter
2076
aa2045e7
SM
20772020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2078
2079 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2080
b1ec2735
TT
20812020-10-30 Tom Tromey <tromey@adacore.com>
2082
2083 * Makefile.in (stamp-init): Depend on config.status.
2084
b78b3a29
TBA
20852020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2086
2087 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2088
d70bdd3c
PA
20892020-10-30 Pedro Alves <pedro@palves.net>
2090
2091 * thread.c (lookup_selected_frame): Move ...
2092 * frame.c (lookup_selected_frame): ... here.
2093
79952e69
PA
20942020-10-30 Pedro Alves <pedro@palves.net>
2095
2096 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2097 * frame.c
2098 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2099 Use save_selected_frame. Save language as well.
2100 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2101 Use restore_selected_frame, and restore language as well.
2102 (selected_frame_id, selected_frame_level): New.
2103 (selected_frame): Update comments.
2104 (save_selected_frame, restore_selected_frame): New.
2105 (get_selected_frame): Use lookup_selected_frame.
2106 (get_selected_frame_if_set): Delete.
2107 (select_frame): Record selected_frame_level and selected_frame_id.
2108 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2109 fields.
2110 (get_selected_frame): Make 'message' parameter optional.
2111 (get_selected_frame_if_set): Delete declaration.
2112 (select_frame): Update comments.
2113 (save_selected_frame, restore_selected_frame)
2114 (lookup_selected_frame): Declare.
2115 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2116 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2117 New field.
2118 (save_infcall_control_state): Use save_selected_frame.
2119 (restore_selected_frame): Delete.
2120 (restore_infcall_control_state): Use restore_selected_frame.
2121 * stack.c (select_frame_command_core, frame_command_core): Use
2122 get_selected_frame.
2123 * thread.c (restore_selected_frame): Rename to ...
2124 (lookup_selected_frame): ... this and make extern. Select the
2125 current frame if the frame level is -1.
2126 (scoped_restore_current_thread::restore): Also restore the
2127 language.
2128 (scoped_restore_current_thread::~scoped_restore_current_thread):
2129 Don't try/catch.
2130 (scoped_restore_current_thread::scoped_restore_current_thread):
2131 Save the language as well. Use save_selected_frame.
2132
58103c33
SM
21332020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2134
2135 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2136 documentation.
2137 * gdbarch.h: Re-generate.
2138
40a53766
SM
21392020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2140
2141 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2142 parameter.
2143 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2144 Likewise.
2145 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2146 Likewise.
2147 * arch-utils.c (default_displaced_step_hw_singlestep):
2148 Likewise.
2149 * arch-utils.h (default_displaced_step_hw_singlestep):
2150 Likewise.
2151 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2152 Likewise.
2153 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2154 Likewise.
2155 * gdbarch.c: Re-generate.
2156 * gdbarch.h: Re-generate.
2157 * infrun.c (resume_1): Adjust.
2158
8407f91b
TT
21592020-10-29 Tom Tromey <tom@tromey.com>
2160
2161 * progspace.c (program_space::~program_space): Don't call
2162 exec_close.
2163
5008b3b2
TT
21642020-10-29 Tom Tromey <tom@tromey.com>
2165
2166 * exec.c (exec_target::close): Don't change current program
2167 space.
2168
d9eebde0
TT
21692020-10-29 Tom Tromey <tom@tromey.com>
2170
2171 * symfile.c (add_symbol_file_command): Update.
2172 * exec.c (program_space::add_target_sections): Rename.
2173 * symfile-mem.c (symbol_file_add_from_memory): Update.
2174 * progspace.h (struct program_space) <add_target_sections>:
2175 Declare new overload.
2176 * exec.h (add_target_sections_of_objfile): Don't declare.
2177
3769e227
TT
21782020-10-29 Tom Tromey <tom@tromey.com>
2179
2180 * solib.c (solib_map_sections): Update.
2181 * exec.c (program_space::add_target_sections): Now a method.
2182 (exec_file_attach): Update.
2183 * exec.h (add_target_sections): Don't declare.
2184 * progspace.h (struct program_space) <add_target_sections>:
2185 Declare.
2186
2a3f84af
TT
21872020-10-29 Tom Tromey <tom@tromey.com>
2188
2189 * progspace.h (struct program_space) <remove_target_sections>:
2190 Declare.
2191 * exec.c (program_space::remove_target_sections): Now a method.
2192 * exec.h (remove_target_sections): Don't declare.
2193
004eecfd
TT
21942020-10-29 Tom Tromey <tom@tromey.com>
2195
2196 * inferior.c (delete_inferior): Update.
2197 * progspace.c (program_space::empty): Rename from
2198 program_space_empty_p. Return bool.
2199 * progspace.h (struct program_space) <empty>: New method.
2200 (program_space_empty_p): Don't declare.
2201
e39fb971
TT
22022020-10-29 Tom Tromey <tom@tromey.com>
2203
2204 * progspace.c (program_space::~program_space): Don't call
2205 clear_program_space_solib_cache.
2206 (program_space::clear_solib_cache): Rename from
2207 clear_solib_cache.
2208 * solib.c (handle_solib_event): Update.
2209 * progspace.h (struct program_space) <clear_solib_cache>: New
2210 method.
2211 (clear_program_space_solib_cache): Don't declare.
2212
a42d7dd8
TT
22132020-10-29 Tom Tromey <tom@tromey.com>
2214
2215 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2216 * target.c (info_target_command): Update.
2217 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2218 (symbol_file_clear, reread_symbols): Update.
2219 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2220 * stabsread.c (scan_file_globals): Update.
2221 * solib.c (update_solib_list): Update.
2222 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2223 (svr4_fetch_objfile_link_map, enable_break)
2224 (svr4_relocate_main_executable)
2225 (svr4_iterate_over_objfiles_in_search_order): Update.
2226 * solib-frv.c (lm_base, enable_break)
2227 (frv_relocate_main_executable): Update.
2228 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2229 (frv_fetch_objfile_link_map): Update.
2230 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2231 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2232 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2233 * remote.c (remote_target::get_offsets): Update.
2234 (remote_target::start_remote)
2235 (extended_remote_target::post_attach): Update.
2236 * objfiles.c (entry_point_address_query): Update.
2237 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2238 * minsyms.c (get_symbol_leading_char): Update.
2239 * frame.c (inside_main_func): Update.
2240 * progspace.h (symfile_objfile): Remove macro.
2241
19f6550e
TT
22422020-10-29 Tom Tromey <tom@tromey.com>
2243
2244 * exec.c (exec_file_attach): Update.
2245 * progspace.c (program_space::exec_close): Update.
2246 * progspace.h (struct program_space) <ebfd>: Now a
2247 gdb_bfd_ref_ptr.
2248 <set_exec_bfd>: Change argument type.
2249 <exec_bfd>: Update.
2250
7e10abd1
TT
22512020-10-29 Tom Tromey <tom@tromey.com>
2252
2253 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2254 * symfile.c (reread_symbols): Update.
2255 * symfile-mem.c (add_symbol_file_from_memory_command)
2256 (add_vsyscall_page): Update.
2257 * source-cache.c (source_cache::get_plain_source_lines): Update.
2258 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2259 (svr4_current_sos_direct, svr4_exec_displacement)
2260 (svr4_relocate_main_executable): Update.
2261 (svr4_iterate_over_objfiles_in_search_order): Update.
2262 * solib-frv.c (enable_break2, enable_break): Update.
2263 * solib-dsbt.c (lm_base, enable_break): Update.
2264 * solib-darwin.c (find_program_interpreter)
2265 (darwin_solib_create_inferior_hook): Update.
2266 * sol-thread.c (rw_common, ps_pdmodel): Update.
2267 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2268 * remote.c (compare_sections_command)
2269 (remote_target::trace_set_readonly_regions): Update.
2270 * remote-sim.c (get_sim_inferior_data)
2271 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2272 (gdbsim_target_open, gdbsim_target::files_info): Update.
2273 * exec.h (exec_bfd): Remove macro.
2274 * progspace.c (initialize_progspace): Update.
2275 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2276 Update.
2277 * nto-procfs.c (nto_procfs_target::post_attach)
2278 (nto_procfs_target::create_inferior): Update.
2279 * maint.c (maintenance_info_sections): Update.
2280 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2281 Update.
2282 * infcmd.c (post_create_inferior): Update.
2283 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2284 (objfile_find_memory_regions): Update.
2285 * exec.c (validate_exec_file, exec_file_attach)
2286 (exec_read_partial_read_only, print_section_info): Update.
2287 * corelow.c (core_target_open): Update.
2288 * corefile.c (reopen_exec_file, validate_files): Update.
2289 * arm-tdep.c (gdb_print_insn_arm): Update.
2290 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2291 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2292 methods.
2293
b55221ab
TT
22942020-10-29 Tom Tromey <tom@tromey.com>
2295
2296 * progspace.h (current_target_sections): Remove macro.
2297 * solib-svr4.c (scan_dyntag): Update.
2298 * solib-dsbt.c (scan_dyntag): Update.
2299 * exec.c (exec_target::close): Update.
2300 (add_target_sections, add_target_sections_of_objfile)
2301 (remove_target_sections, exec_target::get_section_table)
2302 (exec_target::files_info, set_section_command)
2303 (exec_set_section_address, exec_target::has_memory)
2304 (exec_target::has_memory): Update.
2305
5a36e715
TT
23062020-10-29 Tom Tromey <tom@tromey.com>
2307
2308 * source-cache.c (source_cache::get_plain_source_lines): Use
2309 current_program_space.
2310 * corefile.c (reopen_exec_file): Use current_program_space.
2311 * exec.c (exec_file_attach): Use current_program_space.
2312 * exec.h (exec_bfd_mtime): Remove.
2313
784c8592
TT
23142020-10-29 Tom Tromey <tom@tromey.com>
2315
2316 * gcore.c (default_gcore_mach): Remove.
2317 (create_gcore_bfd): Update.
2318
8a4f1402
TT
23192020-10-29 Tom Tromey <tom@tromey.com>
2320
2321 * progspace.c (program_space::exec_close): New method, from
2322 exec_close in exec.c.
2323 * exec.c (exec_close): Move to progspace.c.
2324 (exec_target::close, exec_file_attach): Update.
2325 * progspace.h (struct program_space) <exec_close>: Declare
2326 method.
2327
c20cb686
TT
23282020-10-29 Tom Tromey <tom@tromey.com>
2329
2330 * progspace.h (struct program_space) <exec_filename>: Rename from
2331 pspace_exec_filename. Now a unique_xmalloc_ptr.
2332 * inferior.c (print_selected_inferior): Update.
2333 (print_inferior): Update.
2334 * mi/mi-main.c (print_one_inferior): Update.
2335 * exec.h (exec_filename): Remove macro.
2336 * corefile.c (get_exec_file): Update.
2337 * exec.c (exec_close): Update.
2338 (exec_file_attach): Update.
2339 * progspace.c (clone_program_space): Update.
2340 (print_program_space): Update.
2341
6be2a9ab
TT
23422020-10-29 Tom Tromey <tom@tromey.com>
2343
2344 * target-section.h (struct target_section): Add constructor.
2345 * exec.c (build_section_table, add_target_sections_of_objfile):
2346 Update.
2347 * corelow.c (core_target::build_file_mappings): Update.
2348
cfaa8f76
TBA
23492020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2350
2351 PR gdb/19318
2352 * inferior.c (detach_inferior_command): Restore the current thread.
2353 (kill_inferior_command): Ditto.
2354
1b00ef06
TV
23552020-10-28 Tom de Vries <tdevries@suse.de>
2356
2357 PR symtab/26772
2358 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2359 map, check it in the "best match" loop.
2360
7f40ce1a
SM
23612020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2362
2363 * m32c-tdep.c: Remove unused includes.
2364
5eb9e3f5
SM
23652020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2366
2367 * xtensa-tdep.c: Remove includes.
2368
b1d4d8d1
TBA
23692020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2370
2371 * breakpoint.c (struct condition_command_opts): New struct.
2372 (condition_command_option_defs): New static global.
2373 (make_condition_command_options_def_group): New function.
2374 (condition_completer): Update to consider the '-force' flag.
2375 (condition_command): Use gdb::option for the '-force' flag.
2376
bd24c5d6
TV
23772020-10-27 Tom de Vries <tdevries@suse.de>
2378
2379 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2380 symbols in section check.
2381
61eb46a4
TV
23822020-10-27 Tom de Vries <tdevries@suse.de>
2383
2384 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2385
733d554a
TBA
23862020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2387
2388 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2389 * breakpoint.c: Update the help text of the 'condition' and 'break'
2390 commands.
2391 (set_breakpoint_condition): Take a new bool parameter
2392 to control whether condition definition should be forced even when
2393 the condition expression is invalid in all of the current locations.
2394 (condition_command): Update the call to 'set_breakpoint_condition'.
2395 (find_condition_and_thread): Take the "-force-condition" flag into
2396 account.
2397 * linespec.c (linespec_keywords): Add "-force-condition" as an
2398 element.
2399 (FORCE_KEYWORD_INDEX): New #define.
2400 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2401 as a keyword.
2402 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2403 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2404 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2405 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2406
b5fa468f
TBA
24072020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2408
2409 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2410 * breakpoint.c (set_breakpoint_location_condition): New function.
2411 (set_breakpoint_condition): Disable a breakpoint location if parsing
2412 the condition string gives an error.
2413 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2414 (build_target_condition_list): Ditto.
2415 (build_target_command_list): Ditto.
2416 (build_bpstat_chain): Ditto.
2417 (print_one_breakpoint_location): Ditto.
2418 (print_one_breakpoint): Ditto.
2419 (breakpoint_1): Ditto.
2420 (bp_location::bp_location): Ditto.
2421 (locations_are_equal): Ditto.
2422 (update_breakpoint_locations): Ditto.
2423 (enable_disable_bp_num_loc): Ditto.
2424 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2425 (find_condition_and_thread_for_sals): New static function.
2426 (create_breakpoint): Call find_condition_and_thread_for_sals.
2427 (location_to_sals): Call find_condition_and_thread_for_sals instead
2428 of find_condition_and_thread.
2429
1c47ec3e
TV
24302020-10-26 Tom de Vries <tdevries@suse.de>
2431
2432 * dwarf2/read.c (process_full_comp_unit): Call
2433 dwarf2_find_base_address.
2434
6390859c
TT
24352020-10-26 Tom Tromey <tromey@adacore.com>
2436
2437 * gdbtypes.c (create_range_type): Revert previous patch. Add
2438 comment.
2439
d744f0f9
PA
24402020-10-26 Pedro Alves <pedro@palves.net>
2441
2442 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2443 (my_waitpid): Use gdb::handle_eintr.
2444
006811bc
SM
24452020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * acinclude.m4: Update ptrace.m4 path.
2448 * ptrace.m4: Moved to gdbsupport.
2449
c75e31a1
SM
24502020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2451
2452 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2453 instead of target_gdbarch.
2454
32495661
SM
24552020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * jit.c (jit_reader_load_command): Pass current inferior.
2458 (jit_inferior_init): Change parameter type to inferior, use it.
2459 (jit_inferior_created): Remove.
2460 (jit_inferior_created_hook): Pass inferior parameter down.
2461 (_initialize_jit): Use jit_inferior_created_hook instead of
2462 jit_inferior_created.
2463 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2464 * infrun.c (follow_exec): Pass inferior to
2465 jit_inferior_created_hook.
2466
3f66685e
SM
24672020-10-24 Simon Marchi <simon.marchi@efficios.com>
2468
2469 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2470 parameter and use it.
2471 (thread_db_inferior_created): Pass inferior argument.
2472
a0ff652f
SM
24732020-10-24 Simon Marchi <simon.marchi@efficios.com>
2474
2475 * aix-thread.c (aix_thread_inferior_created): Add inferior
2476 parameter.
2477 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2478 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2479 * jit.c (jit_inferior_created): Likewise.
2480 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2481 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2482 * observable.h (inferior_created): Likewise.
2483 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2484 * symfile-mem.c (add_vsyscall_page): Likewise.
2485 * infcmd.c (post_create_inferior): Pass inferior argument.
2486
3c67532c
JB
24872020-10-24 Joel Brobecker <brobecker@adacore.com>
2488
2489 GDB 10.1 released.
2490
8747316e
JB
24912020-10-23 Joel Brobecker <brobecker@adacore.com>
2492
2493 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2494 to ada_check_typedef.
2495
1a0ea399
AB
24962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * f-exp.y (f_parse): Rename to...
2499 (f_language::parser): ...this.
2500 * f-lang.c (f_get_encoding): Rename to...
2501 (f_language::get_encoding): ...this.
2502 (f_op_print_tab): Rename to...
2503 (f_language::op_print_tab): ...this.
2504 (exp_descriptor_f): Rename to...
2505 (f_language::exp_descriptor_tab): ...this.
2506 (class f_language): Moved to f-lang.h.
2507 (f_language::language_arch_info): New function, moved out of class
2508 declaration.
2509 (f_language::search_name_hash): Likewise.
2510 (f_language::lookup_symbol_nonlocal): Likewise.
2511 (f_language::get_symbol_name_matcher_inner): Likewise.
2512 * f-lang.h: Add 'valprint.h' include.
2513 (class f_language): Moved here from f-lang.c.
2514 * f-typeprint.c (f_type_print_args): Delete commented out
2515 declaration.
2516 (f_print_typedef): Rename to...
2517 (f_language::print_typedef): ...this.
2518 (f_print_type): Rename to...
2519 (f_language::print_type): ...this.
2520 (f_type_print_varspec_prefix): Delete declaration and rename to...
2521 (f_language::f_type_print_varspec_prefix): ...this.
2522 (f_type_print_varspec_suffix): Delete declaration and rename to...
2523 (f_language::f_type_print_varspec_suffix): ...this.
2524 (f_type_print_base): Delete declaration and rename to...
2525 (f_language::f_type_print_base): ...this.
2526 * f-valprint.c (f_value_print_inner): Rename to...
2527 (f_language::value_print_inner): ...this.
2528 * parse.c: Delete 'f-lang.h' include.
2529
88cefd9b
AB
25302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2531
2532 * language.h (language_defn::print_type): Add variable names in
2533 declaration, and update header comment.
2534
5399db93
AB
25352020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2536
2537 * ada-lang.c (ada_language::demangle): Rename to...
2538 (ada_language::demangle_symbol): ...this.
2539 * c-lang.c (cplus_language::demangle): Rename to...
2540 (cplus_language::demangle_symbol): ...this.
2541 * d-lang.c (d_language::demangle): Rename to...
2542 (d_language::demangle_symbol): ...this.
2543 * f-lang.c (f_language::demangle): Rename to...
2544 (f_language::demangle_symbol): ...this.
2545 * go-lang.c (go_language::demangle): Rename to...
2546 (go_language::demangle_symbol): ...this.
2547 * language.c (language_demangle): Update call to demangle_symbol.
2548 (auto_or_unknown_language::demangle): Rename to...
2549 (auto_or_unknown_language::demangle_symbol): ...this.
2550 * language.h (language_defn::demangle): Rename to...
2551 (language_defn::demangle_symbol): ...this.
2552 * objc-lang.c (objc_language::demangle): Rename to...
2553 (objc_language::demangle_symbol): ...this.
2554 * rust-lang.c (rust_language::demangle): Rename to...
2555 (rust_language::demangle_symbol): ...this.
2556
4b2f86ef
AB
25572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2560 (iterate_over_file_blocks): Replace use of macro with the macros
2561 definition.
2562
e74b39de
AB
25632020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2566 * valprint.c (maybe_print_array_index): Replace use of macro with
2567 the macros definition.
2568
00c696a6
AB
25692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2570
2571 * ada-lang.c (ada_language::print_array_index): Call value_print
2572 directly.
2573 * language.c (language_defn::print_array_index): Likewise.
2574 * language.h (LA_VALUE_PRINT): Delete.
2575 * valprint.c (value_print): Call value_print on the
2576 current_language directly.
2577
d3b67c56
AB
25782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2579
2580 * language.h (LA_PRINT_TYPEDEF): Delete.
2581 * typeprint.c (typedef_print): Call print_typedef directly on the
2582 current_language object.
2583
790e2a12
AB
25842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2585
2586 * m2-exp.y (m2_parse): Rename to...
2587 (m2_language::parser): ...this. Update function signature.
2588 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2589 (m2_op_print): Rename to...
2590 (m2_language::op_print_tab): ...this, and make const.
2591 (exp_descriptor_modula2): Rename to...
2592 (m2_language::exp_descriptor_modula2): ...this.
2593 (class m2_language): Move to m2-lang.h.
2594 (m2_language::language_arch_info): New function, moved out of
2595 class declaration.
2596 (m2_language::printchar): New function, body from m2_printchar.
2597 (m2_language::printstr): New function, moved out of class
2598 declaration.
2599 (m2_language::emitchar): Likewise.
2600 * m2-lang.h (m2_parse): Delete declaration.
2601 (m2_print_typedef): Delete declaration.
2602 (m2_value_print_inner): Delete declaration.
2603 (class m2_language): Class declaration moved from m2-lang.c,
2604 larger functions are left in m2-lang.c.
2605 * m2-typeprint.c (m2_print_typedef): Rename to...
2606 (m2_language::print_typedef): ...this, and update function
2607 signature.
2608 * m2-valprint.c (m2_value_print_inner): Rename to...
2609 (m2_language::value_print_inner): ...this, replace use of
2610 LA_PRINT_STRING with a direct call to printstr member function,
2611 and update recursive call.
2612
b01175fc
AB
26132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2614
2615 * language.c (default_is_string_type_p): Delete, implementation
2616 moved into auto_or_unknown_language::is_string_type_p.
2617 (unk_op_print_tab): Moved into
2618 auto_or_unknown_language::opcode_print_table.
2619 (unknown_language_arch_info): Delete, implementation moved into
2620 auto_or_unknown_language::language_arch_info.
2621 (class auto_or_unknown_language): New class, member functions
2622 copied from unknown_language class, with some updates.
2623 (class unknown_language): Most member functions moved into
2624 auto_or_unknown_language class. Inherit from
2625 auto_or_unknown_language class.
2626 (class auto_language): Inherit from auto_or_unknown_language.
2627 Delete most member functions.
2628
1a97fe8c
HD
26292020-10-22 Hannes Domani <ssbssa@yahoo.de>
2630
2631 * stabsread.c (read_member_functions): Remove gdb_assert.
2632
6b9d0dfd
HD
26332020-10-22 Hannes Domani <ssbssa@yahoo.de>
2634
2635 * gdbtypes.c (init_complex_type): Check target type name.
2636
4b4bb603
SM
26372020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2638
2639 * target-debug.h (target_debug_print_struct_target_ops_p):
2640 Remove.
2641 (target_debug_print_async_callback_ftype_p): Remove.
2642 (target_debug_print_struct_trace_state_variable_p): Remove.
2643 (target_debug_print_struct_traceframe_info_p): Remove.
2644 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2645 (target_debug_print_enum_btrace_format): Remove.
2646 (target_debug_print_enum_info_proc_what): Remove.
2647 (target_debug_print_thread_info_pp): Remove.
2648
24f5300a
SM
26492020-10-22 Simon Marchi <simon.marchi@efficios.com>
2650
2651 * target.h (struct target_ops) <make_corefile_notes>:
2652 Change return type to unique pointer.
2653 * target.c (dummy_make_corefile_notes): Likewise.
2654 * exec.c (struct exec_target) <make_corefile_notes>:
2655 Likewise.
2656 (exec_target::make_corefile_notes): Likewise.
2657 * procfs.c (class procfs_target) <make_corefile_notes>:
2658 Likewise.
2659 (procfs_do_thread_registers): Adjust to unique pointer.
2660 (struct procfs_corefile_thread_data): Add constructor.
2661 <note_data>: Change type to unique pointer.
2662 (procfs_corefile_thread_callback): Adjust to unique pointer.
2663 (procfs_target::make_corefile_notes): Change return type to
2664 unique pointer.
2665 * target-delegates.c: Re-generate.
2666 * gcore.c (write_gcore_file_1): Adjust.
2667 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2668 New.
2669
5fb4027f
TV
26702020-10-22 Tom de Vries <tdevries@suse.de>
2671
2672 * block.c (find_block_in_blockvector): Make sure the returned block
2673 contains pc.
2674
4a636814
SM
26752020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2676
2677 PR gdb/26693
2678 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2679 parameter.
2680 (load_cu): Pass existing CU.
2681 (process_imported_unit_die): Likewise.
2682 (follow_die_offset): Likewise.
2683
1bd57575
LM
26842020-10-22 Luis Machado <luis.machado@linaro.org>
2685
2686 * corelow.c (core_target::xfer_partial): Also check for an empty
2687 m_core_unavailable_mappings vector.
2688
6b4c676c
AB
26892020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2692 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2693 * f-exp.y (arglist): Allow for a series of subranges.
2694 (subrange): Add cases for subranges with strides.
2695 * f-lang.c (value_f90_subarray): Catch use of array strides and
2696 throw an error.
2697 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2698
f2d8e4c5
AB
26992020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * expprint.c (print_subexp_standard): Change enum range_type to
2702 range_flag and rename variables to match.
2703 (dump_subexp_body_standard): Likewise.
2704 * expression.h (enum range_type): Rename to...
2705 (enum range_flag): ...this.
2706 (range_types): Rename to...
2707 (range_flags): ...this.
2708 * f-lang.c (value_f90_subarray): Change enum range_type to
2709 range_flag and rename variables to match.
2710 * parse.c (operator_length_standard): Likewise.
2711 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2712 range_type to range_flag.
2713 * rust-lang.c (rust_evaluate_funcall): Likewise.
2714 (rust_range): Likewise.
2715 (rust_compute_range): Likewise.
2716 (rust_subscript): Likewise.
2717
2f1b18db
AB
27182020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * expprint.c (print_subexp_standard): Update to reflect changes to
2721 enum range_type.
2722 (dump_subexp_body_standard): Likewise.
2723 * expression.h (enum range_type): Convert to a bit field enum, and
2724 make the enum unsigned.
2725 * f-exp.y (subrange): Update to reflect changes to enum
2726 range_type.
2727 * f-lang.c (value_f90_subarray): Likewise.
2728 * parse.c (operator_length_standard): Likewise.
2729 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2730 * rust-lang.c (rust_range): Likewise.
2731 (rust_compute_range): Likewise.
2732 (rust_subscript): Likewise.
2733
a46d1843
SM
27342020-10-21 Simon Marchi <simon.marchi@efficios.com>
2735
2736 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2737 (displaced_step_in_progress): Fix comment.
2738
c21f37a8
SM
27392020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2740
2741 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2742 * gdbarch.c: Re-generate.
2743 * gdbarch.h: Re-generate.
2744 * gcore.c (write_gcore_file_1): Adjust.
2745 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2746 constructor.
2747 <note_data>: Change type to unique pointer.
2748 <abort_iteration>: Change type to bool.
2749 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2750 (fbsd_collect_thread_registers): Return void, adjust.
2751 (struct fbsd_corefile_thread_data): Add construtor.
2752 <note_data>: Change type to unique pointer.
2753 (fbsd_corefile_thread): Adjust.
2754 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2755 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2756 to unique pointer, adjust.
2757 (struct linux_collect_regset_section_cb_data): Add constructor.
2758 <note_data>: Change type to unique pointer.
2759 <abort_iteration>: Change type to bool.
2760 (linux_collect_thread_registers): Return void, adjust.
2761 (struct linux_corefile_thread_data): Add constructor.
2762 <note_data>: Change type to unique pointer.
2763 (linux_corefile_thread): Adjust.
2764 (linux_make_corefile_notes): Return unique pointer, adjust.
2765
07fbbd01
SM
27662020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2767
2768 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2769 * gdbarch.c: Re-generate.
2770 * gdbarch.h: Re-generate.
2771 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2772 bool.
2773 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2774 Likewise.
2775 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2776 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2777 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2778 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2779
39535193
SM
27802020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2781
2782 * gdbarch.sh: Make generated predicates return bool.
2783 * gdbarch.c: Re-generate.
2784 * gdbarch.h: Re-generate.
2785
ad523d01
TT
27862020-10-20 Tom Tromey <tom@tromey.com>
2787
2788 * varobj-iter.h (struct varobj_item): Remove typedef.
2789
c4464ade
SM
27902020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2791
2792 * infrun.c (currently_stepping): Change int to bool
2793 (maybe_software_singlestep): Likewise.
2794 (show_stop_on_solib_events): Likewise.
2795 (stepping_past_nonsteppable_watchpoint): Likewise.
2796 (displaced_step_in_progress_any_inferior): Likewise.
2797 (displaced_step_in_progress_thread): Likewise.
2798 (keep_going_stepped_thread): Likewise.
2799 (thread_still_needs_step_over): Likewise.
2800 (start_step_over): Likewise.
2801 (do_target_resume): Likewise.
2802 (resume_1): Likewise.
2803 (clear_proceed_status): Likewise.
2804 (thread_still_needs_step_over_bp): Likewise.
2805 (proceed): Likewise.
2806 (switch_back_to_stepped_thread): Likewise.
2807 (adjust_pc_after_break): Likewise.
2808 (stepped_in_from): Likewise.
2809 (handle_stop_requested): Likewise.
2810 (handle_syscall_event): Likewise.
2811 (handle_no_resumed): Likewise.
2812 (handle_inferior_event): Likewise.
2813 (finish_step_over): Likewise.
2814 (handle_signal_stop): Likewise.
2815 (process_event_stop_test): Likewise.
2816
2eb20436
SM
28172020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2818
2819 * infrun.c (get_displaced_stepping_state): Fix comment.
2820
e0c45ded
AS
28212020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2822
2823 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2824
22cc388e
TT
28252020-10-19 Tom Tromey <tromey@adacore.com>
2826
2827 PR tui/26719
2828 * tui/tui-winsource.h (struct tui_source_window_base)
2829 <refresh_window>: Rename from refresh_pad.
2830 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2831 Rename from refresh_pad.
2832 (tui_source_window_base::show_source_content)
2833 (tui_source_window_base::do_scroll_horizontal): Update.
2834
3c6eb4d4
TBA
28352020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2836
2837 * thread.c (_initialize_thread): Fine-tune the help text of
2838 'info threads'.
2839
26703721
TBA
28402020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2841
2842 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2843
61c26be8
MS
28442020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2845
2846 * breakpoint.c (handle_jit_event): Add an argument, change how
2847 `jit_event_handler` is called.
2848
932539d7
TT
28492020-10-17 Tom Tromey <tom@tromey.com>
2850
2851 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2852 (scan_xcoff_symtab): Update.
2853 * psymtab.h (class psymtab_storage) <global_psymbols,
2854 static_psymbols, current_global_psymbols,
2855 current_static_psymbols>: Remove.
2856 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2857 (match_partial_symbol, lookup_partial_symbol): Update.
2858 (print_partial_symbols): Change parameters.
2859 (dump_psymtab, recursively_search_psymtabs)
2860 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2861 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2862 (concat): Remove.
2863 (end_psymtab_common): Simplify.
2864 (append_psymbol_to_list): Change parameters.
2865 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2866 (init_psymbol_list): Simplify.
2867 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2868 * psympriv.h (struct partial_symtab) <empty>: New method.
2869 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2870 Remove.
2871 <global_psymbols, static_psymbols>: New members.
2872 <add_psymbol>: New methods.
2873 (add_psymbol_to_list): Don't declare.
2874 (psymbol_placement): Move earlier.
2875 * mdebugread.c (parse_partial_symbols): Update.
2876 (handle_psymbol_enumerators): Change parameters.
2877 (mdebug_expand_psymtab): Update.
2878 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2879 (add_partial_symbol): Update.
2880 * dwarf2/index-write.c (write_psymbols): Change parameters.
2881 (write_one_signatured_type): Update.
2882 (recursively_count_psymbols): Update.
2883 (recursively_write_psymbols): Update.
2884 (class debug_names) <recursively_write_psymbols>: Update.
2885 <write_psymbols>: Change parameters.
2886 <write_one_signatured_type>: Update.
2887 * dbxread.c (read_dbx_symtab): Update.
2888 (dbx_end_psymtab): Use partial_symtab::empty.
2889 * ctfread.c (struct ctf_context) <pst>: New member.
2890 (create_partial_symtab): Set it.
2891 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2892 (scan_partial_symbols): Use the psymtab's context. Update.
2893
cfabbd35
TT
28942020-10-17 Tom Tromey <tom@tromey.com>
2895
2896 * valprint.c (generic_value_print): Remove comment.
2897 * m2-valprint.c (m2_value_print_inner): Remove comment.
2898 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2899 type.
2900
520596f2
TV
29012020-10-17 Tom de Vries <tdevries@suse.de>
2902
2903 PR symtab/26317
2904 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2905 symbol main.
2906
76547ab3
TV
29072020-10-14 Tom de Vries <tdevries@suse.de>
2908
2909 PR gdb/26733
2910 * solib.c (solib_contains_address_p): Handle
2911 'solib->sections == nullptr'.
2912
d3a07122
SM
29132020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2914
2915 PR gdb/26642
2916 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2917 target can't do async.
2918 * target.c (target_wait): Assert that we don't pass
2919 TARGET_WNOHANG to a target that can't async.
2920
1b71cfcf
KR
29212020-10-13 Kamil Rytarowski <n54@gmx.com>
2922
2923 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2924 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2925 * alpha-bsd-nat.c: Adjust include.
2926 * alpha-bsd-tdep.h: Adjust comment.
2927 * alpha-nbsd-tdep.c: Rename to ...
2928 * alpha-netbsd-tdep.c: ... this, adjust include.
2929 * amd64-nbsd-nat.c: Rename to ...
2930 * amd64-netbsd-nat.c: ... this, adjust include.
2931 * amd64-nbsd-tdep.c: Rename to ...
2932 * amd64-netbsd-tdep.c: ... this, adjust include.
2933 * amd64-tdep.h: Adjust include.
2934 * arm-nbsd-nat.c: Rename to ...
2935 * arm-netbsd-nat.c: ... this, adjust include.
2936 * arm-nbsd-tdep.c: Rename to ...
2937 * arm-netbsd-tdep.c: ... this, adjust include.
2938 * arm-nbsd-tdep.h: Rename to ...
2939 * arm-netbsd-tdep.h: ... this, adjust include.
2940 * configure.nat: Adjust file lists.
2941 * configure.tgt: Likewise.
2942 * hppa-nbsd-nat.c: Rename to ...
2943 * hppa-netbsd-nat.c: ... this, adjust include.
2944 * hppa-nbsd-tdep.c: Rename to ...
2945 * hppa-netbsd-tdep.c: ... this, adjust include.
2946 * i386-nbsd-nat.c: Rename to ...
2947 * i386-netbsd-nat.c: ... this, adjust include.
2948 * i386-nbsd-tdep.c: Rename to ...
2949 * i386-netbsd-tdep.c: ... this, adjust include.
2950 * m68k-bsd-nat.c: Adjust include.
2951 * mips-nbsd-nat.c: Rename to ...
2952 * mips-netbsd-nat.c: ... this, adjust include.
2953 * mips-nbsd-tdep.c: Rename to ...
2954 * mips-netbsd-tdep.c: ... this, adjust include.
2955 * mips-nbsd-tdep.h: Rename to ...
2956 * mips-netbsd-tdep.h: ... this.
2957 * nbsd-nat.c: Rename to ...
2958 * netbsd-nat.c: ... this, adjust include.
2959 * nbsd-nat.h: Rename to ...
2960 * netbsd-nat.h: ... this, adjust include.
2961 * nbsd-tdep.c: Rename to ...
2962 * netbsd-tdep.c: ... this, adjust include.
2963 * nbsd-tdep.h: Rename to ...
2964 * netbsd-tdep.h: ... this.
2965 * ppc-nbsd-nat.c: Rename to ...
2966 * ppc-netbsd-nat.c: ... this, adjust include.
2967 * ppc-nbsd-tdep.c: Rename to ...
2968 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2969 * ppc-nbsd-tdep.h: Rename to ...
2970 * ppc-netbsd-tdep.h: ... this.
2971 * sh-nbsd-nat.c: Rename to ...
2972 * sh-netbsd-nat.c: ... this, adjust include.
2973 * sh-nbsd-tdep.c: Rename to ...
2974 * sh-netbsd-tdep.c: ... this, adjust include.
2975 * sparc-nbsd-nat.c: Rename to ...
2976 * sparc-netbsd-nat.c: ... this.
2977 * sparc-nbsd-tdep.c: Rename to ...
2978 * sparc-netbsd-tdep.c: ... this, adjust include.
2979 * sparc64-nbsd-nat.c: Rename to ...
2980 * sparc64-netbsd-nat.c: ... this.
2981 * sparc64-nbsd-tdep.c: Rename to ...
2982 * sparc64-netbsd-tdep.c: ... this, adjust include.
2983 * sparc64-tdep.h: Adjust comment.
2984 * vax-bsd-nat.c: Adjust include.
2985 * vax-nbsd-tdep.c: Rename to ...
2986 * vax-netbsd-tdep.c: ... this, adjust include.
2987
d7a78e5c
TT
29882020-10-12 Tom Tromey <tom@tromey.com>
2989
2990 * target.h (struct target_ops) <get_section_table>: Update.
2991 (target_get_section_table): Update.
2992 * target.c (target_get_section_table, target_section_by_addr)
2993 (memory_xfer_partial_1): Update.
2994 * target-section.h (target_section_table): Now an alias.
2995 * target-delegates.c: Rebuild.
2996 * target-debug.h (target_debug_print_target_section_table_p):
2997 Rename from target_debug_print_struct_target_section_table_p.
2998 * symfile.c (build_section_addr_info_from_section_table): Update.
2999 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3000 * solib-svr4.c (scan_dyntag): Update.
3001 * solib-dsbt.c (scan_dyntag): Update.
3002 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3003 Update.
3004 * record-full.c (record_full_core_target::xfer_partial): Update.
3005 * progspace.h (struct program_space) <target_sections>: Update.
3006 * exec.h (print_section_info): Update.
3007 * exec.c (exec_target::close, build_section_table)
3008 (add_target_sections, add_target_sections_of_objfile)
3009 (remove_target_sections, exec_on_vfork)
3010 (section_table_available_memory)
3011 (section_table_xfer_memory_partial)
3012 (exec_target::get_section_table, exec_target::xfer_partial)
3013 (print_section_info, set_section_command)
3014 (exec_set_section_address, exec_target::has_memory): Update.
3015 * corelow.c (core_target::build_file_mappings)
3016 (core_target::xfer_partial, core_target::info_proc_mappings)
3017 (core_target::info_proc_mappings): Update.
3018 * bfd-target.c (class target_bfd): Update
3019
eda214ce
TT
30202020-10-12 Tom Tromey <tom@tromey.com>
3021
3022 * progspace.c (program_space::~program_space): Don't call
3023 clear_section_table.
3024 * exec.h (clear_section_table): Don't declare.
3025 * exec.c (exec_target::close): Update.
3026 (clear_section_table): Remove.
3027
91840ee3
TT
30282020-10-12 Tom Tromey <tom@tromey.com>
3029
3030 * exec.c (add_target_sections_of_objfile): Simplify.
3031
2d128614
TT
30322020-10-12 Tom Tromey <tom@tromey.com>
3033
3034 * solib.c (solib_map_sections): Update.
3035 * record-full.c (record_full_core_open_1): Update.
3036 * exec.h (build_section_table): Return a target_section_table.
3037 * exec.c (exec_file_attach): Update.
3038 (build_section_table): Return a target_section_table.
3039 * corelow.c (core_target::core_target): Update.
3040 * bfd-target.c (target_bfd::target_bfd): Update.
3041
bb2a6777
TT
30422020-10-12 Tom Tromey <tom@tromey.com>
3043
3044 * target.c (target_section_by_addr, memory_xfer_partial_1):
3045 Update.
3046 * target-section.h (struct target_section_table): Use
3047 std::vector.
3048 * symfile.h (build_section_addr_info_from_section_table): Take a
3049 target_section_table.
3050 * symfile.c (build_section_addr_info_from_section_table): Take a
3051 target_section_table.
3052 * solist.h (struct so_list) <sections>: Change type.
3053 <sections_end>: Remove.
3054 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3055 (solib_contains_address_p): Update.
3056 * solib-svr4.c (scan_dyntag): Update.
3057 * solib-dsbt.c (scan_dyntag): Update.
3058 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3059 Update.
3060 * record-full.c (record_full_core_start, record_full_core_end):
3061 Remove.
3062 (record_full_core_sections): New global.
3063 (record_full_core_open_1, record_full_core_target::xfer_partial):
3064 Update.
3065 * exec.h (build_section_table, section_table_xfer_memory_partial)
3066 (add_target_sections): Take a target_section_table.
3067 * exec.c (exec_file_attach, clear_section_table): Update.
3068 (resize_section_table): Remove.
3069 (build_section_table, add_target_sections): Take a
3070 target_section_table.
3071 (add_target_sections_of_objfile, remove_target_sections)
3072 (exec_on_vfork): Update.
3073 (section_table_available_memory): Take a target_section_table.
3074 (section_table_read_available_memory): Update.
3075 (section_table_xfer_memory_partial): Take a target_section_table.
3076 (print_section_info, set_section_command)
3077 (exec_set_section_address, exec_target::has_memory): Update.
3078 * corelow.c (class core_target) <m_core_section_table,
3079 m_core_file_mappings>: Remove braces.
3080 <~core_target>: Remove.
3081 (core_target::core_target): Update.
3082 (core_target::~core_target): Remove.
3083 (core_target::build_file_mappings)
3084 (core_target::xfer_memory_via_mappings)
3085 (core_target::xfer_partial, core_target::info_proc_mappings):
3086 Update.
3087 * bfd-target.c (target_bfd::xfer_partial): Update.
3088 (target_bfd::target_bfd): Update.
3089 (target_bfd::~target_bfd): Remove.
3090
7b466b10
TT
30912020-10-12 Tom Tromey <tom@tromey.com>
3092
3093 * target.h (struct target_section, struct target_section_table):
3094 Move to target-section.h.
3095 * target-section.h: New file.
3096
87a37e5e
PA
30972020-10-12 Pedro Alves <pedro@palves.net>
3098
3099 PR exp/26602
3100 * valops.c (struct struct_field_searcher): New.
3101 (update_search_result): Rename to ...
3102 (struct_field_searcher::update_result): ... this. Simplify
3103 prototype. Record all found fields.
3104 (do_search_struct_field): Rename to ...
3105 (struct_field_searcher::search): ... this. Simplify prototype.
3106 Maintain stack of visited baseclass path. Call update_result for
3107 fields too. Keep searching fields in baseclasses instead of
3108 stopping at the first found field.
3109 (search_struct_field): Use struct_field_searcher. When looking
3110 for fields, report ambiguous access attempts.
3111
9370fd51
AB
31122020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3113
3114 * frame.c (inside_main_func): Check full symbols as well as
3115 minimal symbols.
3116
59c8a30b
JB
31172020-10-09 Joel Brobecker <brobecker@adacore.com>
3118
3119 * ada-lang.c (advance_wild_match): Rewrite the function's
3120 description. Change the type of target0, t0 and t1 to char.
3121
7c184d33
TT
31222020-10-09 Tom Tromey <tromey@adacore.com>
3123
3124 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3125
5c4258f4
TT
31262020-10-09 Tom Tromey <tromey@adacore.com>
3127
3128 * ada-lang.h (ada_encode): Return std::string.
3129 * ada-lang.c (ada_encode_1): Return std::string.
3130 (ada_encode): Likewise.
3131 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3132 Update.
3133 * ada-exp.y (block_lookup, write_var_or_type): Update.
3134
3d87245c
HD
31352020-10-09 Hannes Domani <ssbssa@yahoo.de>
3136
3137 PR exp/26714
3138 * printcmd.c (print_formatted): Handle void results as
3139 unformatted prints.
3140
bbb826f5
AB
31412020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 * arch/aarch32.c (aarch32_create_target_description): Release the
3144 target_desc_up as late as possible.
3145 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3146 * arch/amd64.c (amd64_create_target_description): Likewise.
3147 * arch/arc.c (arc_create_target_description): Return a
3148 target_desc_up, don't release it.
3149 * arch/arc.h (arc_create_target_description): Update declaration.
3150 (arc_lookup_target_description): Move target_desc_up into the
3151 cache, and return a borrowed pointer.
3152 * arch/arm.c (arm_create_target_description): Release the
3153 target_desc_up as late as possible.
3154 * arch/i386.c (i386_create_target_description): Likewise.
3155 * arch/riscv.h (riscv_create_target_description): Update
3156 declaration to match definition.
3157 * arch/tic6x.c (tic6x_create_target_description): Release the
3158 target_desc_up as late as possible.
3159
361cb219
AB
31602020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3161
3162 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3163 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3164
f5c4b229
JV
31652020-10-09 Jan Vrany <jan.vrany@labware.com>
3166
3167 * source.c (directory_command): Notify observers that "directories"
3168 parameter has changed.
3169
b2701685
TT
31702020-10-08 Tom Tromey <tom@tromey.com>
3171
3172 * cli/cli-cmds.c (print_disassembly): Style function name and
3173 addresses. Add _() wrappers.
3174
ada508b6
SV
31752020-10-08 Shahab Vahedi <shahab@synopsys.com>
3176
3177 * NEWS: Mention ARC support in GDBserver.
3178
51a948fd
AB
31792020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3180
3181 * arch/aarch32.c (aarch32_create_target_description): Release
3182 unique_ptr returned from allocate_target_description.
3183 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3184 * arch/amd64.c (amd64_create_target_description): Likewise.
3185 * arch/arc.c (arc_create_target_description): Likewise.
3186 * arch/arm.c (arm_create_target_description): Likewise.
3187 * arch/i386.c (i386_create_target_description): Likewise.
3188 * arch/riscv.c (riscv_create_target_description): Update return
3189 type. Handle allocate_target_description returning a unique_ptr.
3190 (riscv_lookup_target_description): Update to handle unique_ptr.
3191 * arch/tic6x.c (tic6x_create_target_description): Release
3192 unique_ptr returned from allocate_target_description.
3193 * features/microblaze-with-stack-protect.c: Regenerate.
3194 * features/microblaze.c: Regenerate.
3195 * features/mips-dsp-linux.c: Regenerate.
3196 * features/mips-linux.c: Regenerate.
3197 * features/mips64-dsp-linux.c: Regenerate.
3198 * features/mips64-linux.c: Regenerate.
3199 * features/nds32.c: Regenerate.
3200 * features/nios2.c: Regenerate.
3201 * features/or1k.c: Regenerate.
3202 * features/rs6000/powerpc-32.c: Regenerate.
3203 * features/rs6000/powerpc-32l.c: Regenerate.
3204 * features/rs6000/powerpc-403.c: Regenerate.
3205 * features/rs6000/powerpc-403gc.c: Regenerate.
3206 * features/rs6000/powerpc-405.c: Regenerate.
3207 * features/rs6000/powerpc-505.c: Regenerate.
3208 * features/rs6000/powerpc-601.c: Regenerate.
3209 * features/rs6000/powerpc-602.c: Regenerate.
3210 * features/rs6000/powerpc-603.c: Regenerate.
3211 * features/rs6000/powerpc-604.c: Regenerate.
3212 * features/rs6000/powerpc-64.c: Regenerate.
3213 * features/rs6000/powerpc-64l.c: Regenerate.
3214 * features/rs6000/powerpc-7400.c: Regenerate.
3215 * features/rs6000/powerpc-750.c: Regenerate.
3216 * features/rs6000/powerpc-860.c: Regenerate.
3217 * features/rs6000/powerpc-altivec32.c: Regenerate.
3218 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3219 * features/rs6000/powerpc-altivec64.c: Regenerate.
3220 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3221 * features/rs6000/powerpc-e500.c: Regenerate.
3222 * features/rs6000/powerpc-e500l.c: Regenerate.
3223 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3224 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3225 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3226 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3227 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3228 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3229 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3230 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3231 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3232 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3233 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3234 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3235 * features/rs6000/powerpc-vsx32.c: Regenerate.
3236 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3237 * features/rs6000/powerpc-vsx64.c: Regenerate.
3238 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3239 * features/rs6000/rs6000.c: Regenerate.
3240 * features/rx.c: Regenerate.
3241 * features/s390-gs-linux64.c: Regenerate.
3242 * features/s390-linux32.c: Regenerate.
3243 * features/s390-linux32v1.c: Regenerate.
3244 * features/s390-linux32v2.c: Regenerate.
3245 * features/s390-linux64.c: Regenerate.
3246 * features/s390-linux64v1.c: Regenerate.
3247 * features/s390-linux64v2.c: Regenerate.
3248 * features/s390-te-linux64.c: Regenerate.
3249 * features/s390-tevx-linux64.c: Regenerate.
3250 * features/s390-vx-linux64.c: Regenerate.
3251 * features/s390x-gs-linux64.c: Regenerate.
3252 * features/s390x-linux64.c: Regenerate.
3253 * features/s390x-linux64v1.c: Regenerate.
3254 * features/s390x-linux64v2.c: Regenerate.
3255 * features/s390x-te-linux64.c: Regenerate.
3256 * features/s390x-tevx-linux64.c: Regenerate.
3257 * features/s390x-vx-linux64.c: Regenerate.
3258 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3259 from allocate_target_description.
3260 * target-descriptions.c (allocate_target_description): Update
3261 return type.
3262 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3263 allocate_target_description.
3264
485c47e5
TT
32652020-10-07 Tom Tromey <tromey@adacore.com>
3266
3267 * unittests/search-memory-selftests.c: New file.
3268 * Makefile.in (SELFTESTS_SRCS): Add
3269 unittests/search-memory-selftests.c.
3270
3a135a91
TT
32712020-10-07 Tom Tromey <tromey@adacore.com>
3272
3273 PR gdb/16930:
3274 * findcmd.c (_initialize_mem_search): Mention that the range is
3275 inclusive.
3276
4a72de73
TT
32772020-10-07 Tom Tromey <tromey@adacore.com>
3278
3279 * target.h (simple_search_memory): Don't declare.
3280 * target.c (simple_search_memory): Move to gdbsupport.
3281 (default_search_memory): Update.
3282 * remote.c (remote_target::search_memory): Update.
3283
a038ffd8
SM
32842020-10-07 Simon Marchi <simon.marchi@efficios.com>
3285
3286 * Makefile.in (COMPILE): Add CXXFLAGS.
3287 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3288 (check-headers): Add CXXFLAGS.
3289
cc463201
AK
32902020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3291
3292 * arc-linux-tdep.h: New file.
3293 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3294 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3295 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3296 arc_linux_gregset, arc_linux_v2_regset,
3297 arc_linux_iterate_over_regset_sections,
3298 arc_linux_core_read_description): Implement.
3299 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3300 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3301 (arc_gdbarch_features_create): Add.
3302 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3303
e4bd363f
SV
33042020-10-07 Shahab Vahedi <shahab@synopsys.com>
3305
3306 * arch/arc.h: Rename "arc_gdbarch_features" to
3307 "arc_arch_features".
3308 * arc-tdep.h: Likewise.
3309 * arc-tdep.c: Likewise.
3310
b68bef99
TBA
33112020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3312
3313 * infcmd.c (attach_command): Remove the redundant call to
3314 `clear_proceed_status`.
3315
4641551a
KR
33162020-10-07 Kamil Rytarowski <n54@gmx.com>
3317
3318 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3319
91e5e8db
KR
33202020-10-07 Kamil Rytarowski <n54@gmx.com>
3321
3322 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3323 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3324 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3325
64c03bdb
SM
33262020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3327
3328 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3329 (_initialize_break_catch_sig): Don't allocate array.
3330
31a8f60f
AB
33312020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3332
3333 * symtab.c (find_pc_line): Return unmapped addresses when the
3334 requested address is also unmapped.
3335
9e6dbd8b
SM
33362020-10-05 Simon Marchi <simon.marchi@efficios.com>
3337
3338 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3339 tui/tui-out.h.
3340
a1d217e8
SM
33412020-10-05 Simon Marchi <simon.marchi@efficios.com>
3342
3343 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3344 type::is_vector instead of TYPE_VECTOR.
3345
7d144117
SM
33462020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3347
3348 * auto-load.c (auto_load_objfile_script_1): Don't use
3349 debugfile_holder as temporary variable when stripping drive
3350 letter.
3351
cd096ec8
HD
33522020-10-05 Hannes Domani <ssbssa@yahoo.de>
3353
3354 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3355 Add TYPE_CODE_COMPLEX.
3356 (amd64_windows_return_value): Fix types returned via XMM0.
3357
b58e7f72
AH
33582020-10-05 Alan Hayward <alan.hayward@arm.com>
3359
3360 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3361 AArch64/ARM maintainers.
3362
8d378f27
SM
33632020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * NEWS: Mention set/show debug event-loop.
3366
d5519913
TT
33672020-10-02 Tom Tromey <tromey@adacore.com>
3368
3369 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3370 REG_EXTENDED.
3371
18b67edc
SM
33722020-10-02 Simon Marchi <simon.marchi@efficios.com>
3373
3374 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3375 * procfs.c (procfs_inferior_created): Remove.
3376 (_initialize_procfs): Don't register procfs_inferior_created.
3377
6b01403b
SM
33782020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3379
3380 * async-event.c (invoke_async_signal_handlers): Add debug
3381 print.
3382 (check_async_event_handlers): Likewise.
3383 * event-top.c (show_debug_event_loop): New function.
3384 (_initialize_event_top): Register "set debug event-loop"
3385 setting.
3386
ba988419
SM
33872020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3388
3389 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3390 * debug.h: Remove.
3391 * infrun.c: Include gdbsupport/common-debug.h.
3392 * linux-nat.c: Likewise.
3393
db20ebdf
SM
33942020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3395
3396 * async-event.h (create_async_signal_handler): Add name
3397 parameter.
3398 (create_async_event_handler): Likewise.
3399 * async-event.c (struct async_signal_handler) <name>: New field.
3400 (struct async_event_handler) <name>: New field.
3401 (create_async_signal_handler): Assign name.
3402 (create_async_event_handler): Assign name.
3403 * event-top.c (async_init_signals): Pass name when creating
3404 handler.
3405 * infrun.c (_initialize_infrun): Likewise.
3406 * record-btrace.c (record_btrace_push_target): Likewise.
3407 * record-full.c (record_full_open): Likewise.
3408 * remote-notif.c (remote_notif_state_allocate): Likewise.
3409 * remote.c (remote_target::open_1): Likewise.
3410 * tui/tui-win.c (tui_initialize_win): Likewise.
3411
2554f6f5
SM
34122020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3413
3414 * async-event.c (initialize_async_signal_handlers): Pass name to
3415 add_file_handler
3416 * event-top.c (ui_register_input_event_handler): Likewise.
3417 * linux-nat.c (linux_nat_target::async): Likewise.
3418 * run-on-main-thread.c (_initialize_run_on_main_thread):
3419 Likewise
3420 * ser-base.c (reschedule): Likewise.
3421 (ser_base_async): Likewise.
3422 * tui/tui-io.c: Likewise.
3423 * top.h (struct ui) <num>: New field.
3424 * top.c (highest_ui_num): New variable.
3425 (ui::ui): Initialize num.
3426
a7aba266
SM
34272020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3428
3429 * observable.h <inferior_created>: Remove parameters. Update all
3430 listeners.
3431 * inferior.h (post_create_inferior): Remove target parameter.
3432 Update all callers.
3433
048fde1e 34342020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3435
3436 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3437 and DW_MACRO_undef_strx.
3438 (dwarf_decode_macros): Likewise
3439 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3440 which is the value of DW_AT_str_offsets_base.
3441 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3442 str_offsets_base.
3443
064280be
KR
34442020-10-01 Kamil Rytarowski <n54@gmx.com>
3445
3446 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3447
6ff33035
KR
34482020-10-01 Kamil Rytarowski <n54@gmx.com>
3449
3450 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3451 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3452
1eb6eb79
KR
34532020-10-01 Kamil Rytarowski <n54@gmx.com>
3454
3455 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3456
95eb9e54
TV
34572020-09-30 Tom de Vries <tdevries@suse.de>
3458
3459 PR symtab/26683
3460 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3461
cae21f8e
TT
34622020-09-30 Tom Tromey <tromey@adacore.com>
3463
3464 * dwarf2/read.c (handle_variant): Use constant_value.
3465
529908cb
TT
34662020-09-29 Tom Tromey <tom@tromey.com>
3467
3468 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3469 (read_file_scope, dwarf2_get_pc_bounds)
3470 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3471 (read_structure_type, handle_struct_member_die)
3472 (read_enumeration_type, read_array_type, read_set_type)
3473 (read_tag_pointer_type, read_tag_reference_type)
3474 (read_subroutine_type, read_base_type, read_subrange_type)
3475 (read_full_die_1, partial_die_info::read)
3476 (partial_die_info::read, by, new_symbol)
3477 (dwarf2_const_value_data, dwarf2_const_value_attr)
3478 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3479 (prepare_one_comp_unit): Update.
3480 * dwarf2/attribute.h (DW_UNSND): Remove.
3481
c45bc3f8
TT
34822020-09-29 Tom Tromey <tom@tromey.com>
3483
3484 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3485 (read_subroutine_type, partial_die_info::read)
3486 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3487 (dwarf2_add_member_fn): Update.
3488 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3489 * dwarf2/attribute.c (attribute::as_boolean): New method.
3490
23dca5c3
TT
34912020-09-29 Tom Tromey <tom@tromey.com>
3492
3493 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3494 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3495 method.
3496 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3497
52c14d11
TT
34982020-09-29 Tom Tromey <tom@tromey.com>
3499
3500 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3501 the attribute's form.
3502
e8e5c158
TT
35032020-09-29 Tom Tromey <tom@tromey.com>
3504
3505 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3506 (dwarf2_add_member_fn): Update.
3507 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3508 * dwarf2/attribute.c (attribute::defaulted): New method, from
3509 is_valid_DW_AT_defaulted.
3510
d4df075e
TT
35112020-09-29 Tom Tromey <tom@tromey.com>
3512
3513 * dwarf2/read.c (dw2_get_file_names_reader)
3514 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3515 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3516 (dwarf2_symbol_mark_computed): Use as_unsigned.
3517 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3518 method.
3519 <form_is_section_offset>: Update comment.
3520
bf23a268
TT
35212020-09-29 Tom Tromey <tom@tromey.com>
3522
3523 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3524 dwarf2_default_access_attribute. Look up attribute.
3525 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3526 Update.
3527
7a5f294d
TT
35282020-09-29 Tom Tromey <tom@tromey.com>
3529
3530 * dwarf2/read.c (skip_one_die): Update.
3531 (read_full_die_1): Change how reprocessing is done.
3532 (partial_die_info::read): Update.
3533 (read_attribute_value): Remove need_reprocess parameter.
3534 (read_attribute): Likewise.
3535 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3536 New method.
3537
36d378cf
TT
35382020-09-29 Tom Tromey <tom@tromey.com>
3539
3540 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3541 (dwarf2_const_value_attr, dump_die_shallow)
3542 (dwarf2_fetch_constant_bytes): Update.
3543 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3544 comment.
3545 <set_address>: New method.
3546 (DW_ADDR): Remove.
3547 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3548 (attribute::as_string, attribute::as_address): Add assert.
3549
fe56917a
TT
35502020-09-29 Tom Tromey <tom@tromey.com>
3551
3552 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3553 (read_attribute_reprocess, read_attribute_value): Update.
3554 (read_attribute): Clear requires_reprocessing.
3555 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3556 form_requires_reprocessing>: New methods.
3557 <string_init>: Clear requires_reprocessing.
3558 <set_unsigned_reprocess>: New method.
3559 <name>: Shrink by one bit.
3560 <requires_reprocessing>: New member.
3561 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3562 method.
3563
414ad644
TT
35642020-09-29 Tom Tromey <tom@tromey.com>
3565
3566 * dwarf2/read.c (read_attribute_value): Update.
3567 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3568 set_unsigned>: New methods.
3569 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3570
1bc397c5
TT
35712020-09-29 Tom Tromey <tom@tromey.com>
3572
3573 * dwarf2/read.c (get_alignment, read_array_order)
3574 (read_attribute_value, dwarf2_const_value_attr)
3575 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3576 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3577 New methods.
3578 (DW_SND): Remove.
3579
630ed6b9
TT
35802020-09-29 Tom Tromey <tom@tromey.com>
3581
3582 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3583 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3584 Update.
3585 * dwarf2/attribute.h (struct attribute) <as_signature,
3586 set_signature>: New methods.
3587 (DW_SIGNATURE): Remove.
3588
9d2246fc
TT
35892020-09-29 Tom Tromey <tom@tromey.com>
3590
3591 * dwarf2/read.c (read_call_site_scope)
3592 (handle_data_member_location, dwarf2_add_member_fn)
3593 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3594 (partial_die_info::read, read_attribute_value)
3595 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3596 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3597 (dwarf2_symbol_mark_computed): Update.
3598 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3599 methods.
3600 (DW_BLOCK): Remove.
3601 * dwarf2/attribute.c (attribute::form_is_block): Add
3602 DW_FORM_data16.
3603
c6481205
TT
36042020-09-29 Tom Tromey <tom@tromey.com>
3605
3606 * dwarf2/read.c (read_cutu_die_from_dwo)
3607 (read_attribute_reprocess, read_attribute_value, read_attribute)
3608 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3609 (dwarf2_fetch_constant_bytes): Update.
3610 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3611 <set_string_noncanonical, set_string_canonical>: New methods.
3612 <string_is_canonical>: Update comment.
3613 <canonical_string_p>: Add assert.
3614 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3615 * dwarf2/attribute.c (attribute::form_is_string): New method.
3616 (attribute::string): Use it.
3617
3b64bf15
TT
36182020-09-29 Tom Tromey <tom@tromey.com>
3619
3620 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3621 (dump_die_shallow): Use canonical_string_p.
3622 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3623 method.
3624
2c830f54
TT
36252020-09-29 Tom Tromey <tom@tromey.com>
3626
3627 * dwarf2/read.c (partial_die_info::read)
3628 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3629 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3630 attribute::as_string.
3631
6c412691
TT
36322020-09-29 Tom Tromey <tom@tromey.com>
3633
3634 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3635 DW_ADDR.
3636 (attribute::string): Don't use DW_STRING.
3637 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3638 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3639
95f982e5
TT
36402020-09-29 Tom Tromey <tom@tromey.com>
3641
3642 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3643 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3644 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3645 * dwarf2/attribute.h (struct attribute): Rename methods.
3646 * dwarf2/attribute.c (attribute::as_address): Rename from
3647 value_as_address.
3648 (attribute::as_string): Rename from value_as_string.
3649
f800b00e
TT
36502020-09-29 Tom Tromey <tom@tromey.com>
3651
3652 * dwarf2/read.c (partial_die_info::read) <case
3653 DW_AT_linkage_name>: Use value_as_string.
3654 (dwarf2_string_attr): Use value_as_string.
3655 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3656 method.
3657 * dwarf2/attribute.c (attribute::value_as_string): New method.
3658
de38d64a
PA
36592020-09-29 Pedro Alves <pedro@palves.net>
3660
3661 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3662 defined before using '#pragma GCC diagnostic' instead of checking
3663 __clang__.
3664
9aed480c
TT
36652020-09-28 Tom Tromey <tom@tromey.com>
3666
3667 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3668 (handle_signal_stop): Update.
3669 * procfs.c (procfs_target::insert_watchpoint): Update.
3670 * target.h (target_have_steppable_watchpoint): Now a function.
3671
8a3ecb79
TT
36722020-09-28 Tom Tromey <tom@tromey.com>
3673
3674 * infrun.c (set_schedlock_func): Update.
3675 * target.h (target_can_lock_scheduler): Now a function.
3676
55f6301a
TT
36772020-09-28 Tom Tromey <tom@tromey.com>
3678
3679 * inferior.h (class inferior) <has_execution>: Update.
3680 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3681 * valops.c (find_function_in_inferior)
3682 (value_allocate_space_in_inferior): Update.
3683 * top.c (kill_or_detach): Update.
3684 * target.c (target_preopen, set_target_permissions): Update.
3685 (target_has_execution_current): Remove.
3686 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3687 Update.
3688 * solib.c (update_solib_list, reload_shared_libraries): Update.
3689 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3690 * solib-dsbt.c (enable_break): Update.
3691 * score-tdep.c (score7_fetch_inst): Update.
3692 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3693 Update.
3694 * remote.c (remote_target::start_remote)
3695 (remote_target::remote_check_symbols, remote_target::open_1)
3696 (remote_target::remote_detach_1, remote_target::verify_memory)
3697 (remote_target::xfer_partial, remote_target::read_description)
3698 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3699 * record-full.c (record_full_open_1): Update.
3700 * record-btrace.c (record_btrace_target_open): Update.
3701 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3702 (value_nsstring): Update.
3703 * linux-thread-db.c (add_thread_db_info)
3704 (thread_db_find_new_threads_silently, check_thread_db_callback)
3705 (try_thread_db_load_1, record_thread): Update.
3706 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3707 Update.
3708 * linux-fork.c (checkpoint_command): Update.
3709 * infrun.c (set_non_stop, set_observer_mode)
3710 (check_multi_target_resumption, for_each_just_stopped_thread)
3711 (maybe_remove_breakpoints, normal_stop)
3712 (class infcall_suspend_state): Update.
3713 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3714 (info_program_command, attach_command): Update.
3715 * infcall.c (call_function_by_hand_dummy): Update.
3716 * inf-loop.c (inferior_event_handler): Update.
3717 * gcore.c (gcore_command, derive_heap_segment): Update.
3718 * exec.c (exec_file_command): Update.
3719 * eval.c (evaluate_subexp): Update.
3720 * compile/compile.c (compile_to_object): Update.
3721 * cli/cli-dump.c (restore_command): Update.
3722 * breakpoint.c (update_watchpoint)
3723 (update_inserted_breakpoint_locations)
3724 (insert_breakpoint_locations, get_bpstat_thread): Update.
3725 * target.h (target_has_execution): Remove macro.
3726 (target_has_execution_current): Don't declare.
3727 (target_has_execution): Rename from target_has_execution_1. Add
3728 argument default.
3729
05374cfd
TT
37302020-09-28 Tom Tromey <tom@tromey.com>
3731
3732 * mi/mi-main.c (exec_reverse_continue)
3733 (mi_cmd_list_target_features): Update.
3734 * infrun.c (set_exec_direction_func): Update.
3735 * target.c (default_execution_direction): Update.
3736 * reverse.c (exec_reverse_once): Update.
3737 * target.h (target_can_execute_reverse): Now a function.
3738
9dccd06e
TT
37392020-09-28 Tom Tromey <tom@tromey.com>
3740
3741 * tui/tui-regs.c (tui_get_register)
3742 (tui_data_window::show_registers): Update.
3743 * thread.c (scoped_restore_current_thread::restore)
3744 (scoped_restore_current_thread::scoped_restore_current_thread):
3745 Update.
3746 * regcache-dump.c (regcache_print): Update.
3747 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3748 Update.
3749 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3750 * mep-tdep.c (current_me_module, current_options): Update.
3751 * linux-thread-db.c (thread_db_load): Update.
3752 * infcmd.c (registers_info, info_vector_command)
3753 (info_float_command): Update.
3754 * ia64-tdep.c (ia64_frame_prev_register)
3755 (ia64_sigtramp_frame_prev_register): Update.
3756 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3757 * gcore.c (derive_stack_segment): Update.
3758 * frame.c (get_current_frame, has_stack_frames): Update.
3759 * findvar.c (language_defn::read_var_value): Update.
3760 * arm-tdep.c (arm_pc_is_thumb): Update.
3761 * target.c (target_has_registers): Rename from
3762 target_has_registers_1.
3763 * target.h (target_has_registers): Remove macro.
3764 (target_has_registers): Rename from target_has_registers_1.
3765
841de120
TT
37662020-09-28 Tom Tromey <tom@tromey.com>
3767
3768 * windows-tdep.c (tlb_make_value): Update.
3769 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3770 * thread.c (scoped_restore_current_thread::restore)
3771 (scoped_restore_current_thread::scoped_restore_current_thread)
3772 (thread_command): Update.
3773 * stack.c (backtrace_command_1, frame_apply_level_command)
3774 (frame_apply_all_command, frame_apply_command): Update.
3775 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3776 Update.
3777 * gcore.c (derive_stack_segment): Update.
3778 * frame.c (get_current_frame, has_stack_frames): Update.
3779 * auxv.c (info_auxv_command): Update.
3780 * ada-tasks.c (ada_build_task_list): Update.
3781 * target.c (target_has_stack): Rename from target_has_stack_1.
3782 * target.h (target_has_stack): Remove macro.
3783 (target_has_stack): Rename from target_has_stack_1.
3784
a739972c
TT
37852020-09-28 Tom Tromey <tom@tromey.com>
3786
3787 * target.c (target_has_memory): Rename from target_has_memory_1.
3788 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3789 * thread.c (scoped_restore_current_thread::restore)
3790 (scoped_restore_current_thread::scoped_restore_current_thread):
3791 Update.
3792 * frame.c (get_current_frame, has_stack_frames): Update.
3793 * target.h (target_has_memory): Remove macro.
3794 (target_has_memory): Rename from target_has_memory_1.
3795
5b8a4776
TT
37962020-09-28 Tom Tromey <tom@tromey.com>
3797
3798 * target.c (target_has_all_memory_1): Remove.
3799 * target.h (target_has_all_memory): Remove define.
3800 (target_has_all_memory_1): Don't declare.
3801
bd356ec6
SM
38022020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3803
3804 * ser-base.c: Adjust comments formatting.
3805
2c72d5e5
TT
38062020-09-27 Tom Tromey <tom@tromey.com>
3807
3808 PR tui/25342:
3809 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3810
35a98237
TT
38112020-09-27 Tom Tromey <tom@tromey.com>
3812
3813 PR tui/25342:
3814 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3815
9e820dec
TT
38162020-09-27 Tom Tromey <tom@tromey.com>
3817
3818 * unittests/tui-selftests.c: Update.
3819 * tui/tui-winsource.h (struct tui_source_window_base)
3820 <extra_margin, show_line_number, refresh_pad>: New methods.
3821 <m_max_length, m_pad>: New members.
3822 (tui_copy_source_line): Update.
3823 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3824 first_col, line_width, ndigits parameters. Add length.
3825 (tui_source_window_base::show_source_line): Write to pad. Line
3826 number now 0-based.
3827 (tui_source_window_base::refresh_pad): New method.
3828 (tui_source_window_base::show_source_content): Write to pad. Call
3829 refresh_pad.
3830 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3831 not refill.
3832 (tui_source_window_base::update_exec_info): Call
3833 show_line_number.
3834 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3835 method.
3836 <m_digits>: New member.
3837 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3838 and m_max_length.
3839 (tui_source_window::show_line_number): New method.
3840 * tui/tui-io.h (tui_puts): Fix comment.
3841 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3842 m_max_length.
3843
c15c15c8
TT
38442020-09-27 Tom Tromey <tom@tromey.com>
3845
3846 * tui/tui-winsource.c
3847 (tui_source_window_base::set_is_exec_point_at): Don't call
3848 show_source_line.
3849
149830c1
TT
38502020-09-27 Tom Tromey <tom@tromey.com>
3851
3852 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3853 method.
3854 <erase>: Update.
3855 <cursor_x, cursor_y>: Remove.
3856 <m_inner_window>: New member.
3857 (tui_py_window::rerender): Create inner window.
3858 (tui_py_window::output): Write to inner window.
3859
8f9929bb
GR
38602020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3861
3862 PR python/26586
3863 * cli/cli-script.c (execute_control_commands): don't set
3864 instream to nullptr here as this breaks the from_tty argument
3865 to gdb.execute in Python.
3866 (execute_user_command): set instream to nullptr here instead.
3867
956bdb59
SM
38682020-09-25 Simon Marchi <simon.marchi@efficios.com>
3869
3870 * infrun.h (infrun_debug_printf): Fix formatting.
3871 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3872
3b93626b
SJ
38732020-09-25 Saagar Jha <saagar@saagarjha.com>
3874
3875 * compile/compile-object-load.h (struct munmap_list): Add
3876 explicitly-defined move constructor.
3877
b551a89f
TT
38782020-09-24 Tom Tromey <tromey@adacore.com>
3879
3880 PR tui/26638:
3881 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3882 method.
3883 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3884 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3885 (tui_prev_win): Rewrite.
3886
99bb393f
HD
38872020-09-23 Hannes Domani <ssbssa@yahoo.de>
3888
3889 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3890 in WOW64 processes as SIGINT.
3891 * nat/windows-nat.h: Make wow64_process a shared variable.
3892 * windows-nat.c: Remove static wow64_process variable.
3893
20a5fcbd
TT
38942020-09-23 Tom Tromey <tom@tromey.com>
3895
3896 PR symtab/25470:
3897 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3898 offset and bit size.
3899 * printcmd.c (print_scalar_formatted): Handle zero-length
3900 integer.
3901 (print_scalar_formatted): Use bit_size_differs_p.
3902 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3903 constant.
3904 (union type_specific): <int_stuff>: New member.
3905 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3906 methods.
3907 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3908 TYPE_SPECIFIC_FIELD.
3909 (recursive_dump_type, copy_type_recursive): Update.
3910 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3911 DW_AT_data_bit_offset.
3912
bac51ab7
TT
39132020-09-23 Tom Tromey <tom@tromey.com>
3914
3915 * utils.h (class gdb_argv): Add move operators.
3916 <append>: New methods.
3917 * compile/compile.c (build_argc_argv): Remove.
3918 (compile_args_argc): Remove.
3919 (compile_args_argv): Change type.
3920 (set_compile_args): Simplify.
3921 (append_args): Remove.
3922 (filter_args): Remove argcp parameter.
3923 (get_args): Return gdb_argv. Simplify.
3924 (compile_to_object): Update.
3925
92677124
TT
39262020-09-23 Tom Tromey <tom@tromey.com>
3927
3928 * compile/compile-object-run.c (do_module_cleanup)
3929 <~do_module_cleanup> :Remove.
3930 (do_module_cleanup): Update.
3931 * compile/compile-object-load.h (struct munmap_list): Add move
3932 assignment operator.
3933 <source_file>: Now a std::string.
3934 <munmap_list>: Rename. No longer a pointer.
3935 * compile/compile-object-load.c (struct setup_sections_data): Add
3936 constructor.
3937 <setup_one_section>: Declare.
3938 <munmap_list>: Move earlier.
3939 <m_bfd>: New member.
3940 <m_last_size, m_last_section_first, m_last_prot,
3941 m_last_max_alignment>: Rename, add initializers where needed.
3942 (setup_sections_data::setup_one_section): Rename from
3943 setup_sections. Update.
3944 (compile_object_load): Update. Don't use bfd_map_over_sections.
3945
e616f60a
TT
39462020-09-23 Tom Tromey <tom@tromey.com>
3947
3948 * compile/compile-object-run.c (struct do_module_cleanup): Add
3949 parameters to constructor. Update destructor.
3950 <source_file, scope, scope_data, out_value_type, out_value_addr,
3951 munmap_list_head, objfile_name_string>: Remove.
3952 <module>: New member.
3953 (do_module_cleanup): Update.
3954 (compile_object_run): Update.
3955
e947a848
TT
39562020-09-23 Tom Tromey <tom@tromey.com>
3957
3958 * compile/compile.c (eval_compile_command): Update.
3959 * compile/compile-object-run.h (compile_object_run): Take a
3960 compile_module_up.
3961 * compile/compile-object-run.c (compile_object_run): Take a
3962 compile_module_up.
3963 * compile/compile-object-load.h (struct compile_module): Add
3964 constructor, destructor.
3965 (compile_module_up): New typedef.
3966 (compile_object_load): Return compile_object_up.
3967 * compile/compile-object-load.c (compile_object_load): Return
3968 compile_module_up.
3969
0dbf6ee6
TT
39702020-09-23 Tom Tromey <tom@tromey.com>
3971
3972 * compile/compile-object-run.c (struct do_module_cleanup): Add
3973 constructor, destructor.
3974 <objfile_name_string>: Don't use struct hack.
3975 (do_module_cleanup): Use delete.
3976 (compile_object_run): Use new.
3977
ebe824f5
TT
39782020-09-23 Tom Tromey <tom@tromey.com>
3979
3980 * compile/compile-cplus-types.c
3981 (compile_cplus_convert_struct_or_union): Use std::vector.
3982 (compile_cplus_convert_func): Likewise.
3983 * compile/compile-c-types.c (convert_func): Use std::vector.
3984
5dd918d9
TT
39852020-09-21 Tom Tromey <tromey@adacore.com>
3986
3987 * sparc-tdep.c (sparc32_skip_prologue): Use
3988 skip_prologue_using_sal.
3989
5486c517
TT
39902020-09-19 Tom Tromey <tom@tromey.com>
3991
3992 * symfile.c (add_section_size_callback): Remove.
3993 (load_one_section): Rename from load_section_callback. Change
3994 parameters.
3995 (generic_load): Use foreach.
3996
8a6bb1d1
TT
39972020-09-19 Tom Tromey <tom@tromey.com>
3998
3999 * exec.c (add_to_section_table): Remove.
4000 (build_section_table): Use foreach.
4001
08f93a1a
TT
40022020-09-19 Tom Tromey <tom@tromey.com>
4003
4004 * elfread.c (elf_locate_sections): Change parameters.
4005 (elf_symfile_read): Use foreach.
4006
03cd72b8
TT
40072020-09-19 Tom Tromey <tom@tromey.com>
4008
4009 * cli/cli-dump.c (struct callback_data): Remove.
4010 (restore_one_section): Rename from restore_section_callback.
4011 Change parameters.
4012 (restore_binary_file): Change parameters.
4013 (restore_command): Use foreach.
4014
f4f2b85f
TT
40152020-09-19 Tom Tromey <tom@tromey.com>
4016
4017 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4018 (gcore_copy_callback): Likewise.
4019 (gcore_memory_sections): Use foreach.
4020
b35c1d1c
TT
40212020-09-19 Tom Tromey <tom@tromey.com>
4022
4023 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4024 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4025 parameters.
4026 (generic_elf_osabi_sniffer): Use foreach.
4027 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4028 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4029
5bb6e9dd
TT
40302020-09-19 Tom Tromey <tom@tromey.com>
4031
4032 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4033 (dwarf2_get_dwz_file): Use foreach.
4034 (dwarf2_locate_dwo_sections): Change parameters.
4035 (open_and_init_dwo_file): Use foreach.
4036 (dwarf2_locate_common_dwp_sections): Change parameters.
4037 (open_and_init_dwp_file): Use foreach.
4038
ad7277da
TT
40392020-09-19 Tom Tromey <tom@tromey.com>
4040
4041 * symfile.h: (find_lowest_section): Don't declare.
4042 * symfile.c (find_lowest_section): Now static. Change
4043 parameters.
4044 (struct place_section_arg): Remove.
4045 (place_section): Change parameters.
4046 (addr_info_make_relative): Use foreach.
4047 (symfile_dummy_outputs): Remove.
4048 (default_symfile_relocate): Use foreach.
4049
cb814f2e
TT
40502020-09-19 Tom Tromey <tom@tromey.com>
4051
4052 * objfiles.c (add_to_objfile_sections): Rename from
4053 add_to_objfile_sections_full.
4054 (add_to_objfile_sections): Remove.
4055 (build_objfile_section_table): Use foreach.
4056
3cabfd26
TT
40572020-09-19 Tom Tromey <tom@tromey.com>
4058
4059 * stap-probe.c (get_stap_base_address_1): Remove.
4060 (get_stap_base_address): Use foreach.
4061
1ce51eb5
TT
40622020-09-19 Tom Tromey <tom@tromey.com>
4063
4064 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4065 parameters.
4066 (gdb_bfd_close_or_warn): Use foreach.
4067
a190fabb
TT
40682020-09-19 Tom Tromey <tom@tromey.com>
4069
4070 * corelow.c (add_to_thread_list): Change parameters.
4071 (core_target_open): Use foreach.
4072
cafb0d81
TT
40732020-09-19 Tom Tromey <tom@tromey.com>
4074
4075 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4076 existing function.
4077
c8d5abea
AB
40782020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4079
4080 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4081 for arrays.
4082
6d816919
AB
40832020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4084
4085 * eval.c: Remove 'f-lang.h' include.
4086 (value_f90_subarray): Moved to f-lang.c.
4087 (eval_call): Renamed to...
4088 (evaluate_subexp_do_call): ...this, is no longer static, header
4089 comment moved into header file.
4090 (evaluate_funcall): Update call to eval_call.
4091 (skip_undetermined_arglist): Moved to f-lang.c.
4092 (fortran_value_subarray): Likewise.
4093 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4094 moved to evaluate_subexp_f.
4095 (calc_f77_array_dims): Moved to f-lang.c
4096 * expprint.c (print_subexp_funcall): New function.
4097 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4098 moved to print_subexp_f, OP_FUNCALL uses new function.
4099 (dump_subexp_body_funcall): New function.
4100 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4101 moved to dump_subexp_f, OP_FUNCALL uses new function.
4102 * expression.h (evaluate_subexp_do_call): Declare.
4103 * f-lang.c (value_f90_subarray): Moved from eval.c.
4104 (skip_undetermined_arglist): Likewise.
4105 (calc_f77_array_dims): Likewise.
4106 (fortran_value_subarray): Likewise.
4107 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4108 (operator_length_f): Likewise.
4109 (print_subexp_f): Likewise.
4110 (dump_subexp_body_f): Likewise.
4111 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4112 declaration of this operation to here.
4113 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4114 support moved to operator_length_f.
4115 * parser-defs.h (dump_subexp_body_funcall): Declare.
4116 (print_subexp_funcall): Declare.
4117 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4118 fortran-operator.def.
4119
8c37706a
AB
41202020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4121
4122 * eval.c (fortran_value_subarray): New function, content is taken
4123 from...
4124 (evaluate_subexp_standard): ...here, in two places. Now arrays
4125 and strings both call the new function.
4126 (calc_f77_array_dims): Add header comment, handle strings.
4127
14f9473c
VC
41282020-09-18 Victor Collod <vcollod@nvidia.com>
4129
4130 PR gdb/26635
4131 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4132 (i386_analyze_prologue): Call i386_skip_endbr.
4133
b60cea74
TT
41342020-09-18 Tom Tromey <tromey@adacore.com>
4135
4136 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4137 (windows_nat_target::wait): Update.
4138 * target/wait.h (enum target_wait_flag): New. Use
4139 DEF_ENUM_FLAGS_TYPE.
4140 * target/target.h (target_wait): Change type of options.
4141 * target.h (target_options_to_string, default_target_wait):
4142 Update.
4143 (struct target_ops) <wait>: Change type of options.
4144 * target.c (target_wait, default_target_wait, do_option): Change
4145 type of "options".
4146 (target_options_to_string): Likewise.
4147 * target-delegates.c: Rebuild.
4148 * target-debug.h (target_debug_print_target_wait_flags): Rename
4149 from target_debug_print_options.
4150 * sol-thread.c (class sol_thread_target) <wait>: Update.
4151 (sol_thread_target::wait): Update.
4152 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4153 (rs6000_nat_target::wait): Update.
4154 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4155 Update.
4156 (remote_target::wait_ns, remote_target::wait_as): Change type of
4157 "options".
4158 (remote_target::wait): Update.
4159 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4160 (gdbsim_target::wait): Update.
4161 * record-full.c (class record_full_base_target) <wait>: Update.
4162 (record_full_wait_1): Change type of "options".
4163 (record_full_base_target::wait): Update.
4164 * record-btrace.c (class record_btrace_target) <wait>: Update.
4165 (record_btrace_target::wait): Update.
4166 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4167 Update.
4168 (ravenscar_thread_target::wait): Update.
4169 * procfs.c (class procfs_target) <wait>: Update.
4170 (procfs_target::wait): Update.
4171 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4172 * obsd-nat.c (obsd_nat_target::wait): Update.
4173 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4174 (nto_procfs_target::wait): Update.
4175 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4176 * nbsd-nat.c (nbsd_wait): Change type of "options".
4177 (nbsd_nat_target::wait): Update.
4178 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4179 (thread_db_target::wait): Update.
4180 * linux-nat.h (class linux_nat_target) <wait>: Update.
4181 * linux-nat.c (linux_nat_target::wait): Update.
4182 (linux_nat_wait_1): Update.
4183 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4184 "options".
4185 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4186 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4187 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4188 (go32_nat_target::wait): Update.
4189 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4190 * gnu-nat.c (gnu_nat_target::wait): Update.
4191 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4192 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4193 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4194 * darwin-nat.c (darwin_nat_target::wait): Update.
4195 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4196 (bsd_uthread_target::wait): Update.
4197 * aix-thread.c (class aix_thread_target) <wait>: Update.
4198 (aix_thread_target::wait): Update.
4199
0295dde6
AB
42002020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4201
4202 * compile/compile-object-run.c (create_copied_type_recursive): New
4203 function.
4204 (compile_object_run): Use new function.
4205
d3483b43
JT
42062020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4207
4208 * NEWS: Mention x86_64 Cygwin core file support.
4209
e7d612ad
JT
42102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4211
4212 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4213 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4214
aff9d387
JT
42152020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4216
62a5151b
JT
4217 * windows-tdep.h: Add prototypes.
4218 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4219 (i386_windows_core_pid_to_str): Move and rename ...
4220 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4221 (windows_core_pid_to_str): ... and here.
4222 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4223
42242020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4225 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4226 (amd64_windows_init_abi_common): ... and register.
4227
7d155da3
JT
42282020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4229
4230 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4231 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4232
e8ef12b9
PA
42332020-09-18 Pedro Alves <pedro@palves.net>
4234
4235 PR gdb/26631
4236 * thread.c (thread_find_command): Switch inferior before calling
4237 target methods.
4238
c1e1314d
TT
42392020-09-17 Tom Tromey <tromey@adacore.com>
4240
4241 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4242 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4243 (tdesc_arch_data_up): New typedef.
4244 (tdesc_use_registers, tdesc_data_alloc): Update.
4245 (tdesc_data_cleanup): Don't declare.
4246 * target-descriptions.c (tdesc_data_alloc): Return a
4247 tdesc_arch_data_up.
4248 (tdesc_arch_data_deleter::operator()): Rename from
4249 tdesc_data_cleanup. Change argument type.
4250 (tdesc_use_registers): Change early_data to an rvalue reference.
4251 (tdesc_use_registers): Don't use delete.
4252 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4253 * s390-tdep.c (s390_gdbarch_init): Update.
4254 * rx-tdep.c (rx_gdbarch_init): Update.
4255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4256 * riscv-tdep.c (riscv_gdbarch_init): Update.
4257 * or1k-tdep.c (or1k_gdbarch_init): Update.
4258 * nios2-tdep.c (nios2_gdbarch_init): Update.
4259 * nds32-tdep.c (nds32_gdbarch_init): Update.
4260 * mips-tdep.c (mips_gdbarch_init): Update.
4261 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4262 * m68k-tdep.c (m68k_gdbarch_init): Update.
4263 * i386-tdep.c (i386_gdbarch_init): Update.
4264 * arm-tdep.c (arm_gdbarch_init): Update.
4265 * arc-tdep.c (arc_tdesc_init): Update.
4266 (arc_gdbarch_init): Update.
4267 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4268
0363df3d
HD
42692020-09-17 Hannes Domani <ssbssa@yahoo.de>
4270
4271 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4272 for WOW64 processes.
4273
280a9412
TT
42742020-09-17 Tom Tromey <tom@tromey.com>
4275
4276 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4277
6108fd18
TT
42782020-09-17 Tom Tromey <tom@tromey.com>
4279
4280 * value.c (preserve_values): Update.
4281 * python/py-type.c (save_objfile_types): Update.
4282 * guile/scm-type.c (save_objfile_types): Update.
4283 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4284 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4285 * compile/compile-object-run.c (compile_object_run): Update.
4286
fa9b1164
TT
42872020-09-17 Tom Tromey <tom@tromey.com>
4288
4289 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4290 Remove.
4291 <m_table>: Now htab_up.
4292 * typeprint.c (typedef_hash_table::recursively_update)
4293 (typedef_hash_table::add_template_parameters)
4294 (typedef_hash_table::typedef_hash_table): Update.
4295 (typedef_hash_table::~typedef_hash_table): Remove.
4296 (typedef_hash_table::typedef_hash_table)
4297 (typedef_hash_table::find_global_typedef)
4298 (typedef_hash_table::find_typedef): Update.
4299
eb53f105
TT
43002020-09-17 Tom Tromey <tom@tromey.com>
4301
4302 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4303
7a8a5d47
TT
43042020-09-17 Tom Tromey <tom@tromey.com>
4305
4306 * linespec.c (class decode_compound_collector)
4307 <~decode_compound_collector>: Remove.
4308 <m_unique_syms>: Now htab_up.
4309 (decode_compound_collector::operator ()): Update.
4310 (class symtab_collector) <~symtab_collector>: Remove.
4311 <m_symtab_table>: Now htab_up.
4312 (symtab_collector::operator ()): Update.
4313
99032cfc
TT
43142020-09-17 Tom Tromey <tom@tromey.com>
4315
4316 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4317 (filename_seen_cache::clear): Update.
4318 (~filename_seen_cache): Remove.
4319 (filename_seen_cache::seen): Update.
4320 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4321 htab_up.
4322 <~filename_seen_cache>: Remove.
4323 <traverse>: Update.
4324
32580f6d
TT
43252020-09-17 Tom Tromey <tom@tromey.com>
4326
4327 * completer.c (completion_tracker::discard_completions)
4328 (completion_tracker::~completion_tracker)
4329 (completion_tracker::maybe_add_completion)
4330 (completion_tracker::remove_completion)
4331 (completion_tracker::recompute_lowest_common_denominator)
4332 (completion_tracker::build_completion_result): Update.
4333 * completer.h (class completion_tracker) <have_completions>:
4334 Update.
4335 <m_entries_hash>: Now htab_up.
4336
c1fb9836
TT
43372020-09-17 Tom Tromey <tom@tromey.com>
4338
4339 * breakpoint.c (ambiguous_names_p): Use htab_up.
4340
88f07206
TT
43412020-09-17 Tom Tromey <tom@tromey.com>
4342
4343 * auto-load.c (struct auto_load_pspace_info)
4344 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4345 <loaded_script_files, loaded_script_texts>: Change type to
4346 htab_up.
4347 (~auto_load_pspace_info) Remove.
4348 (init_loaded_scripts_info, maybe_add_script_file)
4349 (maybe_add_script_text, auto_load_info_scripts): Update.
4350
9519b2ee
TT
43512020-09-17 Tom Tromey <tromey@adacore.com>
4352
4353 * c-exp.y (name_obstack): Now static.
4354
d2cd4113
CC
43552020-09-17 Chungyi Chi <demonic@csie.io>
4356
4357 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4358
b650a282
SM
43592020-09-16 Simon Marchi <simon.marchi@efficios.com>
4360
4361 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4362 (add_solib_catchpoint): Likewise.
4363 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4364 to bool.
4365 (add_solib_catchpoint): Change int parameter/variable to bool.
4366 (catch_load_or_unload): Likewise.
4367 (init_catchpoint): Likewise.
4368 (create_fork_vfork_event_catchpoint): Likewise.
4369 (catch_fork_command_1): Likewise.
4370 (catch_exec_command_1): Likewise.
4371
4d0bcfcf
SM
43722020-09-16 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4375 Change instance_flags to m_instance_flags.
4376
fe830662
TT
43772020-09-16 Tom Tromey <tromey@adacore.com>
4378
4379 PR gdb/26598:
4380 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4381
fe5ddfc3
JB
43822020-09-16 John Baldwin <jhb@FreeBSD.org>
4383
4384 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4385 PL_FLAG_EXEC.
4386 (fbsd_nat_target::insert_exec_catchpoint)
4387 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4388 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4389 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4390
e911c666
JB
43912020-09-16 John Baldwin <jhb@FreeBSD.org>
4392
4393 * configure.ac: Remove check for kinfo_getvmmap().
4394 * configure, config.in: Regenerate.
4395 * fbsd-nat.c (fbsd_read_mapping): Remove
4396 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4397 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4398 kinfo_get_vmmap() are always present.
4399
1f17d372
JB
44002020-09-16 John Baldwin <jhb@FreeBSD.org>
4401
4402 * fbsd-nat.c: Always include support for
4403 TARGET_OBJECT_SIGNAL_INFO.
4404
bcb1da7f
JB
44052020-09-16 John Baldwin <jhb@FreeBSD.org>
4406
4407 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4408 sysctl and remove procfs fallback.
4409
5515f729
JB
44102020-09-16 John Baldwin <jhb@FreeBSD.org>
4411
4412 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4413 * fbsd-nat.h: Likewise.
4414
da1df1db
TBA
44152020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4416
4417 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4418 argument.
4419
0e25e767
AB
44202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4421
4422 * ada-lang.c (ada_language_data): Delete.
4423 (ada_language): Remove references to ada_language_data.
4424 * c-lang.c (c_language_data): Delete.
4425 (c_language): Remove references to c_language_data.
4426 (cplus_language_data): Delete.
4427 (cplus_language): Remove references to cplus_language_data.
4428 (asm_language_data): Delete.
4429 (asm_language): Remove references to asm_language_data.
4430 (minimal_language_data): Delete.
4431 (minimal_language): Remove references to minimal_language_data.
4432 * d-lang.c (d_language_data): Delete.
4433 (d_language): Remove references to d_language_data.
4434 * f-lang.c (f_language_data): Delete.
4435 (f_language): Remove references to f_language_data.
4436 * go-lang.c (go_language_data): Delete.
4437 (go_language): Remove references to go_language_data.
4438 * language.c (unknown_language_data): Delete.
4439 (unknown_language): Remove references to unknown_language_data.
4440 (auto_language_data): Delete.
4441 (auto_language): Remove references to auto_language_data.
4442 * language.h (language_data): Delete struct.
4443 (language_defn): No longer inherit from language_data.
4444 * m2-lang.c (m2_language_data): Delete.
4445 (m2_language): Remove references to m2_language_data.
4446 * objc-lang.c (objc_language_data): Delete.
4447 (objc_language): Remove references to objc_language_data.
4448 * opencl-lang.c (opencl_language_data): Delete.
4449 (opencl_language): Remove references to opencl_language_data.
4450 * p-lang.c (pascal_language_data): Delete.
4451 (pascal_language): Remove references to pascal_language_data.
4452 * rust-lang.c (rust_language_data): Delete.
4453 (rust_language): Remove references to rust_language_data.
4454
b7c6e27d
AB
44552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4456
4457 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4458 initializer.
4459 (ada_language::opcode_print_table): New member function.
4460 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4461 (c_language::opcode_print_table): New member function.
4462 (cplus_language_data): Remove la_op_print_tab initializer.
4463 (cplus_language::opcode_print_table): New member function.
4464 (asm_language_data): Remove la_op_print_tab initializer.
4465 (asm_language::opcode_print_table): New member function.
4466 (minimal_language_data): Remove la_op_print_tab initializer.
4467 (minimal_language::opcode_print_table): New member function.
4468 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4469 (d_language::opcode_print_table): New member function.
4470 * expprint.c (print_subexp_standard): Update call to
4471 opcode_print_table.
4472 (op_string): Likewise.
4473 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4474 (f_language::opcode_print_table): New member function.
4475 * go-lang.c (go_language_data): Remove la_op_print_tab
4476 initializer.
4477 (go_language::opcode_print_table): New member function.
4478 * language.c (unknown_language_data): Remove la_op_print_tab
4479 initializer.
4480 (unknown_language::opcode_print_table): New member function.
4481 (auto_language_data): Remove la_op_print_tab initializer.
4482 (auto_language::opcode_print_table): New member function.
4483 * language.h (language_data): Remove la_op_print_tab field.
4484 (language_defn::opcode_print_table): Declare new member function.
4485 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4486 initializer.
4487 (m2_language::opcode_print_table): New member function.
4488 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4489 initializer.
4490 (objc_language::opcode_print_table): New member function.
4491 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4492 initializer.
4493 (opencl_language::opcode_print_table): New member function.
4494 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4495 initializer.
4496 (pascal_language::opcode_print_table): New member function.
4497 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4498 initializer.
4499 (rust_language::opcode_print_table): New member function.
4500
5aba6ebe
AB
45012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4504 (ada_language::expression_ops): New member function.
4505 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4506 (c_language::expression_ops): New member function.
4507 (cplus_language_data): Remove la_exp_desc initializer.
4508 (cplus_language::expression_ops): New member function.
4509 (asm_language_data): Remove la_exp_desc initializer.
4510 (asm_language::expression_ops): New member function.
4511 (minimal_language_data): Remove la_exp_desc initializer.
4512 (minimal_language::expression_ops): New member function.
4513 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4514 (d_language::expression_ops): New member function.
4515 * eval.c (evaluate_subexp): Update call to expression_ops.
4516 * expprint.c (print_subexp): Likewise.
4517 (op_name): Likewise.
4518 (dump_subexp_body): Likewise.
4519 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4520 (f_language::expression_ops): New member function.
4521 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4522 (go_language::expression_ops): New member function.
4523 * language.c (language_defn::expression_ops): New function.
4524 (unknown_language_data): Remove la_exp_desc initializer.
4525 (auto_language_data): Likewise.
4526 * language.h (language_data): Remove la_exp_desc field.
4527 (language_defn::expression_ops): Declare new member function.
4528 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4529 (m2_language::expression_ops): New member function.
4530 * objc-lang.c (objc_language_data): Remove la_exp_desc
4531 initializer.
4532 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4533 initializer.
4534 (opencl_language::expression_ops): New member function.
4535 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4536 * parse.c (operator_length): Update call to expression_ops.
4537 (exp_iterate): Likewise.
4538 * rust-lang.c (rust_language_data): Remove la_exp_desc
4539 initializer.
4540 (ruse_language::expression_ops): New member function.
4541
b63a3f3f
AB
45422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4545 initializer.
4546 (ada_language::varobj_ops): New member function.
4547 * c-lang.c (c_language_data): Remove la_varobj_ops
4548 initializer.
4549 (cplus_language_data): Likewise.
4550 (cplus_language::varobj_ops): New member function.
4551 (asm_language_data): Remove la_varobj_ops initializer.
4552 (minimal_language_data): Likewise.
4553 * d-lang.c (d_language_data): Likewise.
4554 * f-lang.c (f_language_data): Likewise.
4555 * go-lang.c (go_language_data): Likewise.
4556 * language.c (language_defn::varobj_ops): New function.
4557 (unknown_language_data): Remove la_varobj_ops
4558 initializer.
4559 (auto_language_data): Likewise.
4560 * language.h (language_data): Remove la_varobj_ops field.
4561 (language_defn::varobj_ops): Declare new member function.
4562 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4563 * objc-lang.c (objc_language_data): Likewise.
4564 * opencl-lang.c (opencl_language_data): Likewise.
4565 * p-lang.c (pascal_language_data): Likewise.
4566 * rust-lang.c (rust_language_data): Likewise.
4567 * varobj.c (varobj_create): Update call to varobj_ops.
4568 * varobj.h (default_varobj_ops): Delete define.
4569
1ac14a04
AB
45702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4571
4572 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4573 initializer.
4574 * c-lang.c (c_language_data): Likewise.
4575 (c_language::macro_expansion): New member function.
4576 (cplus_language_data): Likewise.
4577 (cplus_language::macro_expansion): New member function.
4578 (asm_language_data): Likewise.
4579 (asm_language::macro_expansion): New member function.
4580 (minimal_language_data): Likewise.
4581 (minimal_language::macro_expansion): New member function.
4582 * d-lang.c (d_language_data): Remove la_macro_expansion
4583 initializer.
4584 * f-lang.c (f_language_data): Likewise.
4585 * go-lang.c (go_language_data): Likewise.
4586 * language.c (unknown_language_data): Likewise.
4587 (auto_language_data): Likewise.
4588 * language.h (language_data): Remove la_macro_expansion field.
4589 (language_defn::macro_expansion): New member function.
4590 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4591 initializer.
4592 * objc-lang.c (objc_language_data): Likewise.
4593 (objc_language::macro_expansion): New member function.
4594 * opencl-lang.c (opencl_language_data): Likewise.
4595 (opencl_language::macro_expansion): New member function.
4596 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4597 initializer.
4598 * rust-lang.c (rust_language_data): Likewise.
4599 * symtab.c (default_collect_symbol_completion_matches_break_on):
4600 Update call to macro_expansion.
4601
3a3440fb
AB
46022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4603
4604 * ada-lang.c (ada_language_data): Remove la_array_ordering
4605 initializer.
4606 * c-lang.c (c_language_data): Likewise.
4607 (cplus_language_data): Likewise.
4608 (asm_language_data): Likewise.
4609 (minimal_language_data): Likewise.
4610 * d-lang.c (d_language_data): Likewise.
4611 * dwarf2/read.c (read_array_order): Update for call to
4612 array_ordering.
4613 * f-lang.c (f_language_data): Remove la_array_ordering
4614 initializer.
4615 (f_language::array_ordering): New member function.
4616 * go-lang.c (go_language_data): Remove la_array_ordering
4617 initializer.
4618 * language.c (unknown_language_data): Likewise.
4619 (auto_language_data): Likewise.
4620 * language.h (language_data): Delete la_array_ordering field.
4621 (language_defn::array_ordering): New member function.
4622 * m2-lang.c (m2_language_data): Remove la_array_ordering
4623 initializer.
4624 * objc-lang.c (objc_language_data): Likewise.
4625 * opencl-lang.c (opencl_language_data): Likewise.
4626 * p-lang.c (pascal_language_data): Likewise.
4627 * rust-lang.c (rust_language_data): Likewise.
4628
0d201fa4
AB
46292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4630
4631 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4632 initializer.
4633 * c-lang.c (c_language_data): Likewise.
4634 (cplus_language_data): Likewise.
4635 (asm_language_data): Likewise.
4636 (minimal_language_data): Likewise.
4637 * d-lang.c (d_language_data): Likewise.
4638 * f-lang.c (f_language_data): Likewise.
4639 (f_language::case_sensitivity): New member function.
4640 * go-lang.c (go_language_data): Remove la_case_sensitivity
4641 initializer.
4642 * language.c (enum case_mode): Moved here from language.h.
4643 (case_mode): Make static.
4644 (show_case_command): Update for case_sensitivity being a method.
4645 (set_case_command): Likewise.
4646 (set_range_case): Likewise.
4647 (unknown_language_data): Remove la_case_sensitivity initializer.
4648 (auto_language_data): Likewise.
4649 * language.h (case_mode): Delete, move enum declaration to
4650 language.c.
4651 (language_data): Delete la_case_sensitivity field.
4652 (language_defn::case_sensitivity): New member function.
4653 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4654 initializer.
4655 * objc-lang.c (objc_language_data): Likewise.
4656 * opencl-lang.c (opencl_language_data): Likewise.
4657 * p-lang.c (pascal_language_data): Likewise.
4658 * rust-lang.c (rust_language_data): Likewise.
4659
efdf6a73
AB
46602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4661
4662 * ada-lang.c (ada_language_data): Remove la_range_check
4663 initializer.
4664 * c-lang.c (c_language_data): Likewise.
4665 (cplus_language_data): Likewise.
4666 (asm_language_data): Likewise.
4667 (minimal_language_data): Likewise.
4668 * d-lang.c (d_language_data): Likewise.
4669 * f-lang.c (f_language_data): Likewise.
4670 (f_language::range_checking_on_by_default): New member function.
4671 * go-lang.c (go_language_data): Remove la_range_check initializer.
4672 * language.c (enum range_mode): Moved here from language.h.
4673 (range_mode): Made static.
4674 (show_range_command): Update to use
4675 range_checking_on_by_default.
4676 (set_range_command): Likewise.
4677 (set_range_case): Likewise.
4678 (unknown_language_data): Remove la_range_check initializer.
4679 (auto_language_data): Likewise.
4680 * language.h (range_mode): Delete. Enum definition moved to
4681 language.c.
4682 (language_data): Remove la_range_check field.
4683 (language_defn::range_checking_on_by_default): New member
4684 function.
4685 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4686 (m2_language::range_checking_on_by_default): New member function.
4687 * objc-lang.c (objc_language_data): Remove la_range_check
4688 initializer.
4689 * opencl-lang.c (opencl_language_data): Likewise.
4690 * p-lang.c (pascal_language_data): Likewise.
4691 (pascal_language::range_checking_on_by_default): New member
4692 function.
4693 * rust-lang.c (rust_language_data): Remove la_range_check
4694 initializer.
4695 (rust_language::range_checking_on_by_default): New member
4696 function.
4697
bf92aec5
AB
46982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4699
4700 * dwarf2/read.c (dwarf2_physname): Remove special case for
4701 language_go.
4702 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4703 member function.
4704
d3355e4d
AB
47052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4706
4707 * ada-lang.c (ada_language_data): Remove
4708 la_store_sym_names_in_linkage_form_p initializer.
4709 (ada_language::store_sym_names_in_linkage_form_p): New member
4710 function.
4711 * c-lang.c (c_language_data): Remove
4712 la_store_sym_names_in_linkage_form_p initializer.
4713 (c_language::store_sym_names_in_linkage_form_p): New member
4714 function.
4715 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4716 initializer.
4717 (asm_language_data): Likewise.
4718 (asm_language::store_sym_names_in_linkage_form_p): New member
4719 function.
4720 (minimal_language_data): Remove
4721 la_store_sym_names_in_linkage_form_p initializer.
4722 (minimal_language::store_sym_names_in_linkage_form_p): New member
4723 function.
4724 * d-lang.c (d_language_data): Remove
4725 la_store_sym_names_in_linkage_form_p initializer.
4726 * dwarf2/read.c (dwarf2_physname): Update call to
4727 store_sym_names_in_linkage_form_p.
4728 * f-lang.c (f_language_data): Remove
4729 la_store_sym_names_in_linkage_form_p initializer.
4730 * go-lang.c (go_language_data): Remove
4731 la_store_sym_names_in_linkage_form_p initializer.
4732 * language.c (unknown_language_data): Remove
4733 la_store_sym_names_in_linkage_form_p initializer.
4734 (unknown_language::store_sym_names_in_linkage_form_p): New member
4735 function.
4736 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4737 initializer.
4738 (auto_language::store_sym_names_in_linkage_form_p): New member
4739 function.
4740 * language.h (language_data): Remove
4741 la_store_sym_names_in_linkage_form_p member variable.
4742 (language_defn::store_sym_names_in_linkage_form_p): New member
4743 function.
4744 * m2-lang.c (m2_language_data): Remove
4745 la_store_sym_names_in_linkage_form_p initializer.
4746 * objc-lang.c (objc_language_data): Likewise.
4747 * opencl-lang.c (opencl_language_data): Likewise.
4748 * p-lang.c (pascal_language_data): Likewise.
4749 * rust-lang.c (rust_language_data): Likewise.
4750
22c12a6c
AB
47512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4752
4753 * ada-lang.c (ada_language_data): Remove string_lower_bound
4754 initializer.
4755 * c-lang.c (c_language_data): Likewise.
4756 (cplus_language_data): Likewise.
4757 (asm_language_data): Likewise.
4758 (minimal_language_data): Likewise.
4759 * d-lang.c (d_language_data): Likewise.
4760 * f-lang.c (f_language_data): Likewise.
4761 * go-lang.c (go_language_data): Likewise.
4762 * language.c (unknown_language_data): Likewise.
4763 (auto_language_data): Likewise.
4764 * language.h (language_data): Remove string_lower_bound field.
4765 (language_defn::string_lower_bound): New member function.
4766 * m2-lang.c (m2_language_data): Remove string_lower_bound
4767 initializer.
4768 (m2_language::string_lower_bound): New member function.
4769 * objc-lang.c (objc_language_data): Remove string_lower_bound
4770 initializer.
4771 * opencl-lang.c (opencl_language_data): Likewise.
4772 * p-lang.c (pascal_language_data): Likewise.
4773 * rust-lang.c (rust_language_data): Likewise.
4774 * valops.c (value_cstring): Update call to string_lower_bound.
4775 (value_string): Likewise.
4776 * value.c (allocate_repeated_value): Likewise.
4777
1c236ddd
AB
47782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4779
4780 * valops.c (value_repeat): Fix incorrect argument name in comment.
4781
67bd3fd5
AB
47822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4783
4784 * ada-lang.c (ada_language_data): Remove c_style_arrays
4785 initializer.
4786 (ada_language::c_style_arrays_p): New member fuction.
4787 * c-lang.c (c_language_data): Remove c_style_arrays
4788 initializer.
4789 (cplus_language_data): Likewise.
4790 (asm_language_data): Likewise.
4791 (minimal_language_data): Likewise.
4792 * d-lang.c (d_language_data): Likewise.
4793 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4794 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4795 (f_language::c_style_arrays_p): New member function.
4796 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4797 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4798 * language.c (unknown_language_data): Remove c_style_arrays
4799 initializer.
4800 (auto_language_data): Likewise.
4801 * language.h (language_data): Remove c_style_arrays field.
4802 (language_defn::c_style_arrays_p): New member function.
4803 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4804 (m2_language::c_style_arrays_p): New member function.
4805 * objc-lang.c (objc_language_data): Remove c_style_arrays
4806 initializer.
4807 * opencl-lang.c (opencl_language_data): Likewise.
4808 * p-lang.c (pascal_language_data): Likewise.
4809 * rust-lang.c (rust_language_data): Likewise.
4810 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4811 and update local variable to a bool.
4812 * valops.c (value_cast): Update call to c_style_arrays_p.
4813 (value_array): Likewise.
4814 * value.c (coerce_array): Likewise.
4815
85967615
AB
48162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4817
4818 * ada-lang.c (ada_language_data): Remove la_language initializer.
4819 * c-lang.c (c_language_data): Likewise.
4820 (cplus_language_data): Likewise.
4821 (asm_language_data): Likewise.
4822 (minimal_language_data): Likewise.
4823 * d-lang.c (d_language_data): Likewise.
4824 * f-lang.c (f_language_data): Likewise.
4825 * go-lang.c (go_language_data): Likewise.
4826 * language.c (unknown_language_data): Likewise.
4827 (auto_language_data): Likewise.
4828 * language.h (language_data): Remove la_language field.
4829 (language_defn::language_defn): Initialise la_language field.
4830 (language_defn::la_language): New member variable.
4831 * m2-lang.c (m2_language_data): Remove la_language field.
4832 * objc-lang.c (objc_language_data): Likewise.
4833 * opencl-lang.c (opencl_language_data): Likewise.
4834 * p-lang.c (pascal_language_data): Likewise.
4835 * rust-lang.c (rust_language_data): Likewise.
4836
e171d6f1
AB
48372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4838
4839 * ada-lang.c (ada_extensions): Delete, moved into
4840 ada_language::filename_extensions.
4841 (ada_language_data): Remove la_filename_extensions initializer.
4842 (ada_language::filename_extensions): New member function.
4843 * c-lang.c (c_extensions): Delete, moved into
4844 c_language::filename_extensions.
4845 (c_language_data): Remove la_filename_extensions initializer.
4846 (c_language::filename_extensions): New member function.
4847 (cplus_extensions): Delete, moved into
4848 cplus_language::filename_extensions.
4849 (cplus_language_data): Remove la_filename_extensions initializer.
4850 (cplus_language::filename_extensions): New member function.
4851 (asm_extensions): Delete, moved into
4852 asm_language::filename_extensions.
4853 (asm_language_data): Remove la_filename_extensions initializer.
4854 (asm_language::filename_extensions): New member function.
4855 (minimal_language_data): Remove la_filename_extensions
4856 initializer.
4857 * d-lang.c (d_extensions): Delete, moved into
4858 d_language::filename_extensions.
4859 (d_language_data): Remove la_filename_extensions initializer.
4860 (d_language::filename_extensions): New member function.
4861 * f-lang.c (f_extensions): Delete, moved into
4862 f_language::filename_extensions.
4863 (f_language_data): Remove la_filename_extensions initializer.
4864 (f_language::filename_extensions): New member function.
4865 * go-lang.c (go_language_data): Remove la_filename_extensions
4866 initializer.
4867 * language.c (add_set_language_command): Update now that
4868 filename_extensions returns a vector.
4869 (unknown_language_data): Remove la_filename_extensions
4870 initializer.
4871 (auto_language_data): Likewise.
4872 * language.h (language_data): Remove la_filename_extensions field.
4873 (language_defn::filename_extensions): New member function.
4874 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4875 initializer.
4876 * objc-lang.c (objc_extensions): Delete, moved into
4877 objc_language::filename_extensions.
4878 (objc_language_data): Remove la_filename_extensions initializer.
4879 (objc_language::filename_extensions): New member function.
4880 * opencl-lang.c (opencl_language_data): Remove
4881 la_filename_extensions initializer.
4882 * p-lang.c (pascal_extensions): Delete, moved into
4883 pascal_language::filename_extensions.
4884 (pascal_language_data): Remove la_filename_extensions initializer.
4885 (pascal_language::filename_extensions): New member function.
4886 * rust-lang.c (rust_extensions): Delete, moved into
4887 rust_language::filename_extensions.
4888 (rust_language_data): Remove la_filename_extensions initializer.
4889 (rust_language::filename_extensions): New member function.
4890 * symfile.c (add_filename_language): Add new assert.
4891
6f7664a9
AB
48922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4893
4894 * ada-lang.c (ada_language_data): Remove la_name and
4895 la_natural_name initializers.
4896 (ada_language::name): New member function.
4897 (ada_language::natural_name): New member function.
4898 * c-lang.c (c_language_data): Remove la_name and
4899 la_natural_name initializers.
4900 (c_language::name): New member function.
4901 (c_language::natural_name): New member function.
4902 (cplus_language_data): Remove la_name and
4903 la_natural_name initializers.
4904 (cplus_language::name): New member function.
4905 (cplus_language::natural_name): New member function.
4906 (asm_language_data): Remove la_name and
4907 la_natural_name initializers.
4908 (asm_language::name): New member function.
4909 (asm_language::natural_name): New member function.
4910 (minimal_language_data): Remove la_name and
4911 la_natural_name initializers.
4912 (minimal_language::name): New member function.
4913 (minimal_language::natural_name): New member function.
4914 * compile/compile.c (compile_to_object): Update call to
4915 lanugage_defn::name.
4916 * d-lang.c (d_language_data): Remove la_name and
4917 la_natural_name initializers.
4918 (d_language::name): New member function.
4919 (d_language::natural_name): New member function.
4920 * expprint.c (print_subexp_standard): Update call to
4921 language_defn::name.
4922 (dump_raw_expression): Likewise
4923 (dump_prefix_expression): Likewise.
4924 * f-lang.c (f_language_data): Remove la_name and
4925 la_natural_name initializers.
4926 (f_language::name): New member function.
4927 (f_language::natural_name): New member function.
4928 * go-lang.c (go_language_data): Remove la_name and
4929 la_natural_name initializers.
4930 (go_language::name): New member function.
4931 (go_language::natural_name): New member function.
4932 * language.c (show_language_command): Update call to
4933 language_defn::name.
4934 (set_language_command): Likewise.
4935 (language_enum): Likewise.
4936 (language_str): Likewise.
4937 (add_set_language_command): Likewise, use
4938 language_defn::natural_name in the doc string.
4939 (unknown_language_data): Remove la_name and
4940 la_natural_name initializers.
4941 (unknown_language::name): New member function.
4942 (unknown_language::natural_name): New member function.
4943 (auto_language_data): Remove la_name and
4944 la_natural_name initializers.
4945 (auto_language::name): New member function.
4946 (auto_language::natural_name): New member function.
4947 (language_lookup_primitive_type_as_symbol): Update call to
4948 language_defn::name.
4949 * language.h (language_data): Remove la_name and la_natural_name
4950 member variables.
4951 (language_defn::name): New member function.
4952 (language_defn::natural_name): New member function.
4953 * m2-lang.c (m2_language_data): Remove la_name and
4954 la_natural_name initializers.
4955 (m2_language::name): New member function.
4956 (m2_language::natural_name): New member function.
4957 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4958 language_defn::natural_name.
4959 * objc-lang.c (objc_language_data): Remove la_name and
4960 la_natural_name initializers.
4961 (objc_language::name): New member function.
4962 (objc_language::natural_name): New member function.
4963 * opencl-lang.c (opencl_language_data): Remove la_name and
4964 la_natural_name initializers.
4965 (opencl_language::name): New member function.
4966 (opencl_language::natural_name): New member function.
4967 * p-lang.c (pascal_language_data): Remove la_name and
4968 la_natural_name initializers.
4969 (pascal_language::name): New member function.
4970 (pascal_language::natural_name): New member function.
4971 * rust-lang.c (rust_language_data): Remove la_name and
4972 la_natural_name initializers.
4973 (rust_language::name): New member function.
4974 (rust_language::natural_name): New member function.
4975 * symtab.c (lookup_language_this): Update call to
4976 language_defn::name.
4977
5bae7c4e
AB
49782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4979
4980 * ada-lang.c (ada_language_data): Remove la_name_of_this
4981 initializer.
4982 * ax-gdb.c (gen_expr): Update call to name_of_this.
4983 * c-exp.y (classify_name): Likewise.
4984 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4985 (cplus_language_data): Likewise.
4986 (cplus_language::name_of_this): New member function.
4987 (asm_language_data): Remove la_name_of_this initializer.
4988 (minimal_language_data): Likewise.
4989 * d-lang.c (d_language_data): Likewise.
4990 (d_language::name_of_this): New member function.
4991 * expprint.c (print_subexp_standard): Update call to name_of_this.
4992 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4993 * go-lang.c (go_language_data): Likewise.
4994 * language.c (unknown_language_data): Likewise.
4995 (unknown_language::name_of_this): New member function.
4996 (auto_language_data): Remove la_name_of_this initializer.
4997 (auto_language::name_of_this): New member function.
4998 * language.h (language_data): Delete la_name_of_this member
4999 variable.
5000 (language_defn::name_of_this): New member function.
5001 * m2-lang.c (m2_language_data): Remove la_name_of_this
5002 initializer.
5003 * objc-lang.c (objc_language_data): Likewise.
5004 (objc_language::name_of_this): New member function.
5005 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5006 initializer.
5007 * p-lang.c (pascal_language_data): Likewise.
5008 (pascal_language::name_of_this): New member function.
5009 * rust-lang.c (rust_language_data): Remove la_name_of_this
5010 initializer.
5011 * symtab.c (lookup_language_this): Update call to name_of_this.
5012 (lookup_symbol_aux): Likewise.
5013 * valops.c (value_of_this): Likewise.
5014
22e3f3ed
AB
50152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5016
5017 * ada-lang.c (ada_language_data): Remove
5018 la_struct_too_deep_ellipsis initializer.
5019 (ada_language::struct_too_deep_ellipsis): New member function.
5020 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5021 initializer.
5022 (cplus_language_data): Likewise.
5023 (asm_language_data): Likewise.
5024 (minimal_language_data): Likewise.
5025 * cp-valprint.c (cp_print_value): Update call to
5026 struct_too_deep_ellipsis.
5027 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5028 initializer.
5029 * f-lang.c (f_language_data): Likewise.
5030 (f_language::struct_too_deep_ellipsis): New member function.
5031 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5032 initializer.
5033 * language.c (unknown_language_data): Likewise.
5034 (auto_language_data): Likewise.
5035 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5036 member variable.
5037 (language_defn::struct_too_deep_ellipsis): New member function.
5038 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5039 initializer.Q
5040 * objc-lang.c (objc_language_data): Likewise.
5041 * opencl-lang.c (opencl_language_data): Likewise.
5042 * p-lang.c (pascal_language_data): Likewise.
5043 * rust-lang.c (rust_language_data): Likewise.
5044 * valprint.c (val_print_check_max_depth): Update call to
5045 struct_too_deep_ellipsis.
5046
ed29e1c7
FW
50472020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5048
5049 * MAINTAINERS (Write After Approval): Add myself.
5050
12d8f940
TT
50512020-09-15 Tom Tromey <tom@tromey.com>
5052
5053 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5054 Remove.
5055
6b5a7bc7
TT
50562020-09-15 Tom Tromey <tom@tromey.com>
5057
5058 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5059 and TYPE_CODE_METHODPTR cases.
5060 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5061 (c_value_print_inner): Update.
5062 * valprint.c (generic_value_print_memberptr): New function, from
5063 c_value_print_memberptr.
5064 (generic_value_print): Use it. Call cplus_print_method_ptr.
5065
47f0e2ff
TT
50662020-09-15 Tom Tromey <tromey@adacore.com>
5067
5068 * python/python-internal.h (PyInt_FromLong): Remove define.
5069 * python/py-value.c (convert_value_from_python): Use
5070 gdb_py_object_from_longest.
5071 * python/py-type.c (typy_get_code): Use
5072 gdb_py_object_from_longest.
5073 * python/py-symtab.c (salpy_get_line): Use
5074 gdb_py_object_from_longest.
5075 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5076 gdb_py_object_from_longest.
5077 * python/py-record.c (recpy_gap_reason_code): Use
5078 gdb_py_object_from_longest.
5079 * python/py-record-btrace.c (recpy_bt_insn_size)
5080 (recpy_bt_func_level, btpy_list_count): Use
5081 gdb_py_object_from_longest.
5082 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5083 gdb_py_object_from_longest. Fix error handling.
5084 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5085 gdb_py_object_from_longest.
5086 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5087 gdb_py_object_from_longest.
5088 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5089 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5090 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5091
512116ce
TT
50922020-09-15 Tom Tromey <tromey@adacore.com>
5093
5094 * python/python.c (gdbpy_parameter_value): Use
5095 gdb_py_object_from_ulongest.
5096
4ab1029c
TT
50972020-09-15 Tom Tromey <tromey@adacore.com>
5098
5099 * python/py-infevents.c (create_register_changed_event_object):
5100 Use gdb_py_object_from_longest.
5101 * python/py-exitedevent.c (create_exited_event_object): Use
5102 gdb_py_object_from_longest.
5103
062534d4
TT
51042020-09-15 Tom Tromey <tromey@adacore.com>
5105
5106 * python/python.c (gdbpy_parameter_value): Use
5107 gdb_py_object_from_longest.
5108 * python/py-type.c (convert_field, typy_range): Use
5109 gdb_py_object_from_longest.
5110 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5111 gdb_py_object_from_longest.
5112 * python/py-lazy-string.c (stpy_get_length): Use
5113 gdb_py_object_from_longest.
5114 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5115 gdb_py_object_from_longest.
5116 * python/py-infevents.c (create_memory_changed_event_object): Use
5117 gdb_py_object_from_longest.
5118 * python/py-inferior.c (infpy_get_num): Use
5119 gdb_py_object_from_longest.
5120 (infpy_get_pid): Likewise.
5121
d1cab987
TT
51222020-09-15 Tom Tromey <tromey@adacore.com>
5123
5124 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5125 defines.
5126 * python/py-value.c (valpy_long): Use
5127 gdb_py_object_from_ulongest.
5128 * python/py-symtab.c (salpy_get_pc): Use
5129 gdb_py_object_from_ulongest.
5130 (salpy_get_last): Likewise.
5131 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5132 gdb_py_object_from_ulongest.
5133 * python/py-lazy-string.c (stpy_get_address): Use
5134 gdb_py_object_from_ulongest.
5135 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5136 * python/py-arch.c (archpy_disassemble): Use
5137 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5138 error handling.
5139
4bde49dc
TT
51402020-09-15 Tom Tromey <tromey@adacore.com>
5141
5142 * python/python-internal.h (gdb_py_long_from_longest): Remove
5143 defines.
5144 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5145 * python/py-type.c (convert_field, typy_get_sizeof): Use
5146 gdb_py_object_from_longest.
5147 * python/py-record-btrace.c (btpy_list_index): Use
5148 gdb_py_object_from_longest.
5149
37431074
TT
51502020-09-15 Tom Tromey <tromey@adacore.com>
5151
5152 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5153 * python/py-record.c (recpy_element_number): Use
5154 gdb_py_object_from_longest.
5155 (recpy_gap_number): Likewise.
5156
cbe25684
TT
51572020-09-15 Tom Tromey <tromey@adacore.com>
5158
5159 * top.c (ui::ui): Update.
5160 (highest_ui_num): Remove.
5161 * top.h (struct ui) <num>: Remove.
5162
db92ac45
TT
51632020-09-15 Tom Tromey <tromey@adacore.com>
5164
5165 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5166 * ui-style.c (ansi_regex_text): Now array.
5167 * rust-exp.y (number_regex_text): Now array.
5168 * linespec.c (linespec_quote_characters): Now array.
5169 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5170 Now arrays.
5171
d2b31b67
SM
51722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5173
5174 * debuginfod-support.c (debuginfod_client_deleter): New.
5175 (debuginfod_client_up): New.
5176 (debuginfod_init): Return debuginfod_client_up.
5177 (debuginfod_source_query): Adjust.
5178 (debuginfod_debuginfo_query): Adjust.
5179
3246bd8e
SM
51802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5181
5182 * debuginfod-support.c (debuginfod_source_query): Use
5183 make_unique_xstrdup.
5184
10242f36
SM
51852020-09-14 Simon Marchi <simon.marchi@efficios.com>
5186
5187 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5188 with `type::instance_flags`.
5189
e1044e6a
MM
51902020-09-14 Michael Mullin <masmullin@gmail.com>
5191
5192 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5193 Remove baton parameter.
5194
04902b09
PA
51952020-09-14 Pedro Alves <pedro@palves.net>
5196
5197 * Makefile.in (SELFTESTS_SRCS): Add
5198 unittests/enum-flags-selftests.c.
5199 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5200 btrace_function_flags instead of enum btrace_function_flag.
5201 * compile/compile-c-types.c (convert_qualified): Use
5202 enum_flags::raw.
5203 * compile/compile-cplus-symbols.c (convert_one_symbol)
5204 (convert_symbol_bmsym):
5205 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5206 (compile_cplus_convert_struct_or_union_methods)
5207 (compile_cplus_instance::convert_qualified_base):
5208 * go-exp.y (parse_string_or_char): Add cast to int.
5209 * unittests/enum-flags-selftests.c: New file.
5210 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5211 type to btrace_thread_flags from btrace_thread_flag.
5212 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5213 local's type to btrace_thread_flags from btrace_thread_flag. Add
5214 cast in DEBUG call.
5215
69896a2c
PA
52162020-09-14 Pedro Alves <pedro@palves.net>
5217
5218 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5219 * gdbtypes.c (address_space_name_to_int): Rename to ...
5220 (address_space_name_to_type_instance_flags): ... this.
5221 (address_space_int_to_name): Rename to ...
5222 (address_space_type_instance_flags_to_name): ... this.
5223 * gdbtypes.h (address_space_name_to_int): Rename to ...
5224 (address_space_name_to_type_instance_flags): ... this.
5225 (address_space_int_to_name): Rename to ...
5226 (address_space_type_instance_flags_to_name): ... this.
5227 * type-stack.c (type_stack::insert): Adjust to rename.
5228 * type-stack.h (type_stack::insert): Likewise.
5229
314ad88d
PA
52302020-09-14 Pedro Alves <pedro@palves.net>
5231 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * avr-tdep.c (avr_address_class_type_flags): Return
5234 type_instance_flags.
5235 (avr_address_class_type_flags_to_name): Take a
5236 type_instance_flags.
5237 (avr_address_class_name_to_type_flags): Return bool and take a
5238 type_instance_flags.
5239 * d-lang.c (build_d_types): Use type::set_instance_flags.
5240 * ft32-tdep.c (ft32_address_class_type_flags): Return
5241 type_instance_flags.
5242 (ft32_address_class_type_flags_to_name): Take a
5243 type_instance_flags.
5244 (ft32_address_class_name_to_type_flags): Return bool and take a
5245 type_instance_flags.
5246 (ft32_gdbarch_init): Use type::set_instance_flags.
5247 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5248 * gdbarch.h, gdbarch.c: Regenerate.
5249 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5250 (address_class_name_to_type_flags): Use type_instance_flags and
5251 bool.
5252 * gdbtypes.c (address_space_name_to_int)
5253 (address_space_int_to_name, make_qualified_type): Use
5254 type_instance_flags.
5255 (make_qualified_type): Use type_instance_flags and
5256 type::set_instance_flags.
5257 (make_type_with_address_space, make_cv_type, make_vector_type)
5258 (check_typedef): Use type_instance_flags.
5259 (recursive_dump_type): Cast type_instance_flags to unsigned for
5260 printing.
5261 (copy_type_recursive): Use type::set_instance_flags.
5262 (gdbtypes_post_init): Use type::set_instance_flags.
5263 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5264 <m_instance_flags>: ... this.
5265 <instance_flags, set_instance_flags>: New methods.
5266 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5267 (SET_TYPE_INSTANCE_FLAGS): New.
5268 (address_space_name_to_int, address_space_int_to_name)
5269 (make_type_with_address_space): Pass flags using
5270 type_instance_flags instead of int.
5271 * stabsread.c (cleanup_undefined_types_noname): Use
5272 type::set_instance_flags.
5273 * s390-tdep.c (s390_address_class_type_flags): Return
5274 type_instance_flags.
5275 (s390_address_class_type_flags_to_name): Take a
5276 type_instance_flags.
5277 (s390_address_class_name_to_type_flags): Return bool and take a
5278 type_instance_flags.
5279 * type-stack.c (type_stack::follow_types): Use
5280 type_instance_flags.
5281 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5282
27087b7f
TT
52832020-09-14 Tom Tromey <tromey@adacore.com>
5284
5285 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5286 * x86-tdep.c (x86_is_thunk_register_name)
5287 (x86_in_indirect_branch_thunk): Update.
5288 * sparc64-tdep.c (sparc64_fpu_register_names)
5289 (sparc64_cp0_register_names, sparc64_register_names)
5290 (sparc64_pseudo_register_names): Now const.
5291 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5292 cp0_registers_num>: Now const.
5293 * sparc-tdep.c (sparc_core_register_names)
5294 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5295 (sparc32_pseudo_register_names): Now const.
5296 (validate_tdesc_registers): Update.
5297 * rust-lang.c (rust_extensions): Now const.
5298 * p-lang.c (p_extensions): Now const.
5299 * objc-lang.c (objc_extensions): Now const.
5300 * nto-tdep.c (nto_thread_state_str): Now const.
5301 * moxie-tdep.c (moxie_register_names): Now const.
5302 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5303 Now const.
5304 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5305 (mips_linux_reg_names): Now const.
5306 (mips_gdbarch_init): Update.
5307 * microblaze-tdep.c (microblaze_register_names): Now const.
5308 * m68k-tdep.c (m68k_register_names): Now const.
5309 * m32r-tdep.c (m32r_register_names): Now const.
5310 * ia64-tdep.c (ia64_register_names): Now const.
5311 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5312 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5313 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5314 ymm_avx512_register_names, pkeys_register_names>: Now const.
5315 * i386-tdep.c (i386_register_names, i386_zmm_names)
5316 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5317 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5318 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5319 * f-lang.c (f_extensions): Now const.
5320 * d-lang.c (d_extensions): Now const.
5321 * csky-tdep.c (csky_register_names): Now const.
5322 * charset.c (default_charset_names, charset_enum): Now const.
5323 (_initialize_charset): Update.
5324 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5325 const.
5326 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5327 (bsd_uthread_solib_loaded): Update.
5328 (bsd_uthread_state): Now const.
5329 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5330 (amd64_ymm_avx512_names, amd64_ymmh_names)
5331 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5332 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5333 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5334 (amd64_dword_names): Now const.
5335 * agent.c (can_use_agent_enum): Now const.
5336 * ada-tasks.c (task_states, long_task_states): Now const.
5337 * ada-lang.c (known_runtime_file_name_patterns)
5338 (known_auxiliary_function_name_patterns, attribute_names)
5339 (standard_exc, ada_extensions): Now const.
5340
89806626
SM
53412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5342
5343 * bcache.h (struct bcache) <bcache>: Remove constructor.
5344 <m_hash_function, m_compare_function>: Remove.
5345 <~bcache>: Make virtual.
5346 <compare>: Remove static method, introduce virtual method.
5347 <default_hash>: Remove.
5348 <hash>: New virtual method.
5349 * bcache.c (bcache::expand_hash_table): Update.
5350 (bcache::insert): Update.
5351 (bcache::hash): New.
5352 (bcache::compare): Update comment and parameter names.
5353 * gdbtypes.c (types_deeply_equal): Update.
5354 * psymtab.h (struct psymbol_bcache): New struct.
5355 (class psymtab_storage) <psymtab_storage>: Make default.
5356 <psymbol_cache>: Change type to psymbol_bcache.
5357 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5358 (psymbol_hash): Change to...
5359 (psymbol_bcache::hash): ... this.
5360 (psymbol_compare): Change to...
5361 (psymbol_bcache::compare): ... this.
5362
677c92fe
SM
53632020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5364
5365 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5366 checking for initial lwp.
5367
3eba3a01
TT
53682020-09-14 Tom Tromey <tromey@adacore.com>
5369
5370 * m68k-tdep.c (m68k_extract_return_value): Use
5371 pointer_result_regnum.
5372 (m68k_store_return_value): Likewise.
5373 (m68k_reg_struct_return_p): Handle vectors and arrays.
5374 (m68k_return_value): Handle arrays.
5375 (m68k_svr4_return_value): Fix single-element aggregate handling.
5376 Handle long double. Adjust for embedded ABI.
5377 (m68k_svr4_init_abi): Set pointer_result_regnum.
5378 (m68k_embedded_init_abi): New function.
5379 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5380 (m68k_osabi_sniffer): New function.
5381 (_initialize_m68k_tdep): Register osabi sniffer.
5382 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5383 member.
5384
33f4dd48
SM
53852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5386
5387 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5388 with gdb::unique_xmalloc_ptr<char>.
5389
8400a90d
SM
53902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5391
5392 * xml-support.h (xml_fetch_another): Change type to be a
5393 function_view.
5394 (xml_process_xincludes): Remove baton parameter.
5395 (xml_fetch_content_from_file): Change baton parameter to
5396 dirname.
5397 * xml-support.c (struct xinclude_parsing_data)
5398 <xinclude_parsing_data>: Remove baton parameter.
5399 <fetcher_baton>: Remove.
5400 (xinclude_start_include): Adjust.
5401 (xml_process_xincludes): Adjust.
5402 (xml_fetch_content_from_file): Replace baton parameter with
5403 dirname.
5404 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5405 (xml_init_syscalls_info): Use a lambda.
5406 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5407 (file_read_description_xml): Use a lambda.
5408 (fetch_available_features_from_target): Change baton parameter
5409 to target_ops.
5410 (target_read_description_xml): Use a lambda.
5411 (target_fetch_description_xml): Use a lambda.
5412 (string_read_description_xml): Update.
5413
04f5bab2
SM
54142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5415
5416 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5417 uses with type::endianity_is_not_default.
5418
db558e34
SM
54192020-09-14 Simon Marchi <simon.marchi@efficios.com>
5420
5421 * gdbtypes.h (struct type) <endianity_is_not_default,
5422 set_endianity_is_not_default>: New methods.
5423 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5424 type::endianity_is_not_default, change all write call sites to
5425 use type::set_endianity_is_not_default.
5426
22c4c60c
SM
54272020-09-14 Simon Marchi <simon.marchi@efficios.com>
5428
5429 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5430 uses with type::is_fixed_instance.
5431
9cdd0d12
SM
54322020-09-14 Simon Marchi <simon.marchi@efficios.com>
5433
5434 * gdbtypes.h (struct type) <is_fixed_instance,
5435 set_is_fixed_instance>: New methods.
5436 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5437 write call sites to use type::set_is_fixed_instance.
5438
0becda7a
SM
54392020-09-14 Simon Marchi <simon.marchi@efficios.com>
5440
5441 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5442 uses with type::is_gnu_ifunc.
5443
03cc7249
SM
54442020-09-14 Simon Marchi <simon.marchi@efficios.com>
5445
5446 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5447 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5448 use type::set_is_gnu_ifunc.
5449
3f46044c
SM
54502020-09-14 Simon Marchi <simon.marchi@efficios.com>
5451
5452 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5453 uses with type::stub_is_supported.
5454
9baccff6
SM
54552020-09-14 Simon Marchi <simon.marchi@efficios.com>
5456
5457 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5458 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5459 use type::set_stub_is_supported.
5460
bd63c870
SM
54612020-09-14 Simon Marchi <simon.marchi@efficios.com>
5462
5463 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5464 uses with type::is_vector.
5465
2062087b
SM
54662020-09-14 Simon Marchi <simon.marchi@efficios.com>
5467
5468 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5469 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5470 use type::set_is_vector.
5471
a409645d
SM
54722020-09-14 Simon Marchi <simon.marchi@efficios.com>
5473
5474 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5475 uses with type::has_varargs.
5476
1d6286ed
SM
54772020-09-14 Simon Marchi <simon.marchi@efficios.com>
5478
5479 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5480 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5481 use type::set_has_varargs.
5482
7f9f399b
SM
54832020-09-14 Simon Marchi <simon.marchi@efficios.com>
5484
5485 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5486 uses with type::is_prototyped.
5487
27e69b7a
SM
54882020-09-14 Simon Marchi <simon.marchi@efficios.com>
5489
5490 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5491 New methods.
5492 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5493 call sites to use type::set_is_prototyped.
5494
d2183968
SM
54952020-09-14 Simon Marchi <simon.marchi@efficios.com>
5496
5497 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5498 uses with type::target_is_stub.
5499
8f53807e
SM
55002020-09-14 Simon Marchi <simon.marchi@efficios.com>
5501
5502 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5503 New methods.
5504 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5505 sites to use type::set_target_is_stub.
5506
e46d3488
SM
55072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5508
5509 * gdbtypes.h (TYPE_STUB): Remove, replace all
5510 uses with type::is_stub.
5511
b4b73759
SM
55122020-09-14 Simon Marchi <simon.marchi@efficios.com>
5513
5514 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5515 (TYPE_STUB): Use type::is_stub, change all write call sites to
5516 use type::set_is_stub.
5517
20ce4123
SM
55182020-09-14 Simon Marchi <simon.marchi@efficios.com>
5519
5520 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5521 type::has_no_signedness.
5522
15152a54
SM
55232020-09-14 Simon Marchi <simon.marchi@efficios.com>
5524
5525 * gdbtypes.h (struct type) <has_no_signedness,
5526 set_has_no_signedness>: New methods.
5527 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5528 call sites to use type::set_has_no_signedness.
5529
c6d940a9
SM
55302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5531
5532 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5533 type::is_unsigned.
5534
653223d3
SM
55352020-09-14 Simon Marchi <simon.marchi@efficios.com>
5536
5537 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5538 methods.
5539 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5540 sites to use type::set_is_unsigned.
5541
55ea94da 55422020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5543 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5544
e851246a
SM
5545 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5546 pointer and stack frame offset when unwinding.
55ea94da 5547
6791b117
PA
55482020-09-13 Pedro Alves <pedro@palves.net>
5549
5550 * NEWS: Document "-break-insert --qualified".
5551 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5552
77f2120b
PA
55532020-09-13 Pedro Alves <pedro@palves.net>
5554
5555 * linespec.c (classify_mtype, compare_msyms): Delete.
5556 (search_minsyms_for_name): Remove classification logic. Instead
5557 filter out trampoline symbols if we also found an external
5558 function of the same name.
5559
ed6a896c
JB
55602020-09-13 Joel Brobecker <brobecker@adacore.com>
5561
5562 * NEWS: Create a new section for the next release branch.
5563 Rename the section of the current branch, now that it has
5564 been cut.
5565
32aea73e
JB
55662020-09-13 Joel Brobecker <brobecker@adacore.com>
5567
5568 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5569 * version.in: Bump version to 11.0.50.DATE-git.
5570
8087c3fa
JB
55712020-09-12 Joel Brobecker <brobecker@adacore.com>
5572
5573 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5574
2a67f09d
FW
55752020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5576 Felix Willgerodt <Felix.Willgerodt@intel.com>
5577
5578 * gdbarch.sh: Added bfloat16 type.
5579 * gdbarch.c: Regenerated.
5580 * gdbarch.h: Regenerated.
5581 * gdbtypes.c (floatformats_bfloat16): New struct.
5582 (gdbtypes_post_init): Add builtin_bfloat16.
5583 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5584 (floatformats_bfloat16): New struct.
5585 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5586 (i386_ymm_type): Add field "v16_bfloat16"
5587 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5588 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5589 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5590 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5591 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5592 * features/i386/64bit-avx512.c: Regenerated.
5593 * features/i386/64bit-sse.xml: Add bfloat16 type.
5594 * features/i386/64bit-sse.c: Regenerated.
5595
1347d111
FW
55962020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5597
5598 * i386-tdep.c (i386_zmm_type): Fix field names.
5599 (i386_ymm_type): Fix field names.
5600
7a4e8e7d
TBA
56012020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5602
5603 * breakpoint.c: Fix typo in the help message of the
5604 "set breakpoint condition-evaluation" command.
5605
cf4ac4be
KR
56062020-09-10 Kamil Rytarowski <n54@gmx.com>
5607
5608 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5609 * (nbsd_nat_target::pid_to_exec_file)
5610 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5611 (nbsd_nat_target::post_startup_inferior)
5612 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5613 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5614 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5615 * (nbsd_thread_lister): Remove.
5616
f404573e
KR
56172020-09-10 Kamil Rytarowski <n54@gmx.com>
5618
5619 * fork-inferior.c (startup_inferior): Avoid double free.
5620
1ccb2c17
KR
56212020-09-10 Kamil Rytarowski <n54@gmx.com>
5622
5623 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5624 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5625
feedfcc7
KR
56262020-09-10 Kamil Rytarowski <n54@gmx.com>
5627
5628 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5629 * netbsd-nat.c: Include <sys/ptrace.h>.
5630 * (netbsd_nat::enable_proc_events): Add.
5631
c489f8c6
KR
56322020-09-10 Kamil Rytarowski <n54@gmx.com>
5633
5634 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5635 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5636 (netbsd_nat::for_each_thread): Add.
5637 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5638 "gdbsupport/common-debug.h".
5639 * (netbsd_nat::netbsd_thread_lister)
5640 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5641 (netbsd_nat::for_each_thread): Add.
5642
330662f6
KR
56432020-09-10 Kamil Rytarowski <n54@gmx.com>
5644
5645 * netbsd-nat.h: Include <unistd.h>.
5646 * (netbsd_nat::pid_to_exec_file): Add.
5647 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5648 * (netbsd_nat::pid_to_exec_file) Add.
5649
70b67307
KR
56502020-09-10 Kamil Rytarowski <n54@gmx.com>
5651
5652 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5653
99cf6da6
KR
56542020-09-10 Kamil Rytarowski <n54@gmx.com>
5655
5656 * netbsd-nat.h: New file.
5657 * netbsd-nat.c: Likewise.
5658
1b788fb6
TT
56592020-09-09 Tom Tromey <tromey@adacore.com>
5660
5661 * ada-lang.c (remove_extra_symbols): Do not increment when
5662 removing an element
5663
03b0a45f
TT
56642020-09-08 Tom Tromey <tromey@adacore.com>
5665
5666 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5667
3cae4447
TT
56682020-09-08 Tom Tromey <tromey@adacore.com>
5669
5670 PR win32/25302:
5671 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5672 (gdb_bfd_init_data): New function.
5673 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5674
7f08fd51
TBA
56752020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5676
5677 * infrun.c (fetch_inferior_event): Use
5678 `switch_to_target_no_thread` to switch the target.
5679
3e6ff933
TT
56802020-09-06 Tom Tromey <tom@tromey.com>
5681
5682 * symfile.h (dwarf2_free_objfile): Don't declare.
5683
e56798df
AKS
56842020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5685
5686 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5687 to match 16 byte real/complex type generated by Flang compiler.
5688
8f5c6526
TV
56892020-09-03 Tom de Vries <tdevries@suse.de>
5690
5691 PR breakpoint/26546
5692 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5693 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5694
c5065df0
SM
56952020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5696
5697 * maint.c (index_digits): New function.
5698 (struct maint_print_section_data): Remove.
5699 (print_bfd_section_info): Remove print_data parameter, add arg
5700 and index_digits.
5701 (print_objfile_section_info): Likewise.
5702 (print_bfd_section_info_maybe_relocated): Likewise (plus
5703 objfile).
5704 (maintenance_info_sections): Adjust calls.
5705
02c6f3f1
TT
57062020-09-02 Tom Tromey <tromey@adacore.com>
5707
5708 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5709 for null pointers.
5710 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5711
ef5e5b0b
SM
57122020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5713
5714 * bcache.h (struct bcache) <insert>: Change type of `added` to
5715 pointer to bool.
5716 * bcache.c (bcache::insert): Likewise.
5717 * gdbtypes.c (check_types_worklist): Adjust.
5718 * psymtab.c (add_psymbol_to_bcache): Adjust.
5719
973695d6
KB
57202020-08-31 Kevin Buettner <kevinb@redhat.com>
5721
5722 * corelow.c (unordered_set): Include.
5723 (class core_target): Add field 'm_core_unavailable_mappings'.
5724 (core_target::build_file_mappings): Print only one warning
5725 per inaccessible file. Add unavailable/broken mappings
5726 to m_core_unavailable_mappings.
5727 (core_target::xfer_partial): Call...
5728 (core_target::xfer_memory_via_mappings): New method.
5729
264fc0e2
SM
57302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5731
5732 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5733 type to bool.
5734
2de01bdb
SM
57352020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5736
5737 * dwarf2/read.c (struct field_info): Fix indentation.
5738
f3bd50f1
SM
57392020-08-31 Simon Marchi <simon.marchi@efficios.com>
5740
5741 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5742 ordering in comment.
5743 * frame.c (frame_id_eq): Fix indentation.
5744
22b9b4b0
SL
57452020-08-31 Scott Linder <scott@scottlinder.com>
5746 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5749 inline frame ids in outer frame.
5750
84154d16
SM
57512020-08-31 Simon Marchi <simon.marchi@efficios.com>
5752
5753 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5754 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5755 (outer_frame_id): Use FID_STACK_OUTER instead of
5756 FID_STACK_INVALID.
5757 (frame_id_p): Don't check for outer_frame_id.
5758
8efaf6b3
SM
57592020-08-31 Simon Marchi <simon.marchi@efficios.com>
5760
5761 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5762 regnum/frame in value. Call allocate_value_lazy.
5763 * frame.c (frame_unwind_register_value): Use
5764 val_print_not_saved.
5765
fe1fe7ea
SM
57662020-08-31 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5769
f7c7700d
PA
57702020-08-29 Pedro Alves <pedro@palves.net>
5771
5772 * progspace.c (print_program_space): Use all_inferiors. Switch to
5773 the inferior before calling target_pid_to_str.
5774
e0814aae
TT
57752020-08-28 Tom Tromey <tom@tromey.com>
5776
5777 * xcoffread.c (xcoff_end_psymtab): Update comment.
5778 * dbxread.c (dbx_end_psymtab): Update comment.
5779
626d2320
TV
57802020-08-28 Tom de Vries <tdevries@suse.de>
5781
5782 PR breakpoint/26544
5783 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5784 event_location.
5785 (create_breakpoint): Same.
5786 (base_breakpoint_decode_location): Same.
5787 (bkpt_create_sals_from_location): Same.
5788 (bkpt_decode_location): Same.
5789 (bkpt_probe_create_sals_from_location): Same.
5790 (bkpt_probe_decode_location): Same.
5791 (tracepoint_create_sals_from_location): Same.
5792 (tracepoint_decode_location): Same.
5793 (tracepoint_probe_decode_location): Same.
5794 (strace_marker_create_sals_from_location): Same.
5795 (strace_marker_decode_location): Same.
5796 (create_sals_from_location_default): Same.
5797 (decode_location_default): Same.
5798 * breakpoint.h (struct breakpoint_ops): Same.
5799 (create_breakpoint): Same.
5800 * linespec.h (decode_line_full): Same.
5801 * linespec.c (decode_line_full): Same. Throw error if
5802 result.size () == 0.
5803
df631783
PA
58042020-08-27 Pedro Alves <pedro@palves.net>
5805
5806 PR gdb/26524
5807 * breakpoint.c (until_break_fsm) <location_breakpoint,
5808 caller_breakpoint>: Delete fields.
5809 <breakpoints>: New field.
5810 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5811 two individual breakpoints.
5812 (until_break_fsm::should_stop): Loop over breakpoints in the
5813 breakpoint vector.
5814 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5815 vector.
5816 (until_break_command): Handle location expanding into multiple
5817 sals.
5818
b2b38aa4
PA
58192020-08-27 Pedro Alves <pedro@palves.net>
5820
5821 PR gdb/26523
5822 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5823 bp_until breakpoints user-specified locations. Update intro
5824 comment.
5825
b886559f
SM
58262020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5829 gdb_bfd_sections): New.
5830 * maint.c (print_bfd_section_info): Change param type to
5831 maint_print_section_data.
5832 (print_objfile_section_info): Likewise.
5833 (print_bfd_section_info_maybe_relocated): Likewise.
5834 (maintenance_info_sections): Use gdb_bfd_sections.
5835
4c6e63bf
SV
58362020-08-25 Shahab Vahedi <shahab@synopsys.com>
5837
5838 * MAINTAINERS: Add ARC target and maintainer.
5839
8d7f0635
AK
58402020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5841
5842 * configure.tgt: ARC support for GNU/Linux.
5843 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5844 * arc-linux-tdep.c: New file.
5845 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5846 * arc-tdep.c (arc_write_pc): Use it.
5847
fdd8731b
SV
58482020-08-25 Shahab Vahedi <shahab@synopsys.com>
5849
5850 * arc-tdep.c (arc_check_for_hardware_loop): New.
5851 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5852
22459524
SV
58532020-08-25 Shahab Vahedi <shahab@synopsys.com>
5854
5855 * arc-tdep.h: Include "gdbarch.h".
5856
995d3a19
SV
58572020-08-25 Shahab Vahedi <shahab@synopsys.com>
5858
5859 * arch/arc.h
5860 (arc_gdbarch_features): New class to stir the selection of target XML.
5861 (arc_create_target_description): Use FEATURES to choose XML target.
5862 (arc_lookup_target_description): Use arc_create_target_description
5863 to create _new_ target descriptions or return the already created
5864 ones if the FEATURES is the same.
5865 * arch/arc.c: Implementation of prototypes described above.
5866 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5867 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5868 * arc-tdep.c (*_feature_name): Make feature names consistent.
5869 (arc_register_feature): A new struct to hold information about
5870 registers of a particular target/feature.
5871 (arc_check_tdesc_feature): Check if XML provides registers in
5872 compliance with ARC_REGISTER_FEATURE structs.
5873 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5874 (determine_*_reg_feature_set): Which feature name to look for.
5875 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5876 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5877 to expected ISA enums to be used in arc_gdbarch_features structs.
5878 * features/Makefile (FEATURE_XMLFILES): Add new files.
5879 * gdb/features/arc/v1-aux.c: New file.
5880 * gdb/features/arc/v1-aux.xml: Likewise.
5881 * gdb/features/arc/v1-core.c: Likewise.
5882 * gdb/features/arc/v1-core.xml: Likewise.
5883 * gdb/features/arc/v2-aux.c: Likewise.
5884 * gdb/features/arc/v2-aux.xml: Likewise.
5885 * gdb/features/arc/v2-core.c: Likewise.
5886 * gdb/features/arc/v2-core.xml: Likewise.
5887 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5888
3945d2d7
GM
58892020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5890 Andrew Burgess <andrew.burgess@embecosm.com>
5891
5892 PR m2/26372
fc5d6901 5893 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5894 an assert. Remove single element array indexing pattern as the
5895 MULTI_SUBSCRIPT support will handle this case too.
5896
2677f2d3
SM
58972020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5898
5899 * value.h (valprint_check_validity): Move declaration from
5900 here...
5901 * valprint.h (valprint_check_validity): ... to here.
5902
c426fddb
SM
59032020-08-24 Simon Marchi <simon.marchi@efficios.com>
5904
5905 * debug.h: New file.
5906 * debug.c (debug_prefixed_vprintf): New function.
5907 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5908 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5909
1eb8556f
SM
59102020-08-24 Simon Marchi <simon.marchi@efficios.com>
5911
5912 * infrun.h (infrun_debug_printf_1): New function declaration.
5913 (infrun_debug_printf): New macro.
5914 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5915 throughout.
5916 (infrun_debug_printf): New function.
5917 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5918 (handle_jit_event): Likewise.
5919
b8fff44e
MW
59202020-08-21 Mark Wielaard <mark@klomp.org>
5921
5922 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5923
d19c3068
SM
59242020-08-22 Simon Marchi <simon.marchi@efficios.com>
5925
5926 * frame.c (enum class frame_id_status): New.
5927 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5928 (fprintf_frame): Update.
5929 (compute_frame_id): Set frame id status to "computing" on entry.
5930 Set it back to "not_computed" on failure and to "computed" on
5931 success.
5932 (get_frame_id): Assert the frame id is not being computed.
5933 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5934 (create_new_frame): Likewise.
5935 (frame_cleanup_after_sniffer): Update assert.
5936
b70e516e
SM
59372020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5938
5939 * regcache.c (pid_ptid_regcache_map): New type.
5940 (target_ptid_regcache_map): Remove.
5941 (target_pid_ptid_regcache_map): New type.
5942 (regcaches): Change type to target_pid_ptid_regcache_map.
5943 (get_thread_arch_aspace_regcache): Update.
5944 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5945 case.
5946 (regcaches_size): Update.
5947 (regcache_count): Update.
5948 (registers_changed_ptid_target_pid_test): New.
5949 (_initialize_regcache): Register new test.
5950
cdd9148a
SM
59512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * regcache.c (regcache_count): New.
5954 (struct regcache_test_data): New.
5955 (regcache_test_data_up): New.
5956 (populate_regcaches_for_test): New.
5957 (regcaches_test): Remove.
5958 (get_thread_arch_aspace_regcache_test): New.
5959 (registers_changed_ptid_all_test): New.
5960 (registers_changed_ptid_target_test): New.
5961 (registers_changed_ptid_target_ptid_test): New.
5962 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5963 (_initialize_regcache): Register new tests.
5964
dd125343
SM
59652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5966
5967 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5968 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5969 gdbarch and aspace parameter. Use current inferior's aspace.
5970 Validate regcache's arch value.
5971 (regcaches_test): Update.
5972
3ee93972
SM
59732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5974
5975 * regcache.c (regcaches_test): Call registers_changed.
5976
33bf4c5c
TBA
59772020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5978
5979 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5980
c2fd7fae
AKS
59812020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5982
5983 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5984 to find the end of prologue for flang compiled binaries.
5985 * arm-tdep.c (arm_skip_prologue): Likewise.
5986 * i386-tdep.c (i386_skip_prologue): Likewise.
5987 * producer.c (producer_is_llvm): New function.
5988 (producer_parsing_tests): Added new tests for clang/flang.
5989 * producer.h (producer_is_llvm): New declaration.
5990
9327494e
SM
59912020-08-18 Simon Marchi <simon.marchi@efficios.com>
5992
5993 * linux-nat.c (linux_nat_debug_printf): New function.
5994 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5995
d138725a
AM
59962020-08-18 Aaron Merey <amerey@redhat.com>
5997
5998 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5999 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6000 (CLIBS): Add DEBUGINFOD_LIBS.
6001
f9b11e6b
ST
60022020-08-17 Sergei Trofimovich <siarheit@google.com>
6003
6004 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6005 'gdbarch_num_regs'.
6006
3ae7ab99
TT
60072020-08-17 Tom Tromey <tromey@adacore.com>
6008
6009 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6010 ada_get_decoded_value returns NULL.
6011
b017825f
TT
60122020-08-17 Tom Tromey <tromey@adacore.com>
6013
6014 * python/py-inferior.c (infpy_search_memory): Use
6015 gdb_py_object_from_ulongest.
6016 * python/py-infevents.c (create_inferior_call_event_object)
6017 (create_memory_changed_event_object): Use
6018 gdb_py_object_from_ulongest.
6019 * python/py-linetable.c (ltpy_entry_get_pc): Use
6020 gdb_py_object_from_ulongest.
6021
7635cf79
SM
60222020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6023
6024 * loc.c (class symbol_needs_eval_context): Fix indentation.
6025
f54be24b
SM
60262020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6029 bool.
6030
53d5a2a5
TV
60312020-08-17 Tom de Vries <tdevries@suse.de>
6032
6033 PR gdb/26393
6034 * gdbtypes.c (dump_dynamic_prop): New function.
6035 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6036
547ce8f0
TV
60372020-08-15 Tom de Vries <tdevries@suse.de>
6038
6039 PR backtrace/26390
6040 * stack.c (print_frame_args): Temporarily set the selected
6041 frame to FRAME while printing the frame's arguments.
6042
6ea815e7
PFC
60432020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6044
6045 PR breakpoints/26385
6046 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6047 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6048
6e562fa3
PFC
60492020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6050
6051 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6052 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6053 and >= to check return value instead of == -1 and != -1.
6054
d369b608
SM
60552020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * utils.h (class gdb_argv) <as_array_view>: New method.
6058 * utils.c (gdb_argv_as_array_view_test): New.
6059 (_initialize_utils): Register selftest.
6060 * maint.c (maintenance_selftest): Use the new method.
6061
b31488a3
KR
60622020-08-13 Kamil Rytarowski <n54@gmx.com>
6063
6064 * target.h (supports_dumpcore, dumpcore): New
6065 function declarations.
6066 * target.c (supports_dumpcore, dumpcore): New
6067 functions.
6068 * target-delegates.c: Rebuild.
6069 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6070 and target_dumpcore ().
6071
002a3166
AM
60722020-08-13 Aaron Merey <amerey@redhat.com>
6073
6074 * debuginfod-support.c: Replace global variables with user_data.
6075
ece5bc8a
SM
60762020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6077
6078 * maint.c (maintenance_selftest): Split args and pass array_view
6079 to run_tests.
6080
6d8a0a5e
LM
60812020-08-12 Luis Machado <luis.machado@linaro.org>
6082
6083 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6084 type's length.
6085 Use %s and pulongest to print the length.
6086
7cf663a9
PA
60872020-08-12 Pedro Alves <palves@redhat.com>
6088
6089 * NEWS: Move "Multi-target debugging support" item to the
6090 "Changes since GDB 9" section.
6091
27c7b875
PA
60922020-08-12 Pedro Alves <palves@redhat.com>
6093
6094 PR gdb/26336
6095 * progspace.c (program_space::remove_objfile): Invalidate the
6096 frame cache.
6097
1796a2a1
TV
60982020-08-11 Tom de Vries <tdevries@suse.de>
6099
6100 * MAINTAINERS: Mark ms1 as deleted.
6101
f8e3fe0d
LM
61022020-08-10 Luis Machado <luis.machado@linaro.org>
6103
6104 PR gdb/26310
6105
6106 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6107 act accordingly.
6108 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6109 movz/str/stur/stp skipping behavior.
6110
cc308722
LM
61112020-08-10 Luis Machado <luis.machado@linaro.org>
6112
6113 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6114 struct user_sve_header instead of struct sve_context.
6115
041d9819
SM
61162020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6117
6118 * read.h (dwarf2_fetch_die_loc_sect_off,
6119 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6120 `void *` parameter with function_view.
6121 * read.c (dwarf2_fetch_die_loc_sect_off,
6122 dwarf2_fetch_die_loc_cu_off): Likewise.
6123 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6124 (per_cu_dwarf_call): Adjust.
6125 (get_frame_address_in_block_wrapper): Remove.
6126 (indirect_synthetic_pointer): Adjust.
6127 (get_ax_pc): Remove.
6128 (dwarf2_compile_expr_to_ax): Adjust.
6129
38f8aa06
TV
61302020-08-08 Tom de Vries <tdevries@suse.de>
6131
6132 PR build/26344
6133 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6134 constructor.
6135 * regcache.c (get_thread_arch_aspace_regcache): Same.
6136
a52b3ae2
TT
61372020-08-07 Tom Tromey <tromey@adacore.com>
6138
6139 * ravenscar-thread.c
6140 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6141 New method.
6142 (ravenscar_thread_target::wait): Check
6143 runtime_initialized.
6144 (ravenscar_thread_target::prepare_to_store)
6145 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6146 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6147 (ravenscar_thread_target::stopped_by_watchpoint)
6148 (ravenscar_thread_target::stopped_data_address)
6149 (ravenscar_thread_target::core_of_thread): Use
6150 scoped_restore_current_thread and
6151 set_base_thread_from_ravenscar_task.
6152
0e29517d
TT
61532020-08-07 Tom Tromey <tromey@adacore.com>
6154
6155 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6156
592f9bd7
TT
61572020-08-07 Tom Tromey <tromey@adacore.com>
6158
6159 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6160 update_inferior_ptid before update_thread_list.
6161 (temporarily_change_regcache_ptid): New class.
6162 (ravenscar_thread_target::fetch_registers)
6163 (ravenscar_thread_target::store_registers)
6164 (ravenscar_thread_target::prepare_to_store): Use base thread when
6165 forwarding operation.
6166
39e2018a
TT
61672020-08-07 Tom Tromey <tromey@adacore.com>
6168
6169 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6170 "is_pid" case.
6171
2080266b
TT
61722020-08-07 Tom Tromey <tromey@adacore.com>
6173
6174 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6175 New methods.
6176 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6177 first.
6178 (ravenscar_thread_target::add_thread): Rename from
6179 ravenscar_add_thread.
6180 (ravenscar_thread_target::update_thread_list): Use a lambda.
6181 (ravenscar_thread_target::xfer_partial): New method.
6182
78c02f21
TT
61832020-08-07 Tom Tromey <tromey@adacore.com>
6184
6185 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6186 gdb::function_view.
6187 (iterate_over_live_ada_tasks): Change type of argument.
6188 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6189 of argument.
6190
d5d833af
TT
61912020-08-07 Tom Tromey <tromey@adacore.com>
6192
6193 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6194 Remove.
6195 (ravenscar_thread_target::extra_thread_info): Remove.
6196 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6197 defer to target beneath for non-Ravenscar threads.
6198
a8ac85bb
TT
61992020-08-07 Tom Tromey <tromey@adacore.com>
6200
6201 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6202 get_base_thread_from_ravenscar_task>: Now methods.
6203 <m_cpu_map>: New member.
6204 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6205 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6206 (ravenscar_thread_target::task_is_currently_active): Update.
6207 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6208 Now a method.
6209 (ravenscar_thread_target::add_active_thread): Put initial thread
6210 into the m_cpu_map.
6211
550ab58d
TT
62122020-08-07 Tom Tromey <tromey@adacore.com>
6213
6214 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6215 event_ptid.
6216
e9546579
TT
62172020-08-07 Tom Tromey <tromey@adacore.com>
6218
6219 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6220 runtime_initialized.
6221
3d4470e5
TT
62222020-08-07 Tom Tromey <tromey@adacore.com>
6223
6224 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6225 add_active_thread.
6226 (ravenscar_thread_target::add_active_thread): Now public.
6227 (ravenscar_inferior_created): Call add_active_thread after pushing
6228 the target.
6229
888bdb2b
SM
62302020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6231
6232 * regcache.c (ptid_regcache_map): New type.
6233 (target_ptid_regcache_map): New type.
6234 (regcaches): Change type to target_ptid_regcache_map.
6235 (get_thread_arch_aspace_regcache): Update to regcaches' new
6236 type.
6237 (regcache_thread_ptid_changed): Likewise.
6238 (registers_changed_ptid): Likewise.
6239 (regcaches_size): Likewise.
6240 (regcaches_test): Update.
6241 (regcache_thread_ptid_changed): Update.
6242 * regcache.h (regcache_up): New type.
6243 * gdbsupport/ptid.h (hash_ptid): New struct.
6244
b161a60d
SM
62452020-08-07 Simon Marchi <simon.marchi@efficios.com>
6246
6247 * observable.h (thread_ptid_changed): Add parameter
6248 `process_stratum_target *`.
6249 * infrun.c (infrun_thread_ptid_changed): Add parameter
6250 `process_stratum_target *` and use it.
6251 (selftests): New namespace.
6252 (infrun_thread_ptid_changed): New function.
6253 (_initialize_infrun): Register selftest.
6254 * regcache.c (regcache_thread_ptid_changed): Add parameter
6255 `process_stratum_target *` and use it.
6256 (regcache_thread_ptid_changed): New function.
6257 (_initialize_regcache): Register selftest.
6258 * thread.c (thread_change_ptid): Pass target to
6259 thread_ptid_changed observable.
6260
d2854d8d
CT
62612020-08-06 Caroline Tice <cmtice@google.com>
6262
fe4c3d43
SM
6263 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6264 (struct dwp_sections): Update field comments. Add loclists and
6265 rnglists fields.
6266 (struct virtual_v2_dwo_sections): Rename struct to
6267 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6268 size & offset fields for loclists and rnglists.
6269 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6270 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6271 skipping dummy type units.
6272 (create_dwp_hash_table): Update the large comment above the function to
6273 discuss Version 5 DWP files as well, with references. Update all the
6274 version checks in the function to check for version 5 as well. Add new
6275 section at the end to create dwp hash table for version 5.
6276 (create_dwp_v2_section): Rename function to
6277 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6278 Add V5 to error message text.
6279 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6280 into calls to create_dwp_v2_or_v5_section.
6281 (create_dwo_unit_in_dwp_v5): New function.
6282 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6283 check for version2; add else clause to handle version 5.
6284 (open_and_init_dwo_file): Add code to check dwarf version & only call
6285 create_debug_types_hash_table (with sections.types) if version is not 5;
6286 else call create_debug_type_hash_table, with sections.info.
6287 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6288 version 5.
6289 (dwarf2_locate_v5_dwp_sections): New function.
6290 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6291 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6292
159ed7d9
SM
62932020-08-06 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * regcache.h (class regcache): Remove friend
6296 registers_changed_ptid.
6297 <regcache_thread_ptid_changed>: Remove.
6298 <regcaches>: Remove.
6299 * regcache.c (regcache::regcaches): Rename to...
6300 (regcaches): ... this. Make static.
6301 (get_thread_arch_aspace_regcache): Update.
6302 (regcache::regcache_thread_ptid_changed): Rename to...
6303 (regcache_thread_ptid_changed): ... this. Update.
6304 (class regcache_access): Remove.
6305 (regcaches_test): Update.
6306 (_initialize_regcache): Update.
6307 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6308 <forward_list>.
6309
174981ae
SM
63102020-08-06 Simon Marchi <simon.marchi@efficios.com>
6311
6312 * regcache.h (class regcache) <current_regcache>: Rename to...
6313 <regcaches>: ... this. Move doc here.
6314 * regcache.c (regcache::current_regcache) Rename to...
6315 (regcache::regcaches): ... this. Move doc to header.
6316 (get_thread_arch_aspace_regcache): Update.
6317 (regcache::regcache_thread_ptid_changed): Update.
6318 (registers_changed_ptid): Update.
6319 (class regcache_access) <current_regcache_size>: Rename to...
6320 <regcaches_size>: ... this.
6321 (current_regcache_test): Rename to...
6322 (regcaches_test): ... this.
6323 (_initialize_regcache): Update.
6324
ed908db6
VC
63252020-08-06 Victor Collod <vcollod@nvidia.com>
6326
6327 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6328
b5582ab7
KB
63292020-08-05 Kevin Buettner <kevinb@redhat.com>
6330
6331 * corelow.c (core_target::build_file_mappings): Don't output
6332 null pathname in warning.
6333
ea946b86
SM
63342020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6337 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6338 gdb.dwarf2/dw2-single-line-discriminators.exp,
6339 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6340
57d02173
TT
63412020-08-05 Tom Tromey <tromey@adacore.com>
6342
6343 PR rust/26197:
6344 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6345 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6346 Fix off-by-one and type size errors in ordinary case.
6347
5555c86d
TV
63482020-08-05 Tom de Vries <tdevries@suse.de>
6349
6350 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6351 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6352
97916bfe
SM
63532020-08-04 Simon Marchi <simon.marchi@efficios.com>
6354
6355 * frame.h (frame_id_p): Return bool.
6356 (frame_id_artificial_p): Return bool.
6357 (frame_id_eq): Return bool.
6358 (has_stack_frames): Return bool.
6359 (get_selected_frame): Fix typo in comment.
6360 (get_frame_pc_if_available): Return bool.
6361 (get_frame_address_in_block_if_available): Return bool.
6362 (get_frame_func_if_available): Return bool.
6363 (read_frame_register_unsigned): Return bool.
6364 (get_frame_register_bytes): Return bool.
6365 (safe_frame_unwind_memory): Return bool.
6366 (deprecated_frame_register_read): Return bool.
6367 (frame_unwinder_is): Return bool.
6368 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6369 bool.
6370 <this_id::p>: Likewise.
6371 <prev_p>: Likewise.
6372 (frame_stash_add): Return bool.
6373 (get_frame_id): Use bool.
6374 (frame_id_build_special) Use bool.
6375 (frame_id_build_unavailable_stack): Use bool.
6376 (frame_id_build): Use bool.
6377 (frame_id_p): Return bool, use true/false instead of 1/0.
6378 (frame_id_artificial_p): Likewise.
6379 (frame_id_eq): Likewise.
6380 (frame_id_inner): Likewise.
6381 (get_frame_func_if_available): Likewise.
6382 (read_frame_register_unsigned): Likewise.
6383 (deprecated_frame_register_read): Likewise.
6384 (get_frame_register_bytes): Likewise.
6385 (has_stack_frames): Likewise.
6386 (inside_main_func): Likewise.
6387 (inside_entry_func): Likewise.
6388 (get_frame_pc_if_available): Likewise.
6389 (get_frame_address_in_block_if_available): Likewise.
6390 (frame_unwinder_is): Likewise.
6391 (safe_frame_unwind_memory): Likewise.
6392 (frame_unwind_arch): Likewise.
6393
fedfee88
SM
63942020-08-04 Simon Marchi <simon.marchi@efficios.com>
6395
6396 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6397 type to cached_copy_status.
6398 (fprintf_frame): Adjust.
6399 (get_frame_func_if_available): Adjust.
6400 (frame_cleanup_after_sniffer): Adjust.
6401
6cfa9b59
MW
64022020-08-04 Mark Wielaard <mark@klomp.org>
6403
6404 * MAINTAINERS (Write After Approval): Update email address.
6405
66d6346b
SM
64062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6407
6408 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6409 dynamic_prop::const_val.
6410
8a6d5e35
SM
64112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6412
6413 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6414 dynamic_prop::kind.
6415
51d6067d
SM
64162020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6417
6418 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6419
b26e2ae7
JM
64202020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6421
6422 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6423
39791af2
JM
64242020-08-04 Weimin Pan <weimin.pan@oracle.com>
6425 Jose E. Marchesi <jose.marchesi@oracle.com>
6426
6427 * configure.tgt: Add entry for bpf-*-*.
6428 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6429 (ALLDEPFILES): Add bpf-tdep.c.
6430 * bpf-tdep.c: New file.
6431 * MAINTAINERS: Add bpf target and maintainer.
6432 * NEWS: Mention the support for the new target.
6433
521894aa
TV
64342020-08-04 Tom de Vries <tdevries@suse.de>
6435
6436 PR symtab/23270
6437 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6438 Error.
6439
5d6356e9
JB
64402020-08-03 John Baldwin <jhb@FreeBSD.org>
6441
6442 * syscalls/freebsd.xml: Regenerate.
6443
0cf82b81
JB
64442020-08-03 John Baldwin <jhb@FreeBSD.org>
6445
6446 * syscalls/update-freebsd.sh: Fix usage and year range.
6447
8f34b746
TV
64482020-08-03 Tom de Vries <tdevries@suse.de>
6449
6450 PR symtab/26333
6451 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6452 DW_LNE_lo_user/DW_LNE_hi_user range.
6453
5e500d33
SM
64542020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6455
6456 PR ada/26318
6457 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6458 kind.
6459
78319c15
TBA
64602020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6461
6462 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6463
4c55e970
TBA
64642020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6465
6466 * breakpoint.c (set_breakpoint_condition): Update the condition
6467 expressions after checking that the input condition string parses
6468 successfully and does not contain junk at the end.
6469
1e620590
TBA
64702020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6471
6472 * breakpoint.c (set_breakpoint_condition): Update the
6473 condition string after parsing the new condition successfully.
6474
c8693053
RO
64752020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6476
6477 * proc-api.c (_STRUCTURED_PROC): Don't define.
6478 * proc-events.c: Likewise.
6479 * proc-flags.c: Likewise.
6480 * proc-why.c: Likewise.
6481 * procfs.c: Likewise.
6482
6483 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6484 * configure, config.in: Regenerate.
6485
5a99adb8
TV
64862020-07-30 Tom de Vries <tdevries@suse.de>
6487
6488 PR build/26320
6489 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6490 m_red/m_green/m_blue in a union.
6491
8ba83e91
TV
64922020-07-29 Tom de Vries <tdevries@suse.de>
6493
6494 PR tdep/26280
6495 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6496
f75a0693
AB
64972020-07-28 Tom Tromey <tromey@adacore.com>
6498
6499 PR symtab/26270:
6500 * symtab.h (find_pc_partial_function_sym): Declare.
6501 * cli/cli-cmds.c (disassemble_command): Use
6502 find_pc_partial_function_sym. Check asm_demangle.
6503 * blockframe.c (cache_pc_function_sym): New global.
6504 (cache_pc_function_name): Remove.
6505 (clear_pc_function_cache): Update.
6506 (find_pc_partial_function_sym): New function, from
6507 find_pc_partial_function.
6508 (find_pc_partial_function): Rewrite using
6509 find_pc_partial_function_sym.
6510
16f3242c
TT
65112020-07-28 Tom Tromey <tromey@adacore.com>
6512
6513 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6514 help. Add usage.
6515
4888741a
TT
65162020-07-28 Tom Tromey <tromey@adacore.com>
6517
6518 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6519 <DW_OP_GNU_variable_value>: Cast to address type.
6520
4d46f402
KR
65212020-07-28 Kamil Rytarowski <n54@gmx.com>
6522
6523 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6524 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6525 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6526 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6527 (nbsd_get_siginfo_type): New.
6528 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6529 (_initialize_nbsd_tdep): New.
6530
d70f978b
L
65312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6532
6533 PR binutils/26301
6534 * configure: Regenerated.
6535
377170fa
L
65362020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6537
6538 PR binutils/26301
6539 * configure: Regenerated.
6540
43d5901d
AB
65412020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6542
6543 * python/py-frame.c: Remove 'user-regs.h' include.
6544 (frapy_read_register): Rewrite to make use of
6545 gdbpy_parse_register_id.
6546 * python/py-registers.c (gdbpy_parse_register_id): New function,
6547 moved here from python/py-unwind.c. Updated the return type, and
6548 also accepts register descriptor objects.
6549 * python/py-unwind.c: Remove 'user-regs.h' include.
6550 (pyuw_parse_register_id): Moved to python/py-registers.c.
6551 (unwind_infopy_add_saved_register): Update to use
6552 gdbpy_parse_register_id.
6553 (pending_framepy_read_register): Likewise.
6554 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6555
14fa8fb3
AB
65562020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6557
6558 * python/py-registers.c: Add 'user-regs.h' include.
6559 (register_descriptor_iter_find): New function.
6560 (register_descriptor_iterator_object_methods): New static global
6561 methods array.
6562 (register_descriptor_iterator_object_type): Add pointer to methods
6563 array.
6564
ddce1758
JB
65652020-07-27 John Baldwin <jhb@FreeBSD.org>
6566
6567 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6568 for all architectures on FreeBSD 11.3 and later.
6569
a4089f52
TT
65702020-07-27 Tom Tromey <tromey@adacore.com>
6571
6572 * gcore.h (load_corefile): Don't declare.
6573
95420d30
TV
65742020-07-27 Tom de Vries <tdevries@suse.de>
6575
6576 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6577 * config.in: Regenerate.
6578 * configure: Regenerate.
6579
05a6b8c2
EZ
65802020-07-26 Eli Zaretskii <eliz@gnu.org>
6581
6582 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6583 ws2tcpip.h. When checking whether socklen_t type is defined, use
6584 ws2tcpip.h if it is available and sys/socket.h isn't.
6585 * configure: Regenerate.
6586 * config.in: Regenerate.
6587
e79eb02f
AB
65882020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6589
6590 PR fortran/23051
6591 PR fortran/26139
6592 * valops.c (value_ind): Pass address to
6593 readjust_indirect_value_type.
6594 * value.c (readjust_indirect_value_type): Make parameter
6595 non-const, and add extra address parameter. Resolve original type
6596 before using it.
6597 * value.h (readjust_indirect_value_type): Update function
6598 signature and comment.
6599
876518dd
TV
66002020-07-25 Tom de Vries <tdevries@suse.de>
6601
6602 PR symtab/26243
6603 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6604 entries.
6605
f6720b1c
AM
66062020-07-24 Aaron Merey <amerey@redhat.com>
6607
6608 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6609 * configure: Rebuild.
6610
513487e1
KB
66112020-07-23 Kevin Buettner <kevinb@redhat.com>
6612
6613 PR corefiles/26294
6614 * corelow.c (_initialize_corelow): Add period to help text
6615 for "maintenance print core-file-backed-mappings".
6616
e7bc9db8
PA
66172020-07-23 Pedro Alves <pedro@palves.net>
6618
6619 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6620 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6621 meanwhile.
6622 * frame.c (frame_cache_generation, get_frame_cache_generation):
6623 New.
6624 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6625 (get_prev_frame_if_no_cycle): On exception, don't touch
6626 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6627 * frame.h (get_frame_cache_generation): Declare.
6628
90fcc466
TV
66292020-07-23 Tom de Vries <tdevries@suse.de>
6630
6631 PR tui/26282
6632 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6633 New default constructor.
6634
78344df7
AB
66352020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6638 exclude non-statement entries.
6639
b089853a
KB
66402020-07-22 Kevin Buettner <kevinb@redhat.com>
6641
6642 * NEWS (New commands): Mention new command
6643 "maintenance print core-file-backed-mappings".
6644
09c2f5d4
KB
66452020-07-22 Kevin Buettner <kevinb@redhat.com>
6646
6647 * corelow.c (gdbcmd.h): Include.
6648 (core_target::info_proc_mappings): New method.
6649 (get_current_core_target): New function.
6650 (maintenance_print_core_file_backed_mappings): New function.
6651 (_initialize_corelow): Add core-file-backed-mappings to
6652 "maint print" commands.
6653
9c5ec5c2 66542020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6655
9c5ec5c2
KB
6656 * linux-tdep.c (dump_note_entry_p): New function.
6657 (linux_dump_mapping_p_ftype): New typedef.
6658 (linux_find_memory_regions_full): Add new parameter,
6659 should_dump_mapping_p.
6660 (linux_find_memory_regions): Adjust call to
6661 linux_find_memory_regions_full.
6662 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6663 call to linux_find_memory_regions_full.
6664
db082f59
KB
66652020-07-22 Kevin Buettner <kevinb@redhat.com>
6666
6667 * corelow.c (solist.h, unordered_map): Include.
6668 (class core_target): Add field m_core_file_mappings and
6669 method build_file_mappings.
6670 (core_target::core_target): Call build_file_mappings.
6671 (core_target::~core_target): Free memory associated with
6672 m_core_file_mappings.
6673 (core_target::build_file_mappings): New method.
6674 (core_target::xfer_partial): Use m_core_file_mappings
6675 for memory transfers.
6676 * linux-tdep.c (linux_read_core_file_mappings): New
6677 function.
6678 (linux_core_info_proc_mappings): Rewrite to use
6679 linux_read_core_file_mappings.
6680 (linux_init_abi): Register linux_read_core_file_mappings.
6681
7e183d27
KB
66822020-07-22 Kevin Buettner <kevinb@redhat.com>
6683
6684 * arch-utils.c (default_read_core_file_mappings): New function.
6685 * arch-utils.c (default_read_core_file_mappings): Declare.
6686 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6687 * gdbarch.h, gdbarch.c: Regenerate.
6688
2735d421
KB
66892020-07-22 Kevin Buettner <kevinb@redhat.com>
6690
6691 PR corefiles/25631
6692 * corelow.c (core_target:xfer_partial): Revise
6693 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6694 case after first checking the stratum beneath the core
6695 target.
6696 (has_all_memory): Return true.
6697 * target.c (raw_memory_xfer_partial): Revise comment
6698 regarding use of has_all_memory.
6699
e56cb451
KB
67002020-07-22 Kevin Buettner <kevinb@redhat.com>
6701
6702 * exec.h (section_table_xfer_memory): Revise declaration,
6703 replacing section name parameter with an optional callback
6704 predicate.
6705 * exec.c (section_table_xfer_memory): Likewise.
6706 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6707 of section_table_xfer_memory.
6708
32fa152e
TT
67092020-07-22 Tom Tromey <tromey@adacore.com>
6710
6711 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6712 lookup_symbol_search_name.
6713
a67a1c41
AB
67142020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6715
6716 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6717 redundant local variable.
6718 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6719 reference, not pointer, update code accordingly.
6720
a7b4ff4f
SM
67212020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6722 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6723
6724 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6725 * jit.c (jit_breakpoint_re_set_internal): Use the
6726 `skip_jit_symbol_lookup` field.
6727
2340e834
SM
67282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6729 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6730
6731 * jit.c (jit_read_descriptor): Define the descriptor address once,
6732 use twice.
6733 (jit_breakpoint_deleted): Move the declaration of the loop variable
6734 `iter` into the loop header.
6735 (jit_breakpoint_re_set_internal): Move the declaration of the local
6736 variable `objf_data` to the first point of definition.
6737 (jit_event_handler): Move the declaration of local variables
6738 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6739 Rename `objf` to `jited`.
6740
c1072906
SM
67412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6742
6743 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6744 Remove.
6745 * jit.c (get_jiter_objfile_data): Update.
6746
c8474dc3
TBA
67472020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6748 Simon Marchi <simon.marchi@polymtl.ca>
6749
6750 * jit.c (struct jit_program_space_data): Remove.
6751 (jit_program_space_key): Remove.
6752 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6753 stuff.
6754 (get_jit_program_space_data): Remove.
6755 (jit_breakpoint_deleted): Iterate on all of the program space's
6756 objfiles.
6757 (jit_inferior_init): Likewise.
6758 (jit_breakpoint_re_set_internal): Likewise. Also change return
6759 type to void.
6760 (jit_breakpoint_re_set): Pass current_program_space to
6761 jit_breakpoint_re_set_internal.
6762
77208eb7
SM
67632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6764
6765 * jit.h (struct jiter_objfile_data) <cached_code_address,
6766 jit_breakpoint>: Move to here from ...
6767 * jit.c (jit_program_space_data): ... here.
6768 (jiter_objfile_data::~jiter_objfile_data): Update.
6769 (jit_breakpoint_deleted): Update.
6770 (jit_breakpoint_re_set_internal): Update.
6771
8c1c720f
SM
67722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6775 checks.
6776 (jit_read_descriptor): Remove NULL check.
6777 (jit_event_handler): Add an assertion.
6778
0e74a041
SM
67792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6780
6781 * jit.h (struct jit_objfile_data): Split into...
6782 (struct jiter_objfile_data): ... this ...
6783 (struct jited_objfile_data): ... and this.
6784 * objfiles.h (struct objfile) <jit_data>: Remove.
6785 <jiter_data, jited_data>: New fields.
6786 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6787 (jiter_objfile_data::~jiter_objfile_data): ... this.
6788 (get_jit_objfile_data): Rename to ...
6789 (get_jiter_objfile_data): ... this.
6790 (add_objfile_entry): Update.
6791 (jit_read_descriptor): Use get_jiter_objfile_data.
6792 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6793 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6794 (jit_inferior_exit_hook): Use objfile's jited_data field.
6795
238b5c9f
SM
67962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6797
6798 * jit.h: Forward-declare `struct minimal_symbol`.
6799 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6800 constructor, destructor, and an objfile* field.
6801 * jit.c (jit_objfile_data): Remove.
6802 (struct jit_objfile_data): Migrate from here to jit.h.
6803 (jit_objfile_data::~jit_objfile_data): New destructor
6804 implementation with code moved from free_objfile_data.
6805 (free_objfile_data): Delete.
6806 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6807 (jit_find_objf_with_entry_addr): Ditto.
6808 (jit_inferior_exit_hook): Ditto.
6809 (_initialize_jit): Remove the call to
6810 register_objfile_data_with_cleanup.
6811 * objfiles.h (struct objfile) <jit_data>: New field.
6812
fe053b9e
TBA
68132020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6814
6815 * jit.h: Forward-declare `struct objfile`.
6816 (jit_event_handler): Add a second parameter, the JITer objfile.
6817 * jit.c (jit_read_descriptor): Change the signature to take the
6818 JITer objfile as an argument instead of the jit_program_space_data.
6819 (jit_inferior_init): Update the call to jit_read_descriptor.
6820 (jit_event_handler): Use the new JITer objfile argument when calling
6821 jit_read_descriptor.
6822 * breakpoint.c (handle_jit_event): Update the call to
6823 jit_event_handler to pass the JITer objfile.
6824
4cec0c66
JB
68252020-07-21 John Baldwin <jhb@FreeBSD.org>
6826
6827 * gdbarch.c: Regenerate.
6828 * gdbarch.h: Regenerate.
6829 * gdbarch.sh (handle_segmentation_fault): Remove method.
6830 * infrun.c (handle_segmentation_fault): Remove.
6831 (print_signal_received_reason): Remove call to
6832 handle_segmentation_fault.
6833
0e42f66a
JB
68342020-07-21 John Baldwin <jhb@FreeBSD.org>
6835
6836 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6837 Rename to sparc64_linux_report_signal_info and add siggnal
6838 argument.
6839 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6840 instead of sparc64_linux_handle_segmentation_fault.
6841
77bdfeb2
JB
68422020-07-21 John Baldwin <jhb@FreeBSD.org>
6843
6844 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6845 i386_linux_report_signal_info instead of
6846 i386_linux_handle_segmentation_fault.
6847 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6848 to i386_linux_report_signal_info and add siggnal argument.
6849 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6850 of i386_linux_handle_segmentation_fault.
6851 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6852 to i386_linux_report_signal_info and add siggnal argument.
6853
ad97bfc5
JB
68542020-07-21 John Baldwin <jhb@FreeBSD.org>
6855
6856 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6857 hook if present.
6858
272bb05c
JB
68592020-07-21 John Baldwin <jhb@FreeBSD.org>
6860
6861 * gdbarch.c: Regenerate.
6862 * gdbarch.h: Regenerate.
6863 * gdbarch.sh (report_signal_info): New method.
6864 * infrun.c (print_signal_received_reason): Invoke gdbarch
6865 report_signal_info hook if present.
6866
baf8791e
AB
68672020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6868
6869 * python/py-registers.c : Add 'unordered_map' include.
6870 (gdbpy_new_reggroup): Renamed to...
6871 (gdbpy_get_reggroup): ...this. Update to only create register
6872 group descriptors when needed.
6873 (gdbpy_reggroup_iter_next): Update.
6874
f7306dac
AB
68752020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * python/py-registers.c (gdbpy_register_object_data): New static
6878 global.
6879 (gdbpy_register_object_data_init): New function.
6880 (gdbpy_new_register_descriptor): Renamed to...
6881 (gdbpy_get_register_descriptor): ...this, and update to reuse
6882 existing register descriptors where possible.
6883 (gdbpy_register_descriptor_iter_next): Update.
6884 (gdbpy_initialize_registers): Register new gdbarch data.
6885
05c309a8
SM
68862020-07-21 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * linux-nat.c (stopped_pids): Make static.
6889
d1fd641e
SM
68902020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6891
6892 PR ada/26235
6893 * gdbtypes.c (ada_discrete_type_low_bound,
6894 ada_discrete_type_high_bound): Handle undefined bounds.
6895
1de14d77
KR
68962020-07-21 Kamil Rytarowski <n54@gmx.com>
6897
6898 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6899 declaration.
6900 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6901 function.
6902
ed810cc7
JB
69032020-07-20 John Baldwin <jhb@FreeBSD.org>
6904
6905 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6906 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6907 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6908 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6909 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6910 method.
6911
ae5369e7
LC
69122020-07-20 Ludovic Courtès <ludo@gnu.org>
6913
6914 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6915 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6916 which are deprecated in Guile 3.0.
6917 * configure.ac (try_guile_versions): Add "guile-3.0".
6918 * configure (try_guile_versions): Regenerate.
6919 * NEWS: Update entry.
6920
68cf161c
LC
69212020-07-20 Ludovic Courtès <ludo@gnu.org>
6922 Doug Evans <dje@google.com>
6923
6924 PR gdb/21104
6925 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6926 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6927 USING_GUILE_BEFORE_2_2.
6928 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6929 Change type to 'scm_t_port_type *'.
6930 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6931 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6932 parameter and honor it. Update callers.
6933 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6934 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6935 functions.
6936 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6937 USING_GUILE_BEFORE_2_2.
6938 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6939 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6940 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6941 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6942 and 'SCM_PORT_TYPE'.
6943 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6944 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6945 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6946 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6947 [!USING_GUILE_BEFORE_2_2]: New functions.
6948 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6949 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6950 'gdbscm_memory_port_read'.
6951 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6952 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6953 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6954 function.
6955 (ioscm_init_memory_port): Remove.
6956 (ioscm_init_memory_port_stream): New function
6957 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6958 function.
6959 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6960 Return scm_from_uint (0).
6961 (gdbscm_set_memory_port_read_buffer_size_x)
6962 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6963 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6964 Return scm_from_uint (0).
6965 (gdbscm_set_memory_port_write_buffer_size_x)
6966 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6967 * configure.ac (try_guile_versions): Add "guile-2.2".
6968 * configure: Regenerate.
6969 * NEWS: Add entry.
6970
aee91db3
TT
69712020-07-18 Tom Tromey <tom@tromey.com>
6972
6973 * linux-nat.c (linux_multi_process): Remove.
6974 (linux_nat_target::supports_multi_process): Return true.
6975
0e267416
AB
69762020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6977
6978 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6979 (riscv_lookup_target_description): Return pointer out of
6980 unique_ptr.
6981 * target-descriptions.c (allocate_target_description): Add
6982 comment.
6983 (target_desc_deleter::operator()): Likewise.
6984 * target-descriptions.h (struct target_desc_deleter): Moved to
6985 gdbsupport/tdesc.h.
6986 (target_desc_up): Likewise.
6987
f80c8ec4
TT
69882020-07-17 Tom Tromey <tromey@adacore.com>
6989
6990 * linux-nat.c (linux_nat_target::supports_non_stop)
6991 (linux_nat_target::always_non_stop_p): Use "true".
6992 (linux_nat_target::supports_disable_randomization): Use "true" and
6993 "false".
6994
d0ce17d8
CT
69952020-07-16 Caroline Tice <cmtice@google.com>
6996
6997 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6998 (RNGLIST_HEADER_SIZE64): New constant definition.
6999 (struct dwop_section_names): Add rnglists_dwo.
7000 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7001 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7002 (struct dwo_sections): Add rnglists field.
7003 (read_attribut_reprocess): Add tag parameter.
7004 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7005 (cu_debug_rnglists_section): New function (decl & definition).
7006 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7007 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7008 die whose range is being checked; get rnglist section from
7009 cu_debug_rnglists_section, to get from either objfile or dwo file as
7010 appropriate. Add cases for DW_RLE_base_addressx,
7011 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7012 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7013 test inside if-condition and updating complaint message.
7014 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7015 dwarf2_rnglists_process.
7016 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7017 dwarf2_ranges_process.
7018 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7019 need_ranges_base and update comment appropriately. Also pass die tag
7020 to dwarf2_ranges_read.
7021 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7022 need_ranges_base and update comment appropriately. Also pass die tag
7023 to dwarf2_ranges_process.
7024 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7025 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7026 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7027 need_ranges_base and update comment appropriately. Also pass die tag
7028 to read_attribute_reprocess and dwarf2_ranges_read.
7029 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7030 and update function comment appropriately.
7031 (read_loclist_index): Call read_loclists_rnglists_header instead of
7032 read_loclist_header.
7033 (read_rnglist_index): New function.
7034 (read_attribute_reprocess): Add tag parameter. Add code for
7035 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7036 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7037
3dcc261c
AB
70382020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7041 being resolved.
7042
ccb9eba6
AB
70432020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * arch-utils.c (show_architecture): Update formatting of messages.
7046
cf88be68
SM
70472020-07-12 Simon Marchi <simon.marchi@efficios.com>
7048
7049 * gdbtypes.h (struct type) <bounds>: Handle array and string
7050 types.
7051 * ada-lang.c (assign_aggregate): Use type::bounds on
7052 array/string type.
7053 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7054 * c-varobj.c (c_number_of_children): Likewise.
7055 (c_describe_child): Likewise.
7056 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7057 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7058 (f_type_print_base): Likewise.
7059 * f-valprint.c (f77_array_offset_tbl): Likewise.
7060 (f77_get_upperbound): Likewise.
7061 (f77_print_array_1): Likewise.
7062 * guile/scm-type.c (gdbscm_type_range): Likewise.
7063 * m2-typeprint.c (m2_array): Likewise.
7064 (m2_is_long_set_of_type): Likewise.
7065 * m2-valprint.c (get_long_set_bounds): Likewise.
7066 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7067 * python/py-type.c (typy_range): Likewise.
7068 * rust-lang.c (rust_internal_print_type): Likewise.
7069 * type-stack.c (type_stack::follow_types): Likewise.
7070 * valarith.c (value_subscripted_rvalue): Likewise.
7071 * valops.c (value_cast): Likewise.
7072
509971ae
SM
70732020-07-12 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7076 callers to use the equivalent accessor methods.
7077
107406b7
SM
70782020-07-12 Simon Marchi <simon.marchi@efficios.com>
7079
7080 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7081 (struct type) <bit_stride>: New method.
7082 (TYPE_BIT_STRIDE): Remove.
7083 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7084
bb789949
SM
70852020-07-12 Simon Marchi <simon.marchi@efficios.com>
7086
7087 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7088 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7089 callers to use the equivalent accessor methods instead.
7090
39498edb
SM
70912020-07-12 Simon Marchi <simon.marchi@efficios.com>
7092
7093 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7094 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7095 callers to use the equivalent accessor methods instead.
7096
3b606f38
SM
70972020-07-12 Simon Marchi <simon.marchi@efficios.com>
7098
7099 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7100 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7101 to use dynamic_prop::kind.
7102
064d9cb9
SM
71032020-07-12 Simon Marchi <simon.marchi@efficios.com>
7104
7105 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7106 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7107 to get the bound property's kind and check against
7108 PROP_UNDEFINED.
7109
5537ddd0
SM
71102020-07-12 Simon Marchi <simon.marchi@efficios.com>
7111
7112 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7113 all callers to use type::range_bounds followed by
7114 dynamic_prop::{low,high}.
7115
8c2e4e06
SM
71162020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7117
7118 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7119 const_val, set_const_val, baton, set_locexpr, set_loclist,
7120 set_addr_offset, variant_parts, set_variant_parts,
7121 original_type, set_original_type>: New methods.
7122 <kind>: Rename to...
7123 <m_kind>: ... this. Update all users to use the new methods
7124 instead.
7125 <data>: Rename to...
7126 <m_data>: ... this. Update all users to use the new methods
7127 instead.
7128
7c6f2712
SM
71292020-07-12 Simon Marchi <simon.marchi@efficios.com>
7130
7131 * gdbtypes.c (get_discrete_bounds): Return failure if
7132 the range type's bounds are not both defined and constant
7133 values.
7134 (get_array_bounds): Update comment. Remove undefined bound check.
7135
599088e3
SM
71362020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7137
7138 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7139 the type::bounds method directly.
7140
c4dfcb36
SM
71412020-07-12 Simon Marchi <simon.marchi@efficios.com>
7142
7143 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7144 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7145 are used to set the range type's bounds to use set_bounds.
7146
0a278aa7
PW
71472020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7148
7149 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7150
cce20f10
PA
71512020-07-10 Pedro Alves <pedro@palves.net>
7152
7153 * gdbthread.h (inferior_ref): Define.
7154 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7155 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7156 * thread.c
7157 (scoped_restore_current_thread::restore):
7158 Adjust to gdb::ref_ptr.
7159 (scoped_restore_current_thread::~scoped_restore_current_thread):
7160 Remove manual decref handling.
7161 (scoped_restore_current_thread::scoped_restore_current_thread):
7162 Adjust to use
7163 inferior_ref::new_reference/thread_info_ref::new_reference.
7164 Incref the thread before calling get_frame_id instead of after.
7165 Let TARGET_CLOSE_ERROR propagate.
7166
6d7aa592
PA
71672020-07-10 Pedro Alves <pedro@palves.net>
7168
7169 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7170 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7171 NOT_AVAILABLE_ERROR.
7172 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7173 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7174
b3e3a4c1
SM
71752020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7176 Pedro Alves <pedro@palves.net>
7177
7178 PR gdb/26199
7179 * infrun.c (threads_are_resumed_pending_p): Delete.
7180 (do_target_wait): Remove threads_are_executing and
7181 threads_are_resumed_pending_p checks from the inferior_matches
7182 lambda. Update comments.
7183
d6cc5d98
PA
71842020-07-10 Pedro Alves <pedro@palves.net>
7185
7186 PR gdb/26199
7187 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7188 executing threads.
7189
7d3badc6
PA
71902020-07-10 Pedro Alves <pedro@palves.net>
7191
7192 PR gdb/26199
7193 * infrun.c (handle_no_resumed): Handle multiple targets.
7194
42bd97a6
PA
71952020-07-10 Pedro Alves <pedro@palves.net>
7196
7197 PR gdb/26199
7198 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7199 target_is_async_p.
7200
43667cc6
PA
72012020-07-10 Pedro Alves <pedro@palves.net>
7202
7203 PR gdb/26199
7204 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7205 threads, not all threads.
7206
96118d11
PA
72072020-07-10 Pedro Alves <pedro@palves.net>
7208
7209 PR gdb/26199
7210 * remote.c (remote_target::open_1): Pass remote target pointer as
7211 data to create_async_event_handler.
7212 (remote_async_inferior_event_handler): Mark async event handler
7213 before returning if the remote target still has either pending
7214 events or unacknowledged notifications.
7215
54904d81
JB
72162020-07-10 John Baldwin <jhb@FreeBSD.org>
7217
7218 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7219 declaration.
7220 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7221 function.
7222
f37e5866
JB
72232020-07-09 John Baldwin <jhb@FreeBSD.org>
7224
7225 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7226 inferior_ptid.
7227
fc238d4a
JB
72282020-07-09 John Baldwin <jhb@FreeBSD.org>
7229
7230 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7231 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7232 AT_FREEBSD_PS_STRINGS.
7233
6e2469ff
HD
72342020-07-08 Hannes Domani <ssbssa@yahoo.de>
7235
7236 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7237 of debugfile path on Windows.
7238
d1076c41
JB
72392020-07-08 John Baldwin <jhb@FreeBSD.org>
7240
7241 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7242 argument to 'data'.
7243
15f3b077
TT
72442020-07-08 Tom Tromey <tromey@adacore.com>
7245
7246 * ada-lang.c (ada_exception_message_1): Use read_memory.
7247
9fc501fd
AB
72482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 PR python/22748
7251 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7252 special handling for inline frames.
7253 * findvar.c (value_of_register_lazy): Skip inline frames when
7254 creating lazy register values.
7255 * frame.c (frame_id_computed_p): Delete definition.
7256 * frame.h (frame_id_computed_p): Delete declaration.
7257
64cb3757
AB
72582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7259
7260 * NEWS: Mention additions to Python API.
7261 * python/py-arch.c (archpy_register_groups): New function.
7262 (arch_object_methods): Add 'register_groups' method.
7263 * python/py-registers.c (reggroup_iterator_object): New struct.
7264 (reggroup_object): New struct.
7265 (gdbpy_new_reggroup): New function.
7266 (gdbpy_reggroup_to_string): New function.
7267 (gdbpy_reggroup_name): New function.
7268 (gdbpy_reggroup_iter): New function.
7269 (gdbpy_reggroup_iter_next): New function.
7270 (gdbpy_new_reggroup_iterator): New function
7271 (gdbpy_initialize_registers): Register new types.
7272 (reggroup_iterator_object_type): Define new Python type.
7273 (gdbpy_reggroup_getset): New static global.
7274 (reggroup_object_type): Define new Python type.
7275 * python/python-internal.h
7276
0f767f94
AB
72772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7278
7279 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7280 * python/py-arch.c (archpy_registers): New function.
7281 (arch_object_methods): Add 'registers' method.
7282 * python/py-registers.c: New file.
7283 * python/python-internal.h
7284 (gdbpy_new_register_descriptor_iterator): Declare.
7285 (gdbpy_initialize_registers): Declare.
7286 * python/python.c (do_start_initialization): Call
7287 gdbpy_initialize_registers.
7288 * NEWS: Mention additions to the Python API.
7289
87dbc774
AB
72902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7291
7292 * NEWS: Mention new Python API method.
7293 * python/py-unwind.c (pending_framepy_architecture): New function.
7294 (pending_frame_object_methods): Add architecture method.
7295
3bc98c0c
AB
72962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7297
7298 * gdbarch.c: Regenerate.
7299 * gdbarch.h: Regenerate.
7300 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7301 (gdbarch_data): Use internal_error for the case where
7302 deprecated_set_gdbarch_data was originally needed.
7303 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7304 and use passed in obstack.
7305 (libunwind_frame_set_descr): Should no longer get back NULL from
7306 gdbarch_data.
7307 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7308 type.
7309 * user-regs.c (user_regs_init): Update parameters, and use passed
7310 in obstack.
7311 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7312 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7313
d8cc8af6
TV
73142020-07-06 Tom de Vries <tdevries@suse.de>
7315
7316 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7317 End-Of-Sequence in lte_is_less_than.
7318 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7319 "gdb: Don't reorder line table entries too much when sorting".
7320
947f7597
TV
73212020-07-06 Tom de Vries <tdevries@suse.de>
7322
7323 PR tui/26205
7324 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7325
1e7c1b22
TV
73262020-07-05 Tom de Vries <tdevries@suse.de>
7327
7328 PR build/26187
7329 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7330 std::uncaught_exceptions instead of deprecated
7331 std::uncaught_exception.
7332
a36158ec
SM
73332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7334
7335 * macroexp.h (macro_stringify): Return
7336 gdb::unique_xmalloc_ptr<char>.
7337 * macroexp.c (macro_stringify): Likewise.
7338 * macrotab.c (fixup_definition): Update.
7339
14d960c8
SM
73402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7341
7342 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7343 (lex_one_token): Update.
7344 * macroexp.c (struct macro_buffer) <release>: Return
7345 gdb::unique_xmalloc_ptr<char>.
7346 (macro_stringify): Update.
7347 (macro_expand): Update.
7348 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7349 * macroexp.h (macro_expand_next): Likewise.
7350
211d5b1c
SM
73512020-07-02 Simon Marchi <simon.marchi@efficios.com>
7352
7353 * macroexp.h (macro_lookup_ftype): Remove.
7354 (macro_expand, macro_expand_once, macro_expand_next): Remove
7355 lookup function parameters, add scope parameter.
7356 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7357 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7358 * macroscope.h (standard_macro_lookup): Change parameter type
7359 to macro_scope.
7360 * macroscope.c (standard_macro_lookup): Likewise.
7361 * c-exp.y (lex_one_token): Update.
7362 * macrocmd.c (macro_expand_command): Likewise.
7363 (macro_expand_once_command): Likewise.
7364
b1a35af2
SM
73652020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7366
7367 * inf-loop.c (inferior_event_handler): Remove client_data param.
7368 * inf-loop.h (inferior_event_handler): Likewise.
7369 * infcmd.c (step_1): Adjust.
7370 * infrun.c (proceed): Adjust.
7371 (fetch_inferior_event): Remove client_data param.
7372 (infrun_async_inferior_event_handler): Adjust.
7373 * infrun.h (fetch_inferior_event): Remove `void *` param.
7374 * linux-nat.c (handle_target_event): Adjust.
7375 * record-btrace.c (record_btrace_handle_async_inferior_event):
7376 Adjust.
7377 * record-full.c (record_full_async_inferior_event_handler):
7378 Adjust.
7379 * remote.c (remote_async_inferior_event_handler): Adjust.
7380
1cdf9e33
TT
73812020-07-01 Tom Tromey <tom@tromey.com>
7382
7383 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7384 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7385
32c1e210
TT
73862020-07-01 Tom Tromey <tom@tromey.com>
7387
7388 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7389 tui_gen_win_info.
7390 (tui_win_info::make_window): Merge with
7391 tui_gen_win_info::make_window.
7392 (tui_win_info::make_visible): Move from tui_gen_win_info.
7393 * tui/tui-win.c (tui_win_info::max_width): Move from
7394 tui_gen_win_info.
7395 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7396 type.
7397 <window_factory>: Likewise.
7398 * tui/tui-layout.c (tui_win_info::resize): Move from
7399 tui_gen_win_info.
7400 (make_standard_window): Change return type.
7401 (get_locator_window, tui_get_window_by_name): Likewise.
7402 (tui_layout_window::apply): Remove a cast.
7403 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7404 (struct tui_win_info): Merge with tui_gen_win_info.
7405 (struct tui_gen_win_info): Remove.
7406
a30cb6da
TT
74072020-07-01 Tom Tromey <tom@tromey.com>
7408
7409 * tui/tui-stack.h (struct tui_locator_window): Derive from
7410 tui_win_info.
7411 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7412 <can_box>: New method.
7413
1eb2161f
TT
74142020-07-01 Tom Tromey <tom@tromey.com>
7415
7416 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7417
7134f2eb
TT
74182020-07-01 Tom Tromey <tom@tromey.com>
7419
7420 * tui/tui-regs.c (tui_data_window::display_registers_from)
7421 (tui_data_window::display_registers_from)
7422 (tui_data_window::first_data_item_displayed)
7423 (tui_data_window::delete_data_content_windows): Update.
7424 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7425 Remove.
7426 (tui_data_window::check_register_values): Update.
7427 (tui_data_item_window::rerender): Add parameters. Update.
7428 (tui_data_item_window::refresh_window): Remove.
7429 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7430 virtual.
7431 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7432 tui_gen_win_info.
7433 <refresh_window, max_height, min_height>: Remove.
7434 <rerender>: Add parameters.
7435 <x, y, visible>: New members.
7436 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7437 <m_item_width>: New member.
7438
22b7b041
TT
74392020-07-01 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-regs.c (tui_data_window::show_register_group)
7442 (tui_data_window::check_register_values): Update.
7443 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7444 from item_no.
7445
c9753adb
TT
74462020-07-01 Tom Tromey <tom@tromey.com>
7447
7448 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7449 useless "if".
7450
9ab26b4a
TT
74512020-07-01 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7454 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7455
e555083f
TT
74562020-07-01 Tom Tromey <tom@tromey.com>
7457
7458 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7459 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7460 (struct tui_line_or_address): Move from tui-data.h.
7461 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7462 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7463 (tui_cmd_window, tui_source_window_base, tui_source_window)
7464 (tui_disasm_window): Don't declare.
7465 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7466 to tui-winsource.h.
7467 (SINGLE_KEY): Move to tui-stack.c.
7468
7a02bab7
TT
74692020-07-01 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7472 std::string.
7473 * tui/tui-regs.c (class tab_expansion_file): New.
7474 (tab_expansion_file::write): New method.
7475 (tui_register_format): Change return type. Use
7476 tab_expansion_file.
7477 (tui_get_register, tui_data_window::display_registers_from)
7478 (tui_data_item_window::rerender): Update.
7479 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7480 * tui/tui-io.c (tui_expand_tabs): Remove.
7481
ea68593b
TT
74822020-07-01 Tom Tromey <tom@tromey.com>
7483
7484 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7485
a8caed5d
FS
74862020-07-01 Fangrui Song <maskray@google.com>
7487
7488 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7489
9cdf9820
AKS
74902020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7491
7492 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7493 forms for DW_AT_associated and DW_AT_allocated attributes,
7494 which is already checked in function attr_to_dynamic_prop.
7495
a1520ad8
TT
74962020-06-30 Tom Tromey <tromey@adacore.com>
7497
7498 * dwarf2/read.c (quirk_rust_enum): Correctly call
7499 alloc_rust_variant for default-less enum.
7500
5ac58899
TT
75012020-06-30 Tom Tromey <tromey@adacore.com>
7502
7503 PR build/26183:
7504 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7505 gdb::to_string.
7506
19b187a9
SM
75072020-06-29 Simon Marchi <simon.marchi@efficios.com>
7508
7509 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7510 * gdbarch.h: Re-generate.
7511
cd4c4c07
TT
75122020-06-28 Tom Tromey <tom@tromey.com>
7513
7514 * command.h (cmd_types): Remove.
7515 (cmd_type): Don't declare.
7516 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7517 typedef.
7518 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7519 * cli/cli-decode.c (cmd_type): Remove.
7520
05779d57
PA
75212020-06-27 Pedro Alves <palves@redhat.com>
7522
7523 * fork-child.c (prefork_hook): Adjust.
7524 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7525 Delete.
7526 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7527 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7528 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7529 Remove declarations.
7530 (struct inferior) <set_tty, tty>: New methods.
7531 (struct inferior) <terminal>: Rename to ...
7532 (struct inferior) <m_terminal>: ... this and make private.
7533 * main.c (captured_main_1): Adjust.
7534 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7535 (mi_cmd_inferior_tty_show): Adjust.
7536 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7537 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7538
1776e3e5
NA
75392020-06-26 Nick Alcock <nick.alcock@oracle.com>
7540
7541 * configure.ac: Add --enable-libctf: handle --disable-static
7542 properly.
7543 * acinclude.m4: sinclude ../config/enable.m4.
7544 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7545 (LIBCTF): Substitute in.
7546 (CTF_DEPS): New, likewise.
7547 (CLIBS): libctf needs symbols from libbfd: move earlier.
7548 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7549 flags.
7550 * ctfread.c: Surround in ENABLE_LIBCTF.
7551 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7552 * configure: Regenerate.
7553 * config.in: Likewise.
7554
58373b80
SM
75552020-06-25 Simon Marchi <simon.marchi@efficios.com>
7556
7557 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7558
277474ee
SM
75592020-06-25 Simon Marchi <simon.marchi@efficios.com>
7560
7561 * inferior.h (struct inferior) <terminal>: Change type to
7562 gdb::unique_xmalloc_ptr<char>.
7563 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7564 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7565 field, adjust to unique pointer.
7566 (get_inferior_io_terminal): Adjust to unique pointer.
7567
6d74da72
AB
75682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7569
7570 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7571 registers, not just the known core set of registers.
7572
2e52d038
AB
75732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7574
7575 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7576 fflags, frm, and fcsr registers.
7577 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7578 restore groups.
7579 (riscv_tdesc_unknown_reg): New function.
7580 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7581 tdesc_use_registers.
7582 * riscv-tdep.h (struct gdbarch_tdep): Add
7583 unknown_csrs_first_regnum, unknown_csrs_count,
7584 duplicate_fflags_regnum, duplicate_frm_regnum, and
7585 duplicate_fcsr_regnum fields.
7586
be64fd07
AB
75872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7588
7589 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7590 callback, use the callback (when not null) to help number unknown
7591 registers.
7592 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7593 (tdesc_use_registers): Add extra parameter to declaration.
7594
3b9fce96
AB
75952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7596
7597 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7598 in the file.
7599 (class riscv_pending_register_alias): Likewise.
7600 (riscv_register_feature::register_info): Change 'required_p' field
7601 to 'required', and change its type. Add 'check' member function.
7602 (riscv_register_feature::register_info::check): Define new member
7603 function.
7604 (riscv_xreg_feature): Change initialisation of 'required' field.
7605 (riscv_freg_feature): Likewise.
7606 (riscv_virtual_feature): Likewise.
7607 (riscv_csr_feature): Likewise.
7608 (riscv_check_tdesc_feature): Take extra parameter, the csr
7609 tdesc_feature, rewrite the function to use the new
7610 riscv_register_feature::register_info::check function.
7611 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7612
865bad26
AB
76132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7614
7615 * features/Makefile: Remove all references to the deleted files
7616 below.
7617 * features/riscv/32bit-csr.c: Deleted.
7618 * features/riscv/32bit-csr.xml: Deleted.
7619 * features/riscv/64bit-csr.c: Deleted.
7620 * features/riscv/64bit-csr.xml: Deleted.
7621 * features/riscv/rebuild-csr-xml.sh: Deleted.
7622
ed69cbc8
AB
76232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7624
7625 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7626 whitespace error for declaration of names member variable.
7627 (struct riscv_register_feature): Add new prefer_first_name member
7628 variable, and fix whitespace error in declaration of registers.
7629 (riscv_xreg_feature): Initialize prefer_first_name field.
7630 (riscv_freg_feature): Likewise.
7631 (riscv_virtual_feature): Likewise.
7632 (riscv_csr_feature): Likewise.
7633 (riscv_register_name): Expand on comments. Remove register name
7634 modifications for CSR and virtual registers.
7635
4445e8f5
AB
76362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7637
7638 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7639 errors.
7640
767a879e
AB
76412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7642
7643 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7644 riscv-opc.h.
7645 (class riscv_pending_register_alias): New class.
7646 (riscv_check_tdesc_feature): Take vector of pending aliases and
7647 populate it as appropriate.
7648 (riscv_setup_register_aliases): Delete.
7649 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7650 to riscv_check_tdesc_feature in all cases. Use the vector to
7651 create the register aliases.
7652
bb6e55f3
RO
76532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7654
7655 * sol2-tdep.c (sol2_static_transform_name): Remove.
7656 (sol2_init_abi): Don't register it.
7657 * gdbarch.sh (static_transform_name): Remove.
7658 * gdbarch.c, gdbarch.h: Regenerate.
7659
7660 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7661 gdbarch_static_transform_name.
7662 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7663 * stabsread.c (define_symbol) <'X'>: Remove.
7664 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7665 handling.
7666 <'V'>: Likewise.
7667 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7668 <'S'>: Remove call to gdbarch_static_transform_name.
7669
c6d36836
RO
76702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7671
7672 * procfs.c (procfs_pre_trace): New function.
7673 (procfs_target::create_inferior): Pass it to fork_inferior.
7674
a7e6196b
RO
76752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7676
7677 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7678 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7679 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7680 sol2-tdep.o, sparc-sol2-tdep.o.
7681 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7682 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7683 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7684 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7685
d412e696
RO
76862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7687
7688 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7689 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7690 Call sol2_init_abi.
7691 Remove calls to set_gdbarch_skip_solib_resolver,
7692 set_gdbarch_core_pid_to_str.
7693 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7694 (i386_sol2_static_transform_name): Remove.
7695 (i386_sol2_init_abi): Call sol2_init_abi.
7696 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7697 set_gdbarch_static_transform_name,
7698 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7699 Use sol2_sigtramp_p.
7700 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7701 (sol2_sigtramp_p): New function.
7702 (sol2_static_transform_name): New function.
7703 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7704 (sol2_init_abi): New function.
7705 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7706 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7707 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7708 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7709 (sparc_sol2_static_transform_name): Remove.
7710 (sparc32_sol2_init_abi): Call sol2_init_abi.
7711 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7712 set_gdbarch_static_transform_name,
7713 set_gdbarch_skip_solib_resolver,
7714 set_gdbarch_core_pid_to_str.
7715 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7716 (sparc_sol2_static_transform_name): Remove
7717 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7718 call sol2_sigtramp_p.
7719 (sparc64_sol2_init_abi): Call sol2_init_abi.
7720 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7721 set_gdbarch_static_transform_name,
7722 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7723
a8654e7d
PW
77242020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7725
7726 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7727 * exec.c (validate_exec_file): If from_tty, set both
7728 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7729 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7730 and from_tty, unconditionally ask a confirmation.
7731
caa7fd04
AB
77322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7733
7734 * target-descriptions.c (tdesc_architecture_name): Protect against
7735 NULL pointer dereference.
7736 (maint_print_xml_tdesc_cmd): New function.
7737 (_initialize_target_descriptions): Register new 'maint print
7738 xml-tdesc' command and give it the filename completer.
7739 * NEWS: Mention new 'maint print xml-tdesc' command.
7740
fbf42f4e
AB
77412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7742
7743 * target-descriptions.c (class tdesc_compatible_info): New class.
7744 (struct target_desc): Change type of compatible vector.
7745 (tdesc_compatible_p): Update for change in type of
7746 target_desc::compatible.
7747 (tdesc_compatible_info_list): New function.
7748 (tdesc_compatible_info_arch_name): New function.
7749 (tdesc_add_compatible): Update for change in type of
7750 target_desc::compatible.
7751 (print_c_tdesc::visit_pre): Likewise.
7752
20821f4e
AB
77532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7754
7755 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7756 whitespace to underscore.
7757 (maint_print_c_tdesc_cmd): Use fake filename for target
7758 descriptions that came from the target.
7759 (_initialize_target_descriptions): Add filename command completion
7760 for 'maint print c-tdesc'.
7761
1fb5ee62
SM
77622020-06-23 Simon Marchi <simon.marchi@efficios.com>
7763
7764 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7765 lines.
7766
fc3ecb3e
SM
77672020-06-23 Simon Marchi <simon.marchi@efficios.com>
7768
7769 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7770 lines.
7771 (dwarf2_find_location_expression): Likewise.
7772 (call_site_parameter_matches): Likewise.
7773 (dwarf2_compile_expr_to_ax): Likewise.
7774 (disassemble_dwarf_expression): Likewise.
7775 (loclist_describe_location): Likewise.
7776
236ef034
PA
77772020-06-23 Pedro Alves <palves@redhat.com>
7778
7779 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7780 progspace-and-thread.h. Include scoped-mock-context.h instead.
7781 (register_to_value_test): Use scoped_mock_context.
7782 * regcache.c: Include "scoped-mock-context.h".
7783 (cooked_read_test): Don't error out if a target is already pushed.
7784 Use scoped_mock_context. Adjust.
7785 * scoped-mock-context.h: New file.
7786
39e7ecca
AB
77872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7788
7789 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7790 initializer.
7791 (ada_language::is_string_type_p): New member function.
7792 * c-lang.c (c_language_data): Delete la_is_string_type_p
7793 initializer.
7794 (cplus_language_data): Likewise.
7795 (asm_language_data): Likewise.
7796 (minimal_language_data): Likewise.
7797 * d-lang.c (d_language_data): Likewise.
7798 * f-lang.c (f_is_string_type_p): Delete function, implementation
7799 moved to f_language::is_string_type_p.
7800 (f_language_data): Delete la_is_string_type_p initializer.
7801 (f_language::is_string_type_p): New member function,
7802 implementation from f_is_string_type_p.
7803 * go-lang.c (go_is_string_type_p): Delete function, implementation
7804 moved to go_language::is_string_type_p.
7805 (go_language_data): Delete la_is_string_type_p initializer.
7806 (go_language::is_string_type_p): New member function,
7807 implementation from go_is_string_type_p.
7808 * language.c (language_defn::is_string_type_p): Define new member
7809 function.
7810 (default_is_string_type_p): Make static, add comment copied from
7811 header file.
7812 (unknown_language_data): Delete la_is_string_type_p initializer.
7813 (unknown_language::is_string_type_p): New member function.
7814 (auto_language_data): Delete la_is_string_type_p initializer.
7815 (auto_language::is_string_type_p): New member function.
7816 * language.h (language_data): Delete la_is_string_type_p field.
7817 (language_defn::is_string_type_p): Declare new function.
7818 (default_is_string_type_p): Delete desclaration, move comment to
7819 definition.
7820 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7821 moved to m2_language::is_string_type_p.
7822 (m2_language_data): Delete la_is_string_type_p initializer.
7823 (m2_language::is_string_type_p): New member function,
7824 implementation from m2_is_string_type_p.
7825 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7826 initializer.
7827 * opencl-lang.c (opencl_language_data): Likewise.
7828 * p-lang.c (pascal_is_string_type_p): Delete function,
7829 implementation moved to pascal_language::is_string_type_p.
7830 (pascal_language_data): Delete la_is_string_type_p initializer.
7831 (pascal_language::is_string_type_p): New member function,
7832 implementation from pascal_is_string_type_p.
7833 * rust-lang.c (rust_is_string_type_p): Delete function,
7834 implementation moved to rust_language::is_string_type_p.
7835 (rust_language_data): Delete la_is_string_type_p initializer.
7836 (rust_language::is_string_type_p): New member function,
7837 implementation from rust_is_string_type_p.
7838 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7839 is_string_type_p.
7840
4ffc13fb
AB
78412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7842
7843 * ada-lang.c (ada_language_data): Delete la_print_typedef
7844 initializer.
7845 (ada_language::print_typedef): New member function.
7846 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7847 (cplus_language_data): Likewise.
7848 (asm_language_data): Likewise.
7849 (minimal_language_data): Likewise.
7850 * d-lang.c (d_language_data): Likewise.
7851 * f-lang.c (f_language_data): Likewise.
7852 (f_language::print_typedef): New member function.
7853 * go-lang.c (go_language_data): Delete la_print_typedef
7854 initializer.
7855 * language.c (language_defn::print_typedef): Define member
7856 function.
7857 (unknown_language_data): Delete la_print_typedef initializer.
7858 (unknown_language::print_typedef): New member function.
7859 (auto_language_data): Delete la_print_typedef initializer.
7860 (auto_language::print_typedef): New member function.
7861 * language.h (language_data): Delete la_print_typedef field.
7862 (language_defn::print_typedef): Declare new member function.
7863 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7864 (default_print_typedef): Delete declaration.
7865 * m2-lang.c (m2_language_data): Delete la_print_typedef
7866 initializer.
7867 (m2_language::print_typedef): New member function.
7868 * objc-lang.c (objc_language_data): Delete la_print_typedef
7869 initializer.
7870 * opencl-lang.c (opencl_language_data): Likewise.
7871 * p-lang.c (pascal_language_data): Likewise.
7872 (pascal_language::print_typedef): New member function.
7873 * rust-lang.c (rust_print_typedef): Delete function,
7874 implementation moved to rust_language::print_typedef.
7875 (rust_language): Delete la_print_typedef initializer.
7876 (rust_language::print_typedef): New member function,
7877 implementation from rust_print_typedef.
7878 * typeprint.c (default_print_typedef): Delete.
7879
d711ee67
AB
78802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7883 (ada_language::printstr): New member function.
7884 * c-lang.c (c_language_data): Delete la_printstr initializer.
7885 (cplus_language_data): Likewise.
7886 (asm_language_data): Likewise.
7887 (minimal_language_data): Likewise.
7888 * d-lang.c (d_language_data): Likewise.
7889 * f-lang.c (f_printstr): Rename to f_language::printstr.
7890 (f_language_data): Delete la_printstr initializer.
7891 (f_language::printstr): New member function, implementation from
7892 f_printstr.
7893 * go-lang.c (go_language_data): Delete la_printstr initializer.
7894 * language.c (language_defn::printstr): Define new member
7895 function.
7896 (unk_lang_printstr): Delete.
7897 (unknown_language_data): Delete la_printstr initializer.
7898 (unknown_language::printstr): New member function.
7899 (auto_language_data): Delete la_printstr initializer.
7900 (auto_language::printstr): New member function.
7901 * language.h (language_data): Delete la_printstr field.
7902 (language_defn::printstr): Declare new member function.
7903 (LA_PRINT_STRING): Update call to printstr.
7904 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7905 (m2_language_data): Delete la_printstr initializer.
7906 (m2_language::printstr): New member function, implementation from
7907 m2_printstr.
7908 * objc-lang.c (objc_language_data): Delete la_printstr
7909 initializer.
7910 * opencl-lang.c (opencl_language_data): Likewise.
7911 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7912 (pascal_language_data): Delete la_printstr initializer.
7913 (pascal_language::printstr): New member function, implementation
7914 from pascal_printstr.
7915 * p-lang.h (pascal_printstr): Delete declaration.
7916 * rust-lang.c (rust_printstr): Update header comment.
7917 (rust_language_data): Delete la_printstr initializer.
7918 (rust_language::printstr): New member function.
7919
52b50f2c
AB
79202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7921
7922 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7923 (ada_language::printchar): New member function.
7924 * c-lang.c (c_language_data): Delete la_printchar initializer.
7925 (cplus_language_data): Likewise.
7926 (asm_language_data): Likewise.
7927 (minimal_language_data): Likewise.
7928 * d-lang.c (d_language_data): Likewise.
7929 * f-lang.c (f_printchar): Rename to f_language::printchar.
7930 (f_language_data): Delete la_printchar initializer.
7931 (f_language::printchar): New member function, implementation from
7932 f_printchar.
7933 * go-lang.c (go_language_data): Delete la_printchar initializer.
7934 * language.c (unk_lang_printchar): Delete.
7935 (language_defn::printchar): Define new member function.
7936 (unknown_language_data): Delete la_printchar initializer.
7937 (unknown_language::printchar): New member function.
7938 (auto_language_data): Delete la_printchar initializer.
7939 (auto_language::printchar): New member function.
7940 * language.h (language_data): Delete la_printchar field.
7941 (language_defn::printchar): Declare new member function.
7942 (LA_PRINT_CHAR): Update call to printchar.
7943 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7944 (m2_language::printchar): New member function.
7945 * objc-lang.c (objc_language_data): Delete la_printchar
7946 initializer.
7947 * opencl-lang.c (opencl_language_data): Likewise.
7948 * p-lang.c (pascal_language_data): Delete la_printchar
7949 initializer.
7950 (pascal_language::printchar): New member function.
7951 * rust-lang.c (rust_printchar): Rename to
7952 rust_language::printchar.
7953 (rust_language_data): Delete la_printchar initializer.
7954 (rust_language::printchar): New member function, implementation
7955 from rust_printchar.
7956
ec8cec5b
AB
79572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7958
7959 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7960 (ada_language_data): Delete la_emitchar initializer.
7961 (ada_language::emitchar): New member function, implementation from
7962 emit_char.
7963 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7964 (cplus_language_data): Likewise.
7965 (asm_language_data): Likewise.
7966 (minimal_language_data): Likewise.
7967 * d-lang.c (d_language_data): Likewise.
7968 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7969 (f_language_data): Delete la_emitchar initializer.
7970 (f_language::emitchar): New member function, implementation from
7971 f_emit_char.
7972 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7973 * language.c (unk_lang_emit_char): Delete.
7974 (language_defn::emitchar): New member function definition.
7975 (unknown_language_data): Delete la_emitchar initializer.
7976 (unknown_language::emitchar): New member function.
7977 (auto_language_data): Delete la_emitchar initializer.
7978 (auto_language::emitchar): New member function.
7979 * language.h (language_data): Delete la_emitchar field.
7980 (language_defn::emitchar): New member field declaration.
7981 (LA_EMIT_CHAR): Update call to emitchar.
7982 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7983 (m2_language_data): Delete la_emitchar initializer.
7984 (m2_language::emitchar): New member function, implementation from
7985 m2_emit_char.
7986 * objc-lang.c (objc_language_data): Delete la_emitchar
7987 initializer.
7988 * opencl-lang.c (opencl_language_data): Likewise.
7989 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7990 (pascal_language_data): Delete la_emitchar initializer.
7991 (pascal_language::emitchar): New member function, implementation
7992 from pascal_emit_char.
7993 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7994 (rust_language_data): Delete la_emitchar initializer.
7995 (rust_language::emitchar): New member function, implementation
7996 from rust_emitchar.
7997
1bf9c363
AB
79982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7999
8000 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8001 (ada_language_data): Delete la_post_parser initializer.
8002 (ada_language::post_parser): New member function.
8003 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8004 (cplus_language_data): Likewise.
8005 (asm_language_data): Likewise.
8006 (minimal_language_data): Likewise.
8007 * d-lang.c (d_language_data): Likewise.
8008 * f-lang.c (f_language_data): Likewise.
8009 * go-lang.c (go_language_data): Likewise.
8010 * language.c (unknown_language_data): Likewise.
8011 (auto_language_data): Likewise.
8012 * language.h (language_data): Delete la_post_parser field.
8013 (language_defn::post_parser): New member function.
8014 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8015 * objc-lang.c (objc_language_data): Likewise.
8016 * opencl-lang.c (opencl_language_data): Likewise.
8017 * p-lang.c (pascal_language_data): Likewise.
8018 * parse.c (parse_exp_in_context): Update call to post_parser.
8019 (null_post_parser): Delete definition.
8020 * parser-defs.h (null_post_parser): Delete declaration.
8021 * rust-lang.c (rust_language_data): Delete la_post_parser
8022 initializer.
8023
87afa652
AB
80242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8025
8026 * ada-lang.c (parse): Rename to ada_language::parser.
8027 (ada_language_data): Delete la_parser initializer.
8028 (ada_language::parser): New member function, implementation from
8029 parse.
8030 * c-lang.c (c_language_data): Delete la_parser initializer.
8031 (cplus_language_data): Likewise.
8032 (asm_language_data): Likewise.
8033 (minimal_language_data): Likewise.
8034 * d-lang.c (d_language_data): Likewise.
8035 (d_language::parser): New member function.
8036 * f-lang.c (f_language_data): Delete la_parser initializer.
8037 (f_language::parser): New member function.
8038 * go-lang.c (go_language_data): Delete la_parser initializer.
8039 (go_language::parser): New member function.
8040 * language.c (unk_lang_parser): Delete.
8041 (language_defn::parser): Define new member function.
8042 (unknown_language_data): Delete la_parser initializer.
8043 (unknown_language::parser): New member function.
8044 (auto_language_data): Delete la_parser initializer.
8045 (auto_language::parser): New member function.
8046 * language.h (language_data): Delete la_parser field.
8047 (language_defn::parser): Declare new member function.
8048 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8049 (m2_language::parser): New member function.
8050 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8051 * opencl-lang.c (opencl_language_data): Likewise.
8052 * p-lang.c (pascal_language_data): Likewise.
8053 (pascal_language::parser): New member function.
8054 * parse.c (parse_exp_in_context): Update call to parser.
8055 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8056 (rust_language::parser): New member function.
8057
37825800
AB
80582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8059
8060 * top.c (print_gdb_configuration): Print --with-python-libdir
8061 configuration value.
8062
5b860c93
PW
80632020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8064
8065 * NEWS: Mention change to the alias command.
8066
cf00cd6f
PW
80672020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8068
8069 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8070 (alias_command_completer)
8071 (make_alias_options_def_group): New functions.
8072 (alias_opts, alias_option_defs): New struct and array.
8073 (alias_usage_error): Update usage.
8074 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8075 Use option framework.
8076 (_initialize_cli_cmds): Update alias command help.
8077 Update aliases command help.
8078 (show_user):
8079 Add NULL for new default_args lookup_cmd argument.
8080 (valid_command_p): Rename to validate_aliased_command.
8081 Add NULL for new default_args lookup_cmd argument. Verify that the
8082 aliased_command has no default args.
8083 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8084 (lookup_cmd_1, lookup_cmd): New argument default_args.
8085 (add_alias_cmd):
8086 Add NULL for new default_args lookup_cmd argument.
8087 (print_help_for_command): Show default args under the layout
8088 alias some_alias = some_aliased_cmd some_alias_default_arg.
8089 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8090 xfree default_args in destructor.
8091 * cli/cli-script.c (process_next_line, do_define_command):
8092 Add NULL for new default_args lookup_cmd argument.
8093 * command.h: Declare new default_args argument in lookup_cmd
8094 and lookup_cmd_1.
8095 * completer.c (complete_line_internal_1):
8096 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8097 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8098 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8099 Likewise.
8100 * infcmd.c (_initialize_infcmd): Likewise.
8101 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8102 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8103 * python/py-param.c (add_setshow_generic): Likewise.
8104 * remote.c (_initialize_remote): Likewise.
8105 * top.c (execute_command): Prepend default_args if command has some.
8106 (set_verbose):
8107 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8108 * tracepoint.c (validate_actionline, encode_actions_1):
8109 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8110
bd920864
TBA
81112020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8112
8113 * jit.c (jit_read_descriptor): Use bool as the return type.
8114 (jit_breakpoint_re_set_internal): Use bool as the return type.
8115 Invert the return value logic; return true if the jit breakpoint
8116 has been successfully initialized.
8117 (jit_inferior_init): Update the call to
8118 jit_breakpoint_re_set_internal.
8119
f8098322
PA
81202020-06-22 Pedro Alves <palves@redhat.com>
8121
8122 PR gdb/25939
8123 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8124 Use the current inferior instead. Don't return
8125 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8126 wait again.
8127 * sol-thread.c (sol_thread_target::wait): Don't reference
8128 inferior_ptid.
8129 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8130 (sol_update_thread_list_callback): Use the current inferior's pid
8131 instead of inferior_ptid.
8132
196535a6
RO
81332020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8134
8135 * procfs.c: Cleanup many comments.
8136
8137 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8138 (AFTER_WATCHFLAG): Replace by value.
8139
8140 (MAIN_PROC_NAME_FORMAT): Inline ...
8141 (create_procinfo): ... here.
8142
8143 (procfs_debug_inferior): Remove SYS_exec handling.
8144 (syscall_is_exec): Likewise.
8145 (procfs_set_exec_trap): Likewise.
8146
8147 (syscall_is_lwp_exit): Inline in callers.
8148 (syscall_is_exit): Likewise.
8149 (syscall_is_exec): Likewise.
8150 (syscall_is_lwp_create): Likewise.
8151
8152 (invalidate_cache): Remove #if 0 code.
8153
8154 (make_signal_thread_runnable): Remove.
8155 (procfs_target::resume): Remove #if 0 code.
8156
cf6f3e86
RO
81572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8158
8159 PR gdb/25939
8160 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8161 call ...
8162 (procfs_target::create_inferior): ... here.
8163
48e9cc84
PW
81642020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8165
8166 * exec.c (validate_exec_file): Ensure the build-id is up to
8167 date by calling reopen_exec_file (that checks file timestamp
8168 to decide to re-read the file).
8169
3922b302
PA
81702020-06-18 Pedro Alves <palves@redhat.com>
8171
8172 PR gdb/25412
8173 * gdbthread.h (delete_thread, delete_thread_silent)
8174 (find_thread_ptid): Update comments.
8175 * thread.c (current_thread_): New global.
8176 (is_current_thread): Move higher, and reimplement.
8177 (inferior_thread): Reimplement.
8178 (set_thread_exited): Use bool. Add assertions.
8179 (add_thread_silent): Simplify thread-reuse handling by always
8180 calling delete_thread.
8181 (delete_thread): Remove intro comment.
8182 (find_thread_ptid): Skip exited threads.
8183 (switch_to_thread_no_regs): Write to current_thread_.
8184 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8185 INFERIOR_PTID. Clear current_thread_.
8186
6dbdab44
PA
81872020-06-18 Pedro Alves <palves@redhat.com>
8188
8189 * aix-thread.c (pd_update): Use switch_to_thread.
8190
2da4b788
PA
81912020-06-18 Pedro Alves <palves@redhat.com>
8192
8193 * ravenscar-thread.c (ravenscar_thread_target): Update.
8194 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8195 (ravenscar_thread_target::add_active_thread): ... this. Don't
8196 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8197 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8198
50838d1b
PA
81992020-06-18 Pedro Alves <palves@redhat.com>
8200
8201 * nat/windows-nat.c (current_windows_thread): Remove.
8202 * nat/windows-nat.h (current_windows_thread): Remove.
8203 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8204 Adjust.
8205 (display_selectors): Adjust to fetch the current
8206 windows_thread_info based on inferior_ptid.
8207 (fake_create_process): No longer write to current_windows_thread.
8208 (windows_nat_target::get_windows_debug_event):
8209 Don't set inferior_ptid or current_windows_thread.
8210 (windows_nat_target::wait): Adjust to not rely on
8211 current_windows_thread.
8212 (do_initial_windows_stuff): Now a method of windows_nat_target.
8213 Switch to the last_ptid thread.
8214 (windows_nat_target::attach): Adjust.
8215 (windows_nat_target::detach): Use switch_to_no_thread instead of
8216 writing to inferior_ptid directly.
8217 (windows_nat_target::create_inferior): Adjust.
8218
31ce04e9
PA
82192020-06-18 Pedro Alves <palves@redhat.com>
8220
8221 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8222
1ee1a363
PA
82232020-06-18 Pedro Alves <palves@redhat.com>
8224
8225 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8226 after creating it, instead of writing to inferior_ptid. Don't
8227 write to inferior_ptid.
8228
6d350754
PA
82292020-06-18 Pedro Alves <palves@redhat.com>
8230
8231 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8232
5d971d48
PA
82332020-06-18 Pedro Alves <palves@redhat.com>
8234
8235 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8236 it, instead of writing to inferior_ptid.
8237
86e57d1b
PA
82382020-06-18 Pedro Alves <palves@redhat.com>
8239
8240 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8241 to inferior_ptid.
8242
f2e1c129
PA
82432020-06-18 Pedro Alves <palves@redhat.com>
8244
8245 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8246 instead of writing to inferior_ptid directly.
8247
60db1b85
PA
82482020-06-18 Pedro Alves <palves@redhat.com>
8249
8250 * corelow.c (core_target::close): Use switch_to_no_thread instead
8251 of writing to inferior_ptid directly.
8252 (add_to_thread_list, core_target_open): Use switch_to_thread
8253 instead of writing to inferior_ptid directly.
8254
fe7d6a8d
PA
82552020-06-18 Pedro Alves <palves@redhat.com>
8256
8257 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8258 inferior_ptid.
8259 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8260 inferior_ptid.
8261 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8262 inferior_ptid directly.
8263 (darwin_nat_target::init_thread_list): Switch to thread, instead
8264 of writing to inferior_ptid.
8265 (darwin_nat_target::attach): Don't write to inferior_ptid.
8266 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8267
975f8708
PA
82682020-06-18 Pedro Alves <palves@redhat.com>
8269
8270 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8271 thread.
8272 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8273 Instead use switch_to_thread.
8274 (gnu_nat_target::detach): Use switch_to_no_thread
8275 instead of writing to inferior_ptid directly. Used passed-in
8276 inferior instead of looking up the inferior by pid.
8277
1a204730
PA
82782020-06-18 Pedro Alves <palves@redhat.com>
8279
8280 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8281 inferior_ptid.
8282
ebe84f23
PA
82832020-06-18 Pedro Alves <palves@redhat.com>
8284
8285 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8286 inferior_ptid.
8287 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8288 thread.
8289 (nto_procfs_target::detach): Avoid referencing
8290 inferior_ptid. Use switch_to_no_thread instead of writing to
8291 inferior_ptid directly.
8292 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8293 instead of writing to inferior_ptid directly.
8294 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8295 to thread.
8296
191f02e5
PA
82972020-06-18 Pedro Alves <palves@redhat.com>
8298
8299 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8300 after creating it, instead of writing to inferior_ptid.
8301 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8302 to inferior_ptid directly.
8303 (gdbsim_target::wait): Don't write to inferior_ptid.
8304
0ac55310
PA
83052020-06-18 Pedro Alves <palves@redhat.com>
8306
8307 * remote.c (remote_target::remote_notice_new_inferior): Use
8308 switch_to_thread instead of writing to inferior_ptid directly.
8309 (remote_target::add_current_inferior_and_thread): Use
8310 switch_to_no_thread instead of writing to inferior_ptid directly.
8311 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8312 and switch_to_thread instead of using set_current_inferior or
8313 writing to inferior_ptid directly.
8314
5233f39b
PA
83152020-06-18 Pedro Alves <palves@redhat.com>
8316
8317 * tracectf.c (ctf_target_open): Switch to added thread instead of
8318 writing to inferior_ptid directly.
8319 (ctf_target::close): Use switch_to_no_thread instead of writing to
8320 inferior_ptid directly.
8321
087e161b
PA
83222020-06-18 Pedro Alves <palves@redhat.com>
8323
8324 * tracefile-tfile.c (tfile_target_open): Don't write to
8325 inferior_ptid directly, instead switch to added thread.
8326 (tfile_target::close): Use switch_to_no_thread instead of writing
8327 to inferior_ptid directly.
8328
7fb43e53
PA
83292020-06-18 Pedro Alves <palves@redhat.com>
8330
8331 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8332 (procfs_target::detach): Use switch_to_no_thread
8333 instead of writing to inferior_ptid directly.
8334 (do_attach): Change return type to void. Switch to the added
8335 thread.
8336 (procfs_target::create_inferior): Switch to the added thread.
8337 (procfs_do_thread_registers): Don't write to inferior_ptid.
8338
18493a00
PA
83392020-06-18 Pedro Alves <palves@redhat.com>
8340
8341 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8342 of writing to inferior_ptid.
8343 (scoped_restore_exited_inferior): Delete.
8344 (handle_vfork_child_exec_or_exit): Simplify using
8345 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8346 instead of writing to inferior_ptid.
8347 (THREAD_STOPPED_BY): Delete.
8348 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8349 (thread_stopped_by_hw_breakpoint): Delete.
8350 (save_waitstatus): Use
8351 scoped_restore_current_thread+switch_to_thread, and call
8352 target_stopped_by_watchpoint instead of
8353 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8354 instead of thread_stopped_by_sw_breakpoint, and
8355 target_stopped_by_hw_breakpoint instead of
8356 thread_stopped_by_hw_breakpoint.
8357 (handle_inferior_event)
8358 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8359 inferior_ptid directly, nor
8360 set_current_inferior/set_current_program_space. Use
8361 switch_to_thread / switch_to_inferior_no_thread instead.
8362
a0776b13
PA
83632020-06-18 Pedro Alves <palves@redhat.com>
8364
8365 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8366 instead of writing to inferior_ptid.
8367
6155c136
PA
83682020-06-18 Pedro Alves <palves@redhat.com>
8369
8370 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8371 added thread.
8372 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8373 to the added thread.
8374 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8375 instead of writing to inferior_ptid.
8376
c5316fc6
PA
83772020-06-18 Pedro Alves <palves@redhat.com>
8378
8379 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8380 (register_to_value_test): Mock a program_space too. Heap-allocate
8381 the address space. Don't write to inferior_ptid. Use
8382 switch_to_thread instead.
8383
8df01799
PA
83842020-06-18 Pedro Alves <palves@redhat.com>
8385
8386 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8387 Delete.
8388 (find_signalled_thread()): New, factored out from
8389 linux_make_corefile_notes and adjusted to handle exited threads.
8390 (linux_make_corefile_notes): Adjust to use the new
8391 find_signalled_thread.
8392
41792d68
PA
83932020-06-18 Pedro Alves <palves@redhat.com>
8394
8395 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8396 of saving/restoring inferior_ptid.
8397
612f258a
TT
83982020-06-17 Tom Tromey <tom@tromey.com>
8399
8400 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8401 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8402 declare.
8403 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8404
efb763a5
SM
84052020-06-15 Simon Marchi <simon.marchi@efficios.com>
8406
8407 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8408 of partial symtabs.
8409
2951f6c0
SM
84102020-06-17 Simon Marchi <simon.marchi@efficios.com>
8411
8412 * regformats/reg-arm.dat: Remove.
8413 * regformats/reg-bfin.dat: Remove.
8414 * regformats/reg-cris.dat: Remove.
8415 * regformats/reg-crisv32.dat: Remove.
8416 * regformats/reg-m32r.dat: Remove.
8417 * regformats/reg-tilegx.dat: Remove.
8418 * regformats/reg-tilegx32.dat: Remove.
8419
7d458ea5
SM
84202020-06-17 Simon Marchi <simon.marchi@efficios.com>
8421
8422 * features/Makefile (WHICH): Remove arm files.
8423 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8424 * regformats/arm/arm-with-neon.dat: Remove.
8425 * regformats/arm/arm-with-vfpv2.dat: Remove.
8426 * regformats/arm/arm-with-vfpv3.dat: Remove.
8427
3af96c0d
SM
84282020-06-17 Simon Marchi <simon.marchi@efficios.com>
8429
8430 * features/Makefile (XMLTOC): Remove rx.xml.
8431
b25e22fd
PA
84322020-06-17 Pedro Alves <palves@redhat.com>
8433
8434 * gdbthread.h (thread_control_state) <trap_expected> Update
8435 comments.
8436
a78a19b1
AB
84372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8438
8439 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8440 ada_language::lookup_symbol_nonlocal.
8441 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8442 (ada_language::lookup_symbol_nonlocal): New member function,
8443 implementation from ada_lookup_symbol_nonlocal.
8444 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8445 initializer.
8446 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8447 initializer.
8448 (cplus_language::lookup_symbol_nonlocal): New member function.
8449 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8450 (minimal_language_data) Likewise.
8451 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8452 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8453 initializer.
8454 (d_language::lookup_symbol_nonlocal): New member function.
8455 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8456 initializer.
8457 (f_language::lookup_symbol_nonlocal): New member function.
8458 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8459 initializer.
8460 * language.c (unknown_language_data): Likewise.
8461 (auto_language_data): Likewise.
8462 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8463 field.
8464 (language_defn::lookup_symbol_nonlocal): New member function.
8465 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8466 initializer.
8467 * objc-lang.c (objc_language_data): Likewise.
8468 * opencl-lang.c (opencl_language_data): Likewise.
8469 * p-lang.c (pascal_language_data): Likewise.
8470 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8471 rust_language::lookup_symbol_nonlocal.
8472 (rust_language_data): Delete la_lookup_symbol_nonlocal
8473 initializer.
8474 (rust_language::lookup_symbol_nonlocal): New member function,
8475 implementation from rust_lookup_symbol_nonlocal.
8476 * symtab.c (lookup_symbol_aux): Update call to
8477 lookup_symbol_nonlocal.
8478 (basic_lookup_symbol_nonlocal): Rename to...
8479 (language_defn::lookup_symbol_nonlocal): ...this, and update
8480 header comment. Remove language_defn parameter, and replace with
8481 uses of `this'.
8482 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8483
ebe2334e
AB
84842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8485
8486 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8487 initializer.
8488 (ada_language::value_print_inner): New member function.
8489 * c-lang.c (c_language_data): Delete la_value_print_inner
8490 initializer.
8491 (cplus_language_data): Likewise.
8492 (asm_language_data): Likewise.
8493 (minimal_language_data): Likewise.
8494 * d-lang.c (d_language_data): Likewise.
8495 (d_language::value_print_inner): New member function.
8496 * f-lang.c (f_language_data): Delete la_value_print_inner
8497 initializer.
8498 (f_language::value_print_inner): New member function.
8499 * f-lang.h (f_value_print_innner): Rename to...
8500 (f_value_print_inner): ...this (note spelling of 'inner').
8501 * f-valprint.c (f_value_print_innner): Rename to...
8502 (f_value_print_inner): ...this (note spelling of 'inner').
8503 * go-lang.c (go_language_data): Delete la_value_print_inner
8504 initializer.
8505 (go_language::value_print_inner): New member function.
8506 * language.c (language_defn::value_print_inner): Define new member
8507 function.
8508 (unk_lang_value_print_inner): Delete.
8509 (unknown_language_data): Delete la_value_print_inner initializer.
8510 (unknown_language::value_print_inner): New member function.
8511 (auto_language_data): Delete la_value_print_inner initializer.
8512 (auto_language::value_print_inner): New member function.
8513 * language.h (language_data): Delete la_value_print_inner field.
8514 (language_defn::value_print_inner): Delcare new member function.
8515 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8516 initializer.
8517 (m2_language::value_print_inner): New member function.
8518 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8519 initializer.
8520 * opencl-lang.c (opencl_language_data): Likewise.
8521 * p-lang.c (pascal_language_data): Likewise.
8522 (pascal_language::value_print_inner): New member function.
8523 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8524 initializer.
8525 (rust_language::value_print_inner): New member function.
8526 * valprint.c (do_val_print): Update call to value_print_inner.
8527
a1d1fa3e
AB
85282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8529
8530 * ada-lang.c (ada_language_data): Delete la_value_print
8531 initializer.
8532 (ada_language::value_print): New member function.
8533 * c-lang.c (c_language_data): Delete la_value_print initializer.
8534 (cplus_language_data): Likewise.
8535 (asm_language_data): Likewise.
8536 (minimal_language_data): Likewise.
8537 * d-lang.c (d_language_data): Likewise.
8538 * f-lang.c (f_language_data): Likewise.
8539 * go-lang.c (go_language_data): Likewise.
8540 * language.c (unk_lang_value_print): Delete.
8541 (language_defn::value_print): Define new member function.
8542 (unknown_language_data): Delete la_value_print initializer.
8543 (unknown_language::value_print): New member function.
8544 (auto_language_data): Delete la_value_print initializer.
8545 (auto_language::value_print): New member function.
8546 * language.h (language_data): Delete la_value_print field.
8547 (language_defn::value_print): Declare new member function.
8548 (LA_VALUE_PRINT): Update call to value_print.
8549 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8550 * objc-lang.c (objc_language_data): Likewise.
8551 * opencl-lang.c (opencl_language_data): Likewise.
8552 * p-lang.c (pascal_language_data): Likewise.
8553 (pascal_language::value_print): New member function.
8554 * rust-lang.c (rust_language_data): Delete la_value_print
8555 initializer.
8556
f16a9f57
AB
85572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8558
8559 * ada-lang.c (ada_watch_location_expression): Rename to
8560 ada_language::watch_location_expression.
8561 (ada_language_data): Delete la_watch_location_expression
8562 initializer.
8563 (ada_language::watch_location_expression): New member function,
8564 implementation from ada_watch_location_expression.
8565 * breakpoint.c (watch_command_1): Update call to
8566 watch_location_expression.
8567 * c-lang.c (c_watch_location_expression): Rename to
8568 language_defn::watch_location_expression.
8569 (c_language_data): Delete la_watch_location_expression
8570 initializer.
8571 (cplus_language_data): Likewise.
8572 (asm_language_data): Likewise.
8573 (minimal_language_data): Likewise.
8574 * c-lang.h (c_watch_location_expression): Delete declaration.
8575 * d-lang.c (d_language_data): Delete la_watch_location_expression
8576 initializer.
8577 * f-lang.c (f_language_data): Likewise.
8578 * go-lang.c (go_language_data): Likewise.
8579 * language.c (language_defn::watch_location_expression): Member
8580 function implementation from c_watch_location_expression.
8581 (unknown_language_data): Delete la_watch_location_expression
8582 initializer.
8583 (auto_language_data): Likewise.
8584 * language.h (language_data): Delete la_watch_location_expression
8585 field.
8586 (language_defn::watch_location_expression): Declare new member
8587 function.
8588 * m2-lang.c (m2_language_data): Delete
8589 la_watch_location_expression initializer.
8590 * objc-lang.c (objc_language_data): Likewise.
8591 * opencl-lang.c (opencl_language_data): Likewise.
8592 * p-lang.c (pascal_language_data): Likewise.
8593 * rust-lang.c (rust_watch_location_expression): Rename to
8594 rust_language::watch_location_expression.
8595 (rust_language_data): Delete la_watch_location_expression
8596 initializer.
8597 (rust_language::watch_location_expression): New member function,
8598 implementation from rust_watch_location_expression.
8599
7e56227d
AB
86002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8601
8602 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8603 ada_language::collect_symbol_completion_matches.
8604 (ada_language_data): Delete la_collect_symbol_completion_matches
8605 initializer.
8606 (ada_language::collect_symbol_completion_matches): New member
8607 function, implementation from
8608 ada_collect_symbol_completion_matches.
8609 * c-lang.c (c_language_data): Delete
8610 la_collect_symbol_completion_matches initializer.
8611 (cplus_language_data): Likewise.
8612 (asm_language_data): Likewise.
8613 (minimal_language_data): Likewise.
8614 * d-lang.c (d_language_data): Likewise.
8615 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8616 f_language::collect_symbol_completion_matches.
8617 (f_language_data): Delete la_collect_symbol_completion_matches
8618 initializer.
8619 (f_language::collect_symbol_completion_matches) New member
8620 function, implementation from f_collect_symbol_completion_matches.
8621 * go-lang.c (go_language_data): Delete
8622 la_collect_symbol_completion_matches initializer.
8623 * language.c (unknown_language_data): Likewise.
8624 (auto_language_data): Likewise.
8625 * language.h (language_data): Delete
8626 la_collect_symbol_completion_matches field.
8627 (language_defn::collect_symbol_completion_matches): New member
8628 function.
8629 * m2-lang.c (m2_language_data): Delete
8630 la_collect_symbol_completion_matches initializer.
8631 * objc-lang.c (objc_language_data): Likewise.
8632 * opencl-lang.c (opencl_language_data): Likewise.
8633 * p-lang.c (pascal_language_data): Likewise.
8634 * rust-lang.c (rust_language_data): Likewise.
8635 * symtab.c (default_collect_symbol_completion_matches): Delete.
8636 (collect_symbol_completion_matches): Update call to
8637 collect_symbol_completion_matches.
8638 (collect_symbol_completion_matches_type): Likewise.
8639 * symtab.h (default_collect_symbol_completion_matches): Delete
8640 declaration.
8641
53fc67f8
AB
86422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8643
8644 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8645 (ada_language_data): Delete la_word_break_characters initializer.
8646 (ada_language::word_break_characters): New member function.
8647 * c-lang.c (c_language_data): Delete la_word_break_characters
8648 initializer.
8649 (cplus_language_data): Likewise.
8650 (asm_language_data): Likewise.
8651 (minimal_language_data): Likewise.
8652 * completer.c: Update global comment.
8653 (advance_to_expression_complete_word_point): Update call to
8654 word_break_characters.
8655 (complete_files_symbols): Likewise.
8656 (complete_line_internal_1): Likewise.
8657 (default_completer_handle_brkchars): Likewise.
8658 (skip_quoted_chars): Likewise.
8659 * d-lang.c (d_language_data): Delete la_word_break_characters
8660 initializer.
8661 * f-lang.c (f_word_break_characters): Delete.
8662 (f_language_data): Delete la_word_break_characters initializer.
8663 (f_language::word_break_characters): New member function.
8664 * go-lang.c (go_language_data): Delete la_word_break_characters
8665 initializer.
8666 * language.c (unknown_language_data): Likewise.
8667 (auto_language_data): Likewise.
8668 * language.h (default_word_break_characters): Move declaration to
8669 earlier in the file.
8670 (language_data): Delete la_word_break_characters field.
8671 (language_defn::word_break_characters): New member function.
8672 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8673 initializer.
8674 * objc-lang.c (objc_language_data): Likewise.
8675 * opencl-lang.c (opencl_language_data): Likewise.
8676 * p-lang.c (pascal_language_data): Likewise.
8677 * rust-lang.c (rust_language_data): Likewise.
8678
c9debfb9
AB
86792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8680
8681 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8682 (ada_language_data): Delete la_get_symbol_name_matcher
8683 initializer.
8684 (language_defn::get_symbol_name_matcher_inner): New member
8685 function.
8686 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8687 initializer.
8688 (cplus_language_data): Likewise.
8689 (cplus_language::get_symbol_name_matcher_inner): New member
8690 function.
8691 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8692 (minimal_language_data): Likewise.
8693 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8694 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8695 initializer.
8696 * dictionary.c (iter_match_first_hashed): Update call to
8697 get_symbol_name_matcher.
8698 (iter_match_next_hashed): Likewise.
8699 (iter_match_next_linear): Likewise.
8700 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8701 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8702 initializer.
8703 (f_language::get_symbol_name_matcher_inner): New member function.
8704 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8705 initializer.
8706 * language.c (default_symbol_name_matcher): Update header comment,
8707 make static.
8708 (language_defn::get_symbol_name_matcher): New definition.
8709 (language_defn::get_symbol_name_matcher_inner): Likewise.
8710 (get_symbol_name_matcher): Delete.
8711 (unknown_language_data): Delete la_get_symbol_name_matcher
8712 initializer.
8713 (auto_language_data): Likewise.
8714 * language.h (language_data): Delete la_get_symbol_name_matcher
8715 field.
8716 (language_defn::get_symbol_name_matcher): New member function.
8717 (language_defn::get_symbol_name_matcher_inner): Likewise.
8718 (default_symbol_name_matcher): Delete declaration.
8719 * linespec.c (find_methods): Update call to
8720 get_symbol_name_matcher.
8721 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8722 initializer.
8723 * minsyms.c (lookup_minimal_symbol): Update call to
8724 get_symbol_name_matcher.
8725 (iterate_over_minimal_symbols): Likewise.
8726 * objc-lang.c (objc_language_data): Delete
8727 la_get_symbol_name_matcher initializer.
8728 * opencl-lang.c (opencl_language_data): Likewise.
8729 * p-lang.c (pascal_language_data): Likewise.
8730 * psymtab.c (psymbol_name_matches): Update call to
8731 get_symbol_name_matcher.
8732 * rust-lang.c (rust_language_data): Delete
8733 la_get_symbol_name_matcher initializer.
8734 * symtab.c (symbol_matches_search_name): Update call to
8735 get_symbol_name_matcher.
8736 (compare_symbol_name): Likewise.
8737
9a49ad8c
AB
87382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8739
8740 * ada-lang.c (ada_language_data): Delete la_compute_program
8741 initializer.
8742 * c-lang.c (c_language_data): Likewise.
8743 (c_language::compute_program): New member function.
8744 (cplus_language_data): Delete la_compute_program initializer.
8745 (cplus_language::compute_program): New member function.
8746 (asm_language_data): Delete la_compute_program initializer.
8747 (minimal_language_data): Likewise.
8748 * c-lang.h (c_compute_program): Update comment.
8749 (cplus_compute_program): Likewise.
8750 * compile/compile-c-support.c (c_compute_program): Likewise.
8751 (cplus_compute_program): Likewise.
8752 * compile/compile.c (compile_to_object): Update call to
8753 la_compute_program.
8754 * d-lang.c (d_language_data): Delete la_compute_program
8755 initializer.
8756 * f-lang.c (f_language_data): Likewise.
8757 * go-lang.c (go_language_data): Likewise.
8758 * language.c (unknown_language_data): Likewise.
8759 (auto_language_data): Likewise.
8760 * language.h (language_data): Delete la_compute_program field.
8761 (language_defn::compute_program): New member function.
8762 * m2-lang.c (m2_language_data): Delete la_compute_program
8763 initializer.
8764 * objc-lang.c (objc_language_data): Likewise.
8765 * opencl-lang.c (opencl_language_data): Likewise.
8766 * p-lang.c (pascal_language_data): Likewise.
8767 * rust-lang.c (rust_language_data): Likewise.
8768
eff93b4d
AB
87692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * ada-lang.c (ada_language_data) Delete
8772 la_class_name_from_physname initializer.
8773 * c-lang.c (c_language_data): Likewise.
8774 (cplus_language_data): Likewise.
8775 (cplus_language::class_name_from_physname): New member function.
8776 (asm_language_data): Delete la_class_name_from_physname
8777 initializer.
8778 (minimal_language_data): Likewise.
8779 * d-lang.c (d_language_data): Likewise.
8780 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8781 method on language_defn class.
8782 (guess_full_die_structure_name): Likewise.
8783 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8784 initializer.
8785 * go-lang.c (go_language_data): Likewise.
8786 * language.c (language_class_name_from_physname): Delete.
8787 (unk_lang_class_name): Delete.
8788 (unknown_language_data): Delete la_class_name_from_physname
8789 initializer.
8790 (auto_language_data): Likewise.
8791 * language.h (language_data): Delete la_class_name_from_physname
8792 field.
8793 (language_defn::class_name_from_physname): New function.
8794 (language_class_name_from_physname): Delete declaration.
8795 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8796 initializer.
8797 * objc-lang.c (objc_language_data): Likewise.
8798 * opencl-lang.c (opencl_language_data): Likewise.
8799 * p-lang.c (pascal_language_data): Likewise.
8800 * rust-lang.c (rust_language_data): Likewise.
8801
de543742
TT
88022020-06-16 Tom Tromey <tom@tromey.com>
8803
8804 * tui/tui-data.h (STATUS_NAME): New macro.
8805 * tui/tui-layout.c (tui_remove_some_windows)
8806 (initialize_known_windows, tui_register_window)
8807 (tui_layout_split::remove_windows, initialize_layouts)
8808 (tui_new_layout_command): Don't use hard-coded window names.
8809
a350efd4
TT
88102020-06-16 Tom Tromey <tom@tromey.com>
8811
8812 PR tui/25348:
8813 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8814 tui_initialize_readline. Only run once. Call rl_initialize.
8815 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8816 tui_initialize_readline.
8817 * tui/tui-io.c (tui_setup_io): Call
8818 tui_ensure_readline_initialized.
8819 * tui/tui-interp.c (tui_interp::init): Update.
8820
39ec0490
TT
88212020-06-16 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8824 Also preserve the status window.
8825
d2d1ea20
TT
88262020-06-16 Tom Tromey <tom@tromey.com>
8827
8828 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8829 where m_window==nullptr.
8830
66920317
TT
88312020-06-15 Tom Tromey <tromey@adacore.com>
8832
8833 * windows-nat.c (windows_nat::handle_output_debug_string):
8834 Update.
8835 (windows_nat::handle_ms_vc_exception): Update.
8836 * target.h (target_read_string): Change API.
8837 * target.c (target_read_string): Change API.
8838 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8839 Update.
8840 * solib-frv.c (frv_current_sos): Update.
8841 * solib-dsbt.c (dsbt_current_sos): Update.
8842 * solib-darwin.c (darwin_current_sos): Update.
8843 * linux-thread-db.c (inferior_has_bug): Update.
8844 * expprint.c (print_subexp_standard): Update.
8845 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8846 (ada_exception_message_1): Update.
8847
a5d871dd
TT
88482020-06-15 Tom Tromey <tromey@adacore.com>
8849
8850 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8851
670e35fa
TT
88522020-06-15 Tom Tromey <tromey@adacore.com>
8853
8854 * valprint.c (read_string): Update comment.
8855 * target.c (MIN): Remove.
8856 (target_read_string): Rewrite.
8857
f5272a3b
TT
88582020-06-15 Tom Tromey <tromey@adacore.com>
8859
8860 * corefile.c (read_memory_string): Remove.
8861 * ada-valprint.c (ada_value_print_ptr): Update.
8862 * ada-lang.h (ada_tag_name): Change return type.
8863 * ada-lang.c (type_from_tag): Update.
8864 (ada_tag_name_from_tsd): Change return type. Use
8865 target_read_string.
8866 (ada_tag_name): Likewise.
8867 * gdbcore.h (read_memory_string): Don't declare.
8868
2c074f49
HD
88692020-06-14 Hannes Domani <ssbssa@yahoo.de>
8870
8871 * symtab.c (rbreak_command): Ignore Windows drive colon.
8872
6a17d503
SM
88732020-06-12 Simon Marchi <simon.marchi@efficios.com>
8874
8875 * NEWS: Mention removed GDBserver host support.
8876
453c733f
NC
88772020-06-12 Nelson Chu <nelson.chu@sifive.com>
8878
8879 * features/riscv/rebuild-csr-xml.sh: Updated.
8880
2b4e6a3f
TT
88812020-06-11 Tom Tromey <tom@tromey.com>
8882
8883 PR gdb/18318:
8884 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8885
4412332f
JG
88862020-06-09 Jonny Grant <jg@jguk.org>
88872020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8888
8889 * main.c (captured_main_1): Don't print new line after help.
8890 (print_gdb_help): add mailing list and IRC channel information
8891 to --help. Add new lines between items in the footer. Remove
8892 quotes around bug url.
8893
2f33032a
KS
88942020-06-11 Keith Seitz <keiths@redhat.com>
8895
8896 PR gdb/21356
8897 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8898 Resolve typedefs for type length calculations.
8899
7ab96794
TV
89002020-06-10 Tom de Vries <tdevries@suse.de>
8901
8902 PR ada/24713
8903 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8904 (write_psymbols): Enable .gdb_index for ada.
8905 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8906 ada.
8907
e5f3ece2
TV
89082020-06-10 Tom de Vries <tdevries@suse.de>
8909
8910 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8911 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8912 namei" instead of "const char *name" argument.
8913 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8914 dw2_symtab_iter_init.
8915
940da03e
SM
89162020-06-08 Simon Marchi <simon.marchi@efficios.com>
8917
8918 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8919 to use type::field and field::type instead.
8920
b6cdac4b
SM
89212020-06-08 Simon Marchi <simon.marchi@efficios.com>
8922
8923 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8924 to use field::type instead.
8925
5d14b6e5
SM
89262020-06-08 Simon Marchi <simon.marchi@efficios.com>
8927
8928 * gdbtypes.h (struct field) <type, set_type>: New methods.
8929 Rename `type` field to...
8930 <m_type>: ... this. Change references throughout to use type or
8931 set_type methods.
8932 (FIELD_TYPE): Use field::type. Change call sites that modify
8933 the field's type to use field::set_type instead.
8934
3d967001
SM
89352020-06-08 Simon Marchi <simon.marchi@efficios.com>
8936
8937 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8938 to use type::index_type instead.
8939
262abc0d
SM
89402020-06-08 Simon Marchi <simon.marchi@efficios.com>
8941
8942 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8943 methods.
8944 (TYPE_INDEX_TYPE): Use type::index_type.
8945 * gdbtypes.c (create_array_type_with_stride): Likewise.
8946
82836c92
TT
89472020-06-07 Tom Tromey <tom@tromey.com>
8948
8949 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8950 parameter.
8951 (generic_value_print): Update.
8952
940dace9
AB
89532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8954
8955 Revert commit 982a38f60b0.
8956 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8957
982a38f6
AB
89582020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8959
8960 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8961 avoid use after free.
8962
82f06518
TV
89632020-06-05 Tom de Vries <tdevries@suse.de>
8964
8965 * NEWS: Fix typos.
8966
f8c41851
SM
89672020-06-04 Simon Marchi <simon.marchi@efficios.com>
8968
8969 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8970 the per_bfd object.
8971 (dwarf2_read_debug_names): Likewise.
8972 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8973 object when re-using a per_bfd object with an index.
8974
f9b5d5ea
TV
89752020-06-03 Tom de Vries <tdevries@suse.de>
8976
8977 PR symtab/26046
8978 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8979 children for C++.
8980 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8981 DW_TAG_subprogram.
8982
f6eee2d0
AB
89832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8984
8985 * ada-lang.c (ada_language_data): Delete skip_trampoline
8986 initializer.
8987 * c-lang.c (c_language_data): Likewise.
8988 (cplus_language_data): Likewise.
8989 (cplus_language::skip_trampoline): New member function.
8990 (asm_language_data): Delete skip_trampoline initializer.
8991 (minimal_language_data): Likewise.
8992 * d-lang.c (d_language_data): Likewise.
8993 * f-lang.c (f_language_data): Likewise.
8994 * go-lang.c (go_language_data): Likewise.
8995 * language.c (unk_lang_trampoline): Delete function.
8996 (skip_language_trampoline): Update.
8997 (unknown_language_data): Delete skip_trampoline initializer.
8998 (auto_language_data): Likewise.
8999 * language.h (language_data): Delete skip_trampoline field.
9000 (language_defn::skip_trampoline): New function.
9001 * m2-lang.c (m2_language_data): Delete skip_trampoline
9002 initializer.
9003 * objc-lang.c (objc_skip_trampoline): Delete function, move
9004 implementation to objc_language::skip_trampoline.
9005 (objc_language_data): Delete skip_trampoline initializer.
9006 (objc_language::skip_trampoline): New member function with
9007 implementation from objc_skip_trampoline.
9008 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9009 initializer.
9010 * p-lang.c (pascal_language_data): Likewise.
9011 * rust-lang.c (rust_language_data): Likewise.
9012
0a50df5d
AB
90132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9014
9015 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9016 (ada_language::demangle): New member function.
9017 * c-lang.c (c_language_data): Delete la_demangle initializer.
9018 (cplus_language_data): Delete la_demangle initializer.
9019 (cplus_language::demangle): New member function.
9020 (asm_language_data): Delete la_demangle initializer.
9021 (minimal_language_data): Delete la_demangle initializer.
9022 * d-lang.c (d_language_data): Delete la_demangle initializer.
9023 (d_language::demangle): New member function.
9024 * f-lang.c (f_language_data): Delete la_demangle initializer.
9025 (f_language::demangle): New member function.
9026 * go-lang.c (go_language_data): Delete la_demangle initializer.
9027 (go_language::demangle): New member function.
9028 * language.c (language_demangle): Update.
9029 (unk_lang_demangle): Delete.
9030 (unknown_language_data): Delete la_demangle initializer.
9031 (unknown_language::demangle): New member function.
9032 (auto_language_data): Delete la_demangle initializer.
9033 (auto_language::demangle): New member function.
9034 * language.h (language_data): Delete la_demangle field.
9035 (language_defn::demangle): New function.
9036 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9037 * objc-lang.c (objc_language_data): Delete la_demangle
9038 initializer.
9039 (objc_language::demangle): New member function.
9040 * opencl-lang.c (opencl_language_data): Delete la_demangle
9041 initializer.
9042 * p-lang.c (pascal_language_data): Likewise.
9043 * rust-lang.c (rust_language_data): Likewise.
9044 (rust_language::demangle): New member function.
9045
fbfb0a46
AB
90462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9047
9048 * ada-lang.c (ada_language_data): Delete la_print_type
9049 initializer.
9050 (ada_language::print_type): New member function.
9051 * c-lang.c (c_language_data): Delete la_print_type initializer.
9052 (c_language::print_type): New member function.
9053 (cplus_language_data): Delete la_print_type initializer.
9054 (cplus_language::print_type): New member function.
9055 (asm_language_data): Delete la_print_type initializer.
9056 (asm_language::print_type): New member function.
9057 (minimal_language_data): Delete la_print_type initializer.
9058 (minimal_language::print_type): New member function.
9059 * d-lang.c (d_language_data): Delete la_print_type initializer.
9060 (d_language::print_type): New member function.
9061 * f-lang.c (f_language_data): Delete la_print_type initializer.
9062 (f_language::print_type): New member function.
9063 * go-lang.c (go_language_data): Delete la_print_type initializer.
9064 (go_language::print_type): New member function.
9065 * language.c (unk_lang_print_type): Delete.
9066 (unknown_language_data): Delete la_print_type initializer.
9067 (unknown_language::print_type): New member function.
9068 (auto_language_data): Delete la_print_type initializer.
9069 (auto_language::print_type): New member function.
9070 * language.h (language_data): Delete la_print_type field.
9071 (language_defn::print_type): New function.
9072 (LA_PRINT_TYPE): Update.
9073 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9074 (m2_language::print_type): New member function.
9075 * objc-lang.c (objc_language_data): Delete la_print_type
9076 initializer.
9077 (objc_language::print_type): New member function.
9078 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9079 to opencl_language::print_type.
9080 (opencl_language_data): Delete la_print_type initializer.
9081 (opencl_language::print_type): New member function, implementation
9082 from opencl_print_type.
9083 * p-lang.c (pascal_language_data): Delete la_print_type
9084 initializer.
9085 (pascal_language::print_type): New member function.
9086 * rust-lang.c (rust_print_type): Delete, implementation moved to
9087 rust_language::print_type.
9088 (rust_language_data): Delete la_print_type initializer.
9089 (rust_language::print_type): New member function, implementation
9090 from rust_print_type.
9091
6f827019
AB
90922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9095 implementation moves to...
9096 (ada_language::sniff_from_mangled_name): ...here. Update return
9097 type.
9098 (ada_language_data): Delete la_sniff_from_mangled_name
9099 initializer.
9100 * c-lang.c (c_language_data): Likewise.
9101 (cplus_language_data): Likewise.
9102 (cplus_language::sniff_from_mangled_name): New member function,
9103 implementation taken from gdb_sniff_from_mangled_name.
9104 (asm_language_data): Delete la_sniff_from_mangled_name
9105 initializer.
9106 (minimal_language_data): Likewise.
9107 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9108 implementation moves to cplus_language::sniff_from_mangled_name.
9109 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9110 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9111 moves to...
9112 (d_language::sniff_from_mangled_name): ...here.
9113 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9114 * f-lang.c (f_language_data): Likewise.
9115 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9116 moves to...
9117 (go_language::sniff_from_mangled_name): ...here.
9118 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9119 * language.c (language_sniff_from_mangled_name): Delete.
9120 (unknown_language_data): Delete la_sniff_from_mangled_name
9121 initializer.
9122 (auto_language_data): Likewise.
9123 * language.h (language_data): Delete la_sniff_from_mangled_name
9124 field.
9125 (language_defn::sniff_from_mangled_name): New function.
9126 (language_sniff_from_mangled_name): Delete declaration.
9127 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9128 field.
9129 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9130 implementation moves to...
9131 (objc_language::sniff_from_mangled_name): ...here.
9132 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9133 * opencl-lang.c (opencl_language_data): Likewise.
9134 * p-lang.c (pascal_language_data): Likewise.
9135 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9136 implementation moves to...
9137 (rust_language::sniff_from_mangled_name): ...here.
9138 (rust_language_data): Delete la_sniff_from_mangled_name
9139 initializer.
9140 * symtab.c (symbol_find_demangled_name): Call
9141 sniff_from_mangled_name member function.
9142
fb8006fd
AB
91432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9144
9145 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9146 initializer.
9147 * c-lang.c (c_language_data): Likewise.
9148 (cplus_language_data): Likewise.
9149 (cplus_language::search_name_hash): New member function.
9150 (asm_language_data): Delete la_search_name_hash initializer.
9151 (minimal_language_data): Likewise.
9152 * d-lang.c (d_language_data): Likewise.
9153 * dictionary.c (default_search_name_hash): Rename to...
9154 (language_defn::search_name_hash): ...this.
9155 * f-lang.c (f_language_data): Likewise.
9156 (f_language::search_name_hash): New member function.
9157 * go-lang.c (go_language_data): Delete la_search_name_hash
9158 initializer.
9159 * language.c (unknown_language_data): Likewise.
9160 (auto_language_data): Likewise.
9161 * language.h (struct language_data): Delete la_search_name_hash
9162 field.
9163 (language_defn::search_name_hash): Declare new member function.
9164 (default_search_name_hash): Delete declaration.
9165 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9166 initializer.
9167 * objc-lang.c (objc_language_data): Likewise.
9168 * opencl-lang.c (opencl_language_data): Likewise.
9169 * p-lang.c (pascal_language_data): Likewise.
9170 * rust-lang.c (rust_language_data): Likewise.
9171 * symtab.c (search_name_hash): Update call.
9172
8e25bafe
AB
91732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9174
9175 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9176 initializer.
9177 * c-lang.c (class compile_instance): Declare.
9178 (c_language_data): Delete la_get_compile_instance initializer.
9179 (c_language::get_compile_instance): New member function.
9180 (cplus_language_data): Delete la_get_compile_instance initializer.
9181 (cplus_language::get_compile_instance): New member function.
9182 (asm_language_data): Delete la_get_compile_instance initializer.
9183 (minimal_language_data): Likewise.
9184 * c-lang.h (c_get_compile_context): Update comment.
9185 (cplus_get_compile_context): Update comment.
9186 * compile/compile.c (compile_to_object): Update calls, don't rely
9187 on function pointer being NULL.
9188 * d-lang.c (d_language_data): Delete la_get_compile_instance
9189 initializer.
9190 * f-lang.c (f_language_data): Likewise.
9191 * go-lang.c (go_language_data): Likewise.
9192 * language.c (unknown_language_data): Likewise.
9193 (auto_language_data): Likewise.
9194 * language.h (language_data): Delete la_get_compile_instance field.
9195 (language_defn::get_compile_instance): New member function.
9196 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9197 initializer.
9198 * objc-lang.c (objc_language_data): Likewise.
9199 * opencl-lang.c (opencl_language_data): Likewise.
9200 * p-lang.c (pascal_language_data): Likewise.
9201 * rust-lang.c (rust_language_data): Likewise.
9202
4009ee92
AB
92032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9204
9205 * ada-lang.c (ada_add_all_symbols): Update comment.
9206 (ada_iterate_over_symbols): Delete, move implementation to...
9207 (ada_language::iterate_over_symbols): ...here, a new member
9208 function, rewrite to use range based for loop.
9209 (ada_language_data): Delete la_iterate_over_symbols initializer.
9210 * c-lang.c (c_language_data): Likewise.
9211 (cplus_language_data): Likewise.
9212 (asm_language_data): Likewise.
9213 (minimal_language_data): Likewise.
9214 * d-lang.c (d_language_data): Likewise.
9215 * f-lang.c (f_language_data): Likewise.
9216 * go-lang.c (go_language_data): Likewise.
9217 * language.c (unknown_language_data): Likewise.
9218 (auto_language_data): Likewise.
9219 * language.h (language_data): Delete la_iterate_over_symbols field.
9220 (language_defn::iterate_over_symbols): New member function.
9221 (LA_ITERATE_OVER_SYMBOLS): Update.
9222 * linespec.c (iterate_over_all_matching_symtabs): Update.
9223 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9224 initializer.
9225 * objc-lang.c (objc_language_data): Likewise.
9226 * opencl-lang.c (opencl_language_data): Likewise.
9227 * p-lang.c (pascal_language_data): Likewise.
9228 * rust-lang.c (rust_language_data): Likewise.
9229
54f4ca46
AB
92302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9231
9232 * ada-lang.c (ada_language_data): Delete
9233 la_lookup_transparent_type initializer.
9234 * c-lang.c (c_language_data): Likewise.
9235 (cplus_language_data): Likewise.
9236 (cplus_language::lookup_transparent_type): New member function.
9237 (asm_language_data): Delete la_lookup_transparent_type
9238 initializer.
9239 (minimal_language_data): Likewise.
9240 * d-lang.c (d_language_data): Likewise.
9241 * f-lang.c (f_language_data): Likewise.
9242 * go-lang.c (go_language_data): Likewise.
9243 * language.c (unknown_language_data): Likewise.
9244 (auto_language_data): Likewise.
9245 * language.h (struct language_data): Delete
9246 la_lookup_transparent_type field.
9247 (language_defn::lookup_transparent_type): New member function.
9248 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9249 initializer.
9250 * objc-lang.c (objc_language_data): Likewise.
9251 * opencl-lang.c (opencl_language_data): Likewise.
9252 * p-lang.c (pascal_language_data): Likewise.
9253 * rust-lang.c (rust_language_data): Likewise.
9254 * symtab.c (symbol_matches_domain): Update call.
9255
1fb314aa
AB
92562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9257
9258 * ada-lang.c (ada_language_arch_info): Delete function, move
9259 implementation to...
9260 (ada_language::language_arch_info): ...here, a new member
9261 function.
9262 (ada_language_data): Delete la_language_arch_info.
9263 * c-lang.c (c_language_data): Likewise.
9264 (c_language::language_arch_info): New member function.
9265 (cplus_language_arch_info): Delete function, move
9266 implementation to...
9267 (cplus_language::language_arch_info): ...here, a new member
9268 function.
9269 (cplus_language_data): Delete la_language_arch_info.
9270 (asm_language_data): Likewise.
9271 (asm_language::language_arch_info): New member function.
9272 (minimal_language_data): Delete la_language_arch_info.
9273 (minimal_language::language_arch_info): New member function.
9274 * d-lang.c (d_language_arch_info): Delete function, move
9275 implementation to...
9276 (d_language::language_arch_info): ...here, a new member
9277 function.
9278 (d_language_data): Delete la_language_arch_info.
9279 * f-lang.c (f_language_arch_info): Delete function, move
9280 implementation to...
9281 (f_language::language_arch_info): ...here, a new member
9282 function.
9283 (f_language_data): Delete la_language_arch_info.
9284 * go-lang.c (go_language_arch_info): Delete function, move
9285 implementation to...
9286 (go_language::language_arch_info): ...here, a new member
9287 function.
9288 (go_language_data): Delete la_language_arch_info.
9289 * language.c (unknown_language_data): Likewise.
9290 (unknown_language::language_arch_info): New member function.
9291 (auto_language_data): Delete la_language_arch_info.
9292 (auto_language::language_arch_info): New member function.
9293 (language_gdbarch_post_init): Update call to
9294 la_language_arch_info.
9295 * language.h (language_data): Delete la_language_arch_info
9296 function pointer.
9297 (language_defn::language_arch_info): New function.
9298 * m2-lang.c (m2_language_arch_info): Delete function, move
9299 implementation to...
9300 (m2_language::language_arch_info): ...here, a new member
9301 function.
9302 (m2_language_data): Delete la_language_arch_info.
9303 * objc-lang.c (objc_language_arch_info): Delete function, move
9304 implementation to...
9305 (objc_language::language_arch_info): ...here, a new member
9306 function.
9307 (objc_language_data): Delete la_language_arch_info.
9308 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9309 implementation to...
9310 (opencl_language::language_arch_info): ...here, a new member
9311 function.
9312 (opencl_language_data): Delete la_language_arch_info.
9313 * p-lang.c (pascal_language_arch_info): Delete function, move
9314 implementation to...
9315 (pascal_language::language_arch_info): ...here, a new member
9316 function.
9317 (pascal_language_data): Delete la_language_arch_info.
9318 * rust-lang.c (rust_language_arch_info): Delete function, move
9319 implementation to...
9320 (rust_language::language_arch_info): ...here, a new member
9321 function.
9322 (rust_language_data): Delete la_language_arch_info.
9323
48448202
AB
93242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9325
9326 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9327 initializer.
9328 * c-lang.c (c_language_data): Likewise.
9329 (cplus_language_data): Likewise.
9330 (cplus_language::pass_by_reference_info): New method.
9331 (asm_language_data): Delete la_pass_by_reference initializer.
9332 (minimal_language_data): Likewise.
9333 * cp-abi.c (cp_pass_by_reference): Remove use of
9334 default_pass_by_reference.
9335 * d-lang.c (d_language_data): Likewise.
9336 * f-lang.c (f_language_data): Likewise.
9337 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9338 default_pass_by_reference.
9339 * go-lang.c (go_language_data): Likewise.
9340 * language.c (language_pass_by_reference): Update.
9341 (default_pass_by_reference): Delete.
9342 (unknown_language_data): Delete la_pass_by_reference
9343 initializer.
9344 (auto_language_data): Likewise.
9345 * language.h (struct language_data): Delete la_pass_by_reference
9346 field.
9347 (language_defn::pass_by_reference_info): New member function.
9348 (default_pass_by_reference): Delete declaration.
9349 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9350 initializer.
9351 * objc-lang.c (objc_language_data): Likewise.
9352 * opencl-lang.c (opencl_language_data): Likewise.
9353 * p-lang.c (pascal_language_data): Likewise.
9354 * rust-lang.c (rust_language_data): Likewise.
9355
15e5fd35
AB
93562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9357
9358 * ada-lang.c (ada_read_var_value): Delete function, move
9359 implementation to...
9360 (ada_language::read_var_value): ...here.
9361 (ada_language_data): Delete la_read_var_value initializer.
9362 * c-lang.c (c_language_data): Likewise.
9363 (cplus_language_data): Likewise.
9364 (minimal_language_data): Likewise.
9365 * d-lang.c (d_language_data): Likewise.
9366 * f-lang.c (f_language_data): Likewise.
9367 * findvar.c (default_read_var_value): Rename to...
9368 (language_defn::read_var_value): ...this.
9369 * findvar.c (read_var_value): Update header comment, and change to
9370 call member function instead of function pointer.
9371 * go-lang.c (go_language_data): Likewise.
9372 * language.c (unknown_language_data): Delete la_read_var_value
9373 initializer.
9374 (auto_language_data): Likewise.
9375 * language.h (struct language_data): Delete la_read_var_value
9376 field.
9377 (language_defn::read_var_value): New member function.
9378 (default_read_var_value): Delete declaration.
9379 * m2-lang.c (m2_language_data): Delete la_read_var_value
9380 initializer.
9381 * objc-lang.c (objc_language_data): Likewise.
9382 * opencl-lang.c (opencl_language_data): Likewise.
9383 * p-lang.c (pascal_language_data): Likewise.
9384 * rust-lang.c (rust_language_data): Likewise.
9385 * value.h (default_read_var_value): Delete declaration.
9386
5bd40f2a
AB
93872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9388
9389 * ada-lang.c (ada_print_array_index): Delete function, move
9390 implementation to...
9391 (ada_language::print_array_index): ...here.
9392 (ada_language_data): Delete la_print_array_index initializer.
9393 * c-lang.c (c_language_data): Likewise.
9394 (cplus_language_data): Likewise.
9395 (minimal_language_data): Likewise.
9396 * d-lang.c (d_language_data): Likewise.
9397 * f-lang.c (f_language_data): Likewise.
9398 * go-lang.c (go_language_data): Likewise.
9399 * language.c (default_print_array_index): Delete function, move
9400 implementation to...
9401 (language_defn::print_array_index): ...here.
9402 (unknown_language_data): Delete la_print_array_index initializer.
9403 (auto_language_data): Likewise.
9404 * language.h (struct language_data): Delete la_print_array_index
9405 field.
9406 (language_defn::print_array_index): New member function.
9407 (LA_PRINT_ARRAY_INDEX): Update.
9408 (default_print_array_index): Delete declaration.
9409 * m2-lang.c (m2_language_data): Delete la_print_array_index
9410 initializer.
9411 * objc-lang.c (objc_language_data): Likewise.
9412 * opencl-lang.c (opencl_language_data): Likewise.
9413 * p-lang.c (pascal_language_data): Likewise.
9414 * rust-lang.c (rust_language_data): Likewise.
9415
0874fd07
AB
94162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9417
9418 * gdb/ada-lang.c (ada_language_defn): Convert to...
9419 (ada_language_data): ...this.
9420 (class ada_language): New class.
9421 (ada_language_defn): New static global.
9422 * gdb/c-lang.c (c_language_defn): Convert to...
9423 (c_language_data): ...this.
9424 (class c_language): New class.
9425 (c_language_defn): New static global.
9426 (cplus_language_defn): Convert to...
9427 (cplus_language_data): ...this.
9428 (class cplus_language): New class.
9429 (cplus_language_defn): New static global.
9430 (asm_language_defn): Convert to...
9431 (asm_language_data): ...this.
9432 (class asm_language): New class.
9433 (asm_language_defn): New static global.
9434 (minimal_language_defn): Convert to...
9435 (minimal_language_data): ...this.
9436 (class minimal_language): New class.
9437 (minimal_language_defn): New static global.
9438 * gdb/d-lang.c (d_language_defn): Convert to...
9439 (d_language_data): ...this.
9440 (class d_language): New class.
9441 (d_language_defn): New static global.
9442 * gdb/f-lang.c (f_language_defn): Convert to...
9443 (f_language_data): ...this.
9444 (class f_language): New class.
9445 (f_language_defn): New static global.
9446 * gdb/go-lang.c (go_language_defn): Convert to...
9447 (go_language_data): ...this.
9448 (class go_language): New class.
9449 (go_language_defn): New static global.
9450 * gdb/language.c (unknown_language_defn): Remove declaration.
9451 (current_language): Initialize to nullptr, real initialization is
9452 moved to _initialize_language.
9453 (languages): Delete global.
9454 (language_defn::languages): Define.
9455 (set_language_command): Use language_defn::languages.
9456 (set_language): Likewise.
9457 (range_error): Likewise.
9458 (language_enum): Likewise.
9459 (language_def): Likewise.
9460 (add_set_language_command): Use language_def::languages for the
9461 language list, and language_def to lookup language pointers.
9462 (skip_language_trampoline): Use language_defn::languages.
9463 (unknown_language_defn): Convert to...
9464 (unknown_language_data): ...this.
9465 (class unknown_language): New class.
9466 (unknown_language_defn): New static global.
9467 (auto_language_defn): Convert to...
9468 (auto_language_data): ...this.
9469 (class auto_language): New class.
9470 (auto_language_defn): New static global.
9471 (language_gdbarch_post_init): Use language_defn::languages.
9472 (_initialize_language): Initialize current_language.
9473 * gdb/language.h (struct language_defn): Rename to...
9474 (struct language_data): ...this.
9475 (struct language_defn): New.
9476 (auto_language_defn): Delete.
9477 (unknown_language_defn): Delete.
9478 (minimal_language_defn): Delete.
9479 (ada_language_defn): Delete.
9480 (asm_language_defn): Delete.
9481 (c_language_defn): Delete.
9482 (cplus_language_defn): Delete.
9483 (d_language_defn): Delete.
9484 (f_language_defn): Delete.
9485 (go_language_defn): Delete.
9486 (m2_language_defn): Delete.
9487 (objc_language_defn): Delete.
9488 (opencl_language_defn): Delete.
9489 (pascal_language_defn): Delete.
9490 (rust_language_defn): Delete.
9491 * gdb/m2-lang.c (m2_language_defn): Convert to...
9492 (m2_language_data): ...this.
9493 (class m2_language): New class.
9494 (m2_language_defn): New static global.
9495 * gdb/objc-lang.c (objc_language_defn): Convert to...
9496 (objc_language_data): ...this.
9497 (class objc_language): New class.
9498 (objc_language_defn): New static global.
9499 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9500 (opencl_language_data): ...this.
9501 (class opencl_language): New class.
9502 (opencl_language_defn): New static global.
9503 * gdb/p-lang.c (pascal_language_defn): Convert to...
9504 (pascal_language_data): ...this.
9505 (class pascal_language): New class.
9506 (pascal_language_defn): New static global.
9507 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9508 language pointer, update comment format.
9509 * gdb/rust-lang.c (rust_language_defn): Convert to...
9510 (rust_language_data): ...this.
9511 (class rust_language): New class.
9512 (rust_language_defn): New static global.
9513
1313c56e
AB
95142020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9515
9516 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9517 member variable.
9518 <m_stmt_at_address>: New member variable.
9519 (lnp_state_machine::record_line): Don't record some lines, update
9520 tracking of is_stmt at the same address.
9521 (lnp_state_machine::lnp_state_machine): Initialise new member
9522 variables.
9523
b7ed9f3d
ST
95242020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9525
9526 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9527 "-include gnu-nat-mig.h".
9528 * gnu-nat-mig.h: New file.
9529 * gnu-nat.c: Include "gnu-nat-mig.h".
9530 (exc_server, msg_reply_server, notify_server,
9531 process_reply_server): Remove declarations.
9532
14a8ad62
ST
95332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9534
9535 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9536 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9537 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9538 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9539 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9540 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9541 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9542 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9543 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9544 to gnu_nat_target class.
9545 * gnu-nat.c: Likewise.
9546 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9547 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9548 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9549 object.
9550 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9551 instead of `gnu_target'.
9552
0af5e106
ST
95532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9554
9555 * i386-gnu-tdep.c: Include "gdbcore.h"
9556 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9557 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9558 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9559 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9560 i386_gnu_sigcontext_addr): New functions
9561 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9562 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9563 tdep.
9564
078f2fc9
ST
95652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9566
9567 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9568 before fork_inferior call. Avoid calling it if target_is_pushed returns
9569 true.
9570
53dff92c
ST
95712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9572
9573 * gnu-nat.h (gnu_target): New variable declaration.
9574 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9575 gnu_target.
9576 * gnu-nat.c (gnu_target): New variable.
9577 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9578 add_thread_silent, and add_thread calls.
9579 (gnu_nat_target::create_inferior): Pass gnu_target to
9580 add_thread_silent, thread_change_ptid call.
9581 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9582 call.
9583
5a8b8627
ST
95842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9585
9586 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9587 (gnu_nat_target::find_memory_regions): Remove unused
9588 `old_address' variable.
9589
366f550a
ST
95902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9591
9592 * gnu-nat.c: Include "gdbarch.h".
9593
f14871bf
ST
95942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9595
9596 * reply_mig_hack.awk (Error return): Cast function through
9597 void *, to bypass compiler function call check.
9598
c6887cfb
ST
95992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9600
9601 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9602 $(srcdir)/reply_mig_hack.awk.
9603
6930bffe
ST
96042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9605
9606 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9607
112c22ed
JG
96082020-05-30 Jonny Grant <jg@jguk.org>
9609
9610 * configure.ac (ACX_BUGURL): change bug URL to https.
9611
f68f85b5
PA
96122020-05-30 Pedro Alves <palves@redhat.com>
9613
9614 * cp-support.c (replace_typedefs_template): New.
9615 (replace_typedefs_qualified_name): Handle
9616 DEMANGLE_COMPONENT_TEMPLATE.
9617
976ca316
SM
96182020-05-29 Simon Marchi <simon.marchi@efficios.com>
9619
9620 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9621 dwarf2/index-cache.h, dwarf2/index-write.c,
9622 dwarf2/index-write.h, dwarf2/line-header.c,
9623 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9624 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9625 variables and fields from `dwarf2_per_objfile` to just
9626 `per_objfile` throughout.
9627
989ade05
SM
96282020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9629
9630 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9631 <push_dwarf_reg_entry_value>: Add comment.
9632
c47bae85
KB
96332020-05-28 Kevin Buettner <kevinb@redhat.com>
9634 Keith Seitz <keiths@redhat.com>
9635
9636 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9637 instead of PyEval_ReleaseLock.
9638 (class gdbpy_gil): Move to earlier in file.
9639 (finalize_python): Set gdb_python_initialized.
9640 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9641 when not initialized.
9642
44486dcf
SM
96432020-05-28 Simon Marchi <simon.marchi@efficios.com>
9644
9645 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9646 <push_dwarf_reg_entry_value>: Remove assert. Override
9647 per_objfile with caller_per_objfile.
9648
f030440d
TV
96492020-05-28 Tom de Vries <tdevries@suse.de>
9650
9651 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9652 PR gold/15646 workaround to symbol kind "type".
9653
f0fbb768
TT
96542020-05-27 Tom Tromey <tromey@adacore.com>
9655
9656 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9657
af0b2a3e
TT
96582020-05-27 Tom Tromey <tromey@adacore.com>
9659
9660 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9661 Use htab_find_with_hash.
9662 <add_abbrev>: Remove "abbrev_number" parameter.
9663 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9664 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9665 (hash_abbrev): Add comment.
9666 (abbrev_table::lookup_abbrev): Move to header file.
9667 (abbrev_table::read): Update.
9668
7d00ffec
TT
96692020-05-27 Tom Tromey <tromey@adacore.com>
9670
9671 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9672 method.
9673 <canonical_name>: New member.
9674 <raw_name>: Rename from "name".
9675 (partial_die_info): Initialize canonical_name.
9676 (scan_partial_symbols): Check raw_name.
9677 (partial_die_parent_scope, partial_die_full_name)
9678 (add_partial_symbol, add_partial_subprogram)
9679 (add_partial_enumeration, load_partial_dies): Use "name" method.
9680 (partial_die_info::name): New method.
9681 (partial_die_info::read, guess_partial_die_structure_name)
9682 (partial_die_info::fixup): Update.
9683
697bba18
TT
96842020-05-27 Tom Tromey <tromey@adacore.com>
9685
9686 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9687 <get_ref_die_offset>: Inline.
9688 <get_ref_die_offset_complaint>: New method.
9689 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9690 (attribute::get_ref_die_offset_complaint): Rename from
9691 get_ref_die_offset. Just issue complaint.
9692
c17ace43
HD
96932020-05-27 Hannes Domani <ssbssa@yahoo.de>
9694
9695 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9696
96445f0b
HD
96972020-05-27 Hannes Domani <ssbssa@yahoo.de>
9698
9699 * exec.c (exec_file_attach): Use errno value of first openp failure.
9700
ac637ec3
HD
97012020-05-27 Hannes Domani <ssbssa@yahoo.de>
9702
9703 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9704 Don't close thread handle.
9705
17ee85fc
TT
97062020-05-27 Tom Tromey <tom@tromey.com>
9707 Simon Marchi <simon.marchi@efficios.com>
9708
9709 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9710 shared_ptr.
9711 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9712 member.
9713 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9714 dwarf2_per_bfd_objfile_data_key>: New globals.
9715 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9716 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9717 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9718 shared.
9719 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9720 short-circuit when sharing.
9721 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9722 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9723
39b16f87
SM
97242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9725
9726 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9727 to...
9728 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9729 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9730
fcf23d5b
SM
97312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9732
9733 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9734 build_name_components, find_name_components_bounds>:
9735 Add per_objfile parameter.
9736 (struct mapped_index) <symbol_name_at>: Likewise.
9737 (struct mapped_debug_names): Remove constructor.
9738 <dwarf2_per_objfile>: Remove field.
9739 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9740 (mapped_index_base::find_name_components_bounds,
9741 mapped_index_base::build_name_components,
9742 dw2_expand_symtabs_matching_symbol): Likewise.
9743 (class mock_mapped_index) <symbol_name_at>: Likewise.
9744 (check_match): Likewise.
9745 (check_find_bounds_finds): Likewise.
9746 (test_mapped_index_find_name_component_bounds): Update.
9747 (CHECK_MATCH): Update.
9748 (dw2_expand_symtabs_matching): Update.
9749 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9750 per_objfile parameter.
9751 <find_vec_in_debug_names>: Likewise.
9752 <m_per_objfile>: New field.
9753 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9754 parameter.
9755 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9756 (dw2_debug_names_iterator::next): Update.
9757 (dw2_debug_names_lookup_symbol): Update.
9758 (dw2_debug_names_expand_symtabs_for_function): Update.
9759 (dw2_debug_names_map_matching_symbols): Update.
9760 (dw2_debug_names_expand_symtabs_matching): Update.
9761 (dwarf2_read_debug_names): Update.
9762
7188ed02
SM
97632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9764
9765 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9766 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9767 move to dwarf2_per_objfile.
9768 <read_in_chain>: Remove.
9769 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9770 remove_all_cus, age_comp_units>: New methods.
9771 <m_dwarf2_cus>: New member.
9772 (struct dwarf2_per_cu_data) <cu>: Remove.
9773 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9774 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9775 moved to methods of dwarf2_per_objfile.
9776 (dwarf2_clear_marks): Remove.
9777 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9778 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9779 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9780 (dwarf2_per_objfile::remove_all_cus): New.
9781 (class free_cached_comp_units) <~free_cached_comp_units>:
9782 Update.
9783 (load_cu): Update.
9784 (dw2_do_instantiate_symtab): Adjust.
9785 (fill_in_sig_entry_from_dwo_entry): Adjust.
9786 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9787 (cutu_reader::cutu_reader): Likewise.
9788 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9789 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9790 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9791 and dwarf2_per_objfile::age_comp_units.
9792 (load_partial_comp_unit): Update.
9793 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9794 (process_queue): Likewise.
9795 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9796 backlink.
9797 (dwarf2_read_addr_index): Likewise.
9798 (follow_die_offset): Likewise.
9799 (dwarf2_fetch_die_loc_sect_off): Likewise.
9800 (dwarf2_fetch_constant_bytes): Likewise.
9801 (dwarf2_fetch_die_type_sect_off): Likewise.
9802 (follow_die_sig_1): Likewise.
9803 (load_full_type_unit): Likewise.
9804 (read_signatured_type): Likewise.
9805 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9806 (dwarf2_cu::~dwarf2_cu): Remove.
9807 (dwarf2_per_objfile::get_cu): New.
9808 (dwarf2_per_objfile::set_cu): New.
9809 (age_cached_comp_units): Rename to...
9810 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9811 to std::unordered_map.
9812 (free_one_cached_comp_unit): Rename to...
9813 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9814 to std::unordered_map.
9815 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9816 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9817 a dwarf2_per_objfile in data.
9818 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9819 (dwarf2_clear_marks): Remove.
9820
2e671100
SM
98212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9822
9823 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9824 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9825 (init_tu_and_read_dwo_dies): Likewise.
9826 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9827 (cutu_reader::cutu_reader): Likewise.
9828 (load_partial_comp_unit): Likewise.
9829 (process_psymtab_comp_unit): Update.
9830 (build_type_psymtabs_1): Update.
9831 (process_skeletonless_type_unit): Update.
9832 (load_full_comp_unit): Update.
9833 (find_partial_die): Update.
9834 (dwarf2_read_addr_index): Update.
9835 (read_signatured_type): Update.
9836
2e6a9f79
SM
98372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9838
9839 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9840 m_header_read_in>: New fields.
9841 <get_header>: New method.
9842 * dwarf2/read.c (per_cu_header_read_in): Remove.
9843 (dwarf2_per_cu_data::get_header): New.
9844 (dwarf2_per_cu_data::addr_size): Update.
9845 (dwarf2_per_cu_data::offset_size): Update.
9846 (dwarf2_per_cu_data::ref_addr_size): Update.
9847
1b555f17
SM
98482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9849
9850 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9851 (dw2_do_instantiate_symtab): Update.
9852 (queue_and_load_all_dwo_tus): Change parameter from
9853 dwarf2_per_cu_data to dwarf2_cu.
9854 (dwarf2_fetch_die_loc_sect_off): Update.
9855 (dwarf2_fetch_constant_bytes): Update.
9856 (dwarf2_fetch_die_type_sect_off): Update.
9857
8fc0b21d
SM
98582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9859
9860 * dwarf2/read.c (process_full_comp_unit,
9861 process_full_type_unit): Remove per_cu, per_objfile paramters.
9862 Add dwarf2_cu parameter.
9863 (process_queue): Update.
9864
168c9250
SM
98652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9866
9867 * dwarf2/read.c (create_cu_from_index_list): Replace
9868 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9869 (create_cus_from_index_list): Likewise.
9870 (create_cus_from_index): Likewise.
9871 (create_signatured_type_table_from_index): Likewise.
9872 (create_cus_from_debug_names_list): Likewise.
9873 (create_cus_from_debug_names): Likewise.
9874 (dwarf2_read_gdb_index): Update.
9875 (dwarf2_read_debug_names): Update.
9876
e286671b
TT
98772020-05-27 Tom Tromey <tom@tromey.com>
9878 Simon Marchi <simon.marchi@efficios.com>
9879
9880 * dwarf2/read.h (struct dwarf2_per_objfile)
9881 <get_type_for_signatured_type, set_type_for_signatured_type>:
9882 New methods.
9883 <m_type_map>: New member.
9884 (struct signatured_type) <type>: Remove.
9885 * dwarf2/read.c
9886 (dwarf2_per_objfile::get_type_for_signatured_type,
9887 dwarf2_per_objfile::set_type_for_signatured_type): New.
9888 (get_signatured_type): Use new methods.
9889
8adb8487
TT
98902020-05-27 Tom Tromey <tom@tromey.com>
9891 Simon Marchi <simon.marchi@efficios.com>
9892
9893 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9894 (struct dwarf2_per_objfile) <type_units>: New member.
9895 <get_type_unit_group_unshareable>: New method.
9896 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9897 num_symtabs, symtabs>: Remove; move to
9898 type_unit_group_unshareable.
9899 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9900 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9901 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9902
127bbf4b
SM
99032020-05-27 Simon Marchi <simon.marchi@efficios.com>
9904
9905 * dwarf2/read.h (struct dwarf2_per_cu_data):
9906 <dwarf2_per_objfile>: Remove.
9907 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9908 dwarf2_per_objfile.
9909 (create_signatured_type_table_from_index): Likewise.
9910 (create_signatured_type_table_from_debug_names): Likewise.
9911 (create_debug_type_hash_table): Likewise.
9912 (fill_in_sig_entry_from_dwo_entry): Likewise.
9913 (create_type_unit_group): Likewise.
9914 (read_comp_units_from_section): Likewise.
9915 (create_cus_hash_table): Likewise.
9916
f6e649dd
SM
99172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9918
9919 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9920 dwarf2_per_cu_data::dwarf2_per_objfile.
9921 (compute_compunit_symtab_includes): Likewise.
9922 (dwarf2_cu::start_symtab): Likewise.
9923
aa66c379
SM
99242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9925
9926 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9927 parameter.
9928 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9929 (read_namespace_alias): Update.
9930 (lookup_die_type): Update.
9931 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9932 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9933 Update.
9934 (disassemble_dwarf_expression): Update.
9935
120ce1b5
SM
99362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * dwarf2/read.h (struct dwarf2_queue_item): Add
9939 dwarf2_per_objfile parameter, assign new parameter.
9940 <per_objfile>: New field.
9941 * dwarf2/read.c (free_one_cached_comp_unit): Add
9942 dwarf2_per_objfile parameter.
9943 (queue_comp_unit): Likewise.
9944 (dw2_do_instantiate_symtab): Update.
9945 (process_psymtab_comp_unit): Update.
9946 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9947 (process_imported_unit_die): Update.
9948 (queue_and_load_dwo_tu): Update.
9949 (follow_die_offset): Update.
9950 (follow_die_sig_1): Update.
9951
9f47c707
SM
99522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9955 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9956 (read_call_site_scope): Assign per_objfile.
9957 (dwarf2_per_cu_data::objfile): Remove.
9958 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9959 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9960 dwarf2_per_objfile parameter.
9961 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9962 dwarf2_per_objfile parameter.
9963 (dwarf_expr_reg_to_entry_parameter): Add output
9964 dwarf2_per_objfile parameter.
9965 (locexpr_get_frame_base): Update.
9966 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9967 <push_dwarf_reg_entry_value>: Update.
9968 <call_site_to_target_addr>: Update.
9969 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9970 parameter.
9971 (value_of_dwarf_reg_entry): Update.
9972 (rw_pieced_value): Update.
9973 (indirect_synthetic_pointer): Update.
9974 (dwarf2_evaluate_property): Update.
9975 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9976 parameter.
9977 (locexpr_read_variable): Update.
9978 (locexpr_get_symbol_read_needs): Update.
9979 (loclist_read_variable): Update.
9980
14095eb3
SM
99812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9982
9983 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9984 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9985 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9986 parameter.
9987 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9988 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9989 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9990 parameter.
9991 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9992 sect_variable_value): Add dwarf2_per_objfile parameter.
9993 (class dwarf_evaluate_loc_desc) <dwarf_call,
9994 dwarf_variable_value>: Update.
9995 (fetch_const_value_from_synthetic_pointer): Add
9996 dwarf2_per_objfile parameter.
9997 (fetch_const_value_from_synthetic_pointer): Update.
9998 (coerced_pieced_ref): Update.
9999 (class symbol_needs_eval_context) <dwarf_call,
10000 dwarf_variable_value>: Update.
10001 (dwarf2_compile_expr_to_ax): Update.
10002
3c3cd3d4
SM
100032020-05-27 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10006 parameter.
10007 (dwarf2_evaluate_loc_desc_full): Update.
10008
82ca3f51
SM
100092020-05-27 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10012 parameter.
10013 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10014 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10015 dwarf2_per_objfile parameter.
10016 (decode_debug_loc_dwo_addresses): Likewise.
10017 (dwarf2_find_location_expression): Update.
10018 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10019 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10020 parameter.
10021 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10022 parameter.
10023 (locexpr_describe_location_1): Likewise.
10024 (locexpr_describe_location): Update.
10025
4b167ea1
SM
100262020-05-27 Simon Marchi <simon.marchi@efficios.com>
10027
10028 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10029 Remove.
10030 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10031 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10032 (dwarf2_compile_property_to_c): Update.
10033 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10034 use text offset from objfile.
10035 (locexpr_tracepoint_var_ref): Update.
10036 (locexpr_generate_c_location): Update.
10037 (loclist_describe_location): Update.
10038 (loclist_tracepoint_var_ref): Update.
10039 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10040 dwarf2_per_objfile parameter.
10041 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10042 use text offset from objfile.
10043 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10044
89b07335
SM
100452020-05-27 Simon Marchi <simon.marchi@efficios.com>
10046
10047 * dwarf2/expr.h (struct dwarf_expr_context)
10048 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10049 <offset>: Remove.
10050 <per_objfile>: New member.
10051 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10052 dwarf2_per_objfile parameter. Don't set offset, set
10053 per_objfile.
10054 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10055 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10056 a dwarf2_per_objfile object instead of an offset.
10057 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10058 constructor.
10059 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10060 to dwarf2_expr_executor constructor. Don't set offset.
10061 (dwarf2_fetch_cfa_info): Update.
10062 (struct dwarf2_frame_cache) <text_offset>: Remove.
10063 <per_objfile>: New field.
10064 (dwarf2_frame_cache): Update.
10065 (dwarf2_frame_prev_register): Update.
10066 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10067 <dwarf_evaluate_loc_desc>: Add constructor.
10068 (dwarf2_evaluate_loc_desc_full): Update.
10069 (dwarf2_locexpr_baton_eval): Update.
10070 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10071 Add constructor.
10072 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10073
293e7e51
SM
100742020-05-27 Simon Marchi <simon.marchi@efficios.com>
10075
10076 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10077 addr_sized_int_type>: Move to dwarf2_cu.
10078 <int_type>: Move to dwarf2_per_objfile.
10079 (struct dwarf2_per_objfile) <int_type>: Move here.
10080 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10081 addr_sized_int_type>: Move here.
10082 (read_func_scope): Update.
10083 (read_array_type): Update.
10084 (read_tag_string_type): Update.
10085 (attr_to_dynamic_prop): Update.
10086 (dwarf2_per_cu_data::int_type): Rename to...
10087 (dwarf2_per_objfile::int_type): ... this.
10088 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10089 (dwarf2_cu::addr_sized_int_type): ... this.
10090 (read_subrange_type): Update.
10091 (dwarf2_per_cu_data::addr_type): Rename to...
10092 (dwarf2_cu::addr_type): ... this.
10093 (set_die_type): Update.
10094
64874a40
SM
100952020-05-27 Simon Marchi <simon.marchi@efficios.com>
10096
10097 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10098 data through per_cu->cu.
10099
4ab09049
SM
101002020-05-27 Simon Marchi <simon.marchi@efficios.com>
10101
10102 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10103 dwarf2_per_cu_data parameter fo dwarf2_cu.
10104 (lookup_dwo_type_unit): Likewise.
10105 (read_cutu_die_from_dwo): Likewise.
10106 (lookup_dwo_unit): Likewise.
10107 (open_and_init_dwo_file): Likewise.
10108 (lookup_dwo_cutu): Likewise.
10109 (lookup_dwo_comp_unit): Likewise.
10110 (lookup_dwo_type_unit): Likewise.
10111 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10112 (cutu_reader::cutu_reader): Update.
10113
47b14e86
SM
101142020-05-27 Simon Marchi <simon.marchi@efficios.com>
10115
10116 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10117 parameter.
10118 (process_full_type_unit): Likewise.
10119 (process_queue): Update.
10120
43182c09
SM
101212020-05-27 Simon Marchi <simon.marchi@efficios.com>
10122
10123 * dwarf2/read.c (recursively_compute_inclusions): Add
10124 dwarf2_per_objfile parameter.
10125 (compute_compunit_symtab_includes): Likewise.
10126 (process_cu_includes): Update.
10127
7aa104c4
SM
101282020-05-27 Simon Marchi <simon.marchi@efficios.com>
10129
10130 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10131 parameter.
10132 (create_type_unit_group): Update.
10133 (process_psymtab_comp_unit_reader): Update.
10134 (build_type_psymtabs_reader): Update.
10135
e3beb21d
SM
101362020-05-27 Simon Marchi <simon.marchi@efficios.com>
10137
10138 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10139 object through m_this_cu->cu.
10140
d460f660
SM
101412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10142
10143 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10144 the info parameter.
10145 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10146
ab432490
SM
101472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10148
10149 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10150 per_objfile parameter.
10151 (load_full_type_unit): Add per_objfile parameter.
10152 (read_signatured_type): Likewise.
10153 (load_full_comp_unit): Likewise.
10154 (load_cu): Likewise.
10155 (dw2_do_instantiate_symtab): Likewise.
10156 (dw2_get_file_names): Likewise.
10157 (dw2_map_symtabs_matching_filename): Update.
10158 (dw_expand_symtabs_matching_file_matcher): Update.
10159 (dw2_map_symbol_filenames): Update.
10160 (process_psymtab_comp_unit): Add per_objfile parameter.
10161 (build_type_psymtabs_1): Update.
10162 (process_skeletonless_type_unit): Update.
10163 (dwarf2_build_psymtabs_hard): Update.
10164 (load_partial_comp_unit): Add per_objfile parameter.
10165 (scan_partial_symbols): Update.
10166 (load_full_comp_unit): Add per_objfile parameter.
10167 (process_imported_unit_die): Update.
10168 (create_cus_hash_table): Update.
10169 (find_partial_die): Update.
10170 (dwarf2_read_addr_index): Update.
10171 (follow_die_offset): Update.
10172 (dwarf2_fetch_die_loc_sect_off): Update.
10173 (dwarf2_fetch_constant_bytes): Update.
10174 (dwarf2_fetch_die_type_sect_off): Update.
10175 (follow_die_sig_1): Update.
10176 (load_full_type_unit): Add per_objfile parameter.
10177 (read_signatured_type): Likewise.
10178
313bad1b
SM
101792020-05-27 Simon Marchi <simon.marchi@efficios.com>
10180
10181 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10182 of objfile_name.
10183
c3699833
SM
101842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10185
10186 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10187 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10188 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10189 field.
10190 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10191 (create_cus_from_index): Update.
10192 (dwarf2_read_gdb_index): Update.
10193 (create_cus_from_debug_names): Update.
10194 (dwarf2_read_debug_names): Update.
10195 (get_abbrev_section_for_cu): Update.
10196 (create_all_comp_units): Update.
10197 (read_attribute_value): Update.
10198 (get_debug_line_section): Update.
10199 * dwarf2/index-cache.c (index_cache::store): Update.
10200 * dwarf2/index-write.c (save_gdb_index_command): Update.
10201 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10202
1859c670
SM
102032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10204
10205 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10206 member.
10207 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10208 dwarf2_per_cu_data::per_bfd.
10209 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10210 (create_type_unit_group): Likewise.
10211 (queue_comp_unit): Remove reference to
10212 per_cu->dwarf2_per_objfile.
10213 (maybe_queue_comp_unit): Likewise.
10214 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10215 (create_cus_hash_table): Assign new field.
10216
5e22e966
SM
102172020-05-27 Simon Marchi <simon.marchi@efficios.com>
10218
10219 * dwarf2/read.c: Replace
10220 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10221 dwarf2_cu->per_objfile throughout.
10222
97a1449a
SM
102232020-05-27 Simon Marchi <simon.marchi@efficios.com>
10224
10225 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10226 parameter, don't use per_cu->dwarf2_per_objfile.
10227 (dw2_instantiate_symtab): Likewise.
10228 (dw2_find_last_source_symtab): Update.
10229 (dw2_map_expand_apply): Update.
10230 (dw2_lookup_symbol): Update.
10231 (dw2_expand_symtabs_for_function): Update.
10232 (dw2_expand_all_symtabs): Update.
10233 (dw2_expand_symtabs_with_fullname): Update.
10234 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10235 don't use per_cu->dwarf2_per_objfile.
10236 (dw2_expand_marked_cus): Update.
10237 (dw2_find_pc_sect_compunit_symtab): Update.
10238 (dw2_debug_names_lookup_symbol): Update.
10239 (dw2_debug_names_expand_symtabs_for_function): Update.
10240 (dw2_debug_names_map_matching_symbols): Update.
10241 (dwarf2_psymtab::expand_psymtab): Update.
10242
9e021579
SM
102432020-05-27 Simon Marchi <simon.marchi@efficios.com>
10244
10245 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10246 <per_objfile>: New member.
10247 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10248 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10249 call to dwarf2_cu.
10250 (cutu_reader::cutu_reader): Update.
10251 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10252
ae090bdb
SM
102532020-05-27 Simon Marchi <simon.marchi@efficios.com>
10254
10255 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10256 struct dwarf2_per_objfile.
10257 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10258 dwarf2_per_bfd.
10259 * dwarf2/read.c (set_die_type): Update.
10260 (get_die_type_at_offset): Update.
10261
af758d11
SM
102622020-05-27 Tom Tromey <tom@tromey.com>
10263 Simon Marchi <simon.marchi@efficios.com>
10264
10265 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10266 method.
10267 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10268 get_symtab, set_symtab>: New methods.
10269 <m_symtabs>: New field.
10270 (struct dwarf2_psymtab): Derive from partial_symtab.
10271 <readin_p, get_compunit_symtab>: Declare methods.
10272 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10273 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10274 New methods.
10275 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10276 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10277 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10278 (dw2_symtab_iter_next, dw2_print_stats)
10279 (dw2_expand_symtabs_with_fullname)
10280 (dw2_expand_symtabs_matching_one)
10281 (dw_expand_symtabs_matching_file_matcher)
10282 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10283 (dw2_debug_names_iterator::next)
10284 (dw2_debug_names_map_matching_symbols)
10285 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10286 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10287 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10288 New methods.
10289 (get_compunit_symtab, process_full_comp_unit)
10290 (process_full_type_unit): Update.
10291 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10292
5989a64e
SM
102932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10294
10295 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10296 then introduce a new dwarf2_per_objfile type.
10297 <read_line_string>: Move to the new dwarf2_per_objfile type.
10298 <objfile>: Likewise.
10299 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10300 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10301 dwarf2_per_objfile->per_bfd.
10302 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10303 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10304 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10305 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10306 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10307 (dwarf2_per_objfile::locate_sections): Rename to...
10308 (dwarf2_per_bfd::locate_sections): ... this.
10309 (dwarf2_per_objfile::get_cutu): Rename to...
10310 (dwarf2_per_bfd::get_cutu): ... this.
10311 (dwarf2_per_objfile::get_cu): Rename to...
10312 (dwarf2_per_bfd::get_cu): ... this.
10313 (dwarf2_per_objfile::get_tu): Rename to...
10314 (dwarf2_per_bfd::get_tu): ... this.
10315 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10316 (dwarf2_per_bfd::allocate_per_cu): ... this.
10317 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10318 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10319 (get_gdb_index_contents_ftype): Change parameter from
10320 dwarf2_per_objfile to dwarf2_per_bfd.
10321 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10322 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10323
a50264ba
TT
103242020-05-27 Tom Tromey <tom@tromey.com>
10325 Simon Marchi <simon.marchi@efficios.com>
10326
10327 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10328 (allocate_piece_closure): Set "per_objfile" member.
10329 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10330 (locexpr_describe_location, loclist_describe_location): Use new
10331 member.
10332 * dwarf2/read.c (read_call_site_scope)
10333 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10334 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10335 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10336 handle_data_member_location): Set per_objfile member.
10337 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10338 member.
10339 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10340
d3473f0c
TT
103412020-05-27 Tom Tromey <tom@tromey.com>
10342
10343 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10344 allocate_signatured_type>: Declare new methods.
10345 <m_num_psymtabs>: New member.
10346 (struct dwarf2_per_cu_data) <index>: New member.
10347 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10348 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10349 (create_cu_from_index_list): Use allocate_per_cu.
10350 (create_signatured_type_table_from_index)
10351 (create_signatured_type_table_from_debug_names)
10352 (create_debug_type_hash_table, add_type_unit)
10353 (read_comp_units_from_section): Use allocate_signatured_type.
10354
5717c425
TT
103552020-05-27 Tom Tromey <tom@tromey.com>
10356
10357 * psymtab.c (partial_map_expand_apply)
10358 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10359 (psym_lookup_global_symbol_language)
10360 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10361 (psym_print_stats, psym_expand_symtabs_for_function)
10362 (psym_map_symbol_filenames, psym_map_matching_symbols)
10363 (psym_expand_symtabs_matching)
10364 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10365 (maintenance_check_psymtabs): Update.
10366 * psympriv.h (struct partial_symtab) <readin_p,
10367 get_compunit_symtab>: Add objfile parameter.
10368 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10369 Likewise.
10370 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10371 get_compunit_symtab>: Likewise.
10372 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10373
45940949
TT
103742020-05-27 Tom Tromey <tom@tromey.com>
10375
10376 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10377 member.
10378 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10379 (create_cu_from_index_list)
10380 (create_signatured_type_table_from_index)
10381 (create_signatured_type_table_from_debug_names)
10382 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10383 (dwarf2_create_include_psymtab)
10384 (create_debug_type_hash_table, add_type_unit)
10385 (create_type_unit_group, read_comp_units_from_section)
10386 (dwarf2_compute_name, create_cus_hash_table)
10387 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10388 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10389 obstack.
10390 (dw2_get_real_path): Likewise. Change argument to
10391 dwarf2_per_objfile.
10392
f8c6d152
LM
103932020-05-27 Luis Machado <luis.machado@linaro.org>
10394
10395 PR tdep/26000
10396 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10397 for ldrd (immediate).
10398
e98d2e6d
PW
103992020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10400
10401 * command.h: Add comment giving the name of class_tui.
10402 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10403 create the fake command for the help for class_tui.
10404
53a47a3e
TT
104052020-05-26 Tom Tromey <tromey@adacore.com>
10406
10407 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10408 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10409 (val_atr): New function.
10410 (value_val_atr): Use it.
10411 * ada-valprint.c (print_optional_low_bound): Change low bound
10412 handling for enums.
10413 (val_print_packed_array_elements): Don't call discrete_position.
10414 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10415 discrete_position for enum types.
10416 * language.c (default_print_array_index): Change type.
10417 * language.h (struct language_defn) <la_print_array_index>: Add
10418 index_type parameter, change type of index_value.
10419 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10420 (default_print_array_index): Update.
10421 * valprint.c (maybe_print_array_index): Don't call
10422 value_from_longest. Update.
10423 (value_print_array_elements): Don't call discrete_position.
10424
0bc2354b
TT
104252020-05-26 Tom Tromey <tromey@adacore.com>
10426
10427 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10428 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10429
1218a4bf
CDA
104302020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10431
10432 PR gdb/13519
10433 * avr-tdep.c (avr_integer_to_address): Return data or code
10434 address accordingly to the second 'type' argument of the
10435 function.
10436
92651b1d
MW
104372020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10438
10439 * infcmd.c, inferior.h: (construct_inferior_arguments):
10440 Moved function from here to gdbsupport/common-inferior.{h,cc}
10441
0a4f5f8c
TT
104422020-05-23 Tom Tromey <tom@tromey.com>
10443
10444 Revert commit eca1f90c:
10445 * NEWS: Remove entry for completion styling.
10446 * completer.c (_rl_completion_prefix_display_length): Move
10447 declaration later.
10448 (gdb_fnprint): Revert.
10449 (gdb_display_match_list_1): Likewise.
10450 * cli/cli-style.c (completion_prefix_style)
10451 (completion_difference_style, completion_suffix_style): Remove.
10452 (_initialize_cli_style): Revert.
10453 * cli/cli-style.h (completion_prefix_style)
10454 (completion_difference_style, completion_suffix_style): Don't
10455 declare.
10456
e08bd6c5
PA
104572020-05-24 Pedro Alves <palves@redhat.com>
10458
10459 * symtab.c (completion_list_add_name): Return boolean indication
10460 of whether the symbol matched.
10461 (completion_list_add_symbol): Don't try to remove C++ aliases if
10462 the symbol didn't match in the first place.
10463 * symtab.h (completion_list_add_name): Return bool.
10464
ceacbf6e
SM
104652020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10466
10467 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10468 type::field.
10469
26f16254
JB
104702020-05-23 Joel Brobecker <brobecker@adacore.com>
10471
10472 GDB 9.2 released.
10473
eca1f90c
TT
104742020-05-23 Tom Tromey <tom@tromey.com>
10475
10476 * NEWS: Add entry for completion styling.
10477 * completer.c (_rl_completion_prefix_display_length): Move
10478 declaration earlier.
10479 (gdb_fnprint): Use completion_style.
10480 (gdb_display_match_list_1): Likewise.
10481 * cli/cli-style.c (completion_prefix_style)
10482 (completion_difference_style, completion_suffix_style): New
10483 globals.
10484 (_initialize_cli_style): Register new globals.
10485 * cli/cli-style.h (completion_prefix_style)
10486 (completion_difference_style, completion_suffix_style): Declare.
10487
51e2cfa2
PA
104882020-05-23 Pedro Alves <palves@redhat.com>
10489
10490 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10491 (parse_escape): Use ISDIGIT instead of isdigit.
10492 (puts_debug): Use gdb_isprint instead of isprint.
10493 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10494 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10495 ISSPACE instead of isspace.
10496 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10497 instead of isspace.
10498 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10499 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10500 instead of isxdigit and ISDIGIT instead of isdigit.
10501
80fc5e77
SM
105022020-05-22 Simon Marchi <simon.marchi@efficios.com>
10503
10504 * gdbtypes.h (struct type) <field>: New method.
10505 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10506 or type::field.
10507
3cabb6b0
SM
105082020-05-22 Simon Marchi <simon.marchi@efficios.com>
10509
10510 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10511 (TYPE_FIELDS): Use type::fields. Change all call sites that
10512 modify the propery to use type::set_fields instead.
10513
1f704f76
SM
105142020-05-22 Simon Marchi <simon.marchi@efficios.com>
10515
10516 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10517 type::num_fields instead.
10518
5e33d5f4
SM
105192020-05-22 Simon Marchi <simon.marchi@efficios.com>
10520
10521 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10522 methods.
10523 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10524 that modify the number of fields to use type::set_num_fields
10525 instead.
10526
9392ebb3
TT
105272020-05-22 Tom Tromey <tromey@adacore.com>
10528
10529 * compile/compile-object-load.h (munmap_list_free): Don't
10530 declare.
10531
7c13f4e8
AB
105322020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10533
10534 * annotate.c (annotate_source_line): Update return type, add call
10535 to update current symtab and line.
10536 * annotate.h (annotate_source_line): Update return type, and
10537 extend header comment.
10538 * source.c (info_line_command): Check annotation_level before
10539 calling annotate_source_line.
10540 * stack.c (print_frame_info): If calling annotate_source_line
10541 returns true, then don't print any other source line information.
10542
aa370940
SM
105432020-05-21 Simon Marchi <simon.marchi@efficios.com>
10544
10545 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10546
84d53fa9
SM
105472020-05-21 Simon Marchi <simon.marchi@efficios.com>
10548
10549 * coffread.c (patch_type): Remove NULL check before xfree.
10550 * corefile.c (set_gnutarget): Likewise.
10551 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10552 * exec.c (build_section_table): Likewise.
10553 * remote.c (remote_target::pass_signals): Likewise.
10554 * utils.c (n_spaces): Likewise.
10555 * cli/cli-script.c (document_command): Likewise.
10556 * i386-windows-tdep.c (core_process_module_section): Likewise.
10557 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10558
9d428aae
SM
105592020-05-20 Simon Marchi <simon.marchi@efficios.com>
10560
10561 * symfile.c (reread_symbols): Clear objfile's section_offsets
10562 vector and section indices, re-compute them by calling
10563 sym_offsets.
10564
250106a7
TT
105652020-05-20 Tom Tromey <tromey@adacore.com>
10566
10567 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10568 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10569
9a0bacfb
TV
105702020-05-20 Tom de Vries <tdevries@suse.de>
10571
10572 PR symtab/25833
10573 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10574
7b958a48
AM
105752020-05-20 Alan Modra <amodra@gmail.com>
10576
10577 PR 25993
10578 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10579 bfd_set_filename.
10580 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10581 passed to bfd_set_filename.
10582 * symfile-mem.c (add_vsyscall_page): Likewise for string
10583 passed to symbol_file_add_from_memory.
10584 (symbol_file_add_from_memory): Make name param a const char* and
10585 don't strdup.
10586
c7e97679
AM
105872020-05-20 Alan Modra <amodra@gmail.com>
10588
10589 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10590 rather than accessing bfd->filename directly.
10591 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10592 and use bfd_section_name.
10593 * dwarf2/frame.c (decode_frame_entry): Likewise.
10594 * exec.c (exec_set_section_address): Likewise.
10595 * solib-aix.c (solib_aix_bfd_open): Likewise.
10596 * stap-probe.c (get_stap_base_address): Likewise.
10597 * symfile.c (reread_symbols): Likewise.
10598
563c591b
TT
105992020-05-19 Tom Tromey <tromey@adacore.com>
10600
10601 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10602
f408d82c
SM
106032020-05-19 Simon Marchi <simon.marchi@efficios.com>
10604
10605 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10606
98c59b52
PA
106072020-05-19 Pedro Alves <palves@redhat.com>
10608
10609 * NEWS (set exec-file-mismatch): Adjust entry.
10610 * exec.c: Include "build-id.h".
10611 (validate_exec_file): Try to match build IDs instead of filenames.
10612 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10613 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10614 and pass down 'warn_if_slow'.
10615 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10616 gdb_bfd_open_closure to pass it down.
10617 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10618
4111f652
PA
106192020-05-19 Pedro Alves <palves@redhat.com>
10620
10621 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10622 * target.c (target_fileio_open_1): Rename to target_fileio_open
10623 and make extern. Use bool.
10624 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10625 (target_fileio_read_alloc_1): Adjust.
10626 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10627 (target_fileio_open_warn_if_slow): Delete declaration.
10628
ad80db5b
PA
106292020-05-19 Pedro Alves <palves@redhat.com>
10630
10631 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10632 Adjust all callers.
10633
1d6ce4d3
YS
106342020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10635
10636 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10637 whether disp is negative.
10638
9005fbbb
SM
106392020-05-19 Simon Marchi <simon.marchi@efficios.com>
10640
10641 * symfile.h (struct symfile_segment_data)
10642 <~symfile_segment_data>: Remove.
10643 <segment_info>: Change to std::vector.
10644 * symfile.c (default_symfile_segments): Update.
10645 * elfread.c (elf_symfile_segments): Update.
10646
68b888ff
SM
106472020-05-19 Simon Marchi <simon.marchi@efficios.com>
10648
10649 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10650 <segments>: New.
10651 <segment_bases, segment_sizes>: Remove.
10652 * symfile.c (default_symfile_segments): Update.
10653 * elfread.c (elf_symfile_segments): Update.
10654 * remote.c (remote_target::get_offsets): Update.
10655 * solib-target.c (solib_target_relocate_section_addresses):
10656 Update.
10657
62982abd
SM
106582020-05-19 Simon Marchi <simon.marchi@efficios.com>
10659
10660 * symfile.h (struct symfile_segment_data): Initialize fields.
10661 <~symfile_segment_data>: Add.
10662 (symfile_segment_data_up): New.
10663 (struct sym_fns) <sym_segments>: Return a
10664 symfile_segment_data_up.
10665 (default_symfile_segments): Return a symfile_segment_data_up.
10666 (free_symfile_segment_data): Remove.
10667 (get_symfile_segment_data): Return a symfile_segment_data_up.
10668 * symfile.c (default_symfile_segments): Likewise.
10669 (get_symfile_segment_data): Likewise.
10670 (free_symfile_segment_data): Remove.
10671 (symfile_find_segment_sections): Update.
10672 * elfread.c (elf_symfile_segments): Return a
10673 symfile_segment_data_up.
10674 * remote.c (remote_target::get_offsets): Update.
10675 * solib-target.c (solib_target_relocate_section_addresses):
10676 Update.
10677 * symfile-debug.c (debug_sym_segments): Return a
10678 symfile_segment_data_up.
10679
7f204339
RO
106802020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10681
e52a0f1b
RO
10682 PR build/25981
10683 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10684 Hardcode register numbers.
10685
7f204339
RO
10686 PR build/25981
10687 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10688 procfs_find_LDT_entry): Remove.
10689 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10690 procfs_find_LDT_entry): Remove.
10691 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10692 Remove.
10693
7f32a4d5
PA
106942020-05-17 Pedro Alves <palves@redhat.com>
10695 Andrew Burgess <andrew.burgess@embecosm.com>
10696 Keno Fischer <keno@juliacomputing.com>
10697
10698 PR gdb/25741
10699 * breakpoint.c (build_target_condition_list): Update comments.
10700 (build_target_command_list): Update comments and skip matching
10701 locations.
10702 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10703 a separate function. Simplify "set breakpoint auto-hw off"
10704 handling.
10705 (insert_breakpoints): Update comment.
10706 (tracepoint_locations_match): New parameter. For breakpoints,
10707 compare location types too, if the caller wants to.
10708 (handle_automatic_hardware_breakpoints): New functions.
10709 (bp_location_is_less_than): Also sort by location type and
10710 hardware breakpoint length.
10711 (update_global_location_list): Handle "set breakpoint auto-hw on"
10712 here.
10713 (update_breakpoint_locations): Ask breakpoint_locations_match to
10714 ignore location types.
10715
7d93a1e0
SM
107162020-05-16 Simon Marchi <simon.marchi@efficios.com>
10717
10718 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10719 type::name instead.
10720
d0e39ea2
SM
107212020-05-16 Simon Marchi <simon.marchi@efficios.com>
10722
10723 * gdbtypes.h (struct type) <name, set_name>: New methods.
10724 (TYPE_CODE): Use type::name. Change all call sites used to set
10725 the name to use type::set_name instead.
10726
2dab0c7b
TT
107272020-05-16 Tom Tromey <tom@tromey.com>
10728
10729 * top.c (quit_force): Update.
10730 * infrun.c (handle_no_resumed): Update.
10731 * top.h (all_uis): New function.
10732 (ALL_UIS): Remove.
10733
59f7bd8d
SM
107342020-05-16 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10737
9bf058f0
PA
107382020-05-16 Pedro Alves <palves@redhat.com>
10739
10740 * ia64-linux-nat.c
10741 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10742 Declare method.
10743 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10744
8f86ae1a
SM
107452020-05-15 Simon Marchi <simon.marchi@efficios.com>
10746
10747 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10748 (sparc64_adi_info): Likewise.
10749
d6bc0792
TT
107502020-05-15 Tom Tromey <tom@tromey.com>
10751
10752 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10753 block_objfile.
10754 (lookup_objfile_from_block): Remove.
10755 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10756 (lookup_global_symbol): Use block_objfile.
10757 * symtab.h (lookup_objfile_from_block): Don't declare.
10758 * printcmd.c (clear_dangling_display_expressions): Use
10759 block_objfile.
10760 * parse.c (operator_check_standard): Use block_objfile.
10761
8c14c3a3
TT
107622020-05-15 Tom Tromey <tom@tromey.com>
10763
10764 * language.c (language_alloc_type_symbol): Set
10765 SYMBOL_SECTION.
10766 * symtab.c (initialize_objfile_symbol): Remove.
10767 (allocate_symbol): Remove.
10768 (allocate_template_symbol): Remove.
10769 * dwarf2/read.c (fixup_go_packaging): Use "new".
10770 (new_symbol): Use "new".
10771 (read_variable): Don't call initialize_objfile_symbol. Use
10772 "new".
10773 (read_func_scope): Use "new".
10774 * xcoffread.c (process_xcoff_symbol): Don't call
10775 initialize_objfile_symbol.
10776 (SYMBOL_DUP): Remove.
10777 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10778 "new".
10779 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10780 (allocate_template_symbol): Don't declare.
10781 (struct symbol): Add copy constructor. Change defaults.
10782 * jit.c (finalize_symtab): Use "new".
10783 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10784 Use "new".
10785 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10786 (common_block_end): Use "new".
10787 * mdebugread.c (parse_symbol): Use "new".
10788 (new_symbol): Likewise.
10789
5b4a1a8d
PW
107902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10791
10792 * NEWS: Mention changes to help and apropos.
10793
57b4f16e
PW
107942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10795
10796 * command.h (enum command_class): Improve comments, document
10797 that class_alias is for user-defined aliases, give the class
10798 name for each class, remove unused class_xdb.
10799 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10800 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10801 by a precise class.
10802 * infcmd.c (_initialize_infcmd): Likewise.
10803 * reverse.c (_initialize_reverse): Likewise.
10804 * stack.c (_initialize_stack): Likewise.
10805 * symfile.c (_initialize_symfile): Likewise.
10806 * tracepoint.c (_initialize_tracepoint): Likewise.
10807
7c05caf7
PW
108082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10809
10810 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10811 when their aliased command is traversed.
10812 (help_cmd): Add fput_command_names_styled call to
10813 output command name and aliases when command has an alias.
10814
3b3aaacb
PW
108152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10816
10817 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10818 * cli/cli-decode.c (help_cmd_list): Declare as static,
10819 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10820 a command together with the command.
10821 (fput_command_name_styled, fput_command_names_styled): New functions.
10822 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10823 fput_command_name_styled.
10824 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10825 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10826
7aa1b46f
PW
108272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10828
10829 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10830 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10831 * command.h (cmd_show_list): Likewise.
10832 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10833 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10834
89bcba74
PW
108352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10836
10837 * unittests/command-def-selftests.c (traverse_command_structure):
10838 Verify all commands of a list have the same prefix command and
10839 that only the top cmdlist commands have a null prefix.
10840
3f4d92eb
PW
108412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10842
10843 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10844 as prefix, not one of its aliases.
10845 (set_cmd_prefix): Remove.
10846 (do_add_cmd): Centralize the setting of the prefix of a command, when
10847 command is defined after its full chain of prefix commands.
10848 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10849 (add_setshow_cmd_full): Likewise.
10850 (update_prefix_field_of_prefixed_commands): New function.
10851 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10852 update_prefix_field_of_prefixed_commands.
10853 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10854 addresses of remote_set_cmdlist and remote_show_cmdlist given
10855 as argument, not the address of an argument.
10856 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10857 * gdb/remote.c (_initialize_remote): Likewise.
10858
0605465f
PW
108592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10860
10861 * cli/cli-cmds.c (alias_command): Check for an existing alias
10862 using lookup_cmd_composition, as valid_command_p is too strict
10863 and forbids aliases that are the prefix of an existing alias
10864 or command.
10865 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10866 command is properly recognised as a valid command.
10867
58e6ac70
PW
108682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10869
10870 * unittests/help-doc-selftests.c: Rename to
10871 unittests/command-def-selftests.c
10872 * unittests/command-def-selftests.c (help_doc_tests): Update some
10873 comments.
10874 (command_structure_tests, traverse_command_structure): New namespace
10875 and function.
10876 (command_structure_invariants_tests): New function.
10877 (_initialize_command_def_selftests) Renamed from
10878 _initialize_help_doc_selftests, register command_structure_invariants
10879 selftest.
10880
a7b9ceb8
PW
108812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10882
10883 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10884 an alias of 'show'.
10885
b2188a06
JB
108862020-05-15 Joel Brobecker <brobecker@adacore.com>
10887
10888 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10889 ada_is_fixed_point_type. Update all callers.
10890 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10891 all callers.
10892 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10893 Update all callers.
10894 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10895 print_fixed_point_type. Update all callers.
10896 * ada-valprint.c (ada_value_print_num): Replace call to
10897 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10898
a51951c2
KB
108992020-05-14 Kevin Buettner <kevinb@redhat.com>
10900
10901 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10902 processors.
10903 (cpu_supports_bts): Add CV_AMD case.
10904
29d6859f
LM
109052020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10906 Simon Marchi <simon.marchi@efficios.com>
10907
10908 * infrun.c (stop_all_threads): Collect multiple wait events at
10909 each pass.
10910
78134374
SM
109112020-05-14 Simon Marchi <simon.marchi@efficios.com>
10912
10913 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10914 type::code instead.
10915
67607e24
SM
109162020-05-14 Simon Marchi <simon.marchi@efficios.com>
10917
10918 * gdbtypes.h (struct type) <code, set_code>: New methods.
10919 (TYPE_CODE): Use type::code. Change all call sites used to set
10920 the code to use type::set_code instead.
10921
a05575d3
TBA
109222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10923 Tom de Vries <tdevries@suse.de>
10924 Pedro Alves <palves@redhat.com>
10925
10926 PR threads/25478
10927 * infrun.c (stop_all_threads): Do NOT ignore
10928 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10929 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10930 received.
10931 (handle_no_resumed): Remove code handling a live inferior with no
10932 threads.
10933 * remote.c (has_single_non_exited_thread): New.
10934 (remote_target::update_thread_list): Do not delete a thread if is
10935 the last thread of the process.
10936 * thread.c (thread_select): Call delete_exited_threads instead of
10937 prune_threads.
10938
6ad82919
TBA
109392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10940
10941 * infrun.c (stop_all_threads): Enable/disable thread events of all
10942 targets. Move a debug message denoting the end of the function
10943 into the SCOPED_EXIT block.
10944
d890404b
TBA
109452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10946
10947 * process-stratum-target.h: Include <set>.
10948 (all_non_exited_process_targets, switch_to_target_no_thread): New
10949 function declarations.
10950 * process-stratum-target.c (all_non_exited_process_targets)
10951 (switch_to_target_no_thread): New function implementations.
10952
293b3ebc
TBA
109532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10954
10955 * infrun.c (handle_inferior_event): Extract out a piece of code
10956 into...
10957 (mark_non_executing_threads): ...this new function.
10958
7ca9b62a
TBA
109592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10960
10961 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10962 use.
10963
fc75c28b
TBA
109642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10965
10966 * regcache.c (regcache_read_pc_protected): New function
10967 implementation that returns 0 if the PC cannot read via
10968 'regcache_read_pc'.
10969 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10970 instead of 'regcache_read_pc'.
10971 (keep_going_pass_signal): Ditto.
10972
a89febbd
TT
109732020-05-13 Tom Tromey <tromey@adacore.com>
10974
10975 * ada-lang.c (align_value): Remove.
10976 (ada_template_to_fixed_record_type_1): Use align_up.
10977
f7e23710
TBA
109782020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10979
10980 * async-event.c: Update the copyright year.
10981 * async-event.h: Update the copyright year.
10982
02ff80c2
SM
109832020-05-12 Simon Marchi <simon.marchi@efficios.com>
10984
10985 * objfiles.h (is_addr_in_objfile,
10986 shared_objfile_contains_address_p): Return bool.
10987 * objfile.c (is_addr_in_objfile,
10988 shared_objfile_contains_address_p): Return bool.
10989
4fd6c7e8
TT
109902020-05-11 Tom Tromey <tromey@adacore.com>
10991
10992 * cli/cli-cmds.c (info_command): Restore.
10993 (_initialize_cli_cmds): Use add_prefix_command for "info".
10994 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10995
5eb68a39
TT
109962020-05-11 Tom Tromey <tromey@adacore.com>
10997
10998 * ada-lang.c (ada_value_primitive_field): Now public.
10999 * ada-lang.h (ada_value_primitive_field): Declare.
11000 * ada-valprint.c (print_field_values): Use
11001 ada_value_primitive_field for wrapper fields.
11002
7666722f
TV
110032020-05-11 Tom de Vries <tdevries@suse.de>
11004
11005 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11006 MODULE_DOMAIN.
11007
3ee6bb11
TV
110082020-05-11 Tom de Vries <tdevries@suse.de>
11009
11010 PR symtab/25941
11011 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11012 with length 0, if not gdb-produced.
11013 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11014
43434996
TV
110152020-05-09 Tom de Vries <tdevries@suse.de>
11016
11017 PR gdb/25955
11018 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11019 calculation.
11020
2f78cffc
TT
110212020-05-09 Tom Tromey <tom@tromey.com>
11022
11023 * top.c (server_command): Now bool.
11024 * top.h (server_command): Now bool.
11025
4f7bc5ed
TT
110262020-05-08 Tom Tromey <tromey@adacore.com>
11027
11028 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11029 already being processed.
11030
8be4b118
TT
110312020-05-08 Tom Tromey <tom@tromey.com>
11032
11033 * printcmd.c (struct display) <next>: Remove.
11034 <display>: New constructor.
11035 <exp_string>: Now a std::string.
11036 <enabled_p>: Now a bool.
11037 (display_number): Move definition earlier.
11038 (displays): Rename from display_chain. Now a std::vector.
11039 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11040 (display_command): Update.
11041 (do_one_display, disable_display)
11042 (enable_disable_display_command, do_enable_disable_display):
11043 Update.
11044 (free_display): Remove.
11045 (clear_displays): Rewrite.
11046 (delete_display): Update.
11047 (map_display_numbers): Use function_view. Remove "data"
11048 parameter. Update.
11049 (do_delete_display): Remove.
11050 (undisplay_command): Update.
11051 (do_one_display, do_displays, disable_display)
11052 (info_display_command): Update.
11053 (do_enable_disable_display): Remove.
11054 (enable_disable_display_command)
11055 (clear_dangling_display_expressions): Update.
11056
94c93c35
TT
110572020-05-08 Tom Tromey <tom@tromey.com>
11058
11059 * symtab.c (set_symbol_cache_size)
11060 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11061 (maintenance_print_symbol_cache_statistics): Update.
11062 * symmisc.c (print_symbol_bcache_statistics)
11063 (print_objfile_statistics, maintenance_print_objfiles)
11064 (maintenance_info_symtabs, maintenance_check_symtabs)
11065 (maintenance_expand_symtabs, maintenance_info_line_tables):
11066 Update.
11067 * symfile-debug.c (set_debug_symfile): Update.
11068 * source.c (forget_cached_source_info): Update.
11069 * python/python.c (gdbpy_progspaces): Update.
11070 * psymtab.c (maintenance_info_psymtabs): Update.
11071 * probe.c (parse_probes): Update.
11072 * linespec.c (iterate_over_all_matching_symtabs)
11073 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11074 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11075 * exec.c (exec_target::close): Update.
11076 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11077 * breakpoint.c (print_one_breakpoint_location)
11078 (create_longjmp_master_breakpoint)
11079 (create_std_terminate_master_breakpoint): Update.
11080 * progspace.c (program_spaces): Now a std::vector.
11081 (maybe_new_address_space): Update.
11082 (add_program_space): Remove.
11083 (program_space::program_space): Update.
11084 (remove_program_space): Update.
11085 (number_of_program_spaces): Remove.
11086 (print_program_space, update_address_spaces): Update.
11087 * progspace.h (program_spaces): Change type.
11088 (ALL_PSPACES): Remove.
11089 (number_of_program_spaces): Don't declare.
11090 (struct program_space) <next>: Remove.
11091
a1fd1ac9
TT
110922020-05-08 Tom Tromey <tom@tromey.com>
11093
11094 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11095 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11096 (enable_break): Update.
11097 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11098 (frv_fdpic_find_canonical_descriptor): Update.
11099 (frv_fetch_objfile_link_map): Update.
11100 * progspace.c (program_space::free_all_objfiles): Update.
11101 (program_space::solibs): New method.
11102 * progspace.h (struct program_space) <solibs>: New method.
11103 * solist.h (master_so_list): Don't declare.
11104 (ALL_SO_LIBS): Remove.
11105 * solib.h (so_list_head): Remove.
11106 (update_solib_list): Update comment.
11107 * solib.c (master_so_list): Remove.
11108 (solib_used, update_solib_list, solib_add)
11109 (info_sharedlibrary_command, clear_solib)
11110 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11111
38eae084
TT
111122020-05-08 Tom Tromey <tom@tromey.com>
11113
11114 * extension.c (extension_languages): Now a std::array.
11115 (ALL_EXTENSION_LANGUAGES): Remove.
11116 (get_ext_lang_defn, get_ext_lang_of_file)
11117 (eval_ext_lang_from_control_command): Update.
11118 (finish_ext_lang_initialization)
11119 (auto_load_ext_lang_scripts_for_objfile)
11120 (ext_lang_type_printers::ext_lang_type_printers)
11121 (apply_ext_lang_type_printers)
11122 (ext_lang_type_printers::~ext_lang_type_printers)
11123 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11124 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11125 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11126 (get_matching_xmethod_workers, ext_lang_colorize)
11127 (ext_lang_before_prompt): Update.
11128 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11129
596dc4ad
TT
111302020-05-08 Tom Tromey <tom@tromey.com>
11131
11132 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11133 overload.
11134 <swap_string, m_string>: Remove.
11135 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11136 Update.
11137 * stabsread.c (define_symbol, read_type): Update.
11138 * linespec.c (find_linespec_symbols): Update.
11139 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11140 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11141 * dbxread.c (read_dbx_symtab): Update.
11142 * cp-support.h (cp_canonicalize_string_full)
11143 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11144 Return unique_xmalloc_ptr.
11145 * cp-support.c (inspect_type): Update.
11146 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11147 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11148 Likewise.
11149 * c-typeprint.c (print_name_maybe_canonical): Update.
11150 * break-catch-throw.c (check_status_exception_catchpoint):
11151 Update.
11152
bf4cb9be
TV
111532020-05-08 Tom de Vries <tdevries@suse.de>
11154
11155 * infrun.c (follow_fork): Copy current_line and current_symtab to
11156 child thread.
11157
a1b68f28
SM
111582020-05-07 Simon Marchi <simon.marchi@efficios.com>
11159
11160 * async-event.c (struct async_signal_handler, struct
11161 async_event_handler): Reformat, remove typedef.
11162
98d48915
SM
111632020-05-07 Simon Marchi <simon.marchi@efficios.com>
11164
11165 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11166 access thistype->main_type->dyn_prop_list directly.
11167
7aa91313
SM
111682020-05-07 Simon Marchi <simon.marchi@efficios.com>
11169
11170 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11171 (remove_dyn_prop): Remove. Update all users to use
11172 type::remove_dyn_prop.
11173 * gdbtypes.c (remove_dyn_prop): Rename to...
11174 (type::remove_dyn_prop): ... this.
11175
5c54719c
SM
111762020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11177
11178 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11179 (add_dyn_prop): Remove. Update all users to use
11180 type::add_dyn_prop.
11181 * gdbtypes.c (add_dyn_prop): Rename to...
11182 (type::add_dyn_prop): ... this.
11183
24e99c6c
SM
111842020-05-07 Simon Marchi <simon.marchi@efficios.com>
11185
11186 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11187 (get_dyn_prop): Remove. Update all users to use
11188 type::dyn_prop.
11189 * gdbtypes.c (get_dyn_prop): Rename to...
11190 (type::dyn_prop): ... this.
11191
0d4bf016
SM
111922020-05-06 Simon Marchi <simon.marchi@efficios.com>
11193
11194 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11195
ac4a4f1c
SM
111962020-05-06 Simon Marchi <simon.marchi@efficios.com>
11197
11198 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11199 instruction, skip it if it's there.
11200
a3bbacc1
SM
112012020-05-05 Simon Marchi <simon.marchi@efficios.com>
11202
11203 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11204
c3236f84
SM
112052020-05-04 Simon Marchi <simon.marchi@efficios.com>
11206
11207 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11208 * gdbtypes.c (recursive_dump_type): Remove use of
11209 TYPE_INCOMPLETE.
11210
3b6acaee
TT
112112020-05-03 Tom Tromey <tom@tromey.com>
11212
11213 * breakpoint.c (catch_command, tcatch_command): Remove.
11214 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11215 add_show_prefix_cmd.
11216 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11217 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11218 Remove.
11219 (add_internal_problem_command): Use add_basic_prefix_cmd,
11220 add_show_prefix_cmd.
11221 * mips-tdep.c (set_mipsfpu_command): Remove.
11222 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11223 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11224 (_initialize_index_cache): Use add_basic_prefix_cmd.
11225 * memattr.c (dummy_cmd): Remove.
11226 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11227 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11228 (_initialize_tui_win): Use add_basic_prefix_cmd,
11229 add_show_prefix_cmd.
11230 * cli/cli-logging.c (set_logging_command): Remove.
11231 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11232 add_show_prefix_cmd.
11233 (show_logging_command): Remove.
11234 * target.c (target_command): Remove.
11235 (add_target): Use add_basic_prefix_cmd.
11236
a51119cd
HD
112372020-05-02 Hannes Domani <ssbssa@yahoo.de>
11238
11239 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11240
652fc23a 112412020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11242
652fc23a
PW
11243 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11244 info_command.
11245
117539e6
KR
112462020-04-30 Kamil Rytarowski <n54@gmx.com>
11247
11248 * nbsd-nat.c (nbsd_enable_proc_events)
11249 (nbsd_nat_target::post_startup_inferior): Add.
11250 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11251 (nbsd_nat_target::update_thread_list): Rewrite.
11252 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11253 "PTRACE_LWP_CREATE".
11254 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11255
102e38eb 112562020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11257
102e38eb
PW
11258 * stack.c (_initialize_stack): Remove duplicated creation
11259 of "frame" command and "f" alias.
11260
ee9d1e5f
HD
112612020-04-30 Hannes Domani <ssbssa@yahoo.de>
11262
11263 PR gdb/18706
11264 * gdbtypes.c (check_typedef): Calculate size of array of
11265 stubbed type.
11266
627c7fb8
HD
112672020-04-30 Hannes Domani <ssbssa@yahoo.de>
11268
11269 PR gdb/15559
11270 * i386-tdep.c (i386_push_dummy_call): Call
11271 i386_thiscall_push_dummy_call.
11272 (i386_thiscall_push_dummy_call): New function.
11273 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11274 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11275 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11276
ffc2844e
SM
112772020-04-29 Simon Marchi <simon.marchi@efficios.com>
11278
11279 * gdbarch.sh (do_read): Add shellcheck disable directive for
11280 warning SC2162.
11281
1207375d
SM
112822020-04-29 Simon Marchi <simon.marchi@efficios.com>
11283
11284 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11285 "referenced but not assigned" warning.
11286
9fdb2916
SM
112872020-04-29 Simon Marchi <simon.marchi@efficios.com>
11288
11289 * gdbarch.sh: Remove code that sets fallbackdefault.
11290
759cea5e
SM
112912020-04-29 Simon Marchi <simon.marchi@efficios.com>
11292
11293 * gdbarch.sh: Use shell operators && and || instead of
11294 -a and -o.
11295
cb02ab24
SM
112962020-04-29 Simon Marchi <simon.marchi@efficios.com>
11297
11298 * gdbarch.sh: Use $(...) instead of `...`.
11299
a6fc5ffc
SM
113002020-04-29 Simon Marchi <simon.marchi@efficios.com>
11301
11302 * gdbarch.sh: Use double quotes around variables.
11303
8d113d13
SM
113042020-04-29 Simon Marchi <simon.marchi@efficios.com>
11305
11306 * gdbarch.sh: Use %s with printf, instead of variables in the
11307 format string.
11308
ed6acedd
TT
113092020-04-29 Tom Tromey <tromey@adacore.com>
11310
11311 PR ada/25875:
11312 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11313 type fields here.
11314 (read_enumeration_type): Call
11315 update_enumeration_type_from_children later. Update comments.
11316 (process_enumeration_scope): Don't create type fields.
11317
b68b1b58
KR
113182020-04-29 Kamil Rytarowski <n54@gmx.com>
11319
11320 * nbsd-tdep.c: Include "xml-syscall.h".
11321 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11322
f94b2e03
KR
113232020-04-29 Kamil Rytarowski <n54@gmx.com>
11324
11325 * nbsd-nat.c: Include "sys/wait.h".
11326 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11327 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11328 (nbsd_nat_target::remove_exec_catchpoint)
11329 (nbsd_nat_target::set_syscall_catchpoint): Add.
11330 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11331 (nbsd_nat_target::insert_exec_catchpoint)
11332 (nbsd_nat_target::remove_exec_catchpoint)
11333 (nbsd_nat_target::set_syscall_catchpoint): Add.
11334 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11335 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11336 `nbsd_get_syscall_number'.
11337
fc49bc72
TT
113382020-04-29 Tom Tromey <tom@tromey.com>
11339
11340 * stack.c (print_block_frame_labels): Remove.
11341
d642b692
HD
113422020-04-29 Hannes Domani <ssbssa@yahoo.de>
11343
11344 PR gdb/17320
11345 * ada-valprint.c (val_print_packed_array_elements): Move array
11346 end bracket to new line.
11347 (ada_val_print_string): Remove extra spaces before first array
11348 element.
11349 * c-valprint.c (c_value_print_array): Likewise.
11350 * m2-valprint.c (m2_print_array_contents): Likewise.
11351 (m2_value_print_inner): Likewise.
11352 * p-valprint.c (pascal_value_print_inner): Likewise.
11353 * valprint.c (generic_val_print_array): Likewise.
11354 (value_print_array_elements): Move first array element and array
11355 end bracket to new line.
11356
ea90f227
TV
113572020-04-29 Tom de Vries <tdevries@suse.de>
11358
11359 PR symtab/25889
11360 * linespec.c (find_method): Fix ix calculation.
11361
4498ef4f
KR
113622020-04-28 Kamil Rytarowski <n54@gmx.com>
11363
11364 * syscalls/update-netbsd.sh: New file.
11365 * syscalls/netbsd.xml: Regenerate.
11366 * data-directory/Makefile.in: Register `netbsd.xml' in
11367 `SYSCALLS_FILES'.
11368
a55e30b5
SM
113692020-04-28 Simon Marchi <simon.marchi@efficios.com>
11370
11371 * syscalls/update-freebsd.sh: Add double quotes.
11372
2b2fbab8
TT
113732020-04-28 Tom Tromey <tom@tromey.com>
11374
11375 * NEWS: Update.
11376 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11377 (cmdpy_init): Allow class_tui.
11378
a65189c9
TV
113792020-04-28 Mark Williams <mark@myosotissp.com>
11380
11381 PR gdb/24480
11382 * dwarf2read.c: Add missing assingments to list_in_scope when
11383 start_symtab was already called.
11384
1b95cdb7
SM
113852020-04-28 Simon Marchi <simon.marchi@efficios.com>
11386
11387 PR gdb/25881
11388 * dwarf2/read.c (offset_map_type): Use
11389 gdb:hash_enum<sect_offset> as hash function.
11390
15cd93d0
TV
113912020-04-28 Tom de Vries <tdevries@suse.de>
11392
11393 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11394 with DW_AT_signature.
11395
1eb39914
SM
113962020-04-27 Simon Marchi <simon.marchi@efficios.com>
11397
11398 * configure.ac: Remove check for fs_base/gs_base in
11399 user_regs_struct.
11400 * configure: Re-generate.
11401 * config.in: Re-generate.
11402 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11403 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11404 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11405
991a3e2e
LM
114062020-04-27 Luis Machado <luis.machado@linaro.org>
11407
11408 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11409 problematic inline frame unwinding situation.
11410 * frame.c (frame_id_computed_p): New function.
11411 * frame.h (frame_id_computed_p): New prototype.
11412
361ba0e8
TT
114132020-04-26 Tom Tromey <tom@tromey.com>
11414
11415 * command.h (enum command_class) <class_pseudo>: Remove.
11416
bc3609fd
PW
114172020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11418
11419 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11420 and whitespace.
11421
b9771db7
KR
114222020-04-25 Kamil Rytarowski <n54@gmx.com>
11423
ec16513e
SM
11424 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11425 `PT_GET_PROCESS_STATE' block.
b9771db7 11426
7151c1af
TT
114272020-04-24 Tom Tromey <tom@tromey.com>
11428
11429 * symtab.h (symbol_get_demangled_name): Don't declare.
11430 * symtab.c (symbol_get_demangled_name): Remove.
11431 (general_symbol_info::natural_name)
11432 (general_symbol_info::demangled_name): Update.
11433
906bb4c5
TT
114342020-04-24 Tom Tromey <tom@tromey.com>
11435
11436 PR rust/25025:
11437 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11438
bcfe6157
TT
114392020-04-24 Tom Tromey <tom@tromey.com>
11440
11441 PR symtab/12707:
11442 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11443 exists.
11444 (new_symbol): Likewise.
11445 * compile/compile-object-load.c (get_out_value_type): Use
11446 symbol_matches_search_name.
11447
f049a313
TT
114482020-04-24 Tom Tromey <tom@tromey.com>
11449
11450 * dwarf2/read.c (add_partial_symbol): Do not call
11451 compute_and_set_names.
11452
76e288d1
TT
114532020-04-24 Tom Tromey <tom@tromey.com>
11454
11455 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11456 overload.
11457
2467f4f6
TT
114582020-04-24 Tom Tromey <tom@tromey.com>
11459
11460 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11461 (add_psymbol_to_list): New overload. Make old overload call new
11462 one.
11463 * psympriv.h (add_psymbol_to_list): New overload.
11464
e61108c9
TT
114652020-04-24 Tom Tromey <tom@tromey.com>
11466
11467 * dwarf2/read.c (partial_die_info::read) <case
11468 DW_AT_linkage_name>: Use value_as_string.
11469 (dwarf2_string_attr): Use value_as_string.
11470 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11471 method.
11472 * dwarf2/attribute.c (attribute::value_as_string): New method.
11473
8c87a452
TT
114742020-04-24 Tom Tromey <tom@tromey.com>
11475
11476 * symtab.c (general_symbol_info::natural_name)
11477 (general_symbol_info::demangled_name): Check for language_rust.
11478
787de330
TT
114792020-04-24 Tom Tromey <tom@tromey.com>
11480
11481 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11482 (dwarf2_physname): ... from here.
11483 (partial_die_info::read): Add Rust "{" hack.
11484
ff985671
TT
114852020-04-24 Tom Tromey <tom@tromey.com>
11486
11487 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11488 method.
11489 (symbol_set_demangled_name): Don't declare.
11490 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11491 symbol_set_demangled_name.
11492 (general_symbol_info::set_language)
11493 (general_symbol_info::compute_and_set_names): Update.
11494 * minsyms.c (minimal_symbol_reader::install): Update.
11495 * dwarf2/read.c (new_symbol): Update.
11496
1acda803
TT
114972020-04-24 Tom Tromey <tromey@adacore.com>
11498
11499 PR python/23662:
11500 * python/py-type.c (convert_field): Handle
11501 FIELD_LOC_KIND_DWARF_BLOCK.
11502 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11503 (typy_get_dynamic): Nw function.
11504 (type_object_getset): Add "dynamic".
11505 * NEWS: Add entry.
11506
d656f129
TT
115072020-04-24 Tom Tromey <tromey@adacore.com>
11508
11509 * ada-typeprint.c (print_choices, print_variant_part)
11510 (print_record_field_types_dynamic): New functions.
11511 (print_record_field_types): Use print_record_field_types_dynamic.
11512
7d79de9a
TT
115132020-04-24 Tom Tromey <tromey@adacore.com>
11514
11515 * dwarf2/read.c (handle_data_member_location): New overload.
11516 (dwarf2_add_field): Use it.
11517 (decode_locdesc): Add "computed" parameter. Update comment.
11518 * gdbtypes.c (is_dynamic_type_internal): Also look for
11519 FIELD_LOC_KIND_DWARF_BLOCK.
11520 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11521 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11522 virtual base classes.
11523 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11524 FIELD_LOC_KIND_DWARF_BLOCK.
11525
f8e89861
TT
115262020-04-24 Tom Tromey <tromey@adacore.com>
11527
11528 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11529 * gdbtypes.c (is_dynamic_type_internal): Check
11530 TYPE_HAS_DYNAMIC_LENGTH.
11531 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11532 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11533 New macros.
11534 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11535 constant.
11536
9c6a1327
TT
115372020-04-24 Tom Tromey <tromey@adacore.com>
11538
11539 * dwarf2/read.c (struct variant_field): Rewrite.
11540 (struct variant_part_builder): New.
11541 (struct nextfield): Remove "variant" field. Add "offset".
11542 (struct field_info): Add "current_variant_part" and
11543 "variant_parts".
11544 (alloc_discriminant_info): Remove.
11545 (alloc_rust_variant): New function.
11546 (quirk_rust_enum): Update.
11547 (dwarf2_add_field): Set "offset" member. Don't handle
11548 DW_TAG_variant_part.
11549 (offset_map_type): New typedef.
11550 (convert_variant_range, create_one_variant)
11551 (create_one_variant_part, create_variant_parts)
11552 (add_variant_property): New functions.
11553 (dwarf2_attach_fields_to_type): Call add_variant_property.
11554 (read_structure_type): Don't handle DW_TAG_variant_part.
11555 (handle_variant_part, handle_variant): New functions.
11556 (handle_struct_member_die): Use them.
11557 (process_structure_scope): Don't handle variant parts.
11558 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11559 (struct discriminant_info): Remove.
11560 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11561 (struct main_type) <flag_discriminated_union>: Remove.
11562 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11563 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11564 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11565 Update.
11566 * valops.c (value_union_variant): Remove.
11567 * value.h (value_union_variant): Don't declare.
11568
b249d2c2
TT
115692020-04-24 Tom Tromey <tromey@adacore.com>
11570
11571 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11572 (ada_value_primitive_packed_val): Update.
11573 * ada-valprint.c (ada_value_print_1): Update.
11574 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11575 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11576 just an address. Use evaluate_for_locexpr_baton.
11577 (dwarf2_evaluate_property): Update.
11578 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11579 array_view.
11580 * findvar.c (default_read_var_value): Update.
11581 * gdbtypes.c (compute_variant_fields_inner)
11582 (resolve_dynamic_type_internal): Update.
11583 (resolve_dynamic_type): Change type of valaddr parameter.
11584 * gdbtypes.h (resolve_dynamic_type): Update.
11585 * valarith.c (value_subscripted_rvalue): Update.
11586 * value.c (value_from_contents_and_address): Update.
11587
61122aa9
TT
115882020-04-24 Tom Tromey <tromey@adacore.com>
11589
11590 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11591 "push_initial_value" parameter.
11592 (dwarf2_evaluate_property): Likewise.
11593 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11594
ef83a141
TT
115952020-04-24 Tom Tromey <tromey@adacore.com>
11596
11597 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11598 (variant::matches, compute_variant_fields_recurse)
11599 (compute_variant_fields_inner, compute_variant_fields): New
11600 functions.
11601 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11602 Use resolved_type after type is made.
11603 (operator==): Add new cases.
11604 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11605 (struct discriminant_range, struct variant, struct variant_part):
11606 New.
11607 (union dynamic_prop_data) <variant_parts, original_type>: New
11608 members.
11609 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11610 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11611 constants.
11612 * value.c (unpack_bits_as_long): Now public.
11613 * value.h (unpack_bits_as_long): Declare.
11614
675127ec
TT
116152020-04-24 Tom Tromey <tromey@adacore.com>
11616
11617 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11618 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11619
9852ceef
HD
116202020-04-24 Hannes Domani <ssbssa@yahoo.de>
11621
11622 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11623
7632c6ce
KR
116242020-04-24 Kamil Rytarowski <n54@gmx.com>
11625
11626 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11627 (remove_fork_catchpoint, post_startup_inferior)
11628 (post_attach): Move...
11629 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11630 (remove_fork_catchpoint, post_startup_inferior)
11631 (post_attach): ...here.
11632 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11633 (remove_fork_catchpoint, post_startup_inferior)
11634 (post_attach): Move...
11635 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11636 (remove_fork_catchpoint, post_startup_inferior)
11637 (post_attach): ...here.
11638
7be2bb4f
TT
116392020-04-24 Tom Tromey <tromey@adacore.com>
11640
11641 * nat/windows-nat.h (struct windows_thread_info)
11642 <pc_adjusted>: New member.
11643 * windows-nat.c (windows_fetch_one_register): Check
11644 pc_adjusted.
11645 (windows_nat_target::get_windows_debug_event)
11646 (windows_nat_target::wait): Set pc_adjusted.
11647
f80cb3b4
TV
116482020-04-24 Tom de Vries <tdevries@suse.de>
11649
11650 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11651 Run gdb-add-index inside temp dir.
11652
29514b87
TT
116532020-04-23 Tom Tromey <tromey@adacore.com>
11654
11655 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11656 in loop.
11657
5939967b
LM
116582020-04-23 Luis Machado <luis.machado@linaro.org>
11659
11660 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11661 get_frame_register instead of gdbarch_unwind_pc.
11662
70bc38f5
TV
116632020-04-23 Tom de Vries <tdevries@suse.de>
11664
11665 * symtab.c (lookup_global_symbol): Prefer def over decl.
11666
de82891c
TV
116672020-04-23 Tom de Vries <tdevries@suse.de>
11668
11669 PR symtab/25807
11670 * block.c (best_symbol, better_symbol): Promote to external.
11671 * block.h (best_symbol, better_symbol): Declare.
11672 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11673 decl.
11674
ecc6c606
TT
116752020-04-23 Tom Tromey <tromey@adacore.com>
11676
11677 PR ada/25837:
11678 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11679 "const char *", not a "const std::string &".
11680 <name_and_matcher::operator==>: Update.
11681 * unittests/lookup_name_info-selftests.c: Change type of
11682 "result".
11683
740480b8
TT
116842020-04-23 Tom Tromey <tom@tromey.com>
11685
11686 * inferior.h (iterate_over_inferiors): Don't declare.
11687 * inferior.c (iterate_over_inferiors): Remove.
11688 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11689 Remove.
11690 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11691 use iterate_over_inferiors.
11692 (darwin_resume_inferior_it)
11693 (struct resume_inferior_threads_param)
11694 (darwin_resume_inferior_threads_it): Remove.
11695 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11696
ae3ab1f0
TV
116972020-04-23 Tom de Vries <tdevries@suse.de>
11698
11699 * blockframe.c (find_pc_partial_function): Use
11700 find_pc_sect_compunit_symtab rather than
11701 objfile->sf->qf->find_pc_sect_compunit_symtab.
11702
317d2668
TV
117032020-04-22 Tom de Vries <tdevries@suse.de>
11704
11705 PR symtab/25764
11706 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11707 in psymtabs.
11708
eea9e357
TV
117092020-04-22 Tom de Vries <tdevries@suse.de>
11710
11711 PR symtab/25801
11712 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11713 symtabs.
11714
3d5afab3
TV
117152020-04-22 Tom de Vries <tdevries@suse.de>
11716
11717 PR symtab/25700
11718 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11719 CU if already created.
11720
d43b7a2d
TBA
117212020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11722
11723 * infrun.c (displaced_step_fixup): Switch to the event_thread
11724 before calling displaced_step_restore, not after.
11725
d89edf9b
MM
117262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11727
11728 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11729 its inferior is not recorded by us.
11730 (record_btrace_target_open): Replace call to
11731 all_non_exited_threads () with call to current_inferior
11732 ()->non_exited_threads ().
11733 (record_btrace_target::stop_recording): Likewise.
11734 (record_btrace_target::close): Likewise.
11735 (record_btrace_target::wait): Likewise.
11736 (record_btrace_target::record_stop_replaying): Likewise.
11737
5897fd49
MM
117382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11739
11740 * btrace.c (btrace_enable): Throw an error on double enables and
11741 when enabling recording fails.
11742 (btrace_disable): Throw an error if the thread is not recorded.
11743
1a476b6d
MM
117442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11745
11746 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11747 request if we do not have a thread_info.
11748
4778a5f8
TV
117492020-04-21 Tom de Vries <tdevries@suse.de>
11750
11751 PR gdb/25471
11752 * thread.c
11753 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11754 exception in get_frame_id.
11755
0fa7617d
TT
117562020-04-20 Tom Tromey <tromey@adacore.com>
11757
11758 * python/python.c (struct gdbpy_event): Mark move constructor as
11759 noexcept.
11760 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11761 constructor as noexcept.
11762 * completer.h (struct completion_result): Mark move constructor as
11763 noexcept.
11764 * completer.c (completion_result::completion_result): Use
11765 initialization style. Don't call reset_match_list.
11766
ad23bda0
MS
117672020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11768
11769 * MAINTAINERS (Write After Approval): Add myself.
11770
45e1f031
TT
117712020-04-18 Tom Tromey <tom@tromey.com>
11772
11773 * windows-tdep.c (init_w32_command_list)
11774 (w32_prefix_command_valid): Restore.
11775 (_initialize_windows_tdep): Call init_w32_command_list.
11776
08feed99
TT
117772020-04-18 Tom Tromey <tom@tromey.com>
11778
11779 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11780 * value.c (value_fn_field): Update.
11781 * valops.c (find_function_in_inferior)
11782 (value_allocate_space_in_inferior): Update.
11783 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11784 Update.
11785 * tui/tui-source.c (tui_source_window::set_contents): Update.
11786 * symtab.c (lookup_global_or_static_symbol)
11787 (find_function_start_sal_1, skip_prologue_sal)
11788 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11789 * symmisc.c (dump_msymbols, dump_symtab_1)
11790 (maintenance_print_one_line_table): Update.
11791 * symfile.c (init_entry_point_info, section_is_mapped)
11792 (list_overlays_command, simple_read_overlay_table)
11793 (simple_overlay_update_1): Update.
11794 * stap-probe.c (handle_stap_probe): Update.
11795 * stabsread.c (dbx_init_float_type, define_symbol)
11796 (read_one_struct_field, read_enum_type, read_range_type): Update.
11797 * source.c (info_line_command): Update.
11798 * python/python.c (gdbpy_source_objfile_script)
11799 (gdbpy_execute_objfile_script): Update.
11800 * python/py-type.c (save_objfile_types): Update.
11801 * python/py-objfile.c (py_free_objfile): Update.
11802 * python/py-inferior.c (python_new_objfile): Update.
11803 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11804 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11805 (maintenance_check_psymtabs): Update.
11806 * printcmd.c (info_address_command): Update.
11807 * objfiles.h (struct objfile) <arch>: New method, from
11808 get_objfile_arch.
11809 (get_objfile_arch): Don't declare.
11810 * objfiles.c (get_objfile_arch): Remove.
11811 (filter_overlapping_sections): Update.
11812 * minsyms.c (msymbol_is_function): Update.
11813 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11814 (output_nondebug_symbol): Update.
11815 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11816 (mdebug_expand_psymtab): Update.
11817 * machoread.c (macho_add_oso_symfile): Update.
11818 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11819 Update.
11820 * linux-fork.c (checkpoint_command): Update.
11821 * linespec.c (convert_linespec_to_sals): Update.
11822 * jit.c (finalize_symtab): Update.
11823 * infrun.c (insert_exception_resume_from_probe): Update.
11824 * ia64-tdep.c (ia64_find_unwind_table): Update.
11825 * hppa-tdep.c (internalize_unwinds): Update.
11826 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11827 Update.
11828 * gcore.c (call_target_sbrk): Update.
11829 * elfread.c (record_minimal_symbol, elf_symtab_read)
11830 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11831 (elf_gnu_ifunc_resolve_by_got): Update.
11832 * dwarf2/read.c (create_addrmap_from_index)
11833 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11834 (read_debug_names_from_section)
11835 (process_psymtab_comp_unit_reader, add_partial_symbol)
11836 (add_partial_subprogram, process_full_comp_unit)
11837 (read_file_scope, read_func_scope, read_lexical_block_scope)
11838 (read_call_site_scope, dwarf2_ranges_read)
11839 (dwarf2_record_block_ranges, dwarf2_add_field)
11840 (mark_common_block_symbol_computed, read_tag_pointer_type)
11841 (read_tag_string_type, dwarf2_init_float_type)
11842 (dwarf2_init_complex_target_type, read_base_type)
11843 (partial_die_info::read, partial_die_info::read)
11844 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11845 (dwarf2_fetch_die_loc_sect_off): Update.
11846 * dwarf2/loc.c (dwarf2_find_location_expression)
11847 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11848 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11849 (dwarf2_loc_desc_get_symbol_read_needs)
11850 (locexpr_describe_location_piece, locexpr_describe_location_1)
11851 (loclist_describe_location): Update.
11852 * dwarf2/index-write.c (write_debug_names): Update.
11853 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11854 * dtrace-probe.c (dtrace_process_dof): Update.
11855 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11856 (process_one_symbol): Update.
11857 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11858 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11859 (coff_read_enum_type): Update.
11860 * cli/cli-cmds.c (edit_command, list_command): Update.
11861 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11862 * breakpoint.c (create_overlay_event_breakpoint)
11863 (create_longjmp_master_breakpoint)
11864 (create_std_terminate_master_breakpoint)
11865 (create_exception_master_breakpoint, get_sal_arch): Update.
11866 * block.c (block_gdbarch): Update.
11867 * annotate.c (annotate_source_line): Update.
11868
0743fc83
TT
118692020-04-17 Tom Tromey <tromey@adacore.com>
11870
11871 * auto-load.c (show_auto_load_cmd): Remove.
11872 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11873 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11874 (maintenance_print_arc_command): Remove.
11875 * tui/tui-win.c (tui_command): Remove.
11876 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11877 * tui/tui-layout.c (tui_layout_command): Remove.
11878 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11879 * python/python.c (user_set_python, user_show_python): Remove.
11880 (_initialize_python): Use add_basic_prefix_cmd,
11881 add_show_prefix_cmd.
11882 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11883 (install_gdb_commands): Use add_basic_prefix_cmd,
11884 add_show_prefix_cmd.
11885 (info_guile_command): Remove.
11886 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11887 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11888 add_show_prefix_cmd.
11889 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11890 Remove do_set and do_show parameters.
11891 * cli/cli-style.c (set_style, show_style): Remove.
11892 (_initialize_cli_style): Use add_basic_prefix_cmd,
11893 add_show_prefix_cmd.
11894 (cli_style_option::add_setshow_commands): Remove do_set and
11895 do_show parameters.
11896 (cli_style_option::add_setshow_commands): Use
11897 add_basic_prefix_cmd, add_show_prefix_cmd.
11898 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11899 (set_style_name): Remove.
11900 * cli/cli-dump.c (dump_command, append_command): Remove.
11901 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11902 (tekhex_dump_command, binary_dump_command)
11903 (binary_append_command): Remove.
11904 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11905 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11906 (init_w32_command_list): Remove; move into ...
11907 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11908 * valprint.c (set_print, show_print, set_print_raw)
11909 (show_print_raw): Remove.
11910 (_initialize_valprint): Use add_basic_prefix_cmd,
11911 add_show_prefix_cmd.
11912 * typeprint.c (set_print_type, show_print_type): Remove.
11913 (_initialize_typeprint): Use add_basic_prefix_cmd,
11914 add_show_prefix_cmd.
11915 * record.c (set_record_command, show_record_command): Remove.
11916 (_initialize_record): Use add_basic_prefix_cmd,
11917 add_show_prefix_cmd.
11918 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11919 add_show_prefix_cmd.
11920 (info_command, show_command, set_debug, show_debug): Remove.
11921 * top.h (set_history, show_history): Don't declare.
11922 * top.c (set_history, show_history): Remove.
11923 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11924 (unset_tdesc_cmd): Remove.
11925 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11926 add_show_prefix_cmd.
11927 * symtab.c (info_module_command): Remove.
11928 (_initialize_symtab): Use add_basic_prefix_cmd.
11929 * symfile.c (overlay_command): Remove.
11930 (_initialize_symfile): Use add_basic_prefix_cmd.
11931 * sparc64-tdep.c (info_adi_command): Remove.
11932 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11933 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11934 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11935 add_show_prefix_cmd.
11936 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11937 (_initialize_serial): Use add_basic_prefix_cmd,
11938 add_show_prefix_cmd.
11939 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11940 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11941 add_show_prefix_cmd.
11942 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11943 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11944 add_show_prefix_cmd.
11945 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11946 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11947 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11948 add_show_prefix_cmd.
11949 * remote.c (remote_command, set_remote_cmd): Remove.
11950 (_initialize_remote): Use add_basic_prefix_cmd.
11951 * record-full.c (set_record_full_command)
11952 (show_record_full_command): Remove.
11953 (_initialize_record_full): Use add_basic_prefix_cmd,
11954 add_show_prefix_cmd.
11955 * record-btrace.c (cmd_set_record_btrace)
11956 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11957 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11958 (cmd_show_record_btrace_pt): Remove.
11959 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11960 add_show_prefix_cmd.
11961 * ravenscar-thread.c (set_ravenscar_command)
11962 (show_ravenscar_command): Remove.
11963 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11964 add_show_prefix_cmd.
11965 * mips-tdep.c (show_mips_command, set_mips_command)
11966 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11967 add_show_prefix_cmd.
11968 * maint.c (maintenance_command, maintenance_info_command)
11969 (maintenance_check_command, maintenance_print_command)
11970 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11971 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11972 add_show_prefix_cmd.
11973 (show_per_command_cmd): Remove.
11974 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11975 Remove.
11976 (maintenance_show_test_settings_cmd): Remove.
11977 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11978 add_show_prefix_cmd.
11979 * maint-test-options.c (maintenance_test_options_command):
11980 Remove.
11981 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11982 * macrocmd.c (macro_command): Remove
11983 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11984 * language.c (set_check, show_check): Remove.
11985 (_initialize_language): Use add_basic_prefix_cmd,
11986 add_show_prefix_cmd.
11987 * infcmd.c (unset_command): Remove.
11988 (_initialize_infcmd): Use add_basic_prefix_cmd.
11989 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11990 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11991 add_show_prefix_cmd.
11992 * go32-nat.c (go32_info_dos_command): Remove.
11993 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11994 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11995 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11996 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11997 (_initialize_frame): Use add_basic_prefix_cmd,
11998 add_show_prefix_cmd.
11999 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12000 (_initialize_dcache): Use add_basic_prefix_cmd,
12001 add_show_prefix_cmd.
12002 * cp-support.c (maint_cplus_command): Remove.
12003 (_initialize_cp_support): Use add_basic_prefix_cmd.
12004 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12005 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12006 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12007 add_basic_prefix_cmd, add_show_prefix_cmd.
12008 * breakpoint.c (save_command): Remove.
12009 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12010 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12011 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12012 add_show_prefix_cmd.
12013 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12014 (set_ada_command, show_ada_command): Remove.
12015 (_initialize_ada_language): Use add_basic_prefix_cmd,
12016 add_show_prefix_cmd.
12017 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12018
3557f442
KR
120192020-04-16 Kamil Rytarowski <n54@gmx.com>
12020
12021 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12022 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12023
16197208
SM
120242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12025
12026 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12027 warning messages.
12028
00ac85d3
SM
120292020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12030
12031 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12032 import table is not at beginning of .idata section.
12033
381ce63f
PA
120342020-04-16 Pedro Alves <palves@redhat.com>
12035
12036 * inferior.c (delete_inferior): Use delete operator directly
12037 instead of delete_program_space.
12038 * progspace.c (add_program_space): New, factored out from
12039 program_space::program_space.
12040 (remove_program_space): New, factored out from
12041 delete_program_space.
12042 (program_space::program_space): Remove intro comment. Rewrite.
12043 (program_space::~program_space): Remove intro comment. Call
12044 remove_program_space.
12045 (delete_program_space): Delete.
12046 * progspace.h (program_space::program_space): Make explicit. Move
12047 intro comment here, adjusted.
12048 (program_space::~program_space): Move intro comment here,
12049 adjusted.
12050 (delete_program_space): Remove.
12051
a010605f
TT
120522020-04-16 Tom Tromey <tromey@adacore.com>
12053
12054 * windows-nat.c (windows_nat::handle_access_violation): New
12055 function.
12056 * nat/windows-nat.h (handle_access_violation): Declare.
12057 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12058 windows-nat.c. Call handle_access_violation.
12059
efba5c23
TV
120602020-04-16 Tom de Vries <tdevries@suse.de>
12061
12062 PR symtab/25791
12063 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12064 CUs without psymtab.
12065
97ed802d
KB
120662020-04-16 Kevin Buettner <kevinb@redhat.com>
12067
12068 * python/python.c (do_start_initialization): Don't call
12069 PyEval_InitThreads for Python 3.9 and beyond.
12070
c7d64809
KR
120712020-04-15 Kamil Rytarowski <n54@gmx.com>
12072
12073 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12074 thread functions.
12075 (obsd_nat_target::wait): Likewise.
12076
ce127a96
TT
120772020-04-15 Tom Tromey <tromey@adacore.com>
12078
12079 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12080 (DEBUG_EXCEPT): Use debug_printf.
12081
99f1bc6a
AB
120822020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12083
12084 * completer.c (class completion_tracker::completion_hash_entry)
12085 <hash_name>: New member function.
12086 (completion_tracker::discard_completions): New callback to hash a
12087 completion_hash_entry, pass this to htab_create_alloc.
12088
a0e9b532
JT
120892016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12090
12091 * windows-nat.c (windows_make_so): Warn rather than stopping with
12092 an error if realpath() fails.
12093
06ca5dd4
KR
120942020-04-14 Kamil Rytarowski <n54@gmx.com>
12095
12096 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12097 (nbsd_nat_target::info_proc): Add do_status.
12098
194d088f
TV
120992020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12100 Tom de Vries <tdevries@suse.de>
12101
12102 PR symtab/25718
12103 * psympriv.h (struct partial_symtab::read_symtab)
12104 (struct partial_symtab::expand_psymtab)
12105 (struct partial_symtab::read_dependencies): Update comments.
12106 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12107 read_symtab for includer.
12108 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12109 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12110 (struct dwarf2_include_psymtab::m_readin): Remove.
12111 (struct dwarf2_include_psymtab::includer): New member function.
12112 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12113
c1a66c06
TV
121142020-04-14 Tom de Vries <tdevries@suse.de>
12115
12116 PR symtab/25720
12117 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12118 with NULL symbol_matcher and lookup_name.
12119 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12120 and lookup_name.
12121 * dwarf2/read.c (dw2_expand_symtabs_matching)
12122 (dw2_debug_names_expand_symtabs_matching): Same.
12123 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12124 Make lookup_name a pointer. Update comment.
12125 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12126 lookup_name being a pointer.
12127 * symfile.c (expand_symtabs_matching): Same.
12128 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12129 * linespec.c (iterate_over_all_matching_symtabs): Same.
12130
400b5eca
TT
121312020-04-13 Tom Tromey <tom@tromey.com>
12132
12133 * run-on-main-thread.c: Update include.
12134 * unittests/main-thread-selftests.c: Update include.
12135 * tui/tui-win.c: Update include.
12136 * tui/tui-io.c: Update include.
12137 * tui/tui-interp.c: Update include.
12138 * tui/tui-hooks.c: Update include.
12139 * top.h: Update include.
12140 * top.c: Update include.
12141 * ser-base.c: Update include.
12142 * remote.c: Update include.
12143 * remote-notif.c: Update include.
12144 * remote-fileio.c: Update include.
12145 * record-full.c: Update include.
12146 * record-btrace.c: Update include.
12147 * python/python.c: Update include.
12148 * posix-hdep.c: Update include.
12149 * mingw-hdep.c: Update include.
12150 * mi/mi-main.c: Update include.
12151 * mi/mi-interp.c: Update include.
12152 * main.c: Update include.
12153 * linux-nat.c: Update include.
12154 * interps.c: Update include.
12155 * infrun.c: Update include.
12156 * inf-loop.c: Update include.
12157 * event-top.c: Update include.
12158 * event-loop.c: Move to ../gdbsupport/.
12159 * event-loop.h: Move to ../gdbsupport/.
12160 * async-event.h: Update include.
12161 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12162
93b54c8e
TT
121632020-04-13 Tom Tromey <tom@tromey.com>
12164
12165 * tui/tui-win.c: Include async-event.h.
12166 * remote.c: Include async-event.h.
12167 * remote-notif.c: Include async-event.h.
12168 * record-full.c: Include async-event.h.
12169 * record-btrace.c: Include async-event.h.
12170 * infrun.c: Include async-event.h.
12171 * event-top.c: Include async-event.h.
12172 * event-loop.h: Move some declarations to async-event.h.
12173 * event-loop.c: Don't include ser-event.h or top.h. Move some
12174 code to async-event.c.
12175 * async-event.h: New file.
12176 * async-event.c: New file.
12177 * Makefile.in (COMMON_SFILES): Add async-event.c.
12178 (HFILES_NO_SRCDIR): Add async-event.h.
12179
c1cd3163
TT
121802020-04-13 Tom Tromey <tom@tromey.com>
12181
12182 * utils.c (flush_streams): New function.
12183 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12184
29f2bf4f
TT
121852020-04-13 Tom Tromey <tom@tromey.com>
12186
12187 * event-loop.c (handle_file_event): Use warning, not
12188 printf_unfiltered.
12189
98029d02
TT
121902020-04-13 Tom Tromey <tom@tromey.com>
12191
12192 * event-loop.c: Include <chrono>.
12193
06cc9596
TT
121942020-04-13 Tom Tromey <tom@tromey.com>
12195
12196 * gdb_select.h: Move to ../gdbsupport/.
12197 * event-loop.c: Update include path.
12198 * top.c: Update include path.
12199 * ser-base.c: Update include path.
12200 * ui-file.c: Update include path.
12201 * ser-tcp.c: Update include path.
12202 * guile/scm-ports.c: Update include path.
12203 * posix-hdep.c: Update include path.
12204 * ser-unix.c: Update include path.
12205 * gdb_usleep.c: Update include path.
12206 * mingw-hdep.c: Update include path.
12207 * inflow.c: Update include path.
12208 * infrun.c: Update include path.
12209 * event-top.c: Update include path.
12210
8ae8e197
TT
122112020-04-13 Tom Tromey <tom@tromey.com>
12212
12213 * configure: Rebuild.
12214 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12215
58cf28e8
TT
122162020-04-13 Tom Tromey <tom@tromey.com>
12217
12218 * event-loop.h (start_event_loop): Don't declare.
12219 * event-loop.c (start_event_loop): Move...
12220 * main.c (start_event_loop): ...here. Now static.
12221
b7f999ae
SDJ
122222020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12223
12224 * MAINTAINERS: Update my email address.
12225
1085dfd4
KR
122262020-04-12 Kamil Rytarowski <n54@gmx.com>
12227
12228 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12229 IP_ALL.
12230
49d1d1f5
KR
122312020-04-12 Kamil Rytarowski <n54@gmx.com>
12232
12233 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12234 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12235
b4848d2a
KR
122362020-04-12 Kamil Rytarowski <n54@gmx.com>
12237
12238 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12239 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12240
51c133d5
KR
122412020-04-12 Kamil Rytarowski <n54@gmx.com>
12242
12243 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12244
54b8cbd0
KR
122452020-04-11 Kamil Rytarowski <n54@gmx.com>
12246
12247 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12248 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12249 (nbsd_nat_target::info_proc): New functions.
12250 * nbsd-nat.c (kinfo_get_vmmap): New function.
12251 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12252 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12253 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12254 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12255 functions.
12256 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12257 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12258 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12259 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12260 (KINFO_VME_FLAG_GROWS_DOWN): New.
12261
cf83625d
AS
122622020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12263
12264 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12265 bit shift.
12266
0c4311ab
TT
122672020-04-10 Tom Tromey <tromey@adacore.com>
12268
12269 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12270
3e65b3e9
TT
122712020-04-10 Tom Tromey <tromey@adacore.com>
12272
12273 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12274 separate debug files.
12275
13302e95
HD
122762020-04-10 Hannes Domani <ssbssa@yahoo.de>
12277
12278 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12279 Move to...
12280 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12281 ... here.
12282 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12283 Check for STATUS_WX86_BREAKPOINT.
12284 (windows_nat_target::wait): Same.
12285
bdfc1e8a
TV
122862020-04-10 Tom de Vries <tdevries@suse.de>
12287
12288 PR cli/25808
12289 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12290
f4460aec
SM
122912020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12292
12293 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12294 (Write After Approval): Remove Tom de Vries.
12295
a25198bb
BE
122962020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12297
12298 revert partially:
12299 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12300
aac66a4c
SM
12301 * buildsym.c (record_line): Fix undefined behavior and preserve
12302 lines at eof.
a25198bb 12303
206c98a6
KR
123042020-04-09 Kamil Rytarowski <n54@gmx.com>
12305
12306 * auxv.h (svr4_auxv_parse): New.
12307 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12308 and generic_auxv_parse.
12309 (svr4_auxv_parse): Add.
12310 * obsd-tdep.c: Include "auxv.h".
12311 (obsd_auxv_parse): Remove.
12312 (obsd_init_abi): Remove comment.
12313 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12314 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12315 * nbsd-tdep.c: Include "auxv.h".
12316 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12317
71fbdbaf
TT
123182020-04-08 Tom Tromey <tromey@adacore.com>
12319
12320 * nat/windows-nat.h (last_wait_event): Don't declare.
12321 (wait_for_debug_event): Update comment.
12322 * nat/windows-nat.c (last_wait_event): Now static.
12323
2c1d95e8
TT
123242020-04-08 Tom Tromey <tromey@adacore.com>
12325
12326 * windows-nat.c (wait_for_debug_event): Move to
12327 nat/windows-nat.c.
12328 * nat/windows-nat.h (wait_for_debug_event): Declare.
12329 * nat/windows-nat.c (wait_for_debug_event): Move from
12330 windows-nat.c. No longer static.
12331
d2977bc4
TT
123322020-04-08 Tom Tromey <tromey@adacore.com>
12333
12334 * windows-nat.c (get_windows_debug_event): Use
12335 fetch_pending_stop.
12336 * nat/windows-nat.h (fetch_pending_stop): Declare.
12337 * nat/windows-nat.c (fetch_pending_stop): New function.
12338
e758e19c
TT
123392020-04-08 Tom Tromey <tromey@adacore.com>
12340
12341 * windows-nat.c (windows_continue): Use matching_pending_stop and
12342 continue_last_debug_event.
12343 * nat/windows-nat.h (matching_pending_stop)
12344 (continue_last_debug_event): Declare.
12345 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12346 (matching_pending_stop, continue_last_debug_event): New
12347 functions.
12348
8d30e395
TT
123492020-04-08 Tom Tromey <tromey@adacore.com>
12350
12351 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12352 (handle_exception_result): Move to nat/windows-nat.h.
12353 (DEBUG_EXCEPTION_SIMPLE): Remove.
12354 (windows_nat::handle_ms_vc_exception): New function.
12355 (handle_exception): Move to nat/windows-nat.c.
12356 (get_windows_debug_event): Update.
12357 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12358 nat/windows-nat.c.
12359 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12360 (handle_exception_result): Move from windows-nat.c.
12361 (handle_exception): Declare.
12362 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12363 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12364 windows-nat.c.
12365
29de418d
TT
123662020-04-08 Tom Tromey <tromey@adacore.com>
12367
12368 * windows-nat.c (exception_count, event_count): Remove.
12369 (handle_exception, get_windows_debug_event)
12370 (do_initial_windows_stuff): Update.
12371
a816ba18
TT
123722020-04-08 Tom Tromey <tromey@adacore.com>
12373
12374 * windows-nat.c (windows_nat::handle_load_dll)
12375 (windows_nat::handle_unload_dll): Rename. No longer static.
12376 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12377 Declare.
12378
a00caa12
TT
123792020-04-08 Tom Tromey <tromey@adacore.com>
12380
12381 * complaints.h (stop_whining): Declare at top-level.
12382 (complaint): Don't declare stop_whining.
12383
d41b524f
TT
123842020-04-08 Tom Tromey <tromey@adacore.com>
12385
12386 * windows-nat.c (windows_nat::handle_output_debug_string):
12387 Rename. No longer static.
12388 * nat/windows-nat.h (handle_output_debug_string): Declare.
12389
3c76026d
TT
123902020-04-08 Tom Tromey <tromey@adacore.com>
12391
12392 * windows-nat.c (current_process_handle, current_process_id)
12393 (main_thread_id, last_sig, current_event, last_wait_event)
12394 (current_windows_thread, desired_stop_thread_id, pending_stops)
12395 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12396 (display_selectors, fake_create_process)
12397 (get_windows_debug_event): Update.
12398 * nat/windows-nat.h (current_process_handle, current_process_id)
12399 (main_thread_id, last_sig, current_event, last_wait_event)
12400 (current_windows_thread, desired_stop_thread_id, pending_stops)
12401 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12402 * nat/windows-nat.c (current_process_handle, current_process_id)
12403 (main_thread_id, last_sig, current_event, last_wait_event)
12404 (current_windows_thread, desired_stop_thread_id, pending_stops)
12405 (siginfo_er): New globals. Move from windows-nat.c.
12406
9d8679cc
TT
124072020-04-08 Tom Tromey <tromey@adacore.com>
12408
12409 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12410 (handle_load_dll): Update.
12411 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12412
28688adf
TT
124132020-04-08 Tom Tromey <tromey@adacore.com>
12414
12415 * windows-nat.c (enum thread_disposition_type): Move to
12416 nat/windows-nat.h.
12417 (windows_nat::thread_rec): Rename from thread_rec. No longer
12418 static.
12419 (windows_add_thread, windows_nat_target::fetch_registers)
12420 (windows_nat_target::store_registers, handle_exception)
12421 (windows_nat_target::resume, get_windows_debug_event)
12422 (windows_nat_target::get_tib_address)
12423 (windows_nat_target::thread_name)
12424 (windows_nat_target::thread_alive): Update.
12425 * nat/windows-nat.h (enum thread_disposition_type): Move from
12426 windows-nat.c.
12427 (thread_rec): Declare.
12428
4834dad0
TT
124292020-04-08 Tom Tromey <tromey@adacore.com>
12430
12431 * windows-nat.c: Add "using namespace".
12432 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12433 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12434
65bafd5b
TT
124352020-04-08 Tom Tromey <tromey@adacore.com>
12436
12437 * nat/windows-nat.h (struct windows_thread_info): Declare
12438 destructor.
12439 * nat/windows-nat.c (~windows_thread_info): New.
12440
0a4afda3
TT
124412020-04-08 Tom Tromey <tromey@adacore.com>
12442
12443 PR gdb/22992
12444 * windows-nat.c (current_event): Update comment.
12445 (last_wait_event, desired_stop_thread_id): New globals.
12446 (struct pending_stop): New.
12447 (pending_stops): New global.
12448 (windows_nat_target) <stopped_by_sw_breakpoint>
12449 <supports_stopped_by_sw_breakpoint>: New methods.
12450 (windows_fetch_one_register): Add assertions. Adjust PC.
12451 (windows_continue): Handle pending stops. Suspend other threads
12452 when stepping. Use last_wait_event
12453 (wait_for_debug_event): New function.
12454 (get_windows_debug_event): Use wait_for_debug_event. Handle
12455 pending stops. Queue spurious stops.
12456 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12457 (windows_nat_target::kill): Use wait_for_debug_event.
12458 * nat/windows-nat.h (struct windows_thread_info)
12459 <stopped_at_software_breakpoint>: New field.
12460 * nat/windows-nat.c (windows_thread_info::resume): Clear
12461 stopped_at_software_breakpoint.
12462
8e61ebec
TT
124632020-04-08 Tom Tromey <tromey@adacore.com>
12464
12465 * windows-nat.c (enum thread_disposition_type): New.
12466 (thread_rec): Replace "get_context" parameter with "disposition";
12467 change type.
12468 (windows_add_thread, windows_nat_target::fetch_registers)
12469 (windows_nat_target::store_registers, handle_exception)
12470 (windows_nat_target::resume, get_windows_debug_event)
12471 (windows_nat_target::get_tib_address)
12472 (windows_nat_target::thread_name)
12473 (windows_nat_target::thread_alive): Update.
12474
98a03287
TT
124752020-04-08 Tom Tromey <tromey@adacore.com>
12476
12477 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12478 (windows_continue): Use windows_continue::resume.
12479 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12480 resume>: Declare new methods.
12481 * nat/windows-nat.c: New file.
12482 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12483
7c7411bc
TT
124842020-04-08 Tom Tromey <tromey@adacore.com>
12485
12486 * windows-nat.c (windows_add_thread, windows_delete_thread)
12487 (windows_nat_target::fetch_registers)
12488 (windows_nat_target::store_registers, fake_create_process)
12489 (windows_nat_target::resume, windows_nat_target::resume)
12490 (get_windows_debug_event, windows_nat_target::wait)
12491 (windows_nat_target::pid_to_str)
12492 (windows_nat_target::get_tib_address)
12493 (windows_nat_target::get_ada_task_ptid)
12494 (windows_nat_target::thread_name)
12495 (windows_nat_target::thread_alive): Use lwp, not tid.
12496
2950fdf7
TT
124972020-04-08 Tom Tromey <tromey@adacore.com>
12498
12499 * windows-nat.c (handle_exception)
12500 (windows_nat_target::thread_name): Update.
12501 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12502 <name>: Now unique_xmalloc_ptr.
12503
62fe396b
TT
125042020-04-08 Tom Tromey <tromey@adacore.com>
12505
12506 * windows-nat.c (thread_rec)
12507 (windows_nat_target::fetch_registers): Update.
12508 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12509 Update comment.
12510 <debug_registers_changed, reload_context>: Now bool.
12511
e9534bd2
TT
125122020-04-08 Tom Tromey <tromey@adacore.com>
12513
12514 * windows-nat.c (windows_add_thread): Use new.
12515 (windows_init_thread_list, windows_delete_thread): Use delete.
12516 (get_windows_debug_event): Update.
12517 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12518 destructor, and initializers.
12519
ae1f8880
TT
125202020-04-08 Tom Tromey <tromey@adacore.com>
12521
12522 * windows-nat.c (struct windows_thread_info): Remove.
12523 * nat/windows-nat.h: New file.
12524
55a1e039
TT
125252020-04-08 Tom Tromey <tromey@adacore.com>
12526
12527 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12528 (thread_rec, windows_add_thread, windows_delete_thread)
12529 (windows_continue): Update.
12530
93366324
TT
125312020-04-08 Tom Tromey <tromey@adacore.com>
12532
12533 * windows-nat.c (struct windows_thread_info): Remove typedef.
12534 (thread_head): Remove.
12535 (thread_list): New global.
12536 (thread_rec, windows_add_thread, windows_init_thread_list)
12537 (windows_delete_thread, windows_continue): Update.
12538
0f2265e2
SM
125392020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12540
12541 * windows-tdep.h (windows_init_abi): Add comment.
12542 (cygwin_init_abi): New declaration.
12543 * windows-tdep.c: Split signal enumeration in two, one for
12544 Windows and one for Cygwin.
12545 (windows_gdb_signal_to_target): Only deal with signal of the
12546 Windows OS ABI.
12547 (cygwin_gdb_signal_to_target): New function.
12548 (windows_init_abi): Rename to windows_init_abi_common, don't set
12549 gdb_signal_to_target gdbarch method. Add new new function with
12550 this name.
12551 (cygwin_init_abi): New function.
12552 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12553 comment. Don't call windows_init_abi.
12554 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12555 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12556 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12557 i386_windows_init_abi_common, don't call windows_init_abi. Add
12558 a new function of this name.
12559 (i386_cygwin_init_abi): New function.
12560 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12561 OS ABI Cygwin.
12562
3810f182
SM
125632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12564
12565 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12566 parameter.c.
12567 (dwarf2_read_gdb_index): Update.
12568
063f8e80
KR
125692020-04-07 Kamil Rytarowski <n54@gmx.com>
12570
12571 * nbsd-tdep.c: Include "objfiles.h".
12572 (nbsd_skip_solib_resolver): New.
12573 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12574
85a9510c 125752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12576
12577 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12578 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12579 with DW_LLE_base_addressx are being emitted in DWARFv5.
12580 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12581 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12582 unsigned integer.
12583
9fc3eaae 125842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12585
12586 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12587 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12588 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12589 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12590 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12591 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12592 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12593
12594
41144253 125952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12596
12597 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12598 (read_loclist_index): New function definition.
12599 (lookup_loclist_base): New function definition.
12600 (read_loclist_header): New function definition.
12601 (dwarf2_cu): Add loclist_base and loclist_header field.
12602 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12603 (read_full_die_1): Read the value of DW_AT_loclists_base.
12604 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12605 (read_attribute_value): Handle DW_FORM_loclistx.
12606 (skip_one_die): Handle DW_FORM_loclistx.
12607 (loclist_header): New structure declaration.
12608 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12609
9f4e76a4
SM
126102020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12611
12612 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12613 constructor. Remove `addr` parameter from other constructor and
12614 add `per_cu` parameter.
12615 * dwarf2/read.c (create_partial_symtab): Update.
12616
25c11aca
TV
126172020-04-07 Tom de Vries <tdevries@suse.de>
12618
12619 PR symtab/25796
12620 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12621 (partial_die_info::fixup): Inherit has_const_value.
12622
5707e24b
TV
126232020-04-07 Tom de Vries <tdevries@suse.de>
12624
12625 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12626 symbols without address.
12627
05f00e22
KR
126282020-04-06 Kamil Rytarowski <n54@gmx.com>
12629
12630 * nbsd-nat.h (struct thread_info): Add forward declaration.
12631 (nbsd_nat_target::thread_alive): Add.
12632 (nbsd_nat_target::thread_name): Likewise.
12633 (nbsd_nat_target::update_thread_list): Likewise.
12634 (update_thread_list::post_attach): Likewise.
12635 (post_attach::pid_to_str): Likewise.
12636 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12637 (nbsd_thread_lister): Add.
12638 (nbsd_nat_target::thread_alive): Likewise.
12639 (nbsd_nat_target::thread_name): Likewise.
12640 (nbsd_add_threads): Likewise.
12641 (update_thread_list::post_attach): Likewise.
12642 (nbsd_nat_target::update_thread_list): Likewise.
12643 (post_attach::pid_to_str): Likewise.
12644
6ee448cc
TT
126452020-04-06 Tom Tromey <tromey@adacore.com>
12646
12647 * ada-valprint.c (print_variant_part): Extract the variant field.
12648 (print_field_values): Use the field as the outer value when
12649 recursing.
12650
dea34e8c
TT
126512020-04-06 Tom Tromey <tromey@adacore.com>
12652
12653 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12654 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12655 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12656 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12657 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12658
93689ce9
TT
126592020-04-06 Tom Tromey <tromey@adacore.com>
12660
12661 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12662 TYPE_CODE_ERROR.
12663
79743962
KR
126642020-04-06 Kamil Rytarowski <n54@gmx.com>
12665
12666 * nbsd-tdep.c: Include "gdbarch.h".
12667 Define enum with NetBSD signal numbers.
12668 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12669 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12670 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12671 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12672 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12673 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12674 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12675 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12676 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12677 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12678 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12679 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12680
9e7c9a03
HD
126812020-04-03 Hannes Domani <ssbssa@yahoo.de>
12682
12683 PR gdb/25325
12684 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12685
d9e49b61
TT
126862020-04-03 Tom Tromey <tromey@adacore.com>
12687
12688 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12689 Read constant block.
12690
e0fc5c3f
SM
126912020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12692
12693 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12694 (gdb_bfd_get_full_section_contents): New declaration.
12695 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12696 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12697 gdb_bfd_get_full_section_contents.
12698
e2ff18a0
SM
126992020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12700
12701 * exec.c (build_section_table): Replace internal_error with
12702 gdb_assert.
12703 (section_table_xfer_memory_partial): Likewise.
12704 * mdebugread.c (parse_partial_symbols): Likewise.
12705 * psymtab.c (lookup_partial_symbol): Likewise.
12706 * utils.c (wrap_here): Likewise.
12707
0830d301
TT
127082020-04-02 Tom Tromey <tromey@adacore.com>
12709
12710 * f-lang.c (build_fortran_types): Use arch_type to initialize
12711 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12712
e7da7f8f
TT
127132020-04-02 Tom Tromey <tromey@adacore.com>
12714
12715 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12716 of attributes.
12717
c90d28ac
AB
127182020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12719 Bernd Edlinger <bernd.edlinger@hotmail.de>
12720 Tom Tromey <tromey@adacore.com>
12721
12722 * buildsym.c (buildsym_compunit::record_line): Remove
12723 deduplication code.
12724
1aa98955
TV
127252020-04-02 Tom de Vries <tdevries@suse.de>
12726
12727 PR ada/24671
12728 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12729
d3214198
TV
127302020-04-02 Tom de Vries <tdevries@suse.de>
12731
12732 * dwarf2/read.c (dwarf2_gdb_index_functions,
12733 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12734 NULL.
12735 * psymtab.c (psym_lookup_global_symbol_language): New function.
12736 (psym_functions): Init psym_lookup_global_symbol_language with
12737 psym_lookup_global_symbol_language.
12738 * symfile-debug.c (debug_sym_quick_functions): Init
12739 lookup_global_symbol_language with NULL.
12740 * symfile.c (set_initial_language): Remove fixme comment.
12741 * symfile.h (struct quick_symbol_functions): Add
12742 lookup_global_symbol_language.
12743 * symtab.c (find_quick_global_symbol_language): New function.
12744 (find_main_name): Use find_quick_global_symbol_language.
12745
2836752f
SM
127462020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12747
12748 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12749
64dc2d4b
BE
127502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12751
12752 * buildsym.c (record_line): Fix undefined behavior and preserve
12753 lines at eof.
12754
bbe3dc41
BE
127552020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12756
12757 * buildsym.c (record_line): Fix the resizing condition.
12758
6b4a335b
TT
127592020-04-01 Tom Tromey <tom@tromey.com>
12760
12761 * value.h (value_literal_complex): Add comment.
12762 * valops.c (value_literal_complex): Refer to value.h.
12763
3638a098
TT
127642020-04-01 Tom Tromey <tom@tromey.com>
12765
12766 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12767 (scalar_type): New rule, from typebase.
12768 (typebase): Use scalar_type. Recognize complex types.
12769 (field_name): Handle FLOAT_KEYWORD.
12770 (ident_tokens): Add _Complex and __complex__.
12771
c34e8714
TT
127722020-04-01 Tom Tromey <tom@tromey.com>
12773
12774 PR exp/25299:
12775 * valarith.c (promotion_type, complex_binop): New functions.
12776 (scalar_binop): Handle complex numbers. Use promotion_type.
12777 (value_pos, value_neg, value_complement): Handle complex numbers.
12778
fa649bb7
TT
127792020-04-01 Tom Tromey <tom@tromey.com>
12780
12781 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12782 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12783 (parse_number): Handle complex numbers.
12784
981c08ce
TT
127852020-04-01 Tom Tromey <tom@tromey.com>
12786
12787 * c-valprint.c (c_decorations): Change complex suffix to "i".
12788
4c99290d
TT
127892020-04-01 Tom Tromey <tom@tromey.com>
12790
12791 * valprint.c (generic_value_print_complex): Use accessors.
12792 * value.h (value_real_part, value_imaginary_part): Declare.
12793 * valops.c (value_real_part, value_imaginary_part): New
12794 functions.
12795 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12796
5b930b45
TT
127972020-04-01 Tom Tromey <tom@tromey.com>
12798
12799 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12800 (read_range_type): Update.
12801 * mdebugread.c (basic_type): Update.
12802 * go-lang.c (build_go_types): Use init_complex_type.
12803 * gdbtypes.h (struct main_type) <complex_type>: New member.
12804 (init_complex_type): Update.
12805 (arch_complex_type): Don't declare.
12806 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12807 Make name if none given. Use alloc_type_copy. Look for cached
12808 complex type.
12809 (arch_complex_type): Remove.
12810 (gdbtypes_post_init): Use init_complex_type.
12811 * f-lang.c (build_fortran_types): Use init_complex_type.
12812 * dwarf2/read.c (read_base_type): Update.
12813 * d-lang.c (build_d_types): Use init_complex_type.
12814 * ctfread.c (read_base_type): Update.
12815
53cccef1
TBA
128162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12817
12818 * infrun.c (stop_all_threads): Update assertion, plus when
12819 stopping threads, take into account that we might be trying
12820 to stop an all-stop target.
12821 (stop_waiting): Call 'stop_all_threads' if there exists a
12822 non-stop target.
12823
a0714d30
TBA
128242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12825
12826 * target.h (exists_non_stop_target): New function declaration.
12827 * target.c (exists_non_stop_target): New function.
12828
60e22c1e
HD
128292020-04-01 Hannes Domani <ssbssa@yahoo.de>
12830
12831 PR gdb/24789
12832 * eval.c (is_integral_or_integral_reference): New function.
12833 (evaluate_subexp_standard): Allow integer references in
12834 pointer arithmetic.
12835
e139a727
TBA
128362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12837
12838 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12839 check for no ptid in the stop reply when the target is non-stop.
12840
e0802d59
TT
128412020-04-01 Tom Tromey <tromey@adacore.com>
12842
12843 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12844 "name" parameter to rvalue reference. Initialize m_name_holder.
12845 <lookup_name_info>: New overloads.
12846 <name>: Return gdb::string_view.
12847 <c_str>: New method.
12848 <make_ignore_params>: Update.
12849 <search_name_hash>: Update.
12850 <language_lookup_name>: Return const char *.
12851 <m_name>: Change type.
12852 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12853 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12854 (lookup_name_info::match_any): Update.
12855 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12856 Update.
12857 * minsyms.c (linkage_name_str): Update.
12858 * language.c (default_symbol_name_matcher): Update.
12859 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12860 Update.
12861 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12862 (ada_lookup_name_info::ada_lookup_name_info): Update.
12863 (literal_symbol_name_matcher): Update.
12864
8c072cb6
TT
128652020-04-01 Tom Tromey <tromey@adacore.com>
12866
12867 * psymtab.c (psymtab_search_name): Remove function.
12868 (psym_lookup_symbol): Create search name and lookup name here.
12869 (lookup_partial_symbol): Remove "name" parameter; add
12870 lookup_name.
12871 (psym_expand_symtabs_for_function): Update.
12872
6f29a534
TT
128732020-03-31 Joel Jones <joelkevinjones@gmail.com>
12874
12875 PR tui/25597:
12876 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12877
af62665e
TT
128782020-03-31 Tom Tromey <tromey@adacore.com>
12879
12880 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12881 memcpy.
12882
d1a89da5
NC
128832020-03-30 Nelson Chu <nelson.chu@sifive.com>
12884
12885 * features/riscv/32bit-csr.xml: Regenerated.
12886 * features/riscv/64bit-csr.xml: Regenerated.
12887
d8af9068
TT
128882020-03-30 Tom Tromey <tromey@adacore.com>
12889
12890 * ada-valprint.c (print_variant_part): Update.
12891 * ada-lang.h (ada_which_variant_applies): Update.
12892 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12893 outer_valaddr parameters; replace with "outer" value parameter.
12894 (to_fixed_variant_branch_type): Update.
12895
227c0bf4
PFC
128962020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12897
12898 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12899 <list>. Remove inclusion of observable.h.
12900 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12901 (struct arch_lwp_info): New struct.
12902 (class ppc_linux_dreg_interface): New class.
12903 (struct ppc_linux_process_info): New struct.
12904 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12905 <low_new_clone, low_forget_process, low_prepare_to_resume>
12906 <copy_thread_dreg_state, mark_thread_stale>
12907 <mark_debug_registers_changed, register_hw_breakpoint>
12908 <clear_hw_breakpoint, register_wp, clear_wp>
12909 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12910 <num_memory_accesses, get_trigger_type>
12911 <create_watchpoint_request, hwdebug_point_cmp>
12912 <init_arch_lwp_info, get_arch_lwp_info>
12913 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12914 methods.
12915 <struct ptid_hash>: New inner struct.
12916 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12917 members.
12918 (saved_dabr_value, hwdebug_info, max_slots_number)
12919 (struct hw_break_tuple, struct thread_points, ppc_threads)
12920 (have_ptrace_hwdebug_interface)
12921 (hwdebug_find_thread_points_by_tid)
12922 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12923 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12924 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12925 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12926 use m_dreg_interface.
12927 (hwdebug_point_cmp): Change to...
12928 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12929 reference arguments instead of pointers.
12930 (ppc_linux_nat_target::ranged_break_num_registers): Use
12931 m_dreg_interface.
12932 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12933 m_dreg_interface. Call register_hw_breakpoint.
12934 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12935 m_dreg_interface. Call clear_hw_breakpoint.
12936 (get_trigger_type): Change to...
12937 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12938 comment.
12939 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12940 use m_dreg_interface. Call register_hw_breakpoint.
12941 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12942 use m_dreg_interface. Call clear_hw_breakpoint.
12943 (can_use_watchpoint_cond_accel): Change to...
12944 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12945 method. Update comment, use m_dreg_interface and
12946 m_process_info.
12947 (calculate_dvc): Change to...
12948 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12949 m_dreg_interface.
12950 (num_memory_accesses): Change to...
12951 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12952 (check_condition): Change to...
12953 (ppc_linux_nat_target::check_condition): ...this method.
12954 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12955 comment, use m_dreg_interface.
12956 (create_watchpoint_request): Change to...
12957 (ppc_linux_nat_target::create_watchpoint_request): ...this
12958 method. Use m_dreg_interface.
12959 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12960 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12961 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12962 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12963 (ppc_linux_nat_target::low_forget_process)
12964 (ppc_linux_nat_target::low_new_fork)
12965 (ppc_linux_nat_target::low_new_clone)
12966 (ppc_linux_nat_target::low_delete_thread)
12967 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12968 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12969 only call mark_thread_stale.
12970 (ppc_linux_thread_exit): Remove.
12971 (ppc_linux_nat_target::stopped_data_address): Change to...
12972 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12973 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12974 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12975 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12976 comment. Call low_stopped_data_address.
12977 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12978 m_dreg_interface.
12979 (ppc_linux_nat_target::masked_watch_num_registers): Use
12980 m_dreg_interface.
12981 (ppc_linux_nat_target::copy_thread_dreg_state)
12982 (ppc_linux_nat_target::mark_thread_stale)
12983 (ppc_linux_nat_target::mark_debug_registers_changed)
12984 (ppc_linux_nat_target::register_hw_breakpoint)
12985 (ppc_linux_nat_target::clear_hw_breakpoint)
12986 (ppc_linux_nat_target::register_wp)
12987 (ppc_linux_nat_target::clear_wp)
12988 (ppc_linux_nat_target::init_arch_lwp_info)
12989 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12990 (_initialize_ppc_linux_nat): Remove observer callback.
12991
4db10d8f
PFC
129922020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12993
12994 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12995 (ppc_linux_nat_target::auxv_parse)
12996 (ppc_linux_nat_target::read_description)
12997 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12998 Move up.
12999
1310c1b0
PFC
130002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13001
13002 * linux-nat.h (low_new_clone): New method.
13003 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13004
69b037c3
SM
130052020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13006
13007 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13008 (dbx_expand_psymtab): ... this.
13009 (start_psymtab): Update.
13010 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13011 (mdebug_expand_psymtab): ... this.
13012 (parse_partial_symbols): Update.
13013 (new_psymtab): Update.
13014 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13015 (xcoff_expand_psymtab): ... this.
13016 (xcoff_start_psymtab): Update.
13017
48993951
SM
130182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13019
13020 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13021 <expand_dependencies>: ... this.
13022 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13023 (partial_symtab::expand_dependencies): ... this.
13024 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13025 Update.
13026 (dwarf2_psymtab::expand_psymtab): Update.
13027 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13028 * mdebugread.c (psymtab_to_symtab_1): Update.
13029 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13030
3ad83046
SM
130312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13032
13033 * psympriv.h (discard_psymtab): Remove.
13034 * dbxread.c (dbx_end_psymtab): Update.
13035 * xcoffread.c (xcoff_end_psymtab): Update.
13036
4d1b9ab6
TT
130372020-03-28 Tom Tromey <tom@tromey.com>
13038
13039 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13040 comment.
13041
f1749218
TT
130422020-03-28 Tom Tromey <tom@tromey.com>
13043
13044 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13045
ebea7626
HD
130462020-03-27 Hannes Domani <ssbssa@yahoo.de>
13047
13048 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13049
a879b4d5
JB
130502020-03-26 John Baldwin <jhb@FreeBSD.org>
13051
13052 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13053
0826b30a
TT
130542020-03-26 Tom Tromey <tom@tromey.com>
13055
13056 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13057 (mark_common_block_symbol_computed, read_tag_string_type)
13058 (attr_to_dynamic_prop, read_subrange_type): Update.
13059 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13060 to be methods on struct attribute.
13061 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13062 (read_call_site_scope, partial_die_info::read)
13063 (partial_die_info::read, lookup_die_type, follow_die_ref):
13064 Update.
13065 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13066 from dwarf2_get_ref_die_offset.
13067 (attribute::constant_value): New method, from
13068 dwarf2_get_attr_constant_value.
13069 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13070 Declare method.
13071 <constant_value>: New method.
13072
2b2558bf
TT
130732020-03-26 Tom Tromey <tom@tromey.com>
13074
13075 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13076 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13077 (dwarf_type_encoding_name): Move to stringify.c.
13078 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13079 * dwarf2/stringify.c: New file.
13080 * dwarf2/stringify.h: New file.
13081
eeb64781
TT
130822020-03-26 Tom Tromey <tom@tromey.com>
13083
13084 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13085 Rewrite.
13086
a39fdb41
TT
130872020-03-26 Tom Tromey <tom@tromey.com>
13088
13089 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13090 methods.
13091 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13092 (lookup_ranges_base): Likewise.
13093 (read_cutu_die_from_dwo, read_full_die_1): Update.
13094
436c571c
TT
130952020-03-26 Tom Tromey <tom@tromey.com>
13096
13097 * dwarf2/read.c (read_import_statement, read_file_scope)
13098 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13099 (read_lexical_block_scope, read_call_site_scope)
13100 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13101 (handle_struct_member_die, process_structure_scope)
13102 (update_enumeration_type_from_children)
13103 (process_enumeration_scope, read_array_type, read_common_block)
13104 (read_namespace, read_module, read_subroutine_type): Update.
13105 (sibling_die): Remove.
13106
052c8bb8
TT
131072020-03-26 Tom Tromey <tom@tromey.com>
13108
13109 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13110 (build_type_psymtabs_reader, read_structure_type)
13111 (read_enumeration_type, read_full_die_1): Update.
13112 (dwarf2_attr_no_follow): Move to die.h.
13113 * dwarf2/die.h (struct die_info) <attr>: New method.
13114
2b24b6e4
TT
131152020-03-26 Tom Tromey <tom@tromey.com>
13116
13117 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13118 <base_address>: Now an optional.
13119 (dwarf2_find_base_address, dwarf2_rnglists_process)
13120 (dwarf2_ranges_process, fill_in_loclist_baton)
13121 (dwarf2_symbol_mark_computed): Update.
13122
c2d50fd0
TT
131232020-03-26 Tom Tromey <tom@tromey.com>
13124
13125 * dwarf2/read.c (struct die_info): Move to die.h.
13126 * dwarf2/die.h: New file.
13127
0df7ad3a
TT
131282020-03-26 Tom Tromey <tom@tromey.com>
13129
13130 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13131 * dwarf2/read.c
13132 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13133 Move to line-header.c.
13134 (read_checked_initial_length_and_offset, read_formatted_entries):
13135 Likewise.
13136 (dwarf_decode_line_header): Split into two.
13137 * dwarf2/line-header.c
13138 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13139 Move from read.c.
13140 (read_checked_initial_length_and_offset, read_formatted_entries):
13141 Likewise.
13142 (dwarf_decode_line_header): New function, split from read.c.
13143
86c0bb4c
TT
131442020-03-26 Tom Tromey <tom@tromey.com>
13145
13146 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13147 Declare method.
13148 * dwarf2/read.c (read_attribute_value): Update.
13149 (dwarf2_per_objfile::read_line_string): Rename from
13150 read_indirect_line_string.
13151 (read_formatted_entries): Update.
13152
2ef46c2f
TT
131532020-03-26 Tom Tromey <tom@tromey.com>
13154
13155 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13156 variable.
13157
4f9c1eda
TT
131582020-03-26 Tom Tromey <tom@tromey.com>
13159
13160 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13161 const.
13162 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13163 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13164 parameter const.
13165
5a0e026f
TT
131662020-03-26 Tom Tromey <tom@tromey.com>
13167
13168 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13169 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13170 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13171 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13172
8844c11b
TT
131732020-03-26 Tom Tromey <tom@tromey.com>
13174
13175 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13176 file_names_size, file_full_name, file_file_name>: Use const.
13177 <file_name_at, file_names>: Add const overload.
13178 * dwarf2/line-header.c (line_header::file_file_name)
13179 (line_header::file_full_name): Update.
13180
c90ec28a
TT
131812020-03-26 Tom Tromey <tom@tromey.com>
13182
13183 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13184 (macro_start_file, consume_improper_spaces)
13185 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13186 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13187 (dwarf_decode_macros): Move to macro.c.
13188 * dwarf2/macro.c: New file.
13189 * dwarf2/macro.h: New file.
13190 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13191
4f44ae6c
TT
131922020-03-26 Tom Tromey <tom@tromey.com>
13193
13194 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13195 method.
13196 * dwarf2/section.c: New method. From
13197 read_indirect_string_at_offset_from.
13198 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13199 (read_indirect_string_at_offset_from): Move to section.c.
13200 (read_indirect_string_at_offset): Rewrite.
13201 (read_indirect_line_string_at_offset): Remove.
13202 (read_indirect_string, read_indirect_line_string)
13203 (dwarf_decode_macro_bytes): Update.
13204
a0194fa8
TT
132052020-03-26 Tom Tromey <tom@tromey.com>
13206
13207 * dwarf2/section.h (struct dwarf2_section_info)
13208 <overload_complaint>: Declare.
13209 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13210 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13211 Rename from dwarf2_section_buffer_overflow_complaint.
13212 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13213 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13214
3d27bbdb
TT
132152020-03-26 Tom Tromey <tom@tromey.com>
13216
13217 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13218 Declare.
13219 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13220 Move from read.c.
13221 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13222 to section.c.
13223
9eac9650
TT
132242020-03-26 Tom Tromey <tom@tromey.com>
13225
13226 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13227
bf80d710
TT
132282020-03-26 Tom Tromey <tom@tromey.com>
13229
13230 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13231 "builder".
13232 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13233 parameter.
13234 (dwarf_decode_macros): Update.
13235
0314b390
TT
132362020-03-26 Tom Tromey <tom@tromey.com>
13237
13238 * dwarf2/read.c (read_attribute_value): Update.
13239 (read_indirect_string_from_dwz): Move to dwz.c; change into
13240 method.
13241 (dwarf_decode_macro_bytes): Update.
13242 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13243 * dwarf2/dwz.c: New file.
13244 * Makefile.in (COMMON_SFILES): Add dwz.c.
13245
9fda78b6
TT
132462020-03-26 Tom Tromey <tom@tromey.com>
13247
13248 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13249 * dwarf2/read.c: Add include.
13250 * dwarf2/index-write.c: Add include.
13251 * dwarf2/index-cache.c: Add include.
13252 * dwarf2/dwz.h: New file.
13253
33aa3c10
TT
132542020-03-25 Tom Tromey <tom@tromey.com>
13255
13256 * compile/compile-object-load.c (get_out_value_type): Mention
13257 correct symbol name in error message.
13258
d503b685
HD
132592020-03-25 Hannes Domani <ssbssa@yahoo.de>
13260
13261 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13262
7b1eff95
TV
132632020-03-25 Tom de Vries <tdevries@suse.de>
13264
13265 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13266 * symmisc.c (dump_symtab_1): Print user and includes fields.
13267 (maintenance_info_symtabs): Same.
13268
dd895392
AB
132692020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13270
13271 PR gdb/25534
13272 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13273 (riscv_regcache_cooked_write): New function.
13274 (riscv_push_dummy_call): Use new function.
13275 (riscv_return_value): Likewise.
13276
5ab2fbf1
SM
132772020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13278
13279 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13280 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13281 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13282 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13283 * infrun.c (follow_fork): Likewise.
13284 (follow_fork_inferior): Likewise.
13285 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13286 * linux-nat.h (class linux_nat_target): Likewise.
13287 * remote.c (class remote_target) <follow_fork>: Likewise.
13288 (remote_target::follow_fork): Likewise.
13289 * target-delegates.c: Re-generate.
13290 * target.c (default_follow_fork): Likewise.
13291 (target_follow_fork): Likewise.
13292 * target.h (struct target_ops) <follow_fork>: Likewise.
13293 (target_follow_fork): Likewise.
13294
a64fafb5
TV
132952020-03-24 Tom de Vries <tdevries@suse.de>
13296
13297 * psymtab.c (maintenance_info_psymtabs): Print user field.
13298
fe26d3a3
TT
132992020-03-20 Tom Tromey <tromey@adacore.com>
13300
13301 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13302 const.
13303 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13304 const.
13305
c884cc46
SM
133062020-03-20 Simon Marchi <simon.marchi@efficios.com>
13307
13308 * ptrace.m4: Don't check for ptrace declaration.
13309 * config.in: Re-generate.
13310 * configure: Re-generate.
13311 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13312 not defined.
13313
1ff700c2
KR
133142020-03-20 Kamil Rytarowski <n54@gmx.com>
13315
13316 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13317 `PTRACE_TYPE_RET'.
13318 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13319 * sparc-nat.c (gdb_ptrace): Likewise.
13320 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13321
f7d4f0b1
TT
133222020-03-20 Tom Tromey <tromey@adacore.com>
13323
13324 * c-exp.y (lex_one_token): Fix assert.
13325
f67210ff
TT
133262020-03-20 Tom Tromey <tromey@adacore.com>
13327
13328 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13329 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13330 strncpy call.
13331
1773be9e
TT
133322020-03-20 Tom Tromey <tromey@adacore.com>
13333
13334 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13335
70304be9
TT
133362020-03-20 Tom Tromey <tromey@adacore.com>
13337
13338 * ada-valprint.c (print_variant_part): Remove parameters; switch
13339 to value-based API.
13340 (print_field_values): Likewise.
13341 (ada_val_print_struct_union): Likewise.
13342 (ada_value_print_1): Update.
13343
9faa006d
KR
133442020-03-20 Kamil Rytarowski <n54@gmx.com>
13345
13346 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13347 nbsd_nat_target instead of inf_ptrace_target.
13348 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13349 nbsd_nat_target.
13350
4a90f062
KR
133512020-03-20 Kamil Rytarowski <n54@gmx.com>
13352
13353 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13354 it to the ptrace call.
13355 * (store_registers): Likewise.
13356
133572020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13358
13359 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13360 it to the ptrace call.
13361 * (store_registers): Likewise.
13362
2d07da27
LM
133632020-03-19 Luis Machado <luis.machado@linaro.org>
13364
13365 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13366 valid, fetch vg value from ptrace.
13367
f09db380
KR
133682020-03-19 Kamil Rytarowski <n54@gmx.com>
13369 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13370 * inf-ptrace.c: Likewise.
13371 * (gdb_ptrace): Add.
13372 * (inf_ptrace_target::resume): Update.
13373 * (inf_ptrace_target::xfer_partial): Likewise.
13374 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13375 * (inf_ptrace_peek_poke): Update.
13376
fcc7376e
KR
133772020-03-19 Kamil Rytarowski <n54@gmx.com>
13378
13379 * x86-bsd-nat.c (gdb_ptrace): New.
13380 * (x86bsd_dr_set): Add new argument `ptid'.
13381 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13382 x86bsd_dr_set_addr): Update.
13383
cada5fc9
AB
133842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13385
13386 * remote.c (remote_target::process_stop_reply): Handle events for
13387 all threads differently.
13388
19a2740f
AB
133892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13390
13391 * completer.c (completion_tracker::remove_completion): Define new
13392 function.
13393 * completer.h (completion_tracker::remove_completion): Declare new
13394 function.
13395 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13396 when adding a C++ function symbol.
13397
724fd9ba
AB
133982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13399
13400 * completer.c (completion_tracker::completion_hash_entry): Define
13401 new class.
13402 (advance_to_filename_complete_word_point): Call
13403 recompute_lowest_common_denominator.
13404 (completion_tracker::completion_tracker): Call discard_completions
13405 to setup the hash table.
13406 (completion_tracker::discard_completions): Allow for being called
13407 from the constructor, pass new equal function, and element deleter
13408 when constructing the hash table. Initialise new class member
13409 variables.
13410 (completion_tracker::maybe_add_completion): Remove use of
13411 m_entries_vec, and store more information into m_entries_hash.
13412 (completion_tracker::recompute_lcd_visitor): New function, most
13413 content taken from...
13414 (completion_tracker::recompute_lowest_common_denominator):
13415 ...here, this now just visits each item in the hash calling the
13416 above visitor.
13417 (completion_tracker::build_completion_result): Remove use of
13418 m_entries_vec, call recompute_lowest_common_denominator.
13419 * completer.h (completion_tracker::have_completions): Remove use
13420 of m_entries_vec.
13421 (completion_tracker::completion_hash_entry): Declare new class.
13422 (completion_tracker::recompute_lowest_common_denominator): Change
13423 function signature.
13424 (completion_tracker::recompute_lcd_visitor): Declare new function.
13425 (completion_tracker::m_entries_vec): Delete.
13426 (completion_tracker::m_entries_hash): Initialize to NULL.
13427 (completion_tracker::m_lowest_common_denominator_valid): New
13428 member variable.
13429 (completion_tracker::m_lowest_common_denominator_max_length): New
13430 member variable.
13431
5a82b8a1
KR
134322020-03-17 Kamil Rytarowski <n54@gmx.com>
13433
13434 * regformats/regdef.h: Put reg in gdb namespace.
13435
fb516a69
KR
134362020-03-17 Kamil Rytarowski <n54@gmx.com>
13437
13438 * i386-bsd-nat.c (gdb_ptrace): New.
13439 * (i386bsd_fetch_inferior_registers,
13440 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13441 * (i386bsd_fetch_inferior_registers,
13442 i386bsd_store_inferior_registers) Use gdb_ptrace.
13443
1c0aa1fb
KR
134442020-03-17 Kamil Rytarowski <n54@gmx.com>
13445
13446 * amd64-bsd-nat.c (gdb_ptrace): New.
13447 * (amd64bsd_fetch_inferior_registers,
13448 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13449 * (amd64bsd_fetch_inferior_registers,
13450 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13451
5ccd2fb7
KR
134522020-03-17 Kamil Rytarowski <n54@gmx.com>
13453
13454 * user-regs.c (user_reg::read): Rename to...
13455 (user_reg::xread): ...this.
13456 * (append_user_reg): Rename argument `read' to `xread'.
13457 * (user_reg_add_builtin): Likewise.
13458 * (user_reg_add): Likewise.
13459 * (value_of_user_reg): Likewise.
13460
2108a63a
KR
134612020-03-17 Kamil Rytarowski <n54@gmx.com>
13462
13463 * sparc-nat.c (gdb_ptrace): New.
13464 * sparc-nat.c (sparc_fetch_inferior_registers)
13465 (sparc_store_inferior_registers) Remove obsolete comment.
13466 * sparc-nat.c (sparc_fetch_inferior_registers)
13467 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13468 * sparc-nat.c (sparc_fetch_inferior_registers)
13469 (sparc_store_inferior_registers) Use gdb_ptrace.
13470
a225c9a8
KR
134712020-03-17 Kamil Rytarowski <n54@gmx.com>
13472
13473 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13474 it to the ptrace call.
13475 * sh-nbsd-nat.c (store_registers): Likewise.
13476
98097623
KR
134772020-03-17 Kamil Rytarowski <n54@gmx.com>
13478
13479 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13480 nbsd_nat_target instead of inf_ptrace_target.
13481 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13482 nbsd_nat_target.
13483
9e38d619
KR
134842020-03-17 Kamil Rytarowski <n54@gmx.com>
13485
13486 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13487
a2ecbe9f
KR
134882020-03-17 Kamil Rytarowski <n54@gmx.com>
13489
13490 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13491 <sys/sysctl.h>.
13492 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13493
58990295
TV
134942020-03-17 Tom de Vries <tdevries@suse.de>
13495
13496 PR gdb/23710
13497 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13498 fields.
13499 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13500 fields.
13501 (process_imported_unit_die): Skip import of c++ CUs.
13502
771dd3a8
TT
135032020-03-16 Tom Tromey <tom@tromey.com>
13504
13505 * p-valprint.c (pascal_object_print_value): Initialize
13506 base_value.
13507
817a7585
AK
135082020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13509 Shahab Vahedi <shahab@synopsys.com>
13510
13511 * Makefile.in: Add arch/arc.o
13512 * configure.tgt: Likewise.
13513 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13514 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13515 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13516 * arc-tdep.h (arc_read_description): Add proto type.
13517 * arch/arc.c: New file.
13518 * arch/arc.h: Likewise.
13519 * features/Makefile: Replace old target descriptions with new.
13520 * features/arc-arcompact.c: Remove.
13521 * features/arc-arcompact.xml: Likewise.
13522 * features/arc-v2.c: Likewise
13523 * features/arc-v2.xml: Likewise
13524 * features/arc/aux-arcompact.xml: New file.
13525 * features/arc/aux-v2.xml: Likewise.
13526 * features/arc/core-arcompact.xml: Likewise.
13527 * features/arc/core-v2.xml: Likewise.
13528 * features/arc/aux-arcompact.c: Generate.
13529 * features/arc/aux-v2.c: Likewise.
13530 * features/arc/core-arcompact.c: Likewise.
13531 * features/arc/core-v2.c: Likewise.
13532 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13533
67430cd0
TT
135342020-03-16 Tom Tromey <tromey@adacore.com>
13535
13536 PR gdb/25663:
13537 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13538 putting value into bcache.
13539
30efb6c7
SM
135402020-03-16 Simon Marchi <simon.marchi@efficios.com>
13541
13542 PR gdb/21500
13543 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13544 to...
13545 (amd64_windows_init_abi_common): ... this. Don't set size of
13546 long type.
13547 (amd64_windows_init_abi): New function.
13548 (amd64_cygwin_init_abi): New function.
13549 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13550 the Cygwin OS ABI.
13551 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13552 comment.
13553
8db52437
SM
135542020-03-16 Simon Marchi <simon.marchi@efficios.com>
13555
13556 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13557 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13558 (pe_import_directory_entry): New struct type.
13559 (is_linked_with_cygwin_dll): New function.
13560 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13561 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13562 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13563
5982a56a
SM
135642020-03-16 Simon Marchi <simon.marchi@efficios.com>
13565
13566 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13567 i386_cygwin_core_osabi_sniffer.
13568
7a1998df
SM
135692020-03-16 Simon Marchi <simon.marchi@efficios.com>
13570
13571 * i386-cygwin-tdep.c: Rename to...
13572 * i386-windows-tdep.c: ... this.
13573 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13574 i386-windows-tdep.c.
13575 * configure.tgt: Likewise.
13576
053205cc
SM
135772020-03-16 Simon Marchi <simon.marchi@efficios.com>
13578
13579 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13580 * osabi.c (gdb_osabi_names): Add "Windows".
13581 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13582 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13583 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13584 i386_cygwin_osabi_sniffer.
13585 (_initialize_i386_cygwin_tdep): Register OS ABI
13586 GDB_OSABI_WINDOWS for i386.
13587 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13588 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13589 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13590 for x86-64.
13591 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13592 when the target matches '*-*-mingw*'.
13593
fe4b2ee6
SM
135942020-03-16 Simon Marchi <simon.marchi@efficios.com>
13595
13596 * defs.h (enum gdb_osabi): Move to...
13597 * osabi.h (enum gdb_osabi): ... here.
13598 * gdbarch.sh: Include osabi.h in gdbarch.h.
13599 * gdbarch.h: Re-generate.
13600
cb9b645d
SM
136012020-03-16 Simon Marchi <simon.marchi@efficios.com>
13602
13603 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13604 function.
13605 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13606
3293bbaf
TT
136072020-03-14 Tom Tromey <tom@tromey.com>
13608
13609 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13610 for C++.
13611 (c_type_print_modifier): Likewise. Add "language" parameter.
13612 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13613 (c_type_print_base_1): Update.
13614 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13615 constants.
13616 * type-stack.c (type_stack::insert): Handle tp_atomic and
13617 tp_restrict.
13618 (type_stack::follow_type_instance_flags): Likewise.
13619 (type_stack::follow_types): Likewise. Merge type-following code.
13620 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13621 (space_identifier, cv_with_space_id)
13622 (const_or_volatile_or_space_identifier_noopt)
13623 (const_or_volatile_or_space_identifier): Remove.
13624 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13625 rules.
13626 (ptr_operator, typebase): Update.
13627 (enum token_flag) <FLAG_C>: New constant.
13628 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13629 "_Atomic".
13630 (lex_one_token): Handle FLAG_C.
13631
154151a6
KR
136322020-03-14 Kamil Rytarowski <n54@gmx.com>
13633
13634 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13635 it to the ptrace call.
13636 * m68k-bsd-nat.c (store_registers): Likewise.
13637
bc107784
KR
136382020-03-14 Kamil Rytarowski <n54@gmx.com>
13639
13640 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13641 gdb_byte *.
13642 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13643 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13644 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13645
01a80117
KR
136462020-03-14 Kamil Rytarowski <n54@gmx.com>
13647
13648 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13649 nbsd_nat_target instead of inf_ptrace_target.
13650 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13651 nbsd_nat_target.
13652
f90280ca
KR
136532020-03-14 Kamil Rytarowski <n54@gmx.com>
13654
13655 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13656 register_t.
13657
6def66f1
KR
136582020-03-14 Kamil Rytarowski <n54@gmx.com>
13659
13660 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13661 it to the ptrace call.
13662 * alpha-bsd-nat.c (store_registers): Likewise.
13663
66eaca97
KR
136642020-03-14 Kamil Rytarowski <n54@gmx.com>
13665
13666 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13667 includes.
13668 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13669 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13670 fill_fpregset): Likewise.
13671
4fed520b
KR
136722020-03-14 Kamil Rytarowski <n54@gmx.com>
13673
13674 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13675 nbsd_nat_target instead of inf_ptrace_target.
13676 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13677 nbsd_nat_target.
13678
2190cf06
KR
136792020-03-14 Kamil Rytarowski <n54@gmx.com>
13680
13681 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13682 register_t.
13683
75c56d3d
KR
136842020-03-14 Kamil Rytarowski <n54@gmx.com>
13685
13686 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13687 it to the ptrace call.
13688 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13689 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13690 * arm-nbsd-nat.c (store_register): Likewise.
13691 * arm-nbsd-nat.c (store_regs): Likewise.
13692 * arm-nbsd-nat.c (store_fp_register): Likewise.
13693 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13694
6018d381
KR
136952020-03-14 Kamil Rytarowski <n54@gmx.com>
13696
13697 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13698 nbsd_nat_target instead of inf_ptrace_target.
13699 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13700 nbsd_nat_target.
13701
013f99f0
KR
137022020-03-14 Kamil Rytarowski <n54@gmx.com>
13703
13704 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13705 it to the ptrace call.
13706 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13707
12753073
KR
137082020-03-14 Kamil Rytarowski <n54@gmx.com>
13709
6227b330
KR
13710 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13711 it to the ptrace call.
13712 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13713
137142020-03-14 Kamil Rytarowski <n54@gmx.com>
13715
13716 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13717 gdb_byte *.
12753073
KR
13718 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13719
d5be5fa4
KR
137202020-03-14 Kamil Rytarowski <n54@gmx.com>
13721
13722 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13723 instead of inf_ptrace_target.
13724 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13725 nbsd_nat_target.
13726
8110f842
KR
137272020-03-14 Kamil Rytarowski <n54@gmx.com>
13728
13729 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13730 register_t.
13731
52feded7
KR
137322020-03-14 Kamil Rytarowski <n54@gmx.com>
13733
13734 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13735 register_t.
13736
25567eee
KR
137372020-03-14 Kamil Rytarowski <n54@gmx.com>
13738
13739 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13740 register_t.
13741
426a9c18
TT
137422020-03-13 Tom Tromey <tom@tromey.com>
13743
13744 * value.h (val_print): Don't declare.
13745 * valprint.h (val_print_array_elements)
13746 (val_print_scalar_formatted, generic_val_print): Don't declare.
13747 * valprint.c (generic_val_print_array): Take a struct value.
13748 (generic_val_print_ptr, generic_val_print_memberptr)
13749 (generic_val_print_bool, generic_val_print_int)
13750 (generic_val_print_char, generic_val_print_complex)
13751 (generic_val_print): Remove.
13752 (generic_value_print): Update.
13753 (do_val_print): Remove unused parameters. Don't call
13754 la_val_print.
13755 (val_print): Remove.
13756 (common_val_print): Update. Don't call value_check_printable.
13757 (val_print_scalar_formatted, val_print_array_elements): Remove.
13758 * rust-lang.c (rust_val_print): Remove.
13759 (rust_language_defn): Update.
13760 * p-valprint.c (pascal_val_print): Remove.
13761 (pascal_value_print_inner): Update.
13762 (pascal_object_print_val_fields, pascal_object_print_val):
13763 Remove.
13764 (pascal_object_print_static_field): Update.
13765 * p-lang.h (pascal_val_print): Don't declare.
13766 * p-lang.c (pascal_language_defn): Update.
13767 * opencl-lang.c (opencl_language_defn): Update.
13768 * objc-lang.c (objc_language_defn): Update.
13769 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13770 * m2-lang.h (m2_val_print): Don't declare.
13771 * m2-lang.c (m2_language_defn): Update.
13772 * language.h (struct language_defn) <la_val_print>: Remove.
13773 * language.c (unk_lang_value_print_inner): Rename. Change
13774 argument types.
13775 (unknown_language_defn, auto_language_defn): Update.
13776 * go-valprint.c (go_val_print): Remove.
13777 * go-lang.h (go_val_print): Don't declare.
13778 * go-lang.c (go_language_defn): Update.
13779 * f-valprint.c (f_val_print): Remove.
13780 * f-lang.h (f_value_print): Don't declare.
13781 * f-lang.c (f_language_defn): Update.
13782 * d-valprint.c (d_val_print): Remove.
13783 * d-lang.h (d_value_print): Don't declare.
13784 * d-lang.c (d_language_defn): Update.
13785 * cp-valprint.c (cp_print_value_fields)
13786 (cp_print_value_fields_rtti, cp_print_value): Remove.
13787 (cp_print_static_field): Update.
13788 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13789 (c_val_print_struct, c_val_print_union, c_val_print_int)
13790 (c_val_print_memberptr, c_val_print): Remove.
13791 * c-lang.h (c_val_print_array, cp_print_value_fields)
13792 (cp_print_value_fields_rtti): Don't declare.
13793 * c-lang.c (c_language_defn, cplus_language_defn)
13794 (asm_language_defn, minimal_language_defn): Update.
13795 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13796 (ada_val_print_enum): Take a struct value.
13797 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13798 (ada_val_print): Remove.
13799 (ada_value_print_1): Update.
13800 (printable_val_type): Remove.
13801 * ada-lang.h (ada_val_print): Don't declare.
13802 * ada-lang.c (ada_language_defn): Update.
13803
42331a1e
TT
138042020-03-13 Tom Tromey <tom@tromey.com>
13805
13806 * valprint.c (do_val_print): Update.
13807 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13808 a struct value.
13809 (value_to_value_object_no_release): Declare.
13810 * python/py-value.c (value_to_value_object_no_release): New
13811 function.
13812 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13813 struct value.
13814 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13815 function.
13816 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13817 a struct value.
13818 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13819 Declare.
13820 (gdbscm_apply_val_pretty_printer): Take a struct value.
13821 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13822 value.
13823 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13824 value.
13825 * extension-priv.h (struct extension_language_ops)
13826 <apply_val_pretty_printer>: Take a struct value.
13827 * cp-valprint.c (cp_print_value): Create a struct value.
13828 (cp_print_value): Update.
13829
3a916a97
TT
138302020-03-13 Tom Tromey <tom@tromey.com>
13831
13832 * ada-valprint.c (print_field_values): Call common_val_print.
13833
b59eac37
TT
138342020-03-13 Tom Tromey <tom@tromey.com>
13835
13836 * ada-valprint.c (val_print_packed_array_elements): Remove
13837 bitoffset and val parameters. Call common_val_print.
13838 (ada_val_print_string): Remove offset, address, and original_value
13839 parameters.
13840 (ada_val_print_array): Update.
13841 (ada_value_print_array): New function.
13842 (ada_value_print_1): Call it.
13843
03371129
TT
138442020-03-13 Tom Tromey <tom@tromey.com>
13845
13846 * ada-valprint.c (ada_value_print): Use common_val_print.
13847
2e088f8b
TT
138482020-03-13 Tom Tromey <tom@tromey.com>
13849
13850 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13851
39ef85a8
TT
138522020-03-13 Tom Tromey <tom@tromey.com>
13853
13854 * ada-valprint.c (ada_value_print_num): New function.
13855 (ada_value_print_1): Use it.
13856
b9fa6e07
TT
138572020-03-13 Tom Tromey <tom@tromey.com>
13858
13859 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13860
416595d6
TT
138612020-03-13 Tom Tromey <tom@tromey.com>
13862
13863 * ada-valprint.c (ada_value_print_ptr): New function.
13864 (ada_value_print_1): Use it.
13865
5b5e15ec
TT
138662020-03-13 Tom Tromey <tom@tromey.com>
13867
13868 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13869 call common_val_print.
13870 (ada_val_print_1): Update.
13871 (ada_value_print_1): New function.
13872 (ada_value_print_inner): Rewrite.
13873
fbf54e75
TT
138742020-03-13 Tom Tromey <tom@tromey.com>
13875
13876 * cp-valprint.c (cp_print_value_fields): Update.
13877 (cp_print_value): New function.
13878
64b653ca
TT
138792020-03-13 Tom Tromey <tom@tromey.com>
13880
13881 * m2-valprint.c (m2_value_print_inner): Use
13882 cp_print_value_fields.
13883 * cp-valprint.c (cp_print_value_fields): New function.
13884 * c-valprint.c (c_value_print_struct): New function.
13885 (c_value_print_inner): Use c_value_print_struct.
13886 * c-lang.h (cp_print_value_fields): Declare.
13887
6999f067
TT
138882020-03-13 Tom Tromey <tom@tromey.com>
13889
13890 * c-valprint.c (c_value_print_array): New function.
13891 (c_value_print_inner): Use it.
13892
ce80b8bd
TT
138932020-03-13 Tom Tromey <tom@tromey.com>
13894
13895 * c-valprint.c (c_value_print_memberptr): New function.
13896 (c_value_print_inner): Use it.
13897
2faac269
TT
138982020-03-13 Tom Tromey <tom@tromey.com>
13899
13900 * c-valprint.c (c_value_print_int): New function.
13901 (c_value_print_inner): Use it.
13902
da3e2c29
TT
139032020-03-13 Tom Tromey <tom@tromey.com>
13904
13905 * c-valprint.c (c_value_print_ptr): New function.
13906 (c_value_print_inner): Use it.
13907
50836231
TT
139082020-03-13 Tom Tromey <tom@tromey.com>
13909
13910 * c-valprint.c (c_value_print_inner): Rewrite.
13911
4f412b6e
TT
139122020-03-13 Tom Tromey <tom@tromey.com>
13913
13914 * valprint.c (generic_value_print_complex): New function.
13915 (generic_value_print): Use it.
13916
f5354008
TT
139172020-03-13 Tom Tromey <tom@tromey.com>
13918
13919 * valprint.c (generic_val_print_float): Don't call
13920 val_print_scalar_formatted.
13921 (generic_val_print, generic_value_print): Update.
13922
3eec3b05
TT
139232020-03-13 Tom Tromey <tom@tromey.com>
13924
13925 * valprint.c (generic_value_print_char): New function
13926 (generic_value_print): Use it.
13927
fdddfccb
TT
139282020-03-13 Tom Tromey <tom@tromey.com>
13929
13930 * valprint.c (generic_value_print_int): New function.
13931 (generic_value_print): Use it.
13932
6dde7521
TT
139332020-03-13 Tom Tromey <tom@tromey.com>
13934
13935 * valprint.c (generic_value_print_bool): New function.
13936 (generic_value_print): Use it.
13937
4112d2e6
TT
139382020-03-13 Tom Tromey <tom@tromey.com>
13939
13940 * valprint.c (generic_val_print_func): Simplify.
13941 (generic_val_print, generic_value_print): Update.
13942
65786af6
TT
139432020-03-13 Tom Tromey <tom@tromey.com>
13944
13945 * valprint.c (generic_val_print_flags): Remove.
13946 (generic_val_print, generic_value_print): Update.
13947 (val_print_type_code_flags): Add original_value parameter.
13948
40f3ce18
TT
139492020-03-13 Tom Tromey <tom@tromey.com>
13950
13951 * valprint.c (generic_val_print): Update.
13952 (generic_value_print): Update.
13953 * valprint.c (generic_val_print_enum): Don't call
13954 val_print_scalar_formatted.
13955
2a5b130b
TT
139562020-03-13 Tom Tromey <tom@tromey.com>
13957
13958 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13959 * valprint.c (generic_value_print_ptr): New function.
13960
abc66ce9
TT
139612020-03-13 Tom Tromey <tom@tromey.com>
13962
13963 * valprint.c (generic_value_print): Rewrite.
13964
07a32858
TT
139652020-03-13 Tom Tromey <tom@tromey.com>
13966
13967 * p-valprint.c (pascal_object_print_value_fields)
13968 (pascal_object_print_value): New functions.
13969
64d64d3a
TT
139702020-03-13 Tom Tromey <tom@tromey.com>
13971
13972 * p-valprint.c (pascal_value_print_inner): Rewrite.
13973
6a95a1f5
TT
139742020-03-13 Tom Tromey <tom@tromey.com>
13975
13976 * f-valprint.c (f_value_print_innner): Rewrite.
13977
59fcdac6
TT
139782020-03-13 Tom Tromey <tom@tromey.com>
13979
13980 * m2-valprint.c (m2_print_unbounded_array): New overload.
13981 (m2_print_unbounded_array): Update.
13982 (m2_print_array_contents): Take a struct value.
13983 (m2_value_print_inner): Rewrite.
13984
d133c3e1
TT
139852020-03-13 Tom Tromey <tom@tromey.com>
13986
13987 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13988 (d_value_print_inner): New function.
13989 * d-lang.h (d_value_print_inner): Declare.
13990 * d-lang.c (d_language_defn): Use d_value_print_inner.
13991
23b0f06b
TT
139922020-03-13 Tom Tromey <tom@tromey.com>
13993
13994 * go-valprint.c (go_value_print_inner): New function.
13995 * go-lang.h (go_value_print_inner): Declare.
13996 * go-lang.c (go_language_defn): Use go_value_print_inner.
13997
5f56f7cb
TT
139982020-03-13 Tom Tromey <tom@tromey.com>
13999
14000 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14001 API.
14002 (rust_val_print): Rewrite.
14003 (rust_value_print_inner): New function, from rust_val_print.
14004 (rust_language_defn): Use rust_value_print_inner.
14005
26792ee0
TT
140062020-03-13 Tom Tromey <tom@tromey.com>
14007
14008 * ada-valprint.c (ada_value_print_inner): New function.
14009 * ada-lang.h (ada_value_print_inner): Declare.
14010 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14011
24051bbe
TT
140122020-03-13 Tom Tromey <tom@tromey.com>
14013
14014 * f-valprint.c (f_value_print_innner): New function.
14015 * f-lang.h (f_value_print_innner): Declare.
14016 * f-lang.c (f_language_defn): Use f_value_print_innner.
14017
c0941be6
TT
140182020-03-13 Tom Tromey <tom@tromey.com>
14019
14020 * p-valprint.c (pascal_value_print_inner): New function.
14021 * p-lang.h (pascal_value_print_inner): Declare.
14022 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14023
62c4663d
TT
140242020-03-13 Tom Tromey <tom@tromey.com>
14025
14026 * m2-valprint.c (m2_value_print_inner): New function.
14027 * m2-lang.h (m2_value_print_inner): Declare.
14028 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14029
62182190
TT
140302020-03-13 Tom Tromey <tom@tromey.com>
14031
14032 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14033 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14034 * c-valprint.c (c_value_print_inner): New function.
14035 * c-lang.h (c_value_print_inner): Declare.
14036 * c-lang.c (c_language_defn, cplus_language_defn)
14037 (asm_language_defn, minimal_language_defn): Use
14038 c_value_print_inner.
14039
1e592a8a
TT
140402020-03-13 Tom Tromey <tom@tromey.com>
14041
14042 * p-valprint.c (pascal_object_print_value_fields): Now static.
14043 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14044
7fe471e9
TT
140452020-03-13 Tom Tromey <tom@tromey.com>
14046
14047 * c-valprint.c (c_val_print_array): Simplify.
14048
d121c6ce
TT
140492020-03-13 Tom Tromey <tom@tromey.com>
14050
14051 * valprint.c (value_print_array_elements): New function.
14052 * valprint.h (value_print_array_elements): Declare.
14053
4dba70ee
TT
140542020-03-13 Tom Tromey <tom@tromey.com>
14055
14056 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14057 * mips-tdep.c (mips_print_register): Use
14058 value_print_scalar_formatted.
14059
4f9ae810
TT
140602020-03-13 Tom Tromey <tom@tromey.com>
14061
14062 * valprint.h (value_print_scalar_formatted): Declare.
14063 * valprint.c (value_print_scalar_formatted): New function.
14064
156bfec9
TT
140652020-03-13 Tom Tromey <tom@tromey.com>
14066
14067 * valprint.h (generic_value_print): Declare.
14068 * valprint.c (generic_value_print): New function.
14069
2b4e573d
TT
140702020-03-13 Tom Tromey <tom@tromey.com>
14071
14072 * valprint.c (do_val_print): Call la_value_print_inner, if
14073 available.
14074 * rust-lang.c (rust_language_defn): Update.
14075 * p-lang.c (pascal_language_defn): Update.
14076 * opencl-lang.c (opencl_language_defn): Update.
14077 * objc-lang.c (objc_language_defn): Update.
14078 * m2-lang.c (m2_language_defn): Update.
14079 * language.h (struct language_defn) <la_value_print_inner>: New
14080 member.
14081 * language.c (unknown_language_defn, auto_language_defn): Update.
14082 * go-lang.c (go_language_defn): Update.
14083 * f-lang.c (f_language_defn): Update.
14084 * d-lang.c (d_language_defn): Update.
14085 * c-lang.c (c_language_defn, cplus_language_defn)
14086 (asm_language_defn, minimal_language_defn): Update.
14087 * ada-lang.c (ada_language_defn): Update.
14088
a1f6a07c
TT
140892020-03-13 Tom Tromey <tom@tromey.com>
14090
14091 * c-valprint.c (c_value_print): Use common_val_print.
14092
410cf315
TT
140932020-03-13 Tom Tromey <tom@tromey.com>
14094
14095 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14096
72a45c93
TT
140972020-03-13 Tom Tromey <tom@tromey.com>
14098
14099 * f-valprint.c (f77_print_array_1, f_val_print): Use
14100 common_val_print.
14101
040f66bd
TT
141022020-03-13 Tom Tromey <tom@tromey.com>
14103
14104 * riscv-tdep.c (riscv_print_one_register_info): Use
14105 common_val_print.
14106
a6e05a6c
TT
141072020-03-13 Tom Tromey <tom@tromey.com>
14108
14109 * mi/mi-main.c (output_register): Use common_val_print.
14110
3444c526
TT
141112020-03-13 Tom Tromey <tom@tromey.com>
14112
14113 * infcmd.c (default_print_one_register_info): Use
14114 common_val_print.
14115
c2a44efe
TT
141162020-03-13 Tom Tromey <tom@tromey.com>
14117
14118 * valprint.h (common_val_print_checked): Declare.
14119 * valprint.c (common_val_print_checked): New function.
14120 * stack.c (print_frame_arg): Use common_val_print_checked.
14121
b0c26e99
TT
141222020-03-13 Tom Tromey <tom@tromey.com>
14123
14124 * valprint.c (do_val_print): New function, from val_print.
14125 (val_print): Use do_val_print.
14126 (common_val_print): Use do_val_print.
14127
ce3acbe9
TT
141282020-03-13 Tom Tromey <tom@tromey.com>
14129
14130 * valprint.c (value_print): Use scoped_value_mark.
14131
96c7f873
TV
141322020-03-13 Tom de Vries <tdevries@suse.de>
14133
14134 PR symtab/25646
14135 * psymtab.c (partial_symtab::partial_symtab): Don't set
14136 globals_offset and statics_offset. Push element onto
14137 current_global_psymbols and current_static_psymbols stacks.
14138 (concat): New function.
14139 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14140 element from current_global_psymbols and current_static_psymbols
14141 stacks. Concat popped elements to global_psymbols and
14142 static_symbols.
14143 (add_psymbol_to_list): Use current_global_psymbols and
14144 current_static_psymbols stacks.
14145 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14146 current_static_psymbols fields.
14147
6ba0a321
CB
141482020-03-12 Christian Biesinger <cbiesinger@google.com>
14149
14150 * corelow.c (sniff_core_bfd): Remove.
14151 (class core_target) <m_core_vec>: Remove.
14152 (core_target::core_target): Update.
14153 (core_file_fns): Remove.
14154 (deprecated_add_core_fns): Remove.
14155 (default_core_sniffer): Remove.
14156 (sniff_core_bfd): Remove.
14157 (default_check_format): Remove.
14158 (gdb_check_format): Remove.
14159 (core_target_open): Update.
14160 (core_target::get_core_register_section): Update.
14161 (get_core_registers_cb): Update.
14162 (core_target::fetch_registers): Update.
14163 * gdbcore.h (struct core_fns): Remove.
14164 (deprecated_add_core_fns): Remove.
14165 (default_core_sniffer): Remove.
14166 (default_check_format): Remove.
14167
227031b2
TT
141682020-03-12 Tom Tromey <tom@tromey.com>
14169
14170 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14171 CORE_ADDR.
14172 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14173
53807e9f
TT
141742020-03-12 Tom Tromey <tom@tromey.com>
14175
14176 * remote.c (remote_target::download_tracepoint)
14177 (remote_target::enable_tracepoint)
14178 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14179 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14180 sprintf_vma.
14181
64f25102
TT
141822020-03-12 Tom Tromey <tom@tromey.com>
14183
14184 * symfile-mem.c: Update CORE_ADDR size assert.
14185
272cd5a3
SM
141862020-03-12 Simon Marchi <simon.marchi@efficios.com>
14187
14188 * selftest.m4: Move to gdbsupport/.
14189 * acinclude.m4: Update path to selftest.m4.
14190
74cd3f9d
SM
141912020-03-12 Simon Marchi <simon.marchi@efficios.com>
14192
14193 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14194 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14195 gdbarch-selfselftests.c and selftest-arch.c.
14196 (SUBDIR_UNITTESTS_OBS): Rename to...
14197 (SELFTESTS_OBS): ... this.
14198 (COMMON_SFILES): Remove disasm-selftests.c and
14199 gdbarch-selftests.c.
14200 * configure.ac: Don't add selftest-arch.{c,o} to
14201 CONFIG_{SRCS,OBS}.
14202 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14203 preprocessor conditions.
14204
db6878ac
SM
142052020-03-12 Simon Marchi <simon.marchi@efficios.com>
14206
14207 * configure.ac: Don't source bfd/development.sh.
14208 * selftest.m4: Modify comment.
14209 * configure: Re-generate.
14210
4d696a5c
SM
142112020-03-12 Simon Marchi <simon.marchi@efficios.com>
14212
14213 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14214 not "true" or "false".
14215 * configure: Re-generate.
14216
8dd8e1c7
CB
142172020-03-12 Christian Biesinger <cbiesinger@google.com>
14218
14219 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14220 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14221 renamed to arm_nbsd_supply_gregset.
14222 (fetch_register): Update to call arm_nbsd_supply_gregset.
14223 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14224 (arm_netbsd_nat_target::fetch_registers): Update.
14225 (fetch_elfcore_registers): Removed.
14226 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14227 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14228 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14229 not require NetBSD system headers.
14230 (arm_nbsd_regset): New struct.
14231 (arm_nbsd_iterate_over_regset_sections): New function.
14232 (arm_netbsd_init_abi_common): Updated to call
14233 set_gdbarch_iterate_over_regset_sections.
14234 * arm-nbsd-tdep.h: New file.
14235
dd69bf7a
KB
142362020-03-11 Kevin Buettner <kevinb@redhat.com>
14237
14238 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14239 recursion.
14240
a0761e34
SM
142412020-03-11 Simon Marchi <simon.marchi@efficios.com>
14242
14243 * configure: Re-generate.
14244
e7a82140
TT
142452020-03-11 Tom Tromey <tromey@adacore.com>
14246
14247 * ada-typeprint.c (print_choices): Fix comment.
14248
dcc050c8
AB
142492020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14250
14251 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14252 previous item in the list, when the list has no items.
14253
1c33af77
TV
142542020-03-11 Tom de Vries <tdevries@suse.de>
14255
14256 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14257 PROP_LOCLIST handling code.
14258
8c95582d
AB
142592020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14260
14261 * buildsym-legacy.c (record_line): Pass extra parameter to
14262 record_line.
14263 * buildsym.c (buildsym_compunit::record_line): Take an extra
14264 parameter, reduce duplication in the line table, and record the
14265 is_stmt flag in the line table.
14266 * buildsym.h (buildsym_compunit::record_line): Add extra
14267 parameter.
14268 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14269 non-statement lines.
14270 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14271 this to the symtab builder.
14272 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14273 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14274 through to dwarf_record_line_1.
14275 * infrun.c (process_event_stop_test): When stepping, don't stop at
14276 a non-statement instruction, and only refresh the step info when
14277 we land in the middle of a line's range. Also add an extra
14278 comment.
14279 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14280 field.
14281 * record-btrace.c (btrace_find_line_range): Only record lines
14282 marked as is-statement.
14283 * stack.c (frame_show_address): Show the frame address if we are
14284 in a non-statement sal.
14285 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14286 (maintenance_print_one_line_table): Print a header for the is_stmt
14287 column, and include is_stmt information in the output.
14288 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14289 preference to non-statements.
14290 (find_pcs_for_symtab_line): Prefer is-statement entries.
14291 (find_line_common): Likewise.
14292 * symtab.h (struct linetable_entry): Add is_stmt field.
14293 (struct symtab_and_line): Likewise.
14294 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14295 arranging the line table.
14296
e4003a34
TV
142972020-03-07 Tom de Vries <tdevries@suse.de>
14298
14299 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14300 DIE.
14301
e8932576
TT
143022020-03-07 Tom Tromey <tom@tromey.com>
14303
14304 * valops.c (value_literal_complex): Remove obsolete comment.
14305 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14306 comment.
14307
29734269
SM
143082020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14309
14310 * infrun.h: Forward-declare thread_info.
14311 (set_step_info): Add thread_info parameter, add doc.
14312 * infrun.c (set_step_info): Add thread_info parameter, move doc
14313 to header.
14314 * infrun.c (process_event_stop_test): Pass thread to
14315 set_step_info call.
14316 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14317 set_step_info.
14318 (prepare_one_step): Add thread_info parameter, pass it to
14319 set_step_frame and prepare_one_step (recursive) call.
14320 (step_1): Pass thread to prepare_one_step call.
14321 (step_command_fsm::should_stop): Pass thread to
14322 prepare_one_step.
14323 (until_next_fsm): Pass thread to set_step_frame call.
14324 (finish_command): Pass thread to set_step_info call.
14325
b7d64b29
HD
143262020-03-06 Hannes Domani <ssbssa@yahoo.de>
14327
14328 * windows-tdep.c (windows_solib_create_inferior_hook):
14329 Check if inferior is running.
14330
09f2921c
TV
143312020-03-06 Tom de Vries <tdevries@suse.de>
14332
14333 * NEWS: Fix "the the".
14334 * ctfread.c: Same.
14335
fd760e79
TV
143362020-03-06 Tom de Vries <tdevries@suse.de>
14337
14338 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14339
20ea4a60
AB
143402020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14341
14342 * .dir-locals.el: Add a comment referencing the other copies of
14343 this file.
14344
0afbabf0
JB
143452020-03-05 John Baldwin <jhb@FreeBSD.org>
14346
14347 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14348 psargs.
14349
842806cb
TBA
143502020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14351
14352 * .gitattributes: New file.
14353
be1e3d3e
TT
143542020-03-04 Tom Tromey <tom@tromey.com>
14355
14356 * symmisc.c (print_symbol_bcache_statistics)
14357 (print_objfile_statistics): Update.
14358 * symfile.c (allocate_symtab): Use intern.
14359 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14360 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14361 macro_cache>: Remove.
14362 <string_cache>: New member.
14363 (struct objfile) <intern>: New methods.
14364 * elfread.c (elf_symtab_read): Use intern.
14365 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14366 (dwarf2_compute_name, dwarf2_physname)
14367 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14368 names.
14369 (guess_partial_die_structure_name): Update.
14370 (partial_die_info::fixup): Intern name.
14371 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14372 name.
14373 (dwarf2_name): Intern name. Update.
14374 * buildsym.c (buildsym_compunit::get_macro_table): Use
14375 string_cache.
14376
4e7625fd
TT
143772020-03-04 Tom Tromey <tom@tromey.com>
14378
14379 * jit.c (bfd_open_from_target_memory): Make "target" const.
14380 * corefile.c (gnutarget): Now const.
14381 * gdbcore.h (gnutarget): Now const.
14382
46f9f931
HD
143832020-03-04 Hannes Domani <ssbssa@yahoo.de>
14384
14385 * NEWS: Mention support for WOW64 processes.
14386 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14387 (amd64_windows_segment_register_p): Remove static.
14388 (_initialize_amd64_windows_nat): Update.
14389 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14390 * i386-windows-nat.c (context_offset): Update.
14391 (i386_mappings): Rename and remove static.
14392 (i386_windows_segment_register_p): Remove static.
14393 (_initialize_i386_windows_nat): Update.
14394 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14395 (STATUS_WX86_SINGLE_STEP): New macro.
14396 (EnumProcessModulesEx): New macro.
14397 (Wow64SuspendThread): New macro.
14398 (Wow64GetThreadContext): New macro.
14399 (Wow64SetThreadContext): New macro.
14400 (Wow64GetThreadSelectorEntry): New macro.
14401 (windows_set_context_register_offsets): Add static.
14402 (windows_set_segment_register_p): Likewise.
14403 (windows_add_thread): Adapt for WOW64 processes.
14404 (windows_fetch_one_register): Likewise.
14405 (windows_nat_target::fetch_registers): Likewise.
14406 (windows_store_one_register): Likewise.
14407 (display_selector): Likewise.
14408 (display_selectors): Likewise.
14409 (handle_exception): Likewise.
14410 (windows_continue): Likewise.
14411 (windows_nat_target::resume): Likewise.
14412 (windows_add_all_dlls): Likewise.
14413 (do_initial_windows_stuff): Likewise.
14414 (windows_nat_target::attach): Likewise.
14415 (windows_get_exec_module_filename): Likewise.
14416 (windows_nat_target::create_inferior): Likewise.
14417 (windows_xfer_siginfo): Likewise.
14418 (_initialize_loadable): Initialize Wow64SuspendThread,
14419 Wow64GetThreadContext, Wow64SetThreadContext,
14420 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14421 * windows-nat.h (windows_set_context_register_offsets):
14422 Remove declaration.
14423 (windows_set_segment_register_p): Likewise.
14424 (i386_windows_segment_register_p): Add declaration.
14425 (amd64_windows_segment_register_p): Likewise.
14426
440cf44e
LM
144272020-03-04 Luis Machado <luis.machado@linaro.org>
14428
14429 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14430 in "info registers" for AArch64/ARM.
14431
14432 The change caused "info registers" to not print GPR's.
14433
14434 gdb/ChangeLog:
14435
14436 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14437
14438 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14439 when reg->group is empty and reggroup is not.
14440
1009d92f
TT
144412020-03-03 Tom Tromey <tromey@adacore.com>
14442
14443 * dwarf2/frame.c (struct dwarf2_frame_cache)
14444 <checked_tailcall_bottom, entry_cfa_sp_offset,
14445 entry_cfa_sp_offset_p>: Remove members.
14446 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14447 (dwarf2_frame_prev_register): Don't call
14448 dwarf2_tailcall_sniffer_first.
14449 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14450 * frame-unwind.c (add_unwinder): New fuction.
14451 (frame_unwind_init): Use it. Add tailcall unwinder.
14452
5e5d66b6
AB
144532020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14454 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14455
14456 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14457 value should be printed as true.
14458
584cf46d
HD
144592020-03-03 Hannes Domani <ssbssa@yahoo.de>
14460
14461 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14462 (windows_init_abi): Set and use windows_so_ops.
14463
7b973adc
SDJ
144642020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14465
14466 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14467 when verifying if dealing with a convenience variable.
14468
bb7b70ab
LM
144692020-03-03 Luis Machado <luis.machado@linaro.org>
14470
14471 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14472
9822cb57
SM
144732020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14474
14475 * infrun.c (gdbarch_supports_displaced_stepping): New.
14476 (use_displaced_stepping): Break up conditions in smaller pieces.
14477 Use gdbarch_supports_displaced_stepping.
14478 (displaced_step_prepare_throw): Use
14479 gdbarch_supports_displaced_stepping.
14480
63e163f2
AB
144812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14482
14483 * NEWS: Mention new behaviour of the history filename.
14484 * top.c (write_history_p): Add comment.
14485 (show_write_history_p): Add header comment, give a different
14486 message when history writing is on, but the history filename is
14487 empty.
14488 (history_filename): Add comment.
14489 (history_filename_empty): New function.
14490 (show_history_filename): Add header comment, give a different
14491 message when the filename is empty.
14492 (init_history): Compare history_filename against nullptr, and only
14493 read history if the filename is not empty.
14494 (set_history_filename): Add header comment, and only make
14495 non-empty filenames absolute.
14496 (init_main): Make the filename argument to 'set history filename'
14497 optional.
14498
81b86b97
CB
144992020-03-02 Christian Biesinger <cbiesinger@google.com>
14500
14501 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14502 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14503 (fetch_fp_register): Update.
14504 (fetch_fp_regs): Update.
14505 (store_fp_register): Update.
14506 (store_fp_regs): Update.
14507 (arm_netbsd_nat_target::read_description): New function.
14508 (fetch_elfcore_registers): Update.
14509
24ed6739
AB
145102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14511
14512 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14513 general_thread if the stop reply is missing a thread-id.
14514 (remote_target::process_stop_reply): Use the first non-exited
14515 thread if the target didn't pass a thread-id.
14516 * infrun.c (do_target_wait): Move call to
14517 switch_to_inferior_no_thread to ....
14518 (do_target_wait_1): ... here.
14519
a84bb2a0
JT
145202020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14521
14522 * debuginfod-support.c: Include defs.h first.
14523
658dadf0
TV
145242020-02-28 Tom de Vries <tdevries@suse.de>
14525
14526 * symfile.c (set_initial_language): Use default language for lookup.
14527
4ebe4877
SM
145282020-02-28 Simon Marchi <simon.marchi@efficios.com>
14529
14530 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14531 reader variable, pass `this` to read_cutu_die_from_dwo.
14532
e5da1139
AM
145332020-02-27 Aaron Merey <amerey@redhat.com>
14534
14535 * source.c (open_source_file): Check for nullptr when computing
14536 srcpath.
14537
317f7127
TT
145382020-02-27 Tom Tromey <tromey@adacore.com>
14539
14540 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14541 member.
14542 (dwarf2_add_field): Don't update nfields.
14543 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14544
3104d9ee
AB
145452020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14546
14547 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14548 abs.
14549
b83470bf
TT
145502020-02-26 Tom Tromey <tom@tromey.com>
14551
14552 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14553 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14554 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14555 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14556 per_cu_data.
14557
edfe0a0c
TT
145582020-02-26 Tom Tromey <tom@tromey.com>
14559
14560 * dwarf2/index-write.c (psym_index_map): Change type.
14561 (add_address_entry_worker, write_one_signatured_type)
14562 (recursively_count_psymbols, recursively_write_psymbols)
14563 (class debug_names, psyms_seen_size, write_gdbindex)
14564 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14565
0d79cdc4
AM
145662020-02-26 Aaron Merey <amerey@redhat.com>
14567
14568 * Makefile.in: Handle optional debuginfod support.
14569 * NEWS: Update.
14570 * README: Add --with-debuginfod summary.
14571 * config.in: Regenerate.
14572 * configure: Regenerate.
14573 * configure.ac: Handle optional debuginfod support.
14574 * debuginfod-support.c: debuginfod helper functions.
14575 * debuginfod-support.h: Ditto.
14576 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14577 summary.
14578 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14579 when a dwz file cannot be found.
14580 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14581 debuginfo file cannot be found.
14582 * source.c (open_source_file): Query debuginfod servers when a
14583 source file cannot be found.
14584 * top.c (print_gdb_configuration): Include
14585 --{with,without}-debuginfod in the output.
14586
b65ce565
JG
145872020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14588
14589 * thread.c (thr_try_catch_cmd): Print thread name.
14590
d4c9a4f8
SM
145912020-02-26 Simon Marchi <simon.marchi@efficios.com>
14592
14593 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14594 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14595 dwarf2_fetch_die_type_sect_off): Move to...
14596 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14597 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14598 dwarf2_fetch_die_type_sect_off): ... here.
14599 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14600 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14601 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14602
0dce4280
TV
146032020-02-26 Tom de Vries <tdevries@suse.de>
14604
14605 PR gdb/25603
14606 * symfile.c (set_initial_language): Exit-early if
14607 language_mode == language_mode_manual.
14608
450a1bfc
SM
146092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14610
14611 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14612 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14613 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14614
9e80cfa1
AB
146152020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14616
14617 * gdbtypes.c (create_array_type_with_stride): Handle negative
14618 array strides.
14619 * valarith.c (value_subscripted_rvalue): Likewise.
14620
09624f1f
LM
146212020-02-25 Luis Machado <luis.machado@linaro.org>
14622
14623 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14624
8cb5117c
SM
146252020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14626
14627 * loc.h (dwarf2_get_die_type): Move to...
14628 * read.h (dwarf2_get_die_type): ... here.
14629 * read.c (dwarf2_get_die_type): Move doc to header.
14630
c325c44e
JB
146312020-02-25 Joel Brobecker <brobecker@adacore.com>
14632
14633 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14634 'gnulib/Makefile.in' to the list.
14635
4ac93832
TT
146362020-02-24 Tom Tromey <tom@tromey.com>
14637
14638 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14639 Remove.
14640 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14641 XOBNEWVEC.
14642
197400e8
TT
146432020-02-24 Tom Tromey <tom@tromey.com>
14644
14645 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14646 New method.
14647 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14648 (dw2_do_instantiate_symtab, dw2_get_file_names)
14649 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14650
76935768
TT
146512020-02-24 Tom Tromey <tom@tromey.com>
14652
14653 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14654 make_scoped_restore.
14655 (dwarf2_psymtab::read_symtab): Don't clear
14656 reading_partial_symbols.
14657
a88ef40d
TV
146582020-02-24 Tom de Vries <tdevries@suse.de>
14659
14660 PR gdb/25592
14661 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14662
c9af6521
TV
146632020-02-24 Tom de Vries <tdevries@suse.de>
14664
14665 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14666 commands layout next/prev/regs.
14667
5707a07a
TT
146682020-02-22 Tom Tromey <tom@tromey.com>
14669
14670 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14671 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14672
3b0fb49e
TT
146732020-02-22 Tom Tromey <tom@tromey.com>
14674
14675 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14676
283be8bf
TT
146772020-02-22 Tom Tromey <tom@tromey.com>
14678
14679 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14680 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14681 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14682 * tui/tui.c (_initialize_tui): Add usage text.
14683
ca793b96
TT
146842020-02-22 Tom Tromey <tom@tromey.com>
14685
14686 * tui/tui-win.c (tui_set_focus_command)
14687 (tui_set_win_height_command): Use error_no_arg.
14688 (_initialize_tui_win): Update help text.
14689 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14690
432b5c40
TT
146912020-02-22 Tom Tromey <tom@tromey.com>
14692
14693 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14694 * tui/tui-disasm.h (struct tui_disasm_window)
14695 <display_start_addr>: Declare.
14696 * tui/tui-source.h (struct tui_source_window)
14697 <display_start_addr>: Declare.
14698 * tui/tui-winsource.h (struct tui_source_window_base)
14699 <show_source_line, display_start_addr>: New methods.
14700 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14701 Rename and move to protected section.
14702 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14703 (tui_source_window_base::do_erase_source_content): Update.
14704 (tui_source_window_base::show_source_line): Now a method.
14705 (tui_source_window_base::show_source_content)
14706 (tui_source_window_base::tui_source_window_base)
14707 (tui_source_window_base::rerender)
14708 (tui_source_window_base::refill)
14709 (tui_source_window_base::do_scroll_horizontal)
14710 (tui_source_window_base::set_is_exec_point_at)
14711 (tui_source_window_base::update_breakpoint_info)
14712 (tui_source_window_base::update_exec_info): Update.
14713 * tui/tui-source.c (tui_source_window::set_contents)
14714 (tui_source_window::showing_source_p)
14715 (tui_source_window::do_scroll_vertical)
14716 (tui_source_window::location_matches_p)
14717 (tui_source_window::line_is_displayed): Update.
14718 (tui_source_window::display_start_addr): New method.
14719 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14720 (tui_disasm_window::do_scroll_vertical)
14721 (tui_disasm_window::location_matches_p): Update.
14722 (tui_disasm_window::display_start_addr): New method.
14723
01b1af32
TT
147242020-02-22 Tom Tromey <tom@tromey.com>
14725
14726 * NEWS: Add entry for gdb.register_window_type.
14727 * tui/tui-layout.h (window_factory): New typedef.
14728 (tui_register_window): Declare.
14729 * tui/tui-layout.c (saved_tui_windows): New global.
14730 (tui_apply_current_layout): Use it.
14731 (tui_register_window): New function.
14732 * python/python.c (do_start_initialization): Call
14733 gdbpy_initialize_tui.
14734 (python_GdbMethods): Add "register_window_type" function.
14735 * python/python-internal.h (gdbpy_register_tui_window)
14736 (gdbpy_initialize_tui): Declare.
14737 * python/py-tui.c: New file.
14738 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14739
fc96d20b
TT
147402020-02-22 Tom Tromey <tom@tromey.com>
14741
14742 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14743
935c78c0
TT
147442020-02-22 Tom Tromey <tom@tromey.com>
14745
14746 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14747 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14748 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14749 (tui_set_win_focus_to): Move from tui-win.c.
14750
0240c8f1
TT
147512020-02-22 Tom Tromey <tom@tromey.com>
14752
14753 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14754 functions.
14755 (known_window_types): New global.
14756 (tui_get_window_by_name): Reimplement.
14757 (initialize_known_windows): New function.
14758 (validate_window_name): Rewrite.
14759 (_initialize_tui_layout): Call initialize_known_windows.
14760
fdb01f0c
TT
147612020-02-22 Tom Tromey <tom@tromey.com>
14762
14763 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14764 Remove constants.
14765 * tui/tui-winsource.h (struct tui_source_window_base)
14766 <tui_source_window_base>: Remove parameter.
14767 * tui/tui-winsource.c
14768 (tui_source_window_base::tui_source_window_base): Remove
14769 parameter.
14770 (tui_source_window_base::refill): Update.
14771 * tui/tui-stack.h (struct tui_locator_window)
14772 <tui_locator_window>: Update.
14773 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14774 Default the constructor.
14775 * tui/tui-regs.h (struct tui_data_item_window)
14776 <tui_data_item_window>: Default the constructor.
14777 (struct tui_data_window) <tui_data_window>: Likewise.
14778 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14779 Default the constructor.
14780 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14781 Default the constructor.
14782 <type>: Remove.
14783 (struct tui_win_info) <tui_win_info>: Default the constructor.
14784 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14785 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14786 Default the constructor.
14787
865a5aec
TT
147882020-02-22 Tom Tromey <tom@tromey.com>
14789
14790 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14791 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14792 * tui/tui-win.c (tui_resize_all): Don't call
14793 tui_delete_invisible_windows.
14794 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14795 done.
14796 (tui_set_layout): Update.
14797 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14798 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14799 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14800
e098d18c
TT
148012020-02-22 Tom Tromey <tom@tromey.com>
14802
14803 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14804 correctly.
14805
eb9c8874
TT
148062020-02-22 Tom Tromey <tom@tromey.com>
14807
14808 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14809
7eed1a8e
TT
148102020-02-22 Tom Tromey <tom@tromey.com>
14811
14812 * tui/tui-winsource.h (struct tui_source_window_iterator)
14813 <inner_iterator>: New etytypedef.
14814 <tui_source_window_iterator>: Take "end" parameter.
14815 <tui_source_window_iterator>: Take iterator.
14816 <operator*, advance>: Update.
14817 <m_iter>: Change type.
14818 <m_end>: New field.
14819 (struct tui_source_windows) <begin, end>: Update.
14820 * tui/tui-layout.c (tui_windows): New global.
14821 (tui_apply_current_layout): Clear tui_windows.
14822 (tui_layout_window::apply): Update tui_windows.
14823 * tui/tui-data.h (tui_windows): Declare.
14824 (all_tui_windows): Now inline function.
14825 (class tui_window_iterator, struct all_tui_windows): Remove.
14826
7c043ba6
TT
148272020-02-22 Tom Tromey <tom@tromey.com>
14828
14829 PR tui/17850:
14830 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14831 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14832 "height" argument.
14833 (class tui_layout_window) <get_sizes>: Likewise.
14834 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14835 argument.
14836 <get_sizes>: Add "height" argument.
14837 <m_vertical>: New field.
14838 * tui/tui-layout.c (tui_layout_split::clone): Update.
14839 (tui_layout_split::get_sizes): Add "height" argument.
14840 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14841 (tui_new_layout_command): Parse "-horizontal".
14842 (_initialize_tui_layout): Update help string.
14843 (tui_layout_split::specification): Add "-horizontal" when needed.
14844 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14845 argument.
14846 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14847 New methods.
14848
6bc56648
TT
148492020-02-22 Tom Tromey <tom@tromey.com>
14850
14851 * tui/tui-layout.h (enum tui_adjust_result): New.
14852 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14853 (class tui_layout_window) <adjust_size>: Return
14854 tui_adjust_result. Rewrite.
14855 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14856 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14857
c22fef7e
TT
148582020-02-22 Tom Tromey <tom@tromey.com>
14859
14860 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14861 parameter and return types.
14862 (class tui_layout_base) <specification>: Add "depth".
14863 (class tui_layout_window) <specification>: Add "depth".
14864 (class tui_layout_split) <specification>: Add "depth".
14865 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14866 and return types.
14867 (tui_new_layout_command): Parse sub-layouts.
14868 (_initialize_tui_layout): Update help string.
14869 (tui_layout_window::specification): Add "depth".
14870 (add_layout_command): Update.
14871
ee325b61
TT
148722020-02-22 Tom Tromey <tom@tromey.com>
14873
14874 * NEWS: Add "tui new-layout" item.
14875 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14876 Add new-layout command to help text.
14877 (validate_window_name): New function.
14878 (tui_new_layout_command): New function.
14879 (_initialize_tui_layout): Register "new-layout".
14880 (tui_layout_window::specification): New method.
14881 (tui_layout_window::specification): New method.
14882 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14883 method.
14884 (class tui_layout_window) <specification>: New method.
14885 (class tui_layout_split) <specification>: New method.
14886
416eb92d
TT
148872020-02-22 Tom Tromey <tom@tromey.com>
14888
14889 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14890 * tui/tui-win.c (window_name_completer): Update comment.
14891 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14892 Declare method.
14893 (class tui_layout_window) <replace_window>: Likewise.
14894 (class tui_layout_split) <replace_window>: Likewise.
14895 (tui_set_layout): Don't declare.
14896 (tui_set_initial_layout): Declare function.
14897 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14898 (asm_regs_layout): New globals.
14899 (tui_current_layout, show_layout): Remove.
14900 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14901 (find_layout, tui_apply_layout): New function.
14902 (layout_completer): Remove.
14903 (tui_next_layout): Reimplement.
14904 (tui_next_layout_command): New function.
14905 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14906 (tui_regs_layout): Reimplement.
14907 (tui_regs_layout_command): New function.
14908 (extract_display_start_addr): Rewrite.
14909 (next_layout, prev_layout): Remove.
14910 (tui_layout_window::replace_window): New method.
14911 (tui_layout_split::replace_window): New method.
14912 (destroy_layout): New function.
14913 (layout_list): New global.
14914 (add_layout_command): New function.
14915 (initialize_layouts): Update.
14916 (tui_layout_command): New function.
14917 (_initialize_tui_layout): Install "layout" commands.
14918 * tui/tui-data.h (enum tui_layout_type): Remove.
14919 (tui_current_layout): Don't declare.
14920
0dbc2fc7
TT
149212020-02-22 Tom Tromey <tom@tromey.com>
14922
14923 * tui/tui-regs.c (tui_reg_layout): Remove.
14924 (tui_reg_command): Use tui_regs_layout.
14925 * tui/tui-layout.h (tui_reg_command): Declare.
14926 * tui/tui-layout.c (tui_reg_command): New function.
14927
5afe342e
TT
149282020-02-22 Tom Tromey <tom@tromey.com>
14929
14930 * tui/tui.c (tui_rl_delete_other_windows): Call
14931 tui_remove_some_windows.
14932 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14933 Declare method.
14934 (class tui_layout_window) <remove_windows>: New method.
14935 (class tui_layout_split) <remove_windows>: Declare.
14936 (tui_remove_some_windows): Declare.
14937 * tui/tui-layout.c (tui_remove_some_windows): New function.
14938 (tui_layout_split::remove_windows): New method.
14939
427326a8
TT
149402020-02-22 Tom Tromey <tom@tromey.com>
14941
14942 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14943 * tui/tui-layout.h (tui_next_layout): Declare.
14944 * tui/tui-layout.c (tui_next_layout): New function.
14945
3fe12b6d
TT
149462020-02-22 Tom Tromey <tom@tromey.com>
14947
14948 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14949 correct coordinates.
14950
59b8b5d2
TT
149512020-02-22 Tom Tromey <tom@tromey.com>
14952
14953 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14954 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14955 DATA_WIN case.
14956
2a3d458b
TT
149572020-02-22 Tom Tromey <tom@tromey.com>
14958
14959 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14960 TUI_DISASM_WIN, not tui_win_list.
14961
3f0cbb04
TT
149622020-02-22 Tom Tromey <tom@tromey.com>
14963
14964 * valprint.c (generic_val_print_enum_1)
14965 (val_print_type_code_flags): Style member names.
14966 * rust-lang.c (val_print_struct, rust_print_enum)
14967 (rust_print_struct_def, rust_internal_print_type): Style member
14968 names.
14969 * p-valprint.c (pascal_object_print_value_fields): Style member
14970 names. Only call fprintf_symbol_filtered for static members.
14971 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14972 * f-valprint.c (f_val_print): Style member names.
14973 * f-typeprint.c (f_type_print_base): Style member names.
14974 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14975 call fprintf_symbol_filtered for static members.
14976 (cp_print_class_member): Style member names.
14977 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14978 member names.
14979 * ada-valprint.c (ada_print_scalar): Style enum names.
14980 (ada_val_print_enum): Likewise.
14981 * ada-typeprint.c (print_enum_type): Style enum names.
14982
d4d947ae
TT
149832020-02-21 Tom Tromey <tom@tromey.com>
14984
14985 * psympriv.h (struct partial_symtab): Update comment.
14986
e94e944b
TT
149872020-02-21 Tom Tromey <tromey@adacore.com>
14988
14989 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14990 type is CORE_ADDR.
14991
1eb73179
TV
149922020-02-21 Tom de Vries <tdevries@suse.de>
14993
14994 PR gdb/25534
14995 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14996 if dependencies[i]->user != NULL.
14997
4f180d53
AT
149982020-02-21 Ali Tamur <tamur@google.com>
14999
15000 * dwarf2/read.c (dwarf2_name): Add null check.
15001
22b6cd70
TT
150022020-02-20 Tom Tromey <tom@tromey.com>
15003
15004 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15005 ">=", in binary search.
15006 (dwarf2_find_containing_comp_unit): New overload.
15007 (run_test): New self-test.
15008 (_initialize_dwarf2_read): Register new test.
15009
bd0cf5a6
NC
150102020-02-20 Nelson Chu <nelson.chu@sifive.com>
15011
15012 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15013 * riscv-tdep.h: Likewise.
15014 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15015 rv32-only CSR.
15016 * features/riscv/64bit-csr.xml: Regenerated.
15017
3f702acd
SDJ
150182020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15019 Tom Tromey <tom@tromey.com>
15020
15021 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15022 of 'fputc_unfiltered'.
15023 (putchar_unfiltered): Call 'fputc_unfiltered'.
15024 (fputc_unfiltered): Call 'fputs_unfiltered'.
15025
d13c7322
AB
150262020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15027
15028 * config.in: Regenerate.
15029 * configure: Regenerate.
15030 * configure.ac: Add --with-python-libdir option.
15031 * main.c: Use WITH_PYTHON_LIBDIR.
15032
869d8950
TT
150332020-02-19 Tom Tromey <tom@tromey.com>
15034
15035 * symtab.c (general_symbol_info::compute_and_set_names): Use
15036 obstack_strndup. Simplify call to symbol_set_demangled_name.
15037
298e9637
SM
150382020-02-19 Simon Marchi <simon.marchi@efficios.com>
15039
15040 * dwarf2/read.c (allocate_signatured_type_table,
15041 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15042 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15043 Remove objfile parameter, update all callers.
15044
08410482
DE
150452020-02-19 Doug Evans <dje@google.com>
15046
15047 PR rust/25535
15048 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15049 rust_enum_variant calculation.
15050
dfdeeca1
TT
150512020-02-19 Tom Tromey <tromey@adacore.com>
15052
15053 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15054
2ef5453b
TT
150552020-02-19 Tom Tromey <tromey@adacore.com>
15056
15057 * ada-lang.c (cache_symbol): Use obstack_strdup.
15058
9f1528a1
AB
150592020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15060
15061 * configure: Regenerate.
15062
d3c22fa8
TT
150632020-02-19 Tom Tromey <tromey@adacore.com>
15064
15065 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15066 NULL check.
15067
bf84f706
MR
150682020-02-19 Maciej W. Rozycki <macro@wdc.com>
15069
15070 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15071
d1c9b20f
AB
150722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15073
15074 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15075 if GDBSERVER is not defined.
15076 (riscv_tdesc_cache): Likewise, also store const target_desc.
15077 (STATIC_IN_GDB): Define.
15078 (riscv_create_target_description): Update declaration with
15079 STATIC_IN_GDB.
15080 (riscv_lookup_target_description): New function, only define if
15081 GDBSERVER is not defined.
15082 * arch/riscv.h (riscv_create_target_description): Declare only
15083 when GDBSERVER is defined.
15084 (riscv_lookup_target_description): New declaration when GDBSERVER
15085 is not defined.
15086 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15087 (riscv_linux_read_features): ...this, and return
15088 riscv_gdbarch_features instead of target_desc.
15089 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15090 (riscv_linux_read_description): Rename to...
15091 (riscv_linux_read_features): ...this.
15092 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15093 Update to use riscv_gdbarch_features and
15094 riscv_lookup_target_description.
15095 * riscv-tdep.c (riscv_find_default_target_description): Use
15096 riscv_lookup_target_description instead of
15097 riscv_create_target_description.
15098
373d7ac0
SM
150992020-02-18 Simon Marchi <simon.marchi@efficios.com>
15100
15101 * valprint.c (generic_val_print_enum_1): When printing a flag
15102 enum with value 0 and there is no enumerator with value 0, print
15103 just "0" instead of "(unknown: 0x0)".
15104
b29a2df0
SM
151052020-02-18 Simon Marchi <simon.marchi@efficios.com>
15106
15107 * valprint.c (generic_val_print_enum_1): Print unknown part of
15108 flag enum in hex.
15109
6740f0cc
SM
151102020-02-18 Simon Marchi <simon.marchi@efficios.com>
15111
15112 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15113 flag enums to contain duplicate enumerators.
15114 * valprint.c (generic_val_print_enum_1): Update comment.
15115
edd45eb0
SM
151162020-02-18 Simon Marchi <simon.marchi@efficios.com>
15117
15118 * dwarf2/read.c: Include "count-one-bits.h".
15119 (update_enumeration_type_from_children): If an enumerator has
15120 multiple bits set, don't treat the enumeration as a "flag enum".
15121 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15122 of flag enums have 0 or 1 bit set.
15123
6d0cf446
BE
151242020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15125
15126 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15127 conversion.
15128 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15129 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15130 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15131 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15132 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15133
7001c1b7
SM
151342020-02-18 Simon Marchi <simon.marchi@efficios.com>
15135
15136 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15137
fdb61c6c
SM
151382020-02-14 Simon Marchi <simon.marchi@efficios.com>
15139
15140 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15141 displaced_step_closure_up.
15142 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15143 (struct displaced_step_closure_up):
15144 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15145 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15146 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15147 Likewise.
15148 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15149 * gdbarch.c, gdbarch.h: Re-generate.
15150 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15151 displaced_step_closure_up.
15152 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15153 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15154 * infrun.h (displaced_step_closure_up): New type alias.
15155 (struct displaced_step_inferior_state) <step_closure>: Change
15156 type to displaced_step_closure_up.
15157 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15158 displaced_step_closure_up.
15159 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15160
a4a38eb4
TT
151612020-02-14 Tom Tromey <tom@tromey.com>
15162
15163 * minidebug.c (gnu_debug_key): New global.
15164 (find_separate_debug_file_in_section): Use it.
15165
e8217e61
SM
151662020-02-14 Simon Marchi <simon.marchi@efficios.com>
15167
15168 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15169 std::unique_ptr.
15170 * gdbarch.c: Re-generate.
15171 * gdbarch.h: Re-generate.
15172 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15173 change.
15174 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15175 type to std::unique_ptr.
15176 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15177 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15178 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15179 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15180 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15181 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15182 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15183 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15184 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15185
d8d83535
SM
151862020-02-14 Simon Marchi <simon.marchi@efficios.com>
15187
15188 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15189 std::unique_ptr.
15190 (displaced_step_clear): Rename to...
15191 (displaced_step_reset): ... this. Just call displaced->reset ().
15192 (displaced_step_clear_cleanup): Rename to...
15193 (displaced_step_reset_cleanup): ... this.
15194 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15195 (displaced_step_fixup): Likewise.
15196 (resume_1): Likewise.
15197 (handle_inferior_event): Restore child's memory before calling
15198 displaced_step_fixup on the parent.
15199 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15200 to std::unique_ptr.
15201 <step_closure>: Change type to std::unique_ptr.
15202
5f661e03
SM
152032020-02-14 Simon Marchi <simon.marchi@efficios.com>
15204
15205 * arm-tdep.c: Include count-one-bits.h.
15206 (cleanup_block_store_pc): Use count_one_bits.
15207 (cleanup_block_load_pc): Use count_one_bits.
15208 (arm_copy_block_xfer): Use count_one_bits.
15209 (thumb2_copy_block_xfer): Use count_one_bits.
15210 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15211 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15212 (thumb_get_next_pcs_raw): Use count_one_bits.
15213 (arm_get_next_pcs_raw): Use count_one_bits_l.
15214 * arch/arm.c (bitcount): Remove.
15215 * arch/arm.h (bitcount): Remove.
15216
8084e579
TT
152172020-02-14 Tom Tromey <tromey@adacore.com>
15218
15219 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15220 Update.
15221 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15222 * dwarf2/loc.c (call_site_find_chain_1): Return
15223 unique_xmalloc_ptr.
15224 (call_site_find_chain): Likewise.
15225
258bf0ee
RB
152262020-02-14 Richard Biener <rguenther@suse.de>
15227
15228 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15229 on expression with division operators.
15230
f98a8458
AKS
152312020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15232
15233 * MAINTAINERS (Write After Approval): Adding myself.
15234
d1437c0e
TT
152352020-02-12 Tom Tromey <tom@tromey.com>
15236
15237 * event-loop.c (event_data, gdb_event, event_handler_func):
15238 Remove.
15239
3d4560f7
TT
152402020-02-12 Tom Tromey <tom@tromey.com>
15241
15242 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15243 (dwarf2_frame_objfile_data): Add comment.
15244 (find_comp_unit, set_comp_unit): New functions.
15245 (dwarf2_frame_find_fde): Use find_comp_unit.
15246 (dwarf2_build_frame_info): Use set_comp_unit.
15247
21982304
TT
152482020-02-12 Tom Tromey <tom@tromey.com>
15249
15250 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15251 (comp_unit): Don't initialize objfile.
15252 (execute_cfa_program): Add text_offset parameter.
15253 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15254 (dwarf2_frame_cache): Update.
15255 (dwarf2_build_frame_info): Don't set "objfile" member.
15256
4debb237
TT
152572020-02-12 Tom Tromey <tom@tromey.com>
15258
15259 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15260 (decode_frame_entry): Likewise.
15261 (dwarf2_build_frame_info): Update.
15262
0d404d44
TT
152632020-02-12 Tom Tromey <tom@tromey.com>
15264
15265 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15266 (decode_frame_entry_1): Use the comp_unit obstack.
15267
a7a3ae5c
TT
152682020-02-12 Tom Tromey <tom@tromey.com>
15269
15270 * dwarf2/frame.c (struct comp_unit): Add initializers and
15271 constructor.
15272 (dwarf2_frame_objfile_data): Store a comp_unit.
15273 (dwarf2_frame_find_fde): Update.
15274 (dwarf2_build_frame_info): Use "new".
15275
a9d65418
TT
152762020-02-12 Tom Tromey <tom@tromey.com>
15277
15278 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15279 (dwarf2_fde_table): Typedef for std::vector.
15280 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15281 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15282 (decode_frame_entry): Update.
15283 (dwarf2_build_frame_info): Use "new".
15284
7559c217
CB
152852020-02-12 Christian Biesinger <cbiesinger@google.com>
15286
15287 * arm-tdep.c (arm_gdbarch_init): Update.
15288 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15289 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15290 have_neon, is_m>: Change to bool.
15291
aeefc73c
CB
152922020-02-12 Christian Biesinger <cbiesinger@google.com>
15293
15294 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15295
d27b8e5f
TT
152962020-02-12 Tom Tromey <tom@tromey.com>
15297
15298 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15299
cd5900f3
HD
153002020-02-12 Hannes Domani <ssbssa@yahoo.de>
15301
15302 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15303 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15304
f056b22b
TT
153052020-02-11 Tom Tromey <tom@tromey.com>
15306
15307 * psymtab.h: Update comment.
15308
f92ff6b5
TT
153092020-02-11 Tom Tromey <tom@tromey.com>
15310
15311 * gdb_obstack.h (struct auto_obstack): Use
15312 DISABLE_COPY_AND_ASSIGN.
15313
3fd6912b
TT
153142020-02-11 Tom Tromey <tom@tromey.com>
15315
15316 * dwarf2/frame.h (struct objfile): Don't forward declare.
15317
69ed9b74
CB
153182020-02-11 Christian Biesinger <cbiesinger@google.com>
15319
15320 * cris-tdep.c (cris_supply_gregset): Change signature to match
15321 what struct regset expects.
15322 (cris_regset): New struct.
15323 (fetch_core_registers): Remove.
15324 (cris_iterate_over_regset_sections): New function.
15325 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15326 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15327
bda874f6
CB
153282020-02-11 Christian Biesinger <cbiesinger@google.com>
15329
15330 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15331 registers.
15332
754e1564
CB
153332020-02-11 Christian Biesinger <cbiesinger@google.com>
15334
15335 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15336
8ddd8e0e
SM
153372020-02-11 Simon Marchi <simon.marchi@efficios.com>
15338
15339 * configure: Re-generate.
15340
898e7f60
SM
153412020-02-11 Simon Marchi <simon.marchi@efficios.com>
15342
15343 * configure: Re-generate.
15344
58df732b
SM
153452020-02-11 Simon Marchi <simon.marchi@efficios.com>
15346
15347 * acinclude: Update warning.m4 path.
15348 * warning.m4: Move to gdbsupport.
15349
da5bd37e
TT
153502020-02-11 Tom Tromey <tromey@adacore.com>
15351
15352 * remote.c (remote_console_output): Update.
15353 * printcmd.c (printf_command): Update.
15354 * event-loop.c (gdb_wait_for_event): Update.
15355 * linux-nat.c (sigchld_handler): Update.
15356 * remote-sim.c (gdb_os_write_stdout): Update.
15357 (gdb_os_flush_stdout): Update.
15358 (gdb_os_flush_stderr): Update.
15359 (gdb_os_write_stderr): Update.
15360 * exceptions.c (print_exception): Update.
15361 * remote-fileio.c (remote_fileio_func_read): Update.
15362 (remote_fileio_func_write): Update.
15363 * tui/tui.c (tui_enable): Update.
15364 * tui/tui-interp.c (tui_interp::init): Update.
15365 * utils.c (init_page_info): Update.
15366 (putchar_unfiltered, fputc_unfiltered): Update.
15367 (gdb_flush): Update.
15368 (emit_style_escape): Update.
15369 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15370 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15371 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15372 (stderr_file::write): Update.
15373 (stderr_file::puts): Update.
15374 * ui-file.h (ui_file_isatty, ui_file_write)
15375 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15376 (ui_file_puts): Don't declare.
15377
85f0dd3c
TV
153782020-02-10 Tom de Vries <tdevries@suse.de>
15379
15380 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15381 sentinel to char *.
15382
2e927613
TV
153832020-02-09 Tom de Vries <tdevries@suse.de>
15384
15385 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15386 filename if it matches "<artificial>".
15387
6bafc845
HD
153882020-02-09 Hannes Domani <ssbssa@yahoo.de>
15389
15390 * windows-tdep.c (struct enum_value_name): New struct.
15391 (create_enum): New function.
15392 (windows_get_siginfo_type): Create and use enum types.
15393
7928d571
HD
153942020-02-09 Hannes Domani <ssbssa@yahoo.de>
15395
15396 * NEWS: Mention $_siginfo support for Windows.
15397 * windows-nat.c (handle_exception): Set siginfo_er.
15398 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15399 (windows_xfer_siginfo): New function.
15400 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15401 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15402 (init_windows_gdbarch_data): New function.
15403 (get_windows_gdbarch_data): New function.
15404 (windows_get_siginfo_type): New function.
15405 (windows_init_abi): Register windows_get_siginfo_type.
15406 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15407
6751ebae
TT
154082020-02-08 Tom Tromey <tom@tromey.com>
15409
15410 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15411 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15412 <keep>: Declare method.
15413 <m_keep>: Remove member.
15414 <~cutu_reader>: Remove.
15415 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15416 (cutu_reader::cutu_reader): Update.
15417 (cutu_reader::keep): Rename from ~cutu_reader.
15418 (process_psymtab_comp_unit, build_type_psymtabs_1)
15419 (process_skeletonless_type_unit, load_partial_comp_unit)
15420 (load_full_comp_unit, dwarf2_read_addr_index)
15421 (read_signatured_type): Update.
15422
135f5437
TT
154232020-02-08 Tom Tromey <tom@tromey.com>
15424
15425 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15426 "want_partial_unit" parameter.
15427 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15428 Inline check for DW_TAG_partial_unit.
15429 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15430
9f66ff1c
TT
154312020-02-08 Tom Tromey <tom@tromey.com>
15432
15433 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15434 read.c.
15435 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15436 read.c.
15437
c8a7a66f
TT
154382020-02-08 Tom Tromey <tom@tromey.com>
15439
15440 * dwarf2/read.c (read_address): Move to comp-unit.c.
15441 (dwarf2_rnglists_process, dwarf2_ranges_process)
15442 (read_attribute_value, dwarf_decode_lines_1)
15443 (var_decode_location, decode_locdesc): Update.
15444 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15445 read.c. Remove "cu" parameter.
15446 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15447 method.
15448
8266302d
TT
154492020-02-08 Tom Tromey <tom@tromey.com>
15450
15451 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15452 (read_indirect_line_string): Update.
15453 * dwarf2/comp-unit.c (read_offset): Remove.
15454 (read_comp_unit_head): Update.
15455 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15456 method.
15457 (read_offset): Don't declare.
15458
4057dfde
TT
154592020-02-08 Tom Tromey <tom@tromey.com>
15460
15461 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15462 * dwarf2/read.c (struct comp_unit_head): Move to
15463 dwarf2/comp-unit.h.
15464 (enum class rcuh_kind): Move to comp-unit.h.
15465 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15466 (read_comp_unit_head, error_check_comp_unit_head)
15467 (read_and_check_comp_unit_head): Move to comp-unit.c.
15468 (read_offset, dwarf_unit_type_name): Likewise.
15469 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15470 (cutu_reader::cutu_reader, read_call_site_scope)
15471 (find_partial_die, follow_die_offset): Update.
15472 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15473
24aa364d
TT
154742020-02-08 Tom Tromey <tom@tromey.com>
15475
15476 * dwarf2/read.c (read_offset_1): Move to leb.c.
15477 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15478 (dwarf_decode_macro_bytes): Update.
15479 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15480 * dwarf2/leb.h (read_offset): Declare.
15481
2c7d5afc
TT
154822020-02-08 Tom Tromey <tom@tromey.com>
15483
15484 * dwarf2/read.c (dwarf2_section_size): Remove.
15485 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15486 Update.
15487 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15488
4075cb26
TT
154892020-02-08 Tom Tromey <tom@tromey.com>
15490
15491 * dwarf2/read.c (read_initial_length): Move to leb.c.
15492 * dwarf2/leb.h (read_initial_length): Declare.
15493 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15494 handle_nonstd parameter.
15495 * dwarf2/frame.c (read_initial_length): Remove.
15496 (decode_frame_entry_1): Update.
15497
09ba997f
TT
154982020-02-08 Tom Tromey <tom@tromey.com>
15499
15500 * dwarf2/loc.c (dwarf2_find_location_expression)
15501 (dwarf_evaluate_loc_desc::get_tls_address)
15502 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15503 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15504 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15505 (dwarf2_compile_property_to_c)
15506 (dwarf2_loc_desc_get_symbol_read_needs)
15507 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15508 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15509 (loclist_describe_location, loclist_tracepoint_var_ref)
15510 (loclist_generate_c_location): Update.
15511 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15512 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15513 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15514 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15515 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15516 (dwarf2_per_cu_data::addr_size)
15517 (dwarf2_per_cu_data::ref_addr_size)
15518 (dwarf2_per_cu_data::text_offset)
15519 (dwarf2_per_cu_data::addr_type): Now methods.
15520 (per_cu_header_read_in): Make per_cu "const".
15521 (dwarf2_version): Remove.
15522 (dwarf2_per_cu_data::int_type): Now a method.
15523 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15524 (set_die_type, read_array_type, read_subrange_index_type)
15525 (read_tag_string_type, read_subrange_type): Update.
15526 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15527 offset_size, ref_addr_size, text_offset, addr_type, version,
15528 objfile, int_type, addr_sized_int_type>: Declare methods.
15529
96c738c0
TT
155302020-02-08 Tom Tromey <tom@tromey.com>
15531
15532 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15533 Move earlier.
15534
8fdd972c
TT
155352020-02-08 Tom Tromey <tom@tromey.com>
15536
15537 * dwarf2/read.h (dwarf_line_debug): Declare.
15538 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15539 * dwarf2/read.c: Move line_header code to new files.
15540 (dwarf_line_debug): No longer static.
15541 * dwarf2/line-header.c: New file.
15542 * dwarf2/line-header.h: New file.
15543
03075812
TT
155442020-02-08 Tom Tromey <tom@tromey.com>
15545
15546 * dwarf2/read.c (struct line_header) <file_full_name,
15547 file_file_name>: Return unique_xmalloc_ptr.
15548 (line_header::file_file_name): Update.
15549 (line_header::file_full_name): Update.
15550 (dw2_get_file_names_reader): Update.
15551 (macro_start_file): Update.
15552
bb822404
TT
155532020-02-08 Tom Tromey <tom@tromey.com>
15554
15555 * dwarf2/read.c (struct line_header) <file_full_name,
15556 file_file_name>: Declare methods.
15557 (dw2_get_file_names_reader): Update.
15558 (file_file_name): Now a method.
15559 (file_full_name): Likewise.
15560 (macro_start_file): Update.
15561
009b64fc
TT
155622020-02-08 Tom Tromey <tom@tromey.com>
15563
15564 * dwarf2/read.c (dwarf_always_disassemble)
15565 (show_dwarf_always_disassemble): Move to loc.c.
15566 (_initialize_dwarf2_read): Move "always-disassemble" registration
15567 to loc.c.
15568 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15569 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15570 static.
15571 (show_dwarf_always_disassemble): Move from read.c.
15572 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15573
5895093f
TT
155742020-02-08 Tom Tromey <tom@tromey.com>
15575
15576 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15577 (create_quick_file_names_table): Return htab_up.
15578 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15579 Update.
15580 * dwarf2/read.h (struct dwarf2_per_objfile)
15581 <quick_file_names_table>: Now htab_up.
15582
b3b32279
TT
155832020-02-08 Tom Tromey <tom@tromey.com>
15584
15585 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15586
1d33d811
TT
155872020-02-08 Tom Tromey <tom@tromey.com>
15588
15589 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15590 Rewrite.
15591 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15592 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15593 (abbrev_table::abbrev_table): No longer inline.
15594 (ABBREV_HASH_SIZE): Remove.
15595 (abbrev_table::m_abbrevs): Now an htab_up.
15596
86de1d91
TT
155972020-02-08 Tom Tromey <tom@tromey.com>
15598
15599 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15600 (cutu_reader): Update.
15601 (build_type_psymtabs_1): Update.
15602 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15603 (abbrev_table::alloc_abbrev): Update.
15604 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15605 (abbrev_table::read): New static method, renamed from
15606 abbrev_table_read_table.
15607 (abbrev_table::alloc_abbrev)
15608 (abbrev_table::add_abbrev): Now private.
15609 (abbrev_table::abbrev_table): Now private.
15610 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15611
0335378b
TT
156122020-02-08 Tom Tromey <tom@tromey.com>
15613
15614 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15615 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15616 htab_up.
15617
48b490f2
TT
156182020-02-08 Tom Tromey <tom@tromey.com>
15619
15620 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15621 htab_up.
15622 (lookup_dwo_unit_in_dwp): Update.
15623 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15624 on obstack.
15625
bc68fb19
TT
156262020-02-08 Tom Tromey <tom@tromey.com>
15627
15628 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15629 obstack.
15630
d15acc42
TT
156312020-02-08 Tom Tromey <tom@tromey.com>
15632
15633 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15634 line_header_hash.
15635 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15636 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15637 Change type to htab_up.
15638
eaa5fa8b
TT
156392020-02-08 Tom Tromey <tom@tromey.com>
15640
15641 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15642 htab_up. Don't allocate on obstack.
15643 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15644 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15645 Change type to htab_up.
15646
b0b6a987
TT
156472020-02-08 Tom Tromey <tom@tromey.com>
15648
15649 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15650 Change type to htab_up.
15651 * dwarf2/read.c (create_signatured_type_table_from_index)
15652 (create_signatured_type_table_from_debug_names)
15653 (create_all_type_units, add_type_unit)
15654 (lookup_dwo_signatured_type, lookup_signatured_type)
15655 (process_skeletonless_type_unit): Update.
15656 (create_debug_type_hash_table, create_debug_types_hash_table):
15657 Change type of types_htab.
15658 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15659 htab_up. Don't allocate on obstack.
15660 (create_cus_hash_table): Change type of cus_htab parameter.
15661 (struct dwo_file) <cus, tus>: Now htab_up.
15662 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15663 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15664 (queue_and_load_all_dwo_tus): Update.
15665 * dwarf2/index-write.c (write_gdbindex): Update.
15666 (write_debug_names): Update.
15667
39856def
TT
156682020-02-08 Tom Tromey <tom@tromey.com>
15669
15670 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15671 dwarf2/read.c. Remove "next" member. Add constructor ntad
15672 destructor.
15673 (struct dwarf2_per_objfile) <queue>: New member.
15674 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15675 dwarf2/read.h.
15676 (dwarf2_queue, dwarf2_queue_tail): Remove.
15677 (class dwarf2_queue_guard): Add parameter to constructor. Use
15678 DISABLE_COPY_AND_ASSIGN.
15679 <m_per_objfile>: New member.
15680 <~dwarf2_queue_guard>: Rewrite.
15681 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15682 Update.
15683 (~dwarf2_queue_item): New.
15684
3e225074
TT
156852020-02-08 Tom Tromey <tom@tromey.com>
15686
15687 * dwarf2/read.c (struct die_info) <has_children>: New member.
15688 (dw2_get_file_names_reader): Remove has_children.
15689 (dw2_get_file_names): Update.
15690 (read_cutu_die_from_dwo): Remove has_children.
15691 (cutu_reader::init_tu_and_read_dwo_dies)
15692 (cutu_reader::cutu_reader): Update.
15693 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15694 Remove has_children.
15695 (build_type_psymtabs_1, process_skeletonless_type_unit)
15696 (load_partial_comp_unit, load_full_comp_unit): Update.
15697 (create_dwo_cu_reader): Remove has_children.
15698 (create_cus_hash_table, read_die_and_children): Update.
15699 (read_full_die_1,read_full_die): Remove has_children.
15700 (read_signatured_type): Update.
15701 (class cutu_reader) <has_children>: Remove.
15702
82ca8957
TT
157032020-02-08 Tom Tromey <tom@tromey.com>
15704
15705 * dwarf2/expr.c: Rename from dwarf2expr.c.
15706 * dwarf2/expr.h: Rename from dwarf2expr.h.
15707 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15708 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15709 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15710 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15711 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15712 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15713 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15714 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15715 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15716 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15717 * dwarf2/loc.c: Rename from dwarf2loc.c.
15718 * dwarf2/loc.h: Rename from dwarf2loc.h.
15719 * dwarf2/read.c: Rename from dwarf2read.c.
15720 * dwarf2/read.h: Rename from dwarf2read.h.
15721 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15722 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15723 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15724 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15725 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15726 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15727 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15728 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15729 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15730 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15731 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15732 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15733 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15734 Update.
15735 * Makefile.in (COMMON_SFILES): Update.
15736 (HFILES_NO_SRCDIR): Update.
15737
9e35d499
TT
157382020-02-08 Tom Tromey <tom@tromey.com>
15739
15740 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15741 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15742
1eba2311
TT
157432020-02-08 Tom Tromey <tom@tromey.com>
15744
15745 * dwarf2read.h (struct die_info): Don't declare.
15746
e41c2da2
TT
157472020-02-08 Tom Tromey <tom@tromey.com>
15748
15749 * dwarf2read.h (die_info_ptr): Remove typedef.
15750
4fc6c0d5
TT
157512020-02-08 Tom Tromey <tom@tromey.com>
15752
15753 * dwarf2read.c (read_call_site_scope)
15754 (handle_data_member_location, dwarf2_add_member_fn)
15755 (mark_common_block_symbol_computed, read_common_block)
15756 (attr_to_dynamic_prop, partial_die_info::read)
15757 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15758 (dwarf2_symbol_mark_computed, set_die_type): Update.
15759 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15760 method.
15761 (attr_form_is_block): Don't declare.
15762 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15763
cd6c91b4
TT
157642020-02-08 Tom Tromey <tom@tromey.com>
15765
15766 * dwarf2read.c (dwarf2_find_base_address, )
15767 (read_call_site_scope, rust_containing_type)
15768 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15769 (handle_data_member_location, dwarf2_add_member_fn)
15770 (get_alignment, read_structure_type, process_structure_scope)
15771 (mark_common_block_symbol_computed, read_common_block)
15772 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15773 (partial_die_info::read, read_attribute_value, new_symbol)
15774 (lookup_die_type, dwarf2_get_ref_die_offset)
15775 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15776 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15777 (dwarf2_symbol_mark_computed): Update.
15778 * dwarf2/attribute.h (struct attribute) <value_as_address,
15779 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15780 methods.
15781 (value_as_address, attr_form_is_section_offset)
15782 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15783 * dwarf2/attribute.c (attribute::value_as_address)
15784 (attribute::form_is_section_offset, attribute::form_is_constant)
15785 (attribute::form_is_ref): Now methods.
15786
162dce55
TT
157872020-02-08 Tom Tromey <tom@tromey.com>
15788
15789 * dwarf2read.c (struct attribute, DW_STRING)
15790 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15791 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15792 (attr_form_is_block, attr_form_is_section_offset)
15793 (attr_form_is_constant, attr_form_is_ref): Move.
15794 * dwarf2/attribute.h: New file.
15795 * dwarf2/attribute.c: New file, from dwarf2read.c.
15796 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15797
3054dd54
TT
157982020-02-08 Tom Tromey <tom@tromey.com>
15799
15800 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15801 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15802 Move.
15803 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15804 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15805 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15806 abbrev.c.
15807 * dwarf2/abbrev.h: New file.
15808 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15809 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15810
96b79293
TT
158112020-02-08 Tom Tromey <tom@tromey.com>
15812
15813 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15814 (dwarf2_section_size, dwarf2_get_section_info)
15815 (create_signatured_type_table_from_debug_names)
15816 (create_addrmap_from_aranges, read_debug_names_from_section)
15817 (get_gdb_index_contents_from_section, read_comp_unit_head)
15818 (error_check_comp_unit_head, read_abbrev_offset)
15819 (create_debug_type_hash_table, init_cu_die_reader)
15820 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15821 (read_comp_units_from_section, create_cus_hash_table)
15822 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15823 (create_dwp_v2_section, dwarf2_rnglists_process)
15824 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15825 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15826 (read_indirect_string_from_dwz, read_addr_index_1)
15827 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15828 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15829 (fill_in_loclist_baton): Update.
15830 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15831 get_containing_section, get_bfd_owner, get_bfd_section,
15832 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15833 (dwarf2_read_section, get_section_name, get_section_file_name)
15834 (get_containing_section, get_section_bfd_owner)
15835 (get_section_bfd_section, get_section_name, get_section_file_name)
15836 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15837 declare.
15838 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15839 (dwarf2_section_info::get_bfd_owner)
15840 (dwarf2_section_info::get_bfd_section)
15841 (dwarf2_section_info::get_name)
15842 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15843 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15844 (dwarf2_section_info::read): Now methods.
15845 * dwarf-index-write.c (class debug_names): Update.
15846
2c86cff9
TT
158472020-02-08 Tom Tromey <tom@tromey.com>
15848
15849 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15850 Move to dwarf2/section.h.
15851 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15852 (get_section_bfd_section, get_section_name)
15853 (get_section_file_name, get_section_id, get_section_flags)
15854 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15855 dwarf2/section.c.
15856 * dwarf2/section.h: New file.
15857 * dwarf2/section.c: New file, from dwarf2read.c.
15858 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15859
f4382c45
TT
158602020-02-08 Tom Tromey <tom@tromey.com>
15861
15862 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15863 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15864 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15865 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15866 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15867 * dwarf2/leb.h: New file, from dwarf2read.c.
15868 * dwarf2/leb.c: New file, from dwarf2read.c.
15869 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15870 Remove.
15871 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15872 (COMMON_SFILES): Add dwarf2/leb.c.
15873
01840b7a
JB
158742020-02-08 Joel Brobecker <brobecker@adacore.com>
15875
15876 GDB 9.1 released.
15877
dfcb27e4
IB
158782020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15879
15880 PR gdb/25190:
aac66a4c
SM
15881 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15882 * gdb/remote.c (remote_console_output): Update.
15883 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15884 (ui_file_puts): ...this.
15885 * gdb/ui-file.h (ui_file_puts): Add declaration.
15886 * gdb/utils.c (emit_style_escape): Update.
15887 (flush_wrap_buffer): Update.
15888 (fputs_maybe_filtered): Update.
15889 (fputs_unfiltered): Add function.
dfcb27e4 15890
faa17681
IB
158912020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15892
aac66a4c
SM
15893 * gdb/event-loop.c (gdb_wait_for_event): Update.
15894 * gdb/printcmd.c (printf_command): Update.
15895 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15896 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15897 (gdb_os_flush_stderr): Update.
15898 * gdb/remote.c (remote_console_output): Update.
15899 * gdb/ui-file.c (gdb_flush): Rename to...
15900 (ui_file_flush): ...this.
15901 (stderr_file::write): Update.
15902 (stderr_file::puts): Update.
15903 * gdb/ui-file.h (gdb_flush): Rename to...
15904 (ui_file_flush): ...this.
15905 * gdb/utils.c (gdb_flush): Add function.
15906 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15907
5abbbe1d
TT
159082020-02-07 Tom Tromey <tromey@adacore.com>
15909
15910 PR breakpoints/24915:
15911 * source.c (find_and_open_source): Do not check basenames_may_differ.
15912
919adfe8
TT
159132020-02-07 Tom Tromey <tom@tromey.com>
15914
15915 * README: Update gdbserver documentation.
15916 * gdbserver: Move to top level.
15917 * configure.tgt (build_gdbserver): Remove.
15918 * configure.ac: Remove --enable-gdbserver.
15919 * configure: Rebuild.
15920 * Makefile.in (distclean): Don't mention gdbserver.
15921
1d5d29e7
SV
159222020-02-06 Shahab Vahedi <shahab@synopsys.com>
15923
15924 * source-cache.c (source_cache::ensure): Surround
15925 get_plain_source_lines with a try/catch.
15926 (source_cache::get_line_charpos): Get rid of try/catch
15927 and only check for the return value of "ensure".
15928 * tui/tui-source.c (tui_source_window::set_contents):
15929 Simplify "nlines" calculation.
15930
6eb1129c
SV
159312020-02-06 Shahab Vahedi <shahab@synopsys.com>
15932
15933 * MAINTAINERS (Write After Approval): Add myself.
15934
c6a42d11
CB
159352020-02-05 Christian Biesinger <cbiesinger@google.com>
15936
15937 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15938 function call.
15939
c8ecdda6
CB
159402020-02-05 Christian Biesinger <cbiesinger@google.com>
15941
15942 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15943
f6480e70
MR
159442020-02-05 Maciej W. Rozycki <macro@wdc.com>
15945
15946 * nat/riscv-linux-tdesc.h: New file.
15947 * nat/riscv-linux-tdesc.c: New file, taking code from...
15948 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15949 ... here.
15950 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15951 NATDEPFILES.
15952
dcc9fbc6
AB
159532020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15954
15955 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15956 we don't set the fake simulator ptid to the null_ptid.
15957
719546c4
SM
159582020-02-03 Simon Marchi <simon.marchi@efficios.com>
15959
15960 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15961 * gdbthread.h (class thread_info) <resumed>: Likewise.
15962 * infrun.c (resume_1): Likewise.
15963 (proceed): Likewise.
15964 (infrun_thread_stop_requested): Likewise.
15965 (stop_all_threads): Likewise.
15966 (handle_inferior_event): Likewise.
15967 (restart_threads): Likewise.
15968 (finish_step_over): Likewise.
15969 (keep_going_stepped_thread): Likewise.
15970 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15971 (linux_handle_extended_wait): Likewise.
15972 * record-btrace.c (get_thread_current_frame_id): Likewise.
15973 * record-full.c (record_full_wait_1): Likewise.
15974 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15975 * target.c (target_resume): Likewise.
15976 * thread.c (set_running_thread): Likewise.
15977
e409c542
AKS
159782020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15979
15980 * f-valprint.c (f77_print_array_1): Changed datatype of index
15981 variable to LONGEST from int to enable it to contain bound
15982 values correctly.
15983
ee98c0da
MR
159842020-02-03 Maciej W. Rozycki <macro@wdc.com>
15985
15986 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15987 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15988 offsets according to FLEN determined.
15989 (riscv_linux_nat_target::read_description): Determine FLEN
15990 dynamically.
15991 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15992 according to FLEN determined.
15993 (riscv_linux_nat_target::store_registers): Likewise.
15994
aa66aac4
SV
159952020-02-01 Shahab Vahedi <shahab@synopsys.com>
15996
15997 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15998 when reg->group is empty and reggroup is not.
15999
fd9faca8
TT
160002020-01-31 Tom Tromey <tromey@adacore.com>
16001
16002 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16003 Call beneath target's mourn_inferior after unpushing.
16004
42330a68
AB
160052020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16006
16007 PR tui/9765
16008 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16009 have enough lines to fill the screen, still return the lowest
16010 address we found.
16011
7a27a45b
AB
160122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16013
16014 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16015 '-', '<', and '>' commands.
16016
c47f70e2
PA
160172020-01-29 Pedro Alves <palves@redhat.com>
16018 Sergio Durigan Junior <sergiodj@redhat.com>
16019
16020 * infcmd.c (construct_inferior_arguments): Assert that
16021 'argc' is greater than 0.
16022
5133a315
LM
160232020-01-29 Luis Machado <luis.machado@linaro.org>
16024
16025 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16026 (BRK_INSN_MASK): Define to 0xd4200000.
16027 (aarch64_program_breakpoint_here_p): New function.
16028 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16029 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16030 breakpoint.c.
16031 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16032 breakpoint.h
16033 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16034 call gdbarch_program_breakpoint_here_p.
16035 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16036 default_program_breakpoint_here_p, changed return type to bool and
16037 simplified.
16038 * breakpoint.h (program_breakpoint_here): Moved prototype to
16039 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16040 return type to bool.
16041 * gdbarch.c: Regenerate.
16042 * gdbarch.h: Regenerate.
16043 * gdbarch.sh (program_breakpoint_here_p): New method.
16044 * infrun.c (handle_signal_stop): Call
16045 gdbarch_program_breakpoint_here_p.
16046
168f8c6b
TT
160472020-01-26 Tom Tromey <tom@tromey.com>
16048
16049 * ctfread.c (struct ctf_fp_info): Reindent.
16050 (_initialize_ctfread): Remove.
16051
128a391f
TT
160522020-01-26 Tom Tromey <tom@tromey.com>
16053
16054 * psymtab.c (partial_map_expand_apply)
16055 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16056 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16057 (psym_print_stats, psym_expand_symtabs_for_function)
16058 (psym_map_symbol_filenames, psym_map_matching_symbols)
16059 (psym_expand_symtabs_matching)
16060 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16061 (maintenance_check_psymtabs): Use new methods.
16062 * psympriv.h (struct partial_symtab) <readin_p,
16063 get_compunit_symtab>: New methods.
16064 <readin, compunit_symtab>: Remove members.
16065 (struct standard_psymtab): New.
16066 (struct legacy_psymtab): Derive from standard_psymtab.
16067 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16068 standard_psymtab.
16069 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16070
0494dbec
TT
160712020-01-26 Tom Tromey <tom@tromey.com>
16072
16073 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16074 read_dependencies. Add assert.
16075 * psymtab.c (partial_symtab::read_dependencies): New method.
16076 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16077 method.
16078 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16079 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16080 read_dependencies.
16081 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16082 Add assert.
16083
8566b89b
TT
160842020-01-26 Tom Tromey <tom@tromey.com>
16085
16086 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16087 Call expand_psymtab.
16088 (xcoff_read_symtab): Call expand_psymtab.
16089 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16090 legacy_expand_psymtab.
16091 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16092 method.
16093 (struct legacy_psymtab) <expand_psymtab>: Implement.
16094 <legacy_expand_psymtab>: New member.
16095 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16096 (parse_partial_symbols): Set legacy_expand_psymtab.
16097 (psymtab_to_symtab_1): Change argument order. Call
16098 expand_psymtab.
16099 (new_psymtab): Set legacy_expand_psymtab.
16100 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16101 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16102 expand_psymtab.
16103 (dwarf2_psymtab::expand_psymtab): Rename from
16104 psymtab_to_symtab_1. Call expand_psymtab.
16105 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16106 (dbx_end_psymtab): Likewise.
16107 (dbx_psymtab_to_symtab_1): Change argument order. Call
16108 expand_psymtab.
16109 (dbx_read_symtab): Call expand_psymtab.
16110 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16111 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16112 (ctf_psymtab::read_symtab): Call expand_psymtab.
16113
077cbab2
TT
161142020-01-26 Tom Tromey <tom@tromey.com>
16115
16116 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16117 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16118 messages.
16119 * mdebugread.c (mdebug_read_symtab): Remove prints.
16120 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16121 assert.
16122 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16123
891813be
TT
161242020-01-26 Tom Tromey <tom@tromey.com>
16125
16126 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16127 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16128 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16129 legacy_symtab.
16130 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16131 * psymtab.c (psymtab_to_symtab): Call method.
16132 (dump_psymtab): Update.
16133 * psympriv.h (struct partial_symtab): Add virtual destructor.
16134 <read_symtab>: New method.
16135 (struct legacy_symtab): New.
16136 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16137 (struct pst_map) <pst>: Now a legacy_psymtab.
16138 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16139 (new_psymtab): Use legacy_psymtab.
16140 * dwarf2read.h (struct dwarf2_psymtab): New.
16141 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16142 * dwarf2read.c (dwarf2_create_include_psymtab)
16143 (dwarf2_build_include_psymtabs, create_type_unit_group)
16144 (create_partial_symtab, process_psymtab_comp_unit_reader)
16145 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16146 (set_partial_user): Use dwarf2_psymtab.
16147 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16148 (psymtab_to_symtab_1, process_full_comp_unit)
16149 (process_full_type_unit, dwarf2_ranges_read)
16150 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16151 (dwarf_decode_lines): Use dwarf2_psymtab.
16152 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16153 (add_address_entry_worker, write_one_signatured_type)
16154 (recursively_count_psymbols, recursively_write_psymbols)
16155 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16156 (write_debug_names): Likewise.
16157 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16158 <pst>: Now a legacy_psymtab.
16159 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16160 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16161 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16162 * ctfread.c (struct ctf_psymtab): New.
16163 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16164 ctf_psymtab.
16165 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16166 (create_partial_symtab): Return a ctf_psymtab.
16167 (scan_partial_symbols): Update.
16168
c3693a1d
TT
161692020-01-26 Tom Tromey <tom@tromey.com>
16170
16171 * xcoffread.c (xcoff_start_psymtab): Use new.
16172 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16173 renamed from start_psymtab_common.
16174 * psympriv.h (struct partial_symtab): Add new constructor.
16175 (start_psymtab_common): Don't declare.
16176 * mdebugread.c (parse_partial_symbols): Use new.
16177 * dwarf2read.c (create_partial_symtab): Use new.
16178 * dbxread.c (start_psymtab): Use new.
16179 * ctfread.c (create_partial_symtab): Use new.
16180
32caafd0
TT
161812020-01-26 Tom Tromey <tom@tromey.com>
16182
16183 * xcoffread.c (xcoff_end_psymtab): Use new.
16184 * psymtab.c (start_psymtab_common): Use new.
16185 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16186 Update.
16187 * psympriv.h (struct partial_symtab): Add parameters to
16188 constructor. Don't inline.
16189 (allocate_psymtab): Don't declare.
16190 * mdebugread.c (new_psymtab): Use new.
16191 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16192 * dbxread.c (dbx_end_psymtab): Use new.
16193
abaa2f23
TT
161942020-01-26 Tom Tromey <tom@tromey.com>
16195
16196 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16197 allocate_psymtab. Update documentation.
16198 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16199 allocate_psymtab. Do not use new.
16200 (allocate_psymtab): Use new. Update.
16201
6d94535f
TT
162022020-01-26 Tom Tromey <tom@tromey.com>
16203
16204 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16205 * psymtab.c (psym_print_stats): Update.
16206 * psympriv.h (struct partial_symtab) <readin,
16207 psymtabs_addrmap_supported, anonymous>: Now bool.
16208 * mdebugread.c (psymtab_to_symtab_1): Update.
16209 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16210 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16211 (process_full_comp_unit, process_full_type_unit): Update.
16212 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16213 * ctfread.c (psymtab_to_symtab): Update.
16214
6f17252b
TT
162152020-01-26 Tom Tromey <tom@tromey.com>
16216
16217 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16218 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16219 * psymtab.c (psymtab_storage): Delete psymtabs.
16220 (psymtab_storage::allocate_psymtab): Use new.
16221 (psymtab_storage::discard_psymtab): Use delete.
16222 * psympriv.h (struct partial_symtab): Add constructor and
16223 initializers.
16224
f6f1cebc
TT
162252020-01-26 Tom Tromey <tom@tromey.com>
16226
16227 * machoread.c: Do not include psympriv.h.
16228
e47e48f6
PW
162292020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16230
16231 * NEWS: Mention the new option and the set/show commands.
16232
a2fedca9
PW
162332020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16234
16235 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16236 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16237 (validate_exec_file): New variables, enums, functions.
16238 (exec_file_locate_attach, print_section_info): Style the filenames.
16239 (_initialize_exec): Install show_exec_file_mismatch_command and
16240 set_exec_file_mismatch_command.
16241 * gdbcore.h (validate_exec_file): Declare.
16242 * infcmd.c (attach_command): Call validate_exec_file.
16243 * remote.c ( remote_target::remote_add_inferior): Likewise.
16244
7ffa82e1
AB
162452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16246
16247 * frame.c (find_frame_sal): Move call to get_next_frame into more
16248 inner scope.
16249 * inline-frame.c (inilne_state) <inline_state>: Update argument
16250 types.
16251 (inilne_state) <skipped_symbol>: Rename to...
16252 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16253 (skip_inline_frames): Build vector of skipped symbols and use this
16254 to reate the inline_state.
16255 (inline_skipped_symbol): Add a comment and some assertions, fetch
16256 skipped symbol from the list.
16257
3d92a3e3
AB
162582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16259
16260 * buildsym.c (lte_is_less_than): Delete.
16261 (buildsym_compunit::end_symtab_with_blockvector): Create local
16262 lambda function to sort line table entries, and use
16263 std::stable_sort instead of std::sort.
16264 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16265 markers when looking for a previous line.
16266
94a72be7
AB
162672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16268
16269 * dwarf2read.c (lnp_state_machine::record_line): Include
16270 end_sequence parameter in debug print out. Record the line if we
16271 are at an end_sequence marker even if it's not the start of a
16272 statement.
16273 * symmisc.c (maintenance_print_one_line_table): Print end of
16274 sequence markers with 'END' not '0'.
16275
53af73bf
PA
162762020-01-24 Pedro Alves <palves@redhat.com>
16277
16278 PR gdb/25410
16279 * thread.c (scoped_restore_current_thread::restore): Use
16280 switch_to_inferior_no_thread.
16281 * exec.c: Include "progspace-and-thread.h".
16282 (add_target_sections, remove_target_sections):
16283 scoped_restore_current_pspace_and_thread instead of
16284 scoped_restore_current_thread.
16285 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16286 and aspace to the inferior before calling clone_program_space.
16287 Remove stale comment.
16288
3050c6f4
CB
162892020-01-24 Christian Biesinger <cbiesinger@google.com>
16290
16291 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16292 (arm_netbsd_nat_target::fetch_registers): ...this.
16293 (arm_nbsd_nat_target::store_registers): Rename to...
16294 (arm_netbsd_nat_target::store_registers): ...this.
16295
73685c7e
CB
162962020-01-24 Christian Biesinger <cbiesinger@google.com>
16297
16298 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16299 register_t.
16300
89203d40
CB
163012020-01-24 Christian Biesinger <cbiesinger@google.com>
16302
16303 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16304 Update comment.
16305 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16306 Likewise.
16307 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16308 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16309 the correct replacement (iterate_over_regset_sections).
16310 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16311 Update comment.
16312
1ba1ac88
AB
163132020-01-24 Graham Markall <graham.markall@embecosm.com>
16314
16315 PR gdb/23718
16316 * gdb/python/python.c (execute_gdb_command): Call
16317 async_enable_stdin in catch block.
16318
f3364a6d
AB
163192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16320
16321 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16322 SWITCH_THRU_ALL_UIS.
16323
733d0a67
AB
163242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16325
16326 PR tui/9765
16327 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16328 comment, add extra parameter, and update to store previous symbol
16329 when appropriate.
16330 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16331 add extra parameter.
16332 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16333 remove unneeded parameter, add try/catch around gdb_print_insn,
16334 rewrite to add items to asm_lines vector.
16335 (tui_find_backward_disassembly_start_address): New function.
16336 (tui_find_disassembly_address): Updated throughout.
16337 (tui_disasm_window::set_contents): Update for changes to
16338 tui_disassemble.
16339 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16340 number of lines to scroll.
16341
b3b3bada
SM
163422020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16343
16344 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16345 (SECT_OFF_DATA): Likewise.
16346 (SECT_OFF_RODATA): Likewise.
16347 (SECT_OFF_TEXT): Likewise.
16348 (SECT_OFF_BSS): Likewise.
16349 (struct objfile) <text_section_offset, data_section_offset>: New
16350 methods.
16351 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16352 objfile::text_section_offset.
16353 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16354 * coffread.c (coff_symtab_read): Likewise.
16355 (enter_linenos): Likewise.
16356 (process_coff_symbol): Likewise.
16357 * ctfread.c (get_objfile_text_range): Likewise.
16358 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16359 Use objfile::data_section_offset.
16360 * dwarf2-frame.c (execute_cfa_program): Use
16361 objfile::text_section_offset.
16362 (dwarf2_frame_find_fde): Likewise.
16363 * dwarf2read.c (create_addrmap_from_index): Likewise.
16364 (create_addrmap_from_aranges): Likewise.
16365 (dw2_find_pc_sect_compunit_symtab): Likewise.
16366 (process_psymtab_comp_unit_reader): Likewise.
16367 (add_partial_symbol): Likewise.
16368 (add_partial_subprogram): Likewise.
16369 (process_full_comp_unit): Likewise.
16370 (read_file_scope): Likewise.
16371 (read_func_scope): Likewise.
16372 (read_lexical_block_scope): Likewise.
16373 (read_call_site_scope): Likewise.
16374 (dwarf2_rnglists_process): Likewise.
16375 (dwarf2_ranges_process): Likewise.
16376 (dwarf2_ranges_read): Likewise.
16377 (dwarf_decode_lines_1): Likewise.
16378 (new_symbol): Likewise.
16379 (dwarf2_fetch_die_loc_sect_off): Likewise.
16380 (dwarf2_per_cu_text_offset): Likewise.
16381 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16382 * hppa-tdep.c (read_unwind_info): Likewise.
16383 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16384 * psympriv.h (struct partial_symtab): Likewise.
16385 * psymtab.c (find_pc_sect_psymtab): Likewise.
16386 * solib-svr4.c (enable_break): Likewise.
16387 * stap-probe.c (relocate_address): Use
16388 objfile::data_section_offset.
16389 * xcoffread.c (enter_line_range): Use
16390 objfile::text_section_offset.
16391 (read_xcoff_symtab): Likewise.
16392
ab53f382
SM
163932020-01-23 Simon Marchi <simon.marchi@efficios.com>
16394
16395 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16396 declaration to narrower scopes.
16397
e7eee665
SM
163982020-01-23 Simon Marchi <simon.marchi@efficios.com>
16399
16400 * darwin-nat.h (struct darwin_exception_msg, enum
16401 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16402 Move up.
16403 (class darwin_nat_target) <wait_1, check_new_threads,
16404 decode_exception_message, decode_message, stop_inferior,
16405 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16406 * darwin-nat.c (darwin_check_new_threads): Rename to...
16407 (darwin_nat_target::check_new_threads): ... this.
16408 (darwin_suspend_inferior_it): Remove.
16409 (darwin_decode_exception_message): Rename to...
16410 (darwin_nat_target::decode_exception_message): ... this.
16411 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16412 (darwin_decode_message): Rename to...
16413 (darwin_nat_target::decode_message): ... this.
16414 (cancel_breakpoint): Rename to...
16415 (darwin_nat_target::cancel_breakpoint): ... this.
16416 (darwin_wait): Rename to...
16417 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16418 instead of iterate_over_inferiors.
16419 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16420 (darwin_stop_inferior): Rename to...
16421 (darwin_nat_target::stop_inferior): ... this.
16422 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16423 (darwin_init_thread_list): Rename to...
16424 (darwin_nat_target::init_thread_list): ... this.
16425 (darwin_ptrace_him): Rename to...
16426 (darwin_nat_target::ptrace_him): ... this.
16427 (darwin_nat_target::create_inferior): Pass lambda function to
16428 fork_inferior.
16429 (darwin_nat_target::detach): Call stop_inferior instead of
16430 darwin_stop_inferior.
16431 * fork-inferior.h (fork_inferior): Change init_trace_fun
16432 parameter to gdb::function_view.
16433 * fork-inferior.c (fork_inferior): Likewise.
16434
c162ed3e
HD
164352020-01-23 Hannes Domani <ssbssa@yahoo.de>
16436
16437 * i386-cygwin-tdep.c (core_process_module_section): Update.
16438 * windows-nat.c (struct lm_info_windows): Add text_offset.
16439 (windows_xfer_shared_libraries): Update.
16440 * windows-tdep.c (windows_xfer_shared_library):
16441 Add text_offset_cached argument.
16442 * windows-tdep.h (windows_xfer_shared_library): Update.
16443
a1237872
SM
164442020-01-21 Simon Marchi <simon.marchi@efficios.com>
16445
16446 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16447
b3ee6dd9
SM
164482020-01-21 Simon Marchi <simon.marchi@efficios.com>
16449
16450 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16451 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16452 replace with range-based for.
16453 (gdbsim_interrupt_inferior): Remove.
16454 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16455 with a range-based for. Inline code from
16456 gdbsim_interrupt_inferior.
16457
f9fac3c8
SM
164582020-01-21 Simon Marchi <simon.marchi@efficios.com>
16459
16460 * infrun.c (proceed): Fix indentation.
16461
f6474de9
TT
164622020-01-21 Tom Tromey <tromey@adacore.com>
16463
16464 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16465 * python/python.c (python_extension_ops): Update.
16466 (gdbpy_colorize): New function.
16467 * python/lib/gdb/__init__.py (colorize): New function.
16468 * extension.h (ext_lang_colorize): Declare.
16469 * extension.c (ext_lang_colorize): New function.
16470 * extension-priv.h (struct extension_language_ops) <colorize>: New
16471 member.
16472 * cli/cli-style.c (_initialize_cli_style): Update help text.
16473
f0c702d4
LM
164742020-01-21 Luis Machado <luis.machado@linaro.org>
16475
16476 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16477 <cond>: Change type to bool.
16478 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16479 (aarch64_displaced_step_cb): Likewise.
16480 (aarch64_displaced_step_tb): Likewise.
16481
1ab139e5
LM
164822020-01-21 Luis Machado <luis.machado@linaro.org>
16483
16484 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16485 output.
16486
0c271889
LM
164872020-01-21 Luis Machado <luis.machado@linaro.org>
16488
16489 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16490 <pc_adjust>: Adjust the documentation.
16491 (aarch64_displaced_step_fixup): Check if PC really moved before
16492 adjusting it.
16493
4d89c1c7
TT
164942020-01-19 Tom Tromey <tom@tromey.com>
16495
16496 * disasm.c (~gdb_disassembler): New destructor.
16497 (gdb_buffered_insn_length): Call disassemble_free_target.
16498 * disasm.h (class gdb_disassembler): Declare destructor. Use
16499 DISABLE_COPY_AND_ASSIGN.
16500
c0ab21c2
TT
165012020-01-19 Tom Tromey <tom@tromey.com>
16502
16503 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16504 (die_reader_func_ftype): Remove.
16505 (cutu_reader): New class.
16506 (dw2_get_file_names_reader): Remove "data" parameter.
16507 (dw2_get_file_names): Use cutu_reader.
16508 (create_debug_type_hash_table): Update.
16509 (read_cutu_die_from_dwo): Update comment.
16510 (lookup_dwo_unit): Add dwo_name parameter.
16511 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16512 die_reader_func_ftype and data parameters.
16513 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16514 Remove die_reader_func_ftype and data parameters.
16515 (~cutu_reader): New; from init_cutu_and_read_dies.
16516 (cutu_reader::cutu_reader): Rename from
16517 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16518 and data parameters.
16519 (init_cutu_and_read_dies_simple): Remove.
16520 (struct process_psymtab_comp_unit_data): Remove.
16521 (process_psymtab_comp_unit_reader): Remove data parameter; add
16522 want_partial_unit and pretend_language parameters.
16523 (process_psymtab_comp_unit): Use cutu_reader.
16524 (build_type_psymtabs_reader): Remove data parameter.
16525 (build_type_psymtabs_1): Use cutu_reader.
16526 (process_skeletonless_type_unit): Likewise.
16527 (load_partial_comp_unit_reader): Remove.
16528 (load_partial_comp_unit): Use cutu_reader.
16529 (load_full_comp_unit_reader): Remove.
16530 (load_full_comp_unit): Use cutu_reader.
16531 (struct create_dwo_cu_data): Remove.
16532 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16533 dwo_unit parameters.
16534 (create_cus_hash_table): Use cutu_reader.
16535 (struct dwarf2_read_addr_index_data): Remove.
16536 (dwarf2_read_addr_index_reader): Remove.
16537 (dwarf2_read_addr_index): Use cutu_reader.
16538 (read_signatured_type_reader): Remove.
16539 (read_signatured_type): Use cutu_reader.
16540
45bbae5c
TT
165412020-01-19 Tom Tromey <tom@tromey.com>
16542
16543 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16544 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16545 (tui_wrefresh): Declare.
16546 * tui/tui-wingeneral.c (suppress_output): New global.
16547 (tui_suppress_output, ~tui_suppress_output): New constructor and
16548 destructor.
16549 (tui_wrefresh): New function.
16550 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16551 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16552 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16553 method.
16554 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16555 tui_wrefresh.
16556 (tui_data_window::no_refresh): New method.
16557 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16558 (tui_reg_command): Use tui_suppress_output
16559 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16560 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16561 method.
16562 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16563
4f13c1c0
TT
165642020-01-19 Tom Tromey <tom@tromey.com>
16565
16566 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16567 Handle case where symtab is null.
16568
fa47e446
SM
165692020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16570
16571 * linux-fork.c (one_fork_p): Simplify.
16572
26f42329
SM
165732020-01-17 Simon Marchi <simon.marchi@efficios.com>
16574
16575 * top.c (struct qt_args): Remove.
16576 (kill_or_detach): Change return type to void, replace `void *`
16577 parameter with a proper one.
16578 (print_inferior_quit_action): Likewise.
16579 (quit_confirm): Use range-based for loop to iterate over inferiors.
16580 (quit_force): Likewise.
16581
a9ac81b1
SM
165822020-01-17 Simon Marchi <simon.marchi@efficios.com>
16583
16584 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16585 `void *` parameter with proper parameters.
16586 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16587 (print_one_inferior): Change return type to void, replace `void *`
16588 parameter with proper parameters.
16589 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16590 inferiors.
16591 (get_other_inferior): Remove.
16592 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16593 inferiors.
16594
788eca49
SM
165952020-01-17 Simon Marchi <simon.marchi@efficios.com>
16596
16597 * mi/mi-interp.c (report_initial_inferior): Remove.
16598 (mi_interp::init): Use range-based for to iterate over inferiors.
16599
d9bc85b6
SM
166002020-01-17 Simon Marchi <simon.marchi@efficios.com>
16601
16602 * python/py-inferior.c (build_inferior_list): Remove.
16603 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16604
40c94099
CB
166052020-01-16 Christian Biesinger <cbiesinger@google.com>
16606
16607 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16608 (btrace_stitch_trace): Likewise.
16609 * charset.c (intermediate_encoding): Likewise (vaild).
16610 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16611 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16612 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16613
e0cdfe3c
HD
166142020-01-16 Hannes Domani <ssbssa@yahoo.de>
16615
16616 * windows-tdep.c (windows_get_tlb_type):
16617 Add rtl_user_process_parameters type.
16618
790f1718 166192020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16620 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16621
16622 PR build/24805
16623 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16624 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16625 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16626 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16627 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16628 (ps_plog): Redeclare exported functions with default visibility.
16629
3112ed97
NA
166302020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16631
16632 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16633 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16634
8dc3273e
SM
166352020-01-15 Simon Marchi <simon.marchi@efficios.com>
16636
16637 * infcmd.c (post_create_inferior): Use get_thread_regcache
16638 instead of get_current_regcache.
16639
ff47f4f0
TT
166402020-01-14 Tom Tromey <tom@tromey.com>
16641
16642 PR symtab/12535:
16643 * python/python.c (gdbpy_decode_line): Treat empty string the same
16644 as no argument.
16645
975f45b7
TT
166462020-01-14 Tom Tromey <tom@tromey.com>
16647
16648 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16649
25e57356
TT
166502020-01-14 Tom Tromey <tom@tromey.com>
16651
16652 * nat/linux-btrace.c: Don't include <config.h>.
16653 * nat/linux-ptrace.c: Don't include <config.h>.
16654 * nat/x86-linux-dregs.c: Don't include <config.h>.
16655
05ea2a05
TT
166562020-01-14 Tom Tromey <tom@tromey.com>
16657
16658 * configure: Rebuild.
16659 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16660
01027315
TT
166612020-01-14 Tom Tromey <tom@tromey.com>
16662
16663 * nat/x86-linux-dregs.c: Include configh.h.
16664 * nat/linux-ptrace.c: Include configh.h.
16665 * nat/linux-btrace.c: Include configh.h.
16666 * defs.h: Include config.h, bfd.h.
16667 * configure.ac: Don't source common.host.
16668 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16669 * configure: Rebuild.
16670 * acinclude.m4: Update path.
16671 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16672 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16673 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16674 (CLIBS): Add LIBSUPPORT.
16675 (CDEPS): Likewise.
16676 (COMMON_SFILES): Remove gdbsupport files.
16677 (HFILES_NO_SRCDIR): Likewise.
16678 (stamp-version): Update path to create-version.sh.
16679 (ALLDEPFILES): Remove gdbsupport files.
16680
b2ceabe8
TT
166812020-01-14 Tom Tromey <tom@tromey.com>
16682
16683 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16684 USE_WIN32API when needed.
16685 * configure.ac (USE_WIN32API): Don't define.
16686 (WIN32LIBS): Use WIN32APILIBS.
16687 * configure: Rebuild.
16688
25c51f71
TT
166892020-01-14 Tom Tromey <tom@tromey.com>
16690
16691 * configure: Rebuild.
16692 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16693
717c684d
BE
166942020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16695
16696 * skip.c (skip_function_command): Make skip w/o arguments use the
16697 name of the inlined function if pc is inside any inlined function.
16698
7da6a5b9
LM
166992020-01-14 Luis Machado <luis.machado@linaro.org>
16700
16701 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16702 * infrun.c (resume_1): Likewise.
16703 (handle_inferior_event): Remove stale comment.
16704 * linux-nat.c (linux_nat_target::resume): Update comments.
16705 (save_stop_reason): Likewise.
16706 (linux_nat_filter_event): Likewise.
16707 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16708
44e4c775
AB
167092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16710
16711 * elfread.c (record_minimal_symbol): Set section index to 0 for
16712 non-allocatable sections.
16713
18a8505e
AT
16714
167152020-01-13 Ali Tamur <tamur@google.com>
16716
16717 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16718 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16719 to gdb::optional. Update comments.
16720 (dwo_file): Update comments.
16721 (read_attribute): Update API to take an additional out parameter,
16722 need_reprocess. This is used to mark attributes that need other
16723 attributes (e.g. str_offsets_base) for correct computation which may not
16724 have been read yet.
16725 (read_attribute_reprocess): New function declaration.
16726 (read_addr_index): Likewise.
16727 (read_dwo_str_index): Likewise.
16728 (read_stub_str_index): Likewise.
16729 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16730 (lookup_addr_base): New function definition.
16731 (lookup_ranges_base): Likewise.
16732 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16733 lookup_ranges_base.
16734 (init_cutu_and_read_dies): Update comments.
16735 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16736 unit. This is used to inherit parent's str_offsets_base and addr_base.
16737 Update comments.
16738 (init_cutu_and_read_dies_simple): Reflect API changes.
16739 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16740 (create_cus_hash_table): Change API to take parent compile unit.
16741 Reflect API changes.
16742 (open_and_init_dwo_file): Reflect API changes.
16743 (dwarf2_get_pc_bounds): Update comments.
16744 (dwarf2_record_block_ranges): Likewise.
16745 (read_full_die_1): Change implementation to reprocess attributes that
16746 need str_offsets_base and addr_base.
16747 (partial_die_info::read): Likewise.
16748 (read_attribute_reprocess): New function definition.
16749 (read_attribute_value): Change API to take an additional out parameter,
16750 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16751 when a non-dwo compile unit has index based attributes.
16752 (read_attribute): Reflect API changes.
16753 (read_addr_index_1): Reflect API changes. Update comments.
16754 (dwarf2_read_addr_index_data): Reflect API changes.
16755 (dwarf2_read_addr_index): Likewise.
16756 (read_str_index): Change API and implementation. This becomes a helper
16757 to be used by the new string index related methods. Update error
16758 message and comments.
16759 (read_dwo_str_index): New function definition.
16760 (read_stub_str_index): Likewise.
16761 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16762 * symfile.h (dwarf2_debug_sections): Likewise.
16763 * xcoffread.c (dwarf2_debug_sections): Likewise.
16764
0cac9354
SM
167652020-01-13 Simon Marchi <simon.marchi@efficios.com>
16766
16767 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16768 core_reg_sect type to gdb_byte *.
16769 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16770 * cris-tdep.c (fetch_core_registers): Likewise.
16771 * corelow.c (core_target::get_core_register_section): Change
16772 type of `contents` to gdb::byte_vector.
16773
9a6d629c
AB
167742020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16775
16776 * tui/tui-wingeneral.c (box_win): Position the title in the center
16777 of the border.
16778
d8b2f9e3
SM
167792020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16780
16781 * corelow.c (core_target::get_core_register_section): Use
16782 std::vector instead of alloca.
16783
bb564c58
SM
167842020-01-13 Simon Marchi <simon.marchi@efficios.com>
16785
16786 * warning.m4: Add -Wmissing-declarations to build_warnings.
16787 * configure: Re-generate.
16788
6b366111
SM
167892020-01-13 Simon Marchi <simon.marchi@efficios.com>
16790
16791 * python/python.c (init__gdb_module): Add declaration.
16792
6c265988
SM
167932020-01-13 Simon Marchi <simon.marchi@efficios.com>
16794
16795 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16796 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16797 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16798 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16799 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16800 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16801 * ada-exp.y (_initialize_ada_exp): Add declaration.
16802 * ada-lang.c (_initialize_ada_language): Add declaration.
16803 * ada-tasks.c (_initialize_tasks): Add declaration.
16804 * agent.c (_initialize_agent): Add declaration.
16805 * aix-thread.c (_initialize_aix_thread): Add declaration.
16806 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16807 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16808 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16809 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16810 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16811 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16812 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16813 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16814 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16815 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16816 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16817 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16818 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16819 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16820 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16821 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16822 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16823 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16824 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16825 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16826 * annotate.c (_initialize_annotate): Add declaration.
16827 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16828 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16829 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16830 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16831 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16832 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16833 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16834 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16835 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16836 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16837 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16838 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16839 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16840 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16841 * auto-load.c (_initialize_auto_load): Add declaration.
16842 * auxv.c (_initialize_auxv): Add declaration.
16843 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16844 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16845 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16846 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16847 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16848 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16849 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16850 * breakpoint.c (_initialize_breakpoint): Add declaration.
16851 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16852 * btrace.c (_initialize_btrace): Add declaration.
16853 * charset.c (_initialize_charset): Add declaration.
16854 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16855 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16856 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16857 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16858 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16859 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16860 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16861 * coffread.c (_initialize_coffread): Add declaration.
16862 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16863 * compile/compile.c (_initialize_compile): Add declaration.
16864 * complaints.c (_initialize_complaints): Add declaration.
16865 * completer.c (_initialize_completer): Add declaration.
16866 * copying.c (_initialize_copying): Add declaration.
16867 * corefile.c (_initialize_core): Add declaration.
16868 * corelow.c (_initialize_corelow): Add declaration.
16869 * cp-abi.c (_initialize_cp_abi): Add declaration.
16870 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16871 * cp-support.c (_initialize_cp_support): Add declaration.
16872 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16873 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16874 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16875 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16876 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16877 * ctfread.c (_initialize_ctfread): Add declaration.
16878 * d-lang.c (_initialize_d_language): Add declaration.
16879 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16880 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16881 * dbxread.c (_initialize_dbxread): Add declaration.
16882 * dcache.c (_initialize_dcache): Add declaration.
16883 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16884 * disasm.c (_initialize_disasm): Add declaration.
16885 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16886 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16887 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16888 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16889 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16890 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16891 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16892 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16893 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16894 * elfread.c (_initialize_elfread): Add declaration.
16895 * exec.c (_initialize_exec): Add declaration.
16896 * extension.c (_initialize_extension): Add declaration.
16897 * f-lang.c (_initialize_f_language): Add declaration.
16898 * f-valprint.c (_initialize_f_valprint): Add declaration.
16899 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16900 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16901 * filesystem.c (_initialize_filesystem): Add declaration.
16902 * findcmd.c (_initialize_mem_search): Add declaration.
16903 * findvar.c (_initialize_findvar): Add declaration.
16904 * fork-child.c (_initialize_fork_child): Add declaration.
16905 * frame-base.c (_initialize_frame_base): Add declaration.
16906 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16907 * frame.c (_initialize_frame): Add declaration.
16908 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16909 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16910 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16911 * gcore.c (_initialize_gcore): Add declaration.
16912 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16913 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16914 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16915 * gdbarch.c (_initialize_gdbarch): Add declaration.
16916 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16917 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16918 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16919 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16920 * go-lang.c (_initialize_go_language): Add declaration.
16921 * go32-nat.c (_initialize_go32_nat): Add declaration.
16922 * guile/guile.c (_initialize_guile): Add declaration.
16923 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16924 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16925 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16926 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16927 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16928 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16929 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16930 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16931 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16932 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16933 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16934 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16935 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16936 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16937 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16938 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16939 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16940 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16941 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16942 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16943 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16944 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16945 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16946 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16947 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16948 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16949 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16950 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16951 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16952 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16953 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16954 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16955 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16956 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16957 * infcall.c (_initialize_infcall): Add declaration.
16958 * infcmd.c (_initialize_infcmd): Add declaration.
16959 * inflow.c (_initialize_inflow): Add declaration.
16960 * infrun.c (_initialize_infrun): Add declaration.
16961 * interps.c (_initialize_interpreter): Add declaration.
16962 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16963 * jit.c (_initialize_jit): Add declaration.
16964 * language.c (_initialize_language): Add declaration.
16965 * linux-fork.c (_initialize_linux_fork): Add declaration.
16966 * linux-nat.c (_initialize_linux_nat): Add declaration.
16967 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16968 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16969 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16970 * m2-lang.c (_initialize_m2_language): Add declaration.
16971 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16972 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16973 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16974 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16975 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16976 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16977 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16978 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16979 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16980 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16981 * machoread.c (_initialize_machoread): Add declaration.
16982 * macrocmd.c (_initialize_macrocmd): Add declaration.
16983 * macroscope.c (_initialize_macroscope): Add declaration.
16984 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16985 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16986 * maint.c (_initialize_maint_cmds): Add declaration.
16987 * mdebugread.c (_initialize_mdebugread): Add declaration.
16988 * memattr.c (_initialize_mem): Add declaration.
16989 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16990 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16991 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16992 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16993 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16994 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16995 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16996 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16997 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16998 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16999 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17000 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17001 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17002 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17003 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17004 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17005 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17006 * mipsread.c (_initialize_mipsread): Add declaration.
17007 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17008 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17009 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17010 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17011 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17012 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17013 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17014 * nto-procfs.c (_initialize_procfs): Add declaration.
17015 * objc-lang.c (_initialize_objc_language): Add declaration.
17016 * observable.c (_initialize_observer): Add declaration.
17017 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17018 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17019 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17020 * osabi.c (_initialize_gdb_osabi): Add declaration.
17021 * osdata.c (_initialize_osdata): Add declaration.
17022 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17023 * parse.c (_initialize_parse): Add declaration.
17024 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17025 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17026 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17027 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17028 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17029 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17030 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17031 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17032 * printcmd.c (_initialize_printcmd): Add declaration.
17033 * probe.c (_initialize_probe): Add declaration.
17034 * proc-api.c (_initialize_proc_api): Add declaration.
17035 * proc-events.c (_initialize_proc_events): Add declaration.
17036 * proc-service.c (_initialize_proc_service): Add declaration.
17037 * procfs.c (_initialize_procfs): Add declaration.
17038 * producer.c (_initialize_producer): Add declaration.
17039 * psymtab.c (_initialize_psymtab): Add declaration.
17040 * python/python.c (_initialize_python): Add declaration.
17041 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17042 * record-btrace.c (_initialize_record_btrace): Add declaration.
17043 * record-full.c (_initialize_record_full): Add declaration.
17044 * record.c (_initialize_record): Add declaration.
17045 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17046 * regcache.c (_initialize_regcache): Add declaration.
17047 * reggroups.c (_initialize_reggroup): Add declaration.
17048 * remote-notif.c (_initialize_notif): Add declaration.
17049 * remote-sim.c (_initialize_remote_sim): Add declaration.
17050 * remote.c (_initialize_remote): Add declaration.
17051 * reverse.c (_initialize_reverse): Add declaration.
17052 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17053 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17054 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17055 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17056 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17057 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17058 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17059 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17060 Add declaration.
17061 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17062 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17063 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17064 * rust-exp.y (_initialize_rust_exp): Add declaration.
17065 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17066 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17067 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17068 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17069 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17070 * score-tdep.c (_initialize_score_tdep): Add declaration.
17071 * ser-go32.c (_initialize_ser_dos): Add declaration.
17072 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17073 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17074 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17075 * ser-uds.c (_initialize_ser_socket): Add declaration.
17076 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17077 * serial.c (_initialize_serial): Add declaration.
17078 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17079 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17080 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17081 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17082 * skip.c (_initialize_step_skip): Add declaration.
17083 * sol-thread.c (_initialize_sol_thread): Add declaration.
17084 * solib-aix.c (_initialize_solib_aix): Add declaration.
17085 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17086 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17087 * solib-frv.c (_initialize_frv_solib): Add declaration.
17088 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17089 * solib-target.c (_initialize_solib_target): Add declaration.
17090 * solib.c (_initialize_solib): Add declaration.
17091 * source-cache.c (_initialize_source_cache): Add declaration.
17092 * source.c (_initialize_source): Add declaration.
17093 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17094 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17095 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17096 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17097 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17098 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17099 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17100 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17101 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17102 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17103 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17104 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17105 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17106 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17107 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17108 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17109 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17110 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17111 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17112 * stabsread.c (_initialize_stabsread): Add declaration.
17113 * stack.c (_initialize_stack): Add declaration.
17114 * stap-probe.c (_initialize_stap_probe): Add declaration.
17115 * std-regs.c (_initialize_frame_reg): Add declaration.
17116 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17117 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17118 * symfile.c (_initialize_symfile): Add declaration.
17119 * symmisc.c (_initialize_symmisc): Add declaration.
17120 * symtab.c (_initialize_symtab): Add declaration.
17121 * target.c (_initialize_target): Add declaration.
17122 * target-connection.c (_initialize_target_connection): Add
17123 declaration.
17124 * target-dcache.c (_initialize_target_dcache): Add declaration.
17125 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17126 * thread.c (_initialize_thread): Add declaration.
17127 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17128 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17129 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17130 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17131 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17132 * tracectf.c (_initialize_ctf): Add declaration.
17133 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17134 * tracefile.c (_initialize_tracefile): Add declaration.
17135 * tracepoint.c (_initialize_tracepoint): Add declaration.
17136 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17137 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17138 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17139 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17140 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17141 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17142 * tui/tui.c (_initialize_tui): Add declaration.
17143 * typeprint.c (_initialize_typeprint): Add declaration.
17144 * ui-style.c (_initialize_ui_style): Add declaration.
17145 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17146 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17147 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17148 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17149 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17150 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17151 * unittests/filtered_iterator-selftests.c
17152 (_initialize_filtered_iterator_selftests): Add declaration.
17153 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17154 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17155 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17156 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17157 * unittests/main-thread-selftests.c
17158 (_initialize_main_thread_selftests): Add declaration.
17159 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17160 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17161 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17162 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17163 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17164 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17165 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17166 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17167 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17168 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17169 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17170 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17171 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17172 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17173 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17174 declaration.
17175 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17176 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17177 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17178 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17179 * user-regs.c (_initialize_user_regs): Add declaration.
17180 * utils.c (_initialize_utils): Add declaration.
17181 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17182 * valops.c (_initialize_valops): Add declaration.
17183 * valprint.c (_initialize_valprint): Add declaration.
17184 * value.c (_initialize_values): Add declaration.
17185 * varobj.c (_initialize_varobj): Add declaration.
17186 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17187 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17188 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17189 * windows-nat.c (_initialize_windows_nat): Add declaration.
17190 (_initialize_check_for_gdb_ini): Add declaration.
17191 (_initialize_loadable): Add declaration.
17192 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17193 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17194 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17195 * xcoffread.c (_initialize_xcoffread): Add declaration.
17196 * xml-support.c (_initialize_xml_support): Add declaration.
17197 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17198 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17199 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17200 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17201
e2de1eec
SM
172022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17203
17204 * regformats/regdat.sh: Generate declaration for init function.
17205
e0037b4c
SM
172062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17207
17208 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17209 up.
17210 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17211 close_one_inferior>: New methods.
17212 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17213 pass down target to find_inferior_pid.
17214 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17215 Pass down target to find_inferior_ptid.
17216 (gdbsim_target::create_inferior): Pass down target to
17217 add_thread_silent.
17218 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17219 target down to find_inferior_ptid and switch_to_thread.
17220 (gdbsim_target::close): Update to call close_one_inferior.
17221 (struct resume_data): Remove.
17222 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17223 directly, rather than through a void pointer.
17224 (gdbsim_target::resume): Update to call resume_one_inferior.
17225
58920b5b
SM
172262020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17227
17228 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17229
4ec89149
PA
172302020-01-12 Pedro Alves <palves@redhat.com>
17231
17232 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17233 directly for the current inferior instead of
17234 discard_all_inferiors.
17235 (discard_all_inferiors): Delete.
17236
7c392d1d
TT
172372020-01-11 Tom Tromey <tom@tromey.com>
17238
17239 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17240 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17241 deprecated_safe_get_selected_frame.
17242
d9ebdab7
TBA
172432020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17244
17245 * inferior.c (print_inferior): Switch inferior before printing it.
17246
f3c469b9
PA
172472020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17248 Pedro Alves <palves@redhat.com>
17249
17250 * progspace-and-thread.c (switch_to_program_space_and_thread):
17251 Assert there's an inferior for PSPACE. Use
17252 switch_to_inferior_no_thread to switch the inferior too.
17253 * progspace.c (program_space::~program_space): Call
17254 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17255 (program_space::free_all_objfiles): Don't call clear_symtab_users
17256 here.
17257 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17258
65c574f6
PA
172592020-01-10 Pedro Alves <palves@redhat.com>
17260
17261 * NEWS: Mention multi-target debugging, "info connections", and
17262 "add-inferior -no-connection".
17263
2f4fcf00
PA
172642020-01-10 Pedro Alves <palves@redhat.com>
17265
17266 * infrun.c: Include "target-connection.h".
17267 (check_multi_target_resumption): New.
17268 (proceed): Call it.
17269 * target-connection.c (make_target_connection_string): Make
17270 extern.
17271 * target-connection.h (make_target_connection_string): Declare.
17272
121b3efd
PA
172732020-01-10 Pedro Alves <palves@redhat.com>
17274
17275 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17276 * inferior.c (uiout_field_connection): New function.
17277 (print_inferior): Add new "connection-id" column.
17278 (add_inferior_command): Show connection number/string of added
17279 inferior.
17280 * process-stratum-target.h
17281 (process_stratum_target::connection_string): New virtual method.
17282 (process_stratum_target::connection_number): New field.
17283 * remote.c (remote_target::connection_string): New override.
17284 * target-connection.c: New file.
17285 * target-connection.h: New file.
17286 * target.c (decref_target): Remove process_stratum targets from
17287 the connection list.
17288 (target_stack::push): Add process_stratum targets to the
17289 connection list.
17290
4f837581
PA
172912020-01-10 Pedro Alves <palves@redhat.com>
17292
17293 Revert:
17294 2016-04-12 Pedro Alves <palves@redhat.com>
17295 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17296 Remove references to name.
17297 * serial.h (struct serial) <name>: Delete.
17298
f4ec508e
PA
172992020-01-10 Pedro Alves <palves@redhat.com>
17300
17301 * gdbarch-selftests.c (register_to_value_test): Remove "target
17302 already pushed" check.
17303
5b6d1e4f
PA
173042020-01-10 Pedro Alves <palves@redhat.com>
17305 John Baldwin <jhb@FreeBSD.org>
17306
17307 * aarch64-linux-nat.c
17308 (aarch64_linux_nat_target::thread_architecture): Adjust.
17309 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17310 (task_command_1): Likewise.
17311 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17312 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17313 (aix_thread_target::store_registers)
17314 (aix_thread_target::thread_alive): Adjust.
17315 * amd64-fbsd-tdep.c: Include "inferior.h".
17316 (amd64fbsd_get_thread_local_address): Pass down target.
17317 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17318 thread's gdbarch instead of target_gdbarch.
17319 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17320 get_last_target_status.
17321 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17322 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17323 inferiors.
17324 (update_inserted_breakpoint_locations): Skip if inferiors with no
17325 execution.
17326 (update_global_location_list): When handling moribund locations,
17327 find representative inferior for location's pspace, and use thread
17328 count of its process_stratum target.
17329 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17330 * bsd-uthread.c (bsd_uthread_target::wait): Use
17331 as_process_stratum_target and adjust thread_change_ptid and
17332 add_thread calls.
17333 (bsd_uthread_target::update_thread_list): Use
17334 as_process_stratum_target and adjust find_thread_ptid,
17335 thread_change_ptid and add_thread calls.
17336 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17337 find_thread_ptid call.
17338 * corelow.c (add_to_thread_list): Adjust add_thread call.
17339 (core_target_open): Adjust add_thread_silent and thread_count
17340 calls.
17341 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17342 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17343 * event-top.c (async_disconnect): Pop targets from all inferiors.
17344 * exec.c (add_target_sections): Push exec target on all inferiors
17345 sharing the program space.
17346 (remove_target_sections): Remove the exec target from all
17347 inferiors sharing the program space.
17348 (exec_on_vfork): New.
17349 * exec.h (exec_on_vfork): Declare.
17350 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17351 Pass it down.
17352 (fbsd_nat_target::update_thread_list): Adjust.
17353 (fbsd_nat_target::resume): Adjust.
17354 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17355 down.
17356 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17357 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17358 get_thread_arch_regcache call.
17359 * fork-child.c (gdb_startup_inferior): Pass target down to
17360 startup_inferior and set_executing.
17361 * gdbthread.h (struct process_stratum_target): Forward declare.
17362 (add_thread, add_thread_silent, add_thread_with_info)
17363 (in_thread_list): Add process_stratum_target parameter.
17364 (find_thread_ptid(inferior*, ptid_t)): New overload.
17365 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17366 parameter.
17367 (all_threads()): Delete overload.
17368 (all_threads, all_non_exited_threads): Add process_stratum_target
17369 parameter.
17370 (all_threads_safe): Use brace initialization.
17371 (thread_count): Add process_stratum_target parameter.
17372 (set_resumed, set_running, set_stop_requested, set_executing)
17373 (threads_are_executing, finish_thread_state): Add
17374 process_stratum_target parameter.
17375 (switch_to_thread): Use is_current_thread.
17376 * i386-fbsd-tdep.c: Include "inferior.h".
17377 (i386fbsd_get_thread_local_address): Pass down target.
17378 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17379 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17380 have_inferiors check.
17381 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17382 (inf_ptrace_target::attach): Adjust.
17383 * infcall.c (run_inferior_call): Adjust.
17384 * infcmd.c (run_command_1): Pass target to
17385 scoped_finish_thread_state.
17386 (proceed_thread_callback): Skip inferiors with no execution.
17387 (continue_command): Rename 'all_threads' local to avoid hiding
17388 'all_threads' function. Adjust get_last_target_status call.
17389 (prepare_one_step): Adjust set_running call.
17390 (signal_command): Use user_visible_resume_target. Compare thread
17391 pointers instead of inferior_ptid.
17392 (info_program_command): Adjust to pass down target.
17393 (attach_command): Mark target's 'thread_executing' flag.
17394 (stop_current_target_threads_ns): New, factored out from ...
17395 (interrupt_target_1): ... this. Switch inferior before making
17396 target calls.
17397 * inferior-iter.h
17398 (struct all_inferiors_iterator, struct all_inferiors_range)
17399 (struct all_inferiors_safe_range)
17400 (struct all_non_exited_inferiors_range): Filter on
17401 process_stratum_target too. Remove explicit.
17402 * inferior.c (inferior::inferior): Push dummy target on target
17403 stack.
17404 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17405 Add process_stratum_target parameter, and pass it down.
17406 (have_live_inferiors): Adjust.
17407 (switch_to_inferior_and_push_target): New.
17408 (add_inferior_command, clone_inferior_command): Handle
17409 "-no-connection" parameter. Use
17410 switch_to_inferior_and_push_target.
17411 (_initialize_inferior): Mention "-no-connection" option in
17412 the help of "add-inferior" and "clone-inferior" commands.
17413 * inferior.h: Include "process-stratum-target.h".
17414 (interrupt_target_1): Use bool.
17415 (struct inferior) <push_target, unpush_target, target_is_pushed,
17416 find_target_beneath, top_target, process_target, target_at,
17417 m_stack>: New.
17418 (discard_all_inferiors): Delete.
17419 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17420 (all_inferiors, all_non_exited_inferiors): Add
17421 process_stratum_target parameter.
17422 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17423 (target_last_proc_target): New global.
17424 (follow_fork_inferior): Push target on new inferior. Pass target
17425 to add_thread_silent. Call exec_on_vfork. Handle target's
17426 reference count.
17427 (follow_fork): Adjust get_last_target_status call. Also consider
17428 target.
17429 (follow_exec): Push target on new inferior.
17430 (struct execution_control_state) <target>: New field.
17431 (user_visible_resume_target): New.
17432 (do_target_resume): Call target_async.
17433 (resume_1): Set target's threads_executing flag. Consider resume
17434 target.
17435 (commit_resume_all_targets): New.
17436 (proceed): Also consider resume target. Skip threads of inferiors
17437 with no execution. Commit resumtion in all targets.
17438 (start_remote): Pass current inferior to wait_for_inferior.
17439 (infrun_thread_stop_requested): Consider target as well. Pass
17440 thread_info pointer to clear_inline_frame_state instead of ptid.
17441 (infrun_thread_thread_exit): Consider target as well.
17442 (random_pending_event_thread): New inferior parameter. Use it.
17443 (do_target_wait): Rename to ...
17444 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17445 down.
17446 (threads_are_resumed_pending_p, do_target_wait): New.
17447 (prepare_for_detach): Adjust calls.
17448 (wait_for_inferior): New inferior parameter. Handle it. Use
17449 do_target_wait_1 instead of do_target_wait.
17450 (fetch_inferior_event): Adjust. Switch to representative
17451 inferior. Pass target down.
17452 (set_last_target_status): Add process_stratum_target parameter.
17453 Save target in global.
17454 (get_last_target_status): Add process_stratum_target parameter and
17455 handle it.
17456 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17457 (context_switch): Check inferior_ptid == null_ptid before calling
17458 inferior_thread().
17459 (get_inferior_stop_soon): Pass down target.
17460 (wait_one): Rename to ...
17461 (poll_one_curr_target): ... this.
17462 (struct wait_one_event): New.
17463 (wait_one): New.
17464 (stop_all_threads): Adjust.
17465 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17466 event's target.
17467 (switch_back_to_stepped_thread): Also consider target.
17468 (print_stop_event): Update.
17469 (normal_stop): Update. Also consider the resume target.
17470 * infrun.h (wait_for_inferior): Remove declaration.
17471 (user_visible_resume_target): New declaration.
17472 (get_last_target_status, set_last_target_status): New
17473 process_stratum_target parameter.
17474 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17475 process_stratum_target parameter, and use it.
17476 (clear_inline_frame_state (thread_info*)): New.
17477 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17478 process_stratum_target parameter.
17479 (clear_inline_frame_state (thread_info*)): Declare.
17480 * linux-fork.c (delete_checkpoint_command): Pass target down to
17481 find_thread_ptid.
17482 (checkpoint_command): Adjust.
17483 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17484 instead of just tweaking inferior_ptid.
17485 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17486 (exit_lwp): Pass target down to find_thread_ptid.
17487 (attach_proc_task_lwp_callback): Pass target down to
17488 add_thread/set_running/set_executing.
17489 (linux_nat_target::attach): Pass target down to
17490 thread_change_ptid.
17491 (get_detach_signal): Pass target down to find_thread_ptid.
17492 Consider last target status's target.
17493 (linux_resume_one_lwp_throw, resume_lwp)
17494 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17495 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17496 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17497 (linux_nat_target::async_wait_fd): New.
17498 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17499 target down.
17500 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17501 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17502 * linux-thread-db.c (struct thread_db_info::process_target): New
17503 field.
17504 (add_thread_db_info): Save target.
17505 (get_thread_db_info): New process_stratum_target parameter. Also
17506 match target.
17507 (delete_thread_db_info): New process_stratum_target parameter.
17508 Also match target.
17509 (thread_from_lwp): Adjust to pass down target.
17510 (thread_db_notice_clone): Pass down target.
17511 (check_thread_db_callback): Pass down target.
17512 (try_thread_db_load_1): Always push the thread_db target.
17513 (try_thread_db_load, record_thread): Pass target down.
17514 (thread_db_target::detach): Pass target down. Always unpush the
17515 thread_db target.
17516 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17517 target down. Always unpush the thread_db target.
17518 (find_new_threads_callback, thread_db_find_new_threads_2)
17519 (thread_db_target::update_thread_list): Pass target down.
17520 (thread_db_target::pid_to_str): Pass current inferior down.
17521 (thread_db_target::get_thread_local_address): Pass target down.
17522 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17523 target down.
17524 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17525 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17526 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17527 (procfs_init_inferior): Rename to ...
17528 (procfs_target::procfs_init_inferior): ... this and adjust.
17529 (procfs_target::create_inferior, procfs_notice_thread)
17530 (procfs_do_thread_registers): Adjust.
17531 * ppc-fbsd-tdep.c: Include "inferior.h".
17532 (ppcfbsd_get_thread_local_address): Pass down target.
17533 * proc-service.c (ps_xfer_memory): Switch current inferior and
17534 program space as well.
17535 (get_ps_regcache): Pass target down.
17536 * process-stratum-target.c
17537 (process_stratum_target::thread_address_space)
17538 (process_stratum_target::thread_architecture): Pass target down.
17539 * process-stratum-target.h
17540 (process_stratum_target::threads_executing): New field.
17541 (as_process_stratum_target): New.
17542 * ravenscar-thread.c
17543 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17544 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17545 down.
17546 * record-btrace.c (record_btrace_target::info_record): Adjust.
17547 (record_btrace_target::record_method)
17548 (record_btrace_target::record_is_replaying)
17549 (record_btrace_target::fetch_registers)
17550 (get_thread_current_frame_id, record_btrace_target::resume)
17551 (record_btrace_target::wait, record_btrace_target::stop): Pass
17552 target down.
17553 * record-full.c (record_full_wait_1): Switch to event thread.
17554 Pass target down.
17555 * regcache.c (regcache::regcache)
17556 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17557 process_stratum_target parameter and handle it.
17558 (current_thread_target): New global.
17559 (get_thread_regcache): Add process_stratum_target parameter and
17560 handle it. Switch inferior before calling target method.
17561 (get_thread_regcache): Pass target down.
17562 (get_thread_regcache_for_ptid): Pass target down.
17563 (registers_changed_ptid): Add process_stratum_target parameter and
17564 handle it.
17565 (registers_changed_thread, registers_changed): Pass target down.
17566 (test_get_thread_arch_aspace_regcache): New.
17567 (current_regcache_test): Define a couple local test_target_ops
17568 instances and use them for testing.
17569 (readwrite_regcache): Pass process_stratum_target parameter.
17570 (cooked_read_test, cooked_write_test): Pass mock_target down.
17571 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17572 (get_thread_arch_aspace_regcache): Add process_stratum_target
17573 parameter.
17574 (regcache::target): New method.
17575 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17576 (regcache::registers_changed_ptid): Add process_stratum_target
17577 parameter.
17578 (regcache::m_target): New field.
17579 (registers_changed_ptid): Add process_stratum_target parameter.
17580 * remote.c (remote_state::supports_vCont_probed): New field.
17581 (remote_target::async_wait_fd): New method.
17582 (remote_unpush_and_throw): Add remote_target parameter.
17583 (get_current_remote_target): Adjust.
17584 (remote_target::remote_add_inferior): Push target.
17585 (remote_target::remote_add_thread)
17586 (remote_target::remote_notice_new_inferior)
17587 (get_remote_thread_info): Pass target down.
17588 (remote_target::update_thread_list): Skip threads of inferiors
17589 bound to other targets. (remote_target::close): Don't discard
17590 inferiors. (remote_target::add_current_inferior_and_thread)
17591 (remote_target::process_initial_stop_replies)
17592 (remote_target::start_remote)
17593 (remote_target::remote_serial_quit_handler): Pass down target.
17594 (remote_target::remote_unpush_target): New remote_target
17595 parameter. Unpush the target from all inferiors.
17596 (remote_target::remote_unpush_and_throw): New remote_target
17597 parameter. Pass it down.
17598 (remote_target::open_1): Check whether the current inferior has
17599 execution instead of checking whether any inferior is live. Pass
17600 target down.
17601 (remote_target::remote_detach_1): Pass down target. Use
17602 remote_unpush_target.
17603 (extended_remote_target::attach): Pass down target.
17604 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17605 (remote_target::append_resumption): Pass down target.
17606 (remote_target::append_pending_thread_resumptions)
17607 (remote_target::remote_resume_with_hc, remote_target::resume)
17608 (remote_target::commit_resume): Pass down target.
17609 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17610 (remote_target::interrupt_query)
17611 (remote_target::remove_new_fork_children)
17612 (remote_target::check_pending_events_prevent_wildcard_vcont)
17613 (remote_target::remote_parse_stop_reply)
17614 (remote_target::process_stop_reply): Pass down target.
17615 (first_remote_resumed_thread): New remote_target parameter. Pass
17616 it down.
17617 (remote_target::wait_as): Pass down target.
17618 (unpush_and_perror): New remote_target parameter. Pass it down.
17619 (remote_target::readchar, remote_target::remote_serial_write)
17620 (remote_target::getpkt_or_notif_sane_1)
17621 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17622 down target.
17623 (remote_target::mourn_inferior): Pass down target. Use
17624 remote_unpush_target.
17625 (remote_target::core_of_thread)
17626 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17627 (remote_target::pid_to_exec_file)
17628 (remote_target::thread_handle_to_thread_info): Pass down target.
17629 (remote_target::async_wait_fd): New.
17630 * riscv-fbsd-tdep.c: Include "inferior.h".
17631 (riscv_fbsd_get_thread_local_address): Pass down target.
17632 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17633 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17634 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17635 Adjust.
17636 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17637 * solib-svr4.c (enable_break): Pass down target.
17638 * spu-multiarch.c (parse_spufs_run): Pass down target.
17639 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17640 * target-delegates.c: Regenerate.
17641 * target.c (g_target_stack): Delete.
17642 (current_top_target): Return the current inferior's top target.
17643 (target_has_execution_1): Refer to the passed-in inferior's top
17644 target.
17645 (target_supports_terminal_ours): Check whether the initial
17646 inferior was already created.
17647 (decref_target): New.
17648 (target_stack::push): Incref/decref the target.
17649 (push_target, push_target, unpush_target): Adjust.
17650 (target_stack::unpush): Defref target.
17651 (target_is_pushed): Return bool. Adjust to refer to the current
17652 inferior's target stack.
17653 (dispose_inferior): Delete, and inline parts ...
17654 (target_preopen): ... here. Only dispose of the current inferior.
17655 (target_detach): Hold strong target reference while detaching.
17656 Pass target down.
17657 (target_thread_name): Add assertion.
17658 (target_resume): Pass down target.
17659 (target_ops::beneath, find_target_at): Adjust to refer to the
17660 current inferior's target stack.
17661 (get_dummy_target): New.
17662 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17663 has a thread running.
17664 (initialize_targets): Rename to ...
17665 (_initialize_target): ... this.
17666 * target.h: Include "gdbsupport/refcounted-object.h".
17667 (struct target_ops): Inherit refcounted_object.
17668 (target_ops::shortname, target_ops::longname): Make const.
17669 (target_ops::async_wait_fd): New method.
17670 (decref_target): Declare.
17671 (struct target_ops_ref_policy): New.
17672 (target_ops_ref): New typedef.
17673 (get_dummy_target): Declare function.
17674 (target_is_pushed): Return bool.
17675 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17676 (all_matching_threads_iterator::all_matching_threads_iterator):
17677 Handle filter target.
17678 * thread-iter.h (struct all_matching_threads_iterator, struct
17679 all_matching_threads_range, class all_non_exited_threads_range):
17680 Filter by target too. Remove explicit.
17681 * thread.c (threads_executing): Delete.
17682 (inferior_thread): Pass down current inferior.
17683 (clear_thread_inferior_resources): Pass down thread pointer
17684 instead of ptid_t.
17685 (add_thread_silent, add_thread_with_info, add_thread): Add
17686 process_stratum_target parameter. Use it for thread and inferior
17687 searches.
17688 (is_current_thread): New.
17689 (thread_info::deletable): Use it.
17690 (find_thread_ptid, thread_count, in_thread_list)
17691 (thread_change_ptid, set_resumed, set_running): New
17692 process_stratum_target parameter. Pass it down.
17693 (set_executing): New process_stratum_target parameter. Pass it
17694 down. Adjust reference to 'threads_executing'.
17695 (threads_are_executing): New process_stratum_target parameter.
17696 Adjust reference to 'threads_executing'.
17697 (set_stop_requested, finish_thread_state): New
17698 process_stratum_target parameter. Pass it down.
17699 (switch_to_thread): Also match inferior.
17700 (switch_to_thread): New process_stratum_target parameter. Pass it
17701 down.
17702 (update_threads_executing): Reimplement.
17703 * top.c (quit_force): Pop targets from all inferior.
17704 (gdb_init): Don't call initialize_targets.
17705 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17706 Declare.
17707 (windows_add_thread, windows_delete_thread): Adjust.
17708 (get_windows_debug_event): Rename to ...
17709 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17710 * tracefile-tfile.c (tfile_target_open): Pass down target.
17711 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17712 Forward declare.
17713 (switch_to_thread): Add process_stratum_target parameter.
17714 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17715 parameter. Use it.
17716 (mi_on_resume): Pass target down.
17717 * nat/fork-inferior.c (startup_inferior): Add
17718 process_stratum_target parameter. Pass it down.
17719 * nat/fork-inferior.h (startup_inferior): Add
17720 process_stratum_target parameter.
17721 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17722
75c6c844
PA
177232020-01-10 Pedro Alves <palves@redhat.com>
17724
17725 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17726 directly. Instead find the first thread in the thread list and
17727 use switch_to_thread.
17728
78f2c40a
PA
177292020-01-10 Pedro Alves <palves@redhat.com>
17730
17731 * remote.c (remote_target::remote_add_inferior): Don't bind a
17732 process to the current inferior if the current inferior is already
17733 bound to a process.
17734
e7af6c70
TBA
177352020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17736 Pedro Alves <palves@redhat.com>
17737
17738 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17739 If no process is specified, return null_ptid instead of
17740 inferior_ptid.
17741 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17742 TARGET_WAITKIND_SIGNALLED with no pid.
17743
31ba933e
PA
177442020-01-10 Pedro Alves <palves@redhat.com>
17745
17746 * remote.c (first_remote_resumed_thread): New.
17747 (remote_target::wait_as): Use it as default event_ptid instead of
17748 inferior_ptid.
17749
735fc2ca
PA
177502020-01-10 Pedro Alves <palves@redhat.com>
17751
17752 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17753
c17e02e1
PA
177542020-01-10 Pedro Alves <palves@redhat.com>
17755
17756 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17757 not -1.
17758
ab1ddbcf
PA
177592020-01-10 Pedro Alves <palves@redhat.com>
17760
17761 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17762 ptid to get_last_target_status.
17763 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17764 ptid to get_last_target_status.
17765 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17766 get_last_target_status.
17767 (info_program_command): Don't pass a target_waitstatus to
17768 get_last_target_status.
17769 * infrun.c (init_wait_for_inferior): Use
17770 nullify_last_target_wait_ptid.
17771 (get_last_target_status): Handle nullptr arguments.
17772 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17773 (print_stop_event): Don't pass a ptid to get_last_target_status.
17774 (normal_stop): Don't pass a ptid to get_last_target_status.
17775 * infrun.h (get_last_target_status, set_last_target_status): Move
17776 comments here and update.
17777 (nullify_last_target_wait_ptid): Declare.
17778 * linux-fork.c (fork_load_infrun_state): Remove local extern
17779 declaration of nullify_last_target_wait_ptid.
17780 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17781 to get_last_target_status.
17782
f3f8ece4
PA
177832020-01-10 Pedro Alves <palves@redhat.com>
17784
17785 * gdbthread.h (scoped_restore_current_thread)
17786 <dont_restore, restore, m_dont_restore>: Declare.
17787 * thread.c (thread_alive): Add assertion. Return bool.
17788 (switch_to_thread_if_alive): New.
17789 (prune_threads): Switch inferior/thread.
17790 (print_thread_info_1): Switch thread before calling target methods.
17791 (scoped_restore_current_thread::restore): New, factored out from
17792 ...
17793 (scoped_restore_current_thread::~scoped_restore_current_thread):
17794 ... this.
17795 (scoped_restore_current_thread::scoped_restore_current_thread):
17796 Add assertion.
17797 (thread_apply_all_command, thread_select): Use
17798 switch_to_thread_if_alive.
17799 * infrun.c (proceed, restart_threads, handle_signal_stop)
17800 (switch_back_to_stepped_thread): Switch current thread before
17801 calling target methods.
17802
db2d40f7
PA
178032020-01-10 Pedro Alves <palves@redhat.com>
17804
17805 * inferior.c (switch_to_inferior_no_thread): New function,
17806 factored out from ...
17807 (inferior_command): ... here.
17808 * inferior.h (switch_to_inferior_no_thread): Declare.
17809 * mi/mi-main.c (run_one_inferior): Use
17810 switch_to_inferior_no_thread.
17811
bd420a2d
PA
178122020-01-10 Pedro Alves <palves@redhat.com>
17813
17814 * infcmd.c (kill_command): Remove dead code.
17815
ddf5db90
PA
178162020-01-10 Pedro Alves <palves@redhat.com>
17817
17818 * remote.c (remote_target::mourn_inferior): No longer check
17819 whether the target is running.
17820
5018ce90
PA
178212020-01-10 Pedro Alves <palves@redhat.com>
17822
17823 * corelow.c (core_target::has_execution): Change parameter type to
17824 inferior pointer.
17825 * inferior.c (number_of_live_inferiors): Use
17826 inferior::has_execution instead of target_has_execution_1.
17827 * inferior.h (inferior::has_execution): New.
17828 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17829 inferior::has_execution instead of target_has_execution_1.
17830 * process-stratum-target.c
17831 (process_stratum_target::has_execution): Change parameter type to
17832 inferior pointer. Check the inferior's PID instead of
17833 inferior_ptid.
17834 * process-stratum-target.h
17835 (process_stratum_target::has_execution): Change parameter type to
17836 inferior pointer.
17837 * record-full.c (record_full_core_target::has_execution): Change
17838 parameter type to inferior pointer.
17839 * target.c (target_has_execution_1): Change parameter type to
17840 inferior pointer.
17841 (target_has_execution_current): Adjust.
17842 * target.h (target_ops::has_execution): Change parameter type to
17843 inferior pointer.
17844 (target_has_execution_1): Change parameter type to inferior
17845 pointer. Change return type to bool.
17846 * tracefile.h (tracefile_target::has_execution): Change parameter
17847 type to inferior pointer.
17848
74375d18
PA
178492020-01-10 Pedro Alves <palves@redhat.com>
17850
17851 * exceptions.c (print_flush): Remove current_top_target() check.
17852
acdf84a6
PA
178532020-01-10 Pedro Alves <palves@redhat.com>
17854
17855 * remote.c (show_remote_exec_file): Show the current inferior's
17856 exec-file instead of the command variable's value.
17857
ec506636
PA
178582020-01-10 Pedro Alves <palves@redhat.com>
17859
17860 * record-full.c (record_full_resume_ptid): New global.
17861 (record_full_target::resume): Set it.
17862 (record_full_wait_1): Use record_full_resume_ptid instead of
17863 inferior_ptid.
17864
873657b9
PA
178652020-01-10 Pedro Alves <palves@redhat.com>
17866
17867 * gdbthread.h (scoped_restore_current_thread)
17868 <dont_restore, restore, m_dont_restore>: Declare.
17869 * thread.c (thread_alive): Add assertion. Return bool.
17870 (switch_to_thread_if_alive): New.
17871 (prune_threads): Switch inferior/thread.
17872 (print_thread_info_1): Switch thread before calling target methods.
17873 (scoped_restore_current_thread::restore): New, factored out from
17874 ...
17875 (scoped_restore_current_thread::~scoped_restore_current_thread):
17876 ... this.
17877 (scoped_restore_current_thread::scoped_restore_current_thread):
17878 Add assertion.
17879 (thread_apply_all_command, thread_select): Use
17880 switch_to_thread_if_alive.
17881
7f0ae84c
GB
178822020-01-10 George Barrett <bob@bob131.so>
17883
17884 * stap-probe.c (stap_modify_semaphore): Don't check for null
17885 semaphores.
17886 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17887 for null semaphores.
17888
f5a7c406
AB
178892020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17890
17891 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17892 all source windows, and maintain horizontal scroll status while
17893 doing so.
17894
9ae6bf64
TT
178952020-01-09 Tom Tromey <tom@tromey.com>
17896
17897 PR tui/18932:
17898 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17899 update_source_window, not print_source_lines.
17900
b2efe70c
AB
179012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17902
17903 * tui/tui.c (tui_enable): Register tui hooks after calling
17904 tui_display_main.
17905
5f23a082
CB
179062020-01-09 Christian Biesinger <cbiesinger@google.com>
17907
17908 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17909
3061113b
SM
179102020-01-08 Simon Marchi <simon.marchi@efficios.com>
17911
17912 * thread.c (print_thread_info_1): Fix indentation.
17913
57d75002
CB
179142020-01-09 Christian Biesinger <cbiesinger@google.com>
17915
17916 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17917 unique_xmalloc_ptr outside the if to always free the demangled name.
17918
6a053cb1
TT
179192020-01-08 Tom Tromey <tromey@adacore.com>
17920
17921 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17922 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17923 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17924 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17925 Remove.
17926 (section_offsets): New typedef.
17927 * symtab.c (fixup_section, get_msymbol_address): Update.
17928 * symmisc.c (dump_msymbols): Update.
17929 * symfile.h (relative_addr_info_to_section_offsets)
17930 (symfile_map_offsets_to_segments): Update.
17931 * symfile.c (build_section_addr_info_from_objfile)
17932 (init_objfile_sect_indices): Update.
17933 (struct place_section_arg): Change type of "offsets".
17934 (place_section): Update.
17935 (relative_addr_info_to_section_offsets): Change type of
17936 "section_offsets". Remove "num_sections" parameter.
17937 (default_symfile_offsets, syms_from_objfile_1)
17938 (set_objfile_default_section_offset): Update.
17939 (reread_symbols): No need to preserve section offsets by hand.
17940 (symfile_map_offsets_to_segments): Change type of "offsets".
17941 * stap-probe.c (relocate_address): Update.
17942 * stabsread.h (process_one_symbol): Update.
17943 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17944 (solib_target_relocate_section_addresses): Update.
17945 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17946 Update.
17947 * solib-frv.c (frv_relocate_main_executable): Update.
17948 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17949 * solib-aix.c (solib_aix_get_section_offsets): Change return
17950 type.
17951 (solib_aix_solib_create_inferior_hook): Update.
17952 * remote.c (remote_target::get_offsets): Update.
17953 * psymtab.c (find_pc_sect_psymtab): Update.
17954 * psympriv.h (struct partial_symbol) <address, text_low,
17955 text_high>: Update.
17956 * objfiles.h (obj_section_offset): Update.
17957 (struct objfile) <section_offsets>: Change type.
17958 <num_sections>: Remove.
17959 (objfile_relocate): Update.
17960 * objfiles.c (entry_point_address_query): Update
17961 (relocate_one_symbol): Change type of "section_offsets".
17962 (objfile_relocate1, objfile_relocate1): Change type of
17963 "new_offsets".
17964 (objfile_rebase1): Update.
17965 * mipsread.c (mipscoff_symfile_read): Update.
17966 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17967 parameter.
17968 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17969 (parse_external, psymtab_to_symtab_1): Update.
17970 * machoread.c (macho_symfile_offsets): Update.
17971 * ia64-tdep.c (ia64_find_unwind_table): Update.
17972 * hppa-tdep.c (read_unwind_info): Update.
17973 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17974 * dwarf2read.c (create_addrmap_from_index)
17975 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17976 (process_psymtab_comp_unit_reader, add_partial_symbol)
17977 (add_partial_subprogram, process_full_comp_unit)
17978 (read_file_scope, read_func_scope, read_lexical_block_scope)
17979 (read_call_site_scope, dwarf2_rnglists_process)
17980 (dwarf2_ranges_process, dwarf2_ranges_read)
17981 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17982 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17983 Update.
17984 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17985 Update.
17986 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17987 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17988 (process_one_symbol): Change type of "section_offsets".
17989 * ctfread.c (get_objfile_text_range): Update.
17990 * coffread.c (coff_symtab_read, enter_linenos)
17991 (process_coff_symbol): Update.
17992 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17993 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17994
456e800a
TT
179952020-01-08 Tom Tromey <tromey@adacore.com>
17996
17997 * dwarf2read.c (parse_macro_definition): Use std::string.
17998 (parse_macro_definition): Likewise.
17999
6dfa2fc2
TT
180002020-01-08 Tom Tromey <tromey@adacore.com>
18001
18002 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18003 (ATTR_ALLOC_CHUNK): Remove.
18004
421d1616
TT
180052020-01-08 Tom Tromey <tromey@adacore.com>
18006
18007 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18008
43816ebc
TT
180092020-01-08 Tom Tromey <tromey@adacore.com>
18010
18011 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18012 (dwarf2_compute_name, open_dwo_file): Likewise.
18013 (process_enumeration_scope): Use std::vector.
18014 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18015 (partial_die_info::fixup, dwarf2_start_subfile)
18016 (guess_full_die_structure_name, dwarf2_name): Likewise.
18017 (determine_prefix): Update.
18018 (guess_full_die_structure_name): Make return type const.
18019 (partial_die_full_name): Return unique_xmalloc_ptr.
18020 (DW_FIELD_ALLOC_CHUNK): Remove.
18021
4212d509
TT
180222020-01-07 Tom Tromey <tromey@adacore.com>
18023
18024 PR build/24937:
18025 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18026
06a6207a
JT
180272020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18028
18029 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18030
153d79c4
AB
180312020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18032
18033 * stack.c (print_frame_info): Move disassemble_next_line code
18034 inside source_print block.
18035
66182876
EZ
180362020-01-06 Eli Zaretskii <eliz@gnu.org>
18037
18038 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18039 gdb/signals.h, as we are now using native signal symbols.
18040
cbfa8581
SV
180412020-01-06 Shahab Vahedi <shahab@synopsys.com>
18042
18043 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18044 overflow by an early check of content vs threshold.
aac66a4c 18045 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18046 Likewise.
18047
3f602821
EZ
180482020-01-06 Eli Zaretskii <eliz@gnu.org>
18049
18050 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18051
a08c904d
JT
180522020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18053
18054 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18055 export table if no section contains it's RVA.
18056
89a65580
EZ
180572020-01-06 Eli Zaretskii <eliz@gnu.org>
18058
18059 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18060
8b7fcda2
HD
180612020-01-06 Hannes Domani <ssbssa@yahoo.de>
18062
18063 * source.c (print_source_lines_base): Set last_line_listed.
18064
a61b4f69
SV
180652020-01-06 Shahab Vahedi <shahab@synopsys.com>
18066
18067 * tui/tui-disasm.c: Remove trailing spaces.
18068
559e7e50
EZ
180692020-01-06 Eli Zaretskii <eliz@gnu.org>
18070 Pedro Alves <palves@redhat.com>
18071
18072 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18073 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18074 (windows_gdb_signal_to_target): New function, uses the above
18075 enumeration to convert GDB internal signal codes to equivalent
18076 Windows codes.
18077 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18078 * windows-nat.c: Include "gdb_wait.h".
18079 (get_windows_debug_event): Extract the fatal exception from the
18080 exit status and convert to the equivalent Posix signal number.
18081 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18082 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18083 * gdbsupport/gdb_wait.c: New file, implements
18084 windows_status_to_termsig.
18085 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18086 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18087
f2302a34
AB
180882020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18089
18090 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18091 show_layout.
18092
6a5206eb
LM
180932020-01-05 Luis Machado <luis.machado@linaro.org>
18094
18095 * aarch64-linux-nat.c
18096 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18097 and bfd_mach_aarch64.
18098
6ec1d75e
PW
180992020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18100
18101 * ui-file.c (stdio_file::can_emit_style_escape)
18102 (tee_file::can_emit_style_escape): Ensure style is used also on
18103 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18104 to gdb_stdout.
18105 * main.c (set_gdb_data_directory): Use file style to output the
18106 warning that the given pathname is not a directory.
18107 * top.c (show_history_filename, gdb_safe_append_history)
18108 (show_gdb_datadir): Use file style.
18109
44f81a76
HD
181102020-01-03 Hannes Domani <ssbssa@yahoo.de>
18111
18112 * solib-target.c (struct lm_info_target):
18113 Change offsets to be a unique_xmalloc_ptr.
18114 (solib_target_relocate_section_addresses): Update.
18115
25057eb0
HD
181162020-01-03 Hannes Domani <ssbssa@yahoo.de>
18117
18118 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18119
6e2118f5
BE
181202020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18121
18122 * MAINTAINERS (Write After Approval): Add myself.
18123
8133c7dc
LM
181242020-01-02 Luis Machado <luis.machado@linaro.org>
18125
18126 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18127 Cell BE architecture.
18128 * target.h (struct target_ops) <thread_architecture>: Likewise.
18129
48189bec
HD
181302020-01-01 Hannes Domani <ssbssa@yahoo.de>
18131
18132 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18133
ead1063b
HD
181342020-01-01 Hannes Domani <ssbssa@yahoo.de>
18135
18136 * MAINTAINERS (Write After Approval): Add myself.
18137
e5d78223
JB
181382020-01-01 Joel Brobecker <brobecker@adacore.com>
18139
18140 * gdbarch.sh: Update copyright year range of generated files.
18141
b811d2c2
JB
181422020-01-01 Joel Brobecker <brobecker@adacore.com>
18143
18144 Update copyright year range in all GDB files.
18145
5f4def5c
JB
181462020-01-01 Joel Brobecker <brobecker@adacore.com>
18147
18148 * copyright.py: Convert to Python 3.
18149
51fd4002
JB
181502020-01-01 Joel Brobecker <brobecker@adacore.com>
18151
18152 * copyright.py: Adapt after move of gnulib directory from gdb
18153 directory to toplevel directory.
18154
5fb651f2
JB
181552020-01-01 Joel Brobecker <brobecker@adacore.com>
18156
18157 * copyright.py (main): Exit if run from the wrong directory.
18158
5dd8bf88
JB
181592020-01-01 Joel Brobecker <brobecker@adacore.com>
18160
18161 * top.c (print_gdb_version): Change copyright year to 2020.
18162
9f71dacb 181632020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18164
9f71dacb 18165 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18166
9f71dacb 18167For older changes see ChangeLog-2019.
c906108c
SS
18168\f
18169Local Variables:
18170mode: change-log
18171left-margin: 8
18172fill-column: 74
18173version-control: never
57da7796 18174coding: utf-8
c906108c 18175End: