Remove varobj_clear_saved_item
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-11 Tom Tromey <tom@tromey.com>
2
3 * varobj.c (varobj_clear_saved_item): Remove.
4 (update_dynamic_varobj_children): Update.
5 (varobj::~varobj): Don't call varobj_clear_saved_item.
6
7 2020-12-11 Tom Tromey <tom@tromey.com>
8
9 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
10 (update_dynamic_varobj_children, create_child)
11 (create_child_with_value): Update.
12 * varobj-iter.h (struct varobj_item) <value>: Now a
13 value_ref_ptr.
14 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
15
16 2020-12-11 Tom Tromey <tom@tromey.com>
17
18 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
19 (varobj_get_iterator): Return unique_ptr.
20 (update_dynamic_varobj_children, install_visualizer)
21 (varobj::~varobj): Update.
22 * python/python-internal.h (py_varobj_get_iterator): Return
23 unique_ptr.
24 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
25
26 2020-12-11 Tom Tromey <tom@tromey.com>
27
28 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
29 (varobj_clear_saved_item, update_dynamic_varobj_children):
30 Update.
31
32 2020-12-11 Tom Tromey <tom@tromey.com>
33
34 * varobj.c (update_dynamic_varobj_children): Update.
35 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
36 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
37 type.
38 (py_varobj_iter::next): Likewise.
39
40 2020-12-11 Tom Tromey <tom@tromey.com>
41
42 * varobj.c (update_dynamic_varobj_children, install_visualizer)
43 (varobj::~varobj): Update.
44 * varobj-iter.h (struct varobj_iter): Change to interface class.
45 (struct varobj_iter_ops): Remove.
46 (varobj_iter_next, varobj_iter_delete): Remove.
47 * python/py-varobj.c (struct py_varobj_iter): Derive from
48 varobj_iter. Add constructor, destructor. Rename members.
49 (py_varobj_iter::~py_varobj_iter): Rename from
50 py_varobj_iter_dtor.
51 (py_varobj_iter::next): Rename from py_varobj_iter_next.
52 (py_varobj_iter_ops): Remove.
53 (py_varobj_iter): Rename from py_varobj_iter_ctor.
54 (py_varobj_iter_new): Remove.
55 (py_varobj_get_iterator): Update.
56
57 2020-12-11 Tom Tromey <tom@tromey.com>
58
59 * varobj.h (all_root_varobjs): Take a function_view.
60 * varobj.c (all_root_varobjs): Take a function_view.
61 (varobj_invalidate_iter): Remove unused parameter.
62 (varobj_invalidate): Update.
63 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
64 (mi_cmd_var_update_iter): Change parameters.
65
66 2020-12-11 Tom Tromey <tom@tromey.com>
67
68 * varobj.c (struct varobj_root) <next>: Remove.
69 (struct vlist): Remove.
70 (rootlist): Now a std::list.
71 (install_variable, uninstall_variable, all_root_varobjs): Update.
72
73 2020-12-11 Tom Tromey <tom@tromey.com>
74
75 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
76 (varobj_table): Now htab_t.
77 (varobj_get_handle, install_variable, uninstall_variable):
78 Update.
79 (hash_varobj, eq_varobj_and_string): New functions.
80 (hash_varobj): Update.
81
82 2020-12-11 Tom Tromey <tom@tromey.com>
83
84 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
85 * ada-lang.c (check_status_exception): Update.
86 * breakpoint.c (free_bp_location): Remove.
87 (decref_bp_location): Use bp_location_ref_policy.
88 (bpstats::bpstats): Don't call incref_bp_location.
89 (bpstats::~bpstats): Remove.
90 (bpstats::bpstats): Update.
91 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
92 (bp_location::bp_location): Update.
93 (incref_bp_location): Remove.
94 (bkpt_print_it): Update.
95 * breakpoint.h (class bp_location): Derive from
96 refcounted_object.
97 (struct bpstats): Remove destructor.
98 <bp_location_at>: Now a bp_location_ref_ptr.
99 <refc>: Remove.
100 (bp_location_ref_ptr): New typedef.
101 (struct bp_location_ref_policy): New.
102
103 2020-12-11 Tom Tromey <tom@tromey.com>
104
105 * thread.c (class scoped_inc_dec_ref): Remove.
106 (tp_array_compar_ascending, tp_array_compar_descending): Change
107 parameter types.
108 (thread_apply_all_command): Use thread_info_ref.
109
110 2020-12-11 Tom Tromey <tom@tromey.com>
111
112 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
113 (stop_context::stop_context): Update.
114 (stop_context::~stop_context): Remove.
115
116 2020-12-11 Tom Tromey <tom@tromey.com>
117
118 * inferior.c (current_inferior_): Change type.
119 (current_inferior, set_current_inferior, initialize_inferiors):
120 Update.
121
122 2020-12-11 Tom Tromey <tom@tromey.com>
123
124 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
125 Change type.
126
127 2020-12-11 Tom Tromey <tromey@adacore.com>
128
129 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
130 field.
131 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
132 (read_atcb): Use cpu_id_offset.
133
134 2020-12-10 Kevin Buettner <kevinb@redhat.com>
135
136 * ada-lang.c (ada_fold_name): Fix off-by-one error.
137
138 2020-12-10 Luis Machado <luis.machado@linaro.org>
139
140 * breakpoint.c (should_be_inserted): Don't output newline.
141
142 2020-12-10 Luis Machado <luis.machado@linaro.org>
143
144 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
145 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
146 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
147 * arch/aarch64.h: ... here.
148 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
149 (aarch64_maybe_swab128): New function.
150 (aarch64_sve_regs_copy_to_reg_buf)
151 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
152 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
153 the data field.
154 (TF_REG_VALUE_BYTES): New enum value.
155 (trad_frame_value_bytes_p): New function.
156 (trad_frame_set_value_bytes): New function.
157 (trad_frame_set_reg_value_bytes): New function.
158 (trad_frame_get_prev_register): Handle register values saved as bytes.
159 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
160 (struct trad_frame_saved_reg) <data>: New field.
161 (trad_frame_set_value_bytes): New prototype.
162 (trad_frame_value_bytes_p): New prototype.
163
164 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
165
166 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
167 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
168 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
169
170 2020-12-09 Tom Tromey <tromey@adacore.com>
171
172 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
173
174 2020-12-09 Tom Tromey <tromey@adacore.com>
175
176 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
177 and "denominator" to gdb_mpz. Handle block forms.
178 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
179 "denominator" to gdb_mpz.
180 (finish_fixed_point_type): Update.
181 (has_zero_over_zero_small_attribute): Update.
182
183 2020-12-09 Tom Tromey <tromey@adacore.com>
184
185 * expprint.c (op_name): Update.
186 * expression.h (enum exp_opcode): Update.
187 * std-operator.def: Add more opcodes.
188 * ada-operator.def, fortran-operator.def: Remove, moving contents
189 into std-operator.def.
190
191 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
194 Return {} instead of false.
195 (get_discrete_bounds): Compute high bound only if low bound is
196 valid.
197
198 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
199
200 PR 26875, PR 26901
201 * gdbtypes.c (get_discrete_low_bound): Make non-static.
202 (get_discrete_high_bound): Make non-static.
203 * gdbtypes.h (get_discrete_low_bound): New declaration.
204 (get_discrete_high_bound): New declaration.
205 * valarith.c (value_subscript): Only fetch high bound if
206 necessary.
207
208 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
209
210 * gdbtypes.c (get_discrete_bounds): Implement with
211 get_discrete_low_bound and get_discrete_high_bound.
212 (get_discrete_low_bound): New.
213 (get_discrete_high_bound): New.
214
215 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
216
217 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
218 callers.
219 * gdbtypes.c (get_discrete_bounds): Return bool.
220
221 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
222
223 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
224 (ada_value_slice): Adjust.
225 (pos_atr): Adjust.
226 * gdbtypes.c (get_discrete_bounds): Adjust.
227 (discrete_position): Return optional.
228 * gdbtypes.h (discrete_position): Return optional.
229
230 2020-12-07 Tom Tromey <tromey@adacore.com>
231
232 * maint.c (_initialize_maint_cmds): Use expression command
233 completer for "maint print type".
234
235 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
236
237 * completer.c (complete_explicit_location): Also add keywords
238 that start with '-' to the completion list.
239
240 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
241
242 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
243 keyword may be followed by any keyword.
244 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
245 'toklen' in the case for "-force-condition".
246
247 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
248
249 * main.c (catch_command_errors): Add a flag parameter; invoke
250 `bpstat_do_actions` if the flag is set.
251 (execute_cmdargs): Update a call to `catch_command_errors`.
252
253 2020-12-07 Tom de Vries <tdevries@suse.de>
254
255 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
256
257 2020-12-06 Tom Tromey <tom@tromey.com>
258
259 PR ada/26999
260 * ada-lang.c (replace_operator_with_call): Rewrite.
261
262 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
263
264 PR breakpoints/27009
265 * s390-tdep.h (op_bc): Correct BC opcode value.
266
267 2020-12-06 Joel Brobecker <brobecker@adacore.com>
268
269 * gmp-utils.h (gdb_mpz::safe_export): New private method.
270 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
271 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
272 (gdb_mpz::safe_export): New method.
273 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
274 Update function description.
275 (check_as_integer_raises_out_of_range_error): New function.
276 (gdb_mpz_as_integer_out_of_range): New function.
277 (_initialize_gmp_utils_selftests): Register
278 gdb_mpz_as_integer_out_of_range as a selftest.
279
280 2020-12-05 Joel Brobecker <brobecker@adacore.com>
281
282 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
283 TARGET_CHAR_BIT.
284 (gdb_mpz::write): Likewise.
285
286 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
287
288 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
289 number of displaced step buffers.
290
291 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
292
293 * displaced-stepping.h (struct displaced_step_buffer): Rename
294 to...
295 (struct displaced_step_buffers): ... this.
296 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
297 <struct displaced_step_buffer>: New inner class.
298 <m_buffers>: New.
299 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
300 to...
301 (displaced_step_buffers::prepare): ... this, adjust for multiple
302 buffers.
303 (displaced_step_buffer::finish): Rename to...
304 (displaced_step_buffers::finish): ... this, adjust for multiple
305 buffers.
306 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
307 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
308 adjust for multiple buffers.
309 (displaced_step_buffer::restore_in_ptid): Rename to...
310 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
311 multiple buffers.
312 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
313 for num_disp_step_buffers.
314 * linux-tdep.c (struct linux_gdbarch_data)
315 <num_disp_step_buffers>: New field.
316 (struct linux_info) <disp_step_buf>: Rename to...
317 <disp_step_bufs>: ... this, change type to
318 displaced_step_buffers.
319 (linux_displaced_step_prepare): Use
320 linux_gdbarch_data::num_disp_step_buffers to create that number
321 of buffers.
322 (linux_displaced_step_finish): Adjust.
323 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
324 (linux_displaced_step_restore_all_in_ptid): Adjust.
325 (linux_init_abi): Change supports_displaced_step parameter for
326 num_disp_step_buffers, save it in linux_gdbarch_data.
327 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
328 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
329 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
330 supports_displaced_step parameter for num_disp_step_buffers.
331 (amd64_linux_init_abi): Adjust.
332 (amd64_x32_linux_init_abi): Adjust.
333 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
334 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
335 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
336 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
337 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
338 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
339 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
340 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
341 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
342 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
343 * m68k-linux-tdep.c (m68k_linux_init_abi):
344 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
345 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
346 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
347 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
348 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
349 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
350 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
351 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
352 Change type to displaced_step_buffers.
353 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
354 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
355 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
356 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
357 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
358 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
359 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
360
361 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
362
363 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
364 obkstack.
365 (_initialize_linux_tdep): Register pre-init gdb data instead of
366 post-init.
367
368 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
369
370 * displaced-stepping.h (struct
371 displaced_step_copy_insn_closure): Adjust comments.
372 (struct displaced_step_inferior_state) <step_thread,
373 step_gdbarch, step_closure, step_original, step_copy,
374 step_saved_copy>: Remove fields.
375 (struct displaced_step_thread_state): New.
376 (struct displaced_step_buffer): New.
377 * displaced-stepping.c (displaced_step_buffer::prepare): New.
378 (write_memory_ptid): Move from infrun.c.
379 (displaced_step_instruction_executed_successfully): New,
380 factored out of displaced_step_finish.
381 (displaced_step_buffer::finish): New.
382 (displaced_step_buffer::copy_insn_closure_by_addr): New.
383 (displaced_step_buffer::restore_in_ptid): New.
384 * gdbarch.sh (displaced_step_location): Remove.
385 (displaced_step_prepare, displaced_step_finish,
386 displaced_step_copy_insn_closure_by_addr,
387 displaced_step_restore_all_in_ptid): New.
388 * gdbarch.c: Re-generate.
389 * gdbarch.h: Re-generate.
390 * gdbthread.h (class thread_info) <displaced_step_state>: New
391 field.
392 (thread_step_over_chain_remove): New declaration.
393 (thread_step_over_chain_next): New declaration.
394 (thread_step_over_chain_length): New declaration.
395 * thread.c (thread_step_over_chain_remove): Make non-static.
396 (thread_step_over_chain_next): New.
397 (global_thread_step_over_chain_next): Use
398 thread_step_over_chain_next.
399 (thread_step_over_chain_length): New.
400 (global_thread_step_over_chain_enqueue): Add debug print.
401 (global_thread_step_over_chain_remove): Add debug print.
402 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
403 Remove.
404 * infrun.c (get_displaced_stepping_state): New.
405 (displaced_step_in_progress_any_inferior): Remove.
406 (displaced_step_in_progress_thread): Adjust.
407 (displaced_step_in_progress): Adjust.
408 (displaced_step_in_progress_any_thread): New.
409 (get_displaced_step_copy_insn_closure_by_addr): Remove.
410 (gdbarch_supports_displaced_stepping): Use
411 gdbarch_displaced_step_prepare_p.
412 (displaced_step_reset): Change parameter from inferior to
413 thread.
414 (displaced_step_prepare_throw): Implement using
415 gdbarch_displaced_step_prepare.
416 (write_memory_ptid): Move to displaced-step.c.
417 (displaced_step_restore): Remove.
418 (displaced_step_finish): Implement using
419 gdbarch_displaced_step_finish.
420 (start_step_over): Allow starting more than one displaced step.
421 (prepare_for_detach): Handle possibly multiple threads doing
422 displaced steps.
423 (handle_inferior_event): Handle possibility that fork event
424 happens while another thread displaced steps.
425 * linux-tdep.h (linux_displaced_step_prepare): New.
426 (linux_displaced_step_finish): New.
427 (linux_displaced_step_copy_insn_closure_by_addr): New.
428 (linux_displaced_step_restore_all_in_ptid): New.
429 (linux_init_abi): Add supports_displaced_step parameter.
430 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
431 (linux_displaced_step_prepare): New.
432 (linux_displaced_step_finish): New.
433 (linux_displaced_step_copy_insn_closure_by_addr): New.
434 (linux_displaced_step_restore_all_in_ptid): New.
435 (linux_init_abi): Add supports_displaced_step parameter,
436 register displaced step methods if true.
437 (_initialize_linux_tdep): Register inferior_execd observer.
438 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
439 supports_displaced_step parameter, adjust call to
440 linux_init_abi. Remove call to
441 set_gdbarch_displaced_step_location.
442 (amd64_linux_init_abi): Adjust call to
443 amd64_linux_init_abi_common.
444 (amd64_x32_linux_init_abi): Likewise.
445 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
446 linux_init_abi. Remove call to
447 set_gdbarch_displaced_step_location.
448 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
449 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
450 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
451 linux_init_abi.
452 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
453 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
454 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
455 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
456 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
457 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
458 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
459 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
460 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
461 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
462 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
463 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
464 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
465 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
466 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
467 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
468 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
469 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
470 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
471 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
472 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
473 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
474 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
475 linux_init_abi. Remove call to
476 set_gdbarch_displaced_step_location.
477 * arm-tdep.c (arm_pc_is_thumb): Call
478 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
479 get_displaced_step_copy_insn_closure_by_addr.
480 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
481 clear gdbarch methods.
482 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
483 (get_ppc_per_inferior): New function.
484 (ppc_displaced_step_prepare): New function.
485 (ppc_displaced_step_finish): New function.
486 (ppc_displaced_step_restore_all_in_ptid): New function.
487 (rs6000_gdbarch_init): Register new gdbarch methods.
488 * s390-tdep.c (s390_gdbarch_init): Don't call
489 set_gdbarch_displaced_step_location, set new gdbarch methods.
490
491 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
492
493 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
494 * aarch64-tdep.h: Include displaced-stepping.h.
495 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
496 Move here.
497 (displaced_step_copy_insn_closure_up): Move here.
498 (struct buf_displaced_step_copy_insn_closure): Move here.
499 (struct displaced_step_inferior_state): Move here.
500 (debug_displaced): Move here.
501 (displaced_debug_printf_1): Move here.
502 (displaced_debug_printf): Move here.
503 * displaced-stepping.c: New file.
504 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
505 * gdbarch.h: Re-generate.
506 * inferior.h: Include displaced-stepping.h.
507 * infrun.h (debug_displaced): Move to displaced-stepping.h.
508 (displaced_debug_printf_1): Likewise.
509 (displaced_debug_printf): Likewise.
510 (struct displaced_step_copy_insn_closure): Likewise.
511 (displaced_step_copy_insn_closure_up): Likewise.
512 (struct buf_displaced_step_copy_insn_closure): Likewise.
513 (struct displaced_step_inferior_state): Likewise.
514 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
515 (displaced_debug_printf_1): Likewise.
516 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
517 Likewise.
518 (_initialize_infrun): Don't register "set/show debug displaced".
519
520 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
521
522 * linux-tdep.c (get_linux_inferior_data): Add inferior
523 parameter.
524 (linux_vsyscall_range): Pass current inferior.
525
526 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
527
528 * infrun.c (displaced_step_prepare_throw): Change return type to
529 displaced_step_prepare_status.
530 (displaced_step_prepare): Likewise.
531 (displaced_step_finish): Change return type to
532 displaced_step_finish_status.
533 (resume_1): Adjust.
534 (stop_all_threads): Adjust.
535 * displaced-stepping.h: New file.
536
537 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
538
539 * infrun.c (displaced_step_fixup): Rename to...
540 (displaced_step_finish): ... this, update all callers.
541
542 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
543
544 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
545 (get_displaced_step_copy_insn_closure_by_addr): ... this.
546 Update all users.
547 (displaced_step_closure): Rename to...
548 (displaced_step_copy_insn_closure): ... this. Update all users.
549 (displaced_step_closure_up): Rename to...
550 (displaced_step_copy_insn_closure_up). ... this. Update all
551 users.
552 (buf_displaced_step_closure): Rename to...
553 (buf_displaced_step_copy_insn_closure): ... this. Update all
554 users.
555 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
556 (get_displaced_step_copy_insn_closure_by_addr): ... this.
557 Update all users.
558 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
559 (aarch64_displaced_step_copy_insn_closure): ... this. Update
560 all users.
561 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
562 (amd64_displaced_step_copy_insn_closure): ... this. Update all
563 users.
564 * arm-tdep.h (arm_displaced_step_closure): Rename to...
565 (arm_displaced_step_copy_insn_closure): ... this. Update all
566 users.
567 * i386-tdep.h (i386_displaced_step_closure): Rename to...
568 (i386_displaced_step_copy_insn_closure): ... this. Update all
569 users.
570 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
571 (ppc_displaced_step_copy_insn_closure): ... this. Update all
572 users.
573 * s390-tdep.c (s390_displaced_step_closure): Rename to...
574 (s390_displaced_step_copy_insn_closure): ... this. Update all
575 users.
576 * gdbarch.h: Re-generate.
577 * gdbarch.c: Re-generate.
578
579 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
580
581 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
582 (global_thread_step_over_chain_enqueue): ... this. Update all
583 users.
584 (thread_step_over_chain_remove): Rename to...
585 (global_thread_step_over_chain_remove): ... this. Update all
586 users.
587 (thread_step_over_chain_next): Rename to...
588 (global_thread_step_over_chain_next): ... this. Update all
589 users.
590 * infrun.h (step_over_queue_head): Rename to...
591 (global_thread_step_over_chain_head): ... this. Update all
592 users.
593 * infrun.c (step_over_queue_head): Rename to...
594 (global_thread_step_over_chain_head): ... this. Update all
595 users.
596 * thread.c (step_over_chain_remove): Rename to...
597 (thread_step_over_chain_remove): ... this. Update all users.
598 (thread_step_over_chain_next): Rename to...
599 (global_thread_step_over_chain_next): ... this. Update all
600 users.
601 (thread_step_over_chain_enqueue): Rename to...
602 (global_thread_step_over_chain_enqueue): ... this. Update all
603 users.
604 (thread_step_over_chain_remove): Rename to...
605 (global_thread_step_over_chain_remove): ... this. Update all
606 users.
607
608 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
609
610 * infrun.c (get_displaced_stepping_state): Remove, change
611 callers to access the field directly.
612
613 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * infrun.c (handle_inferior_event): Restore displaced step
616 buffer bytes in child process when handling fork, even if fork
617 happened in another thread than the displaced-stepping one.
618
619 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
620
621 * infrun.c (infrun_inferior_execd): New function.
622 (_initialize_infrun): Attach inferior_execd observer.
623
624 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
625
626 * observable.h (inferior_execd): Declare new observable.
627 * observable.c (inferior_execd): Declare new observable.
628 * infrun.c (follow_exec): Notify inferior_execd observer.
629 * jit.c (jit_inferior_created_hook): Make static.
630 (_initialize_jit): Register inferior_execd observer.
631 * jit.h (jit_inferior_created_hook): Remove declaration.
632 * solib.c (_initialize_solib): Register inferior_execd observer.
633
634 2020-12-04 Tom de Vries <tdevries@suse.de>
635
636 PR gdb/27003
637 * completer.c (completion_tracker::build_completion_result): Don't
638 access match_list[0][-1].
639
640 2020-12-04 Tom Tromey <tromey@adacore.com>
641
642 * linespec.c (struct linespec_token): Rename; remove typedef.
643 * guile/scm-block.c (struct block_smob): Remove typedef.
644 (struct block_syms_progress_smob): Likewise.
645 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
646 * guile/scm-symtab.c (symtab_smob): Remove typedef.
647 (struct sal_smob): Remove typedef.
648 * guile/scm-param.c (struct param_smob): Remove typedef.
649 * guile/scm-progspace.c (struct pspace_smob): Rename.
650 * guile/scm-objfile.c (struct objfile_smob): Rename.
651 * guile/scm-iterator.c (struct iterator_smob): Rename.
652 * guile/scm-frame.c (struct frame_smob): Rename.
653 * guile/scm-arch.c (struct arch_smob): Rename.
654 * guile/scm-type.c (struct field_smob): Remove typedef.
655 (struct type_smob): Rename.
656 * guile/scm-cmd.c (struct command_smob): Remove typedef.
657 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
658 * guile/scm-value.c (struct value_smob): Remove typedef.
659 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
660 * guile/guile-internal.h (struct scheme_variable)
661 (struct scheme_function, struct scheme_integer_constant)
662 (struct gdb_smob, struct chained_gdb_smob)
663 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
664 (objfile_smob, pspace_smob, type_smob): Remove typedef.
665 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
666 (struct pretty_printer_worker_smob): Remove typedef.
667 * guile/scm-exception.c (struct exception_smob): Remove typedef.
668 * python/py-block.c (struct block_object): Remove typedef.
669 (block_syms_iterator_object): Update.
670 (set_block): Update.
671 (block_syms_iterator_object): Remove typedef.
672 * python/py-inferior.c (struct membuf_object): Remove typedef.
673 * python/py-symtab.c (struct symtab_object): Remove typedef.
674 (set_symtab): Update.
675 (sal_object): Remove typedef.
676 (set_sal): Update.
677 * python/py-frame.c (frame_object): Remove typedef.
678 * python/py-record-btrace.c (struct btpy_list_object): Remove
679 typedef.
680 * python/py-arch.c (struct arch_object): Remove typedef.
681 * python/py-linetable.c (struct linetable_entry_object)
682 (linetable_object, struct ltpy_iterator_object): Remove typedef.
683 * python/py-events.h (eventregistry_object): Remove typedef.
684 (struct events_object): Remove typedef.
685 * python/python-internal.h (gdbpy_breakpoint_object): Remove
686 typedef.
687 (thread_object): Remove typedef.
688 * python/py-progspace.c (pspace_object): Remove typedef.
689 * python/py-value.c (struct value_object): Remove typedef.
690 * python/py-record.h (recpy_record_object): Remove typedef.
691 (struct recpy_element_object): Remove typedef.
692 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
693 * python/py-objfile.c (objfile_object): Remove typedef.
694 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
695 * python/py-type.c (type_object): Remove typedef.
696 (typy_iterator_object): Update.
697 (set_type): Update.
698 (field_object): Remove typedef.
699 (typy_iterator_object): Remove typedef.
700 * python/py-registers.c (register_descriptor_iterator_object):
701 Remove typedef.
702 (struct register_descriptor_object)
703 (struct reggroup_iterator_object, struct reggroup_object): Remove
704 typedef.
705 * python/py-record.c (recpy_gap_object): Remove typedef.
706 * python/py-symbol.c (symbol_object): Remove typedef.
707 (set_symbol): Update.
708 * python/py-event.h (event_object): Remove typedef.
709 * python/py-param.c (parmpy_object): Remove typedef.
710 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
711 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
712 (unwind_info_object, struct cached_frame_info): Likewise.
713
714 2020-12-04 Tom Tromey <tromey@adacore.com>
715
716 * value.c (value_internal_function_name): Make return type const.
717 * value.h (value_internal_function_name): Make return type const.
718
719 2020-12-04 Luis Machado <luis.machado@linaro.org>
720
721 * aarch64-tdep.c (submask, bit, bits): Remove.
722 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
723 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
724 (aarch64_decode_cb, aarch64_decode_tb)
725 (aarch64_decode_ldr_literal): Use sbits to extract a signed
726 immediate.
727 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
728
729 2020-12-04 Tom de Vries <tdevries@suse.de>
730
731 PR tdep/27007
732 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
733
734 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
735
736 PR gdb/26876
737 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
738 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
739
740 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
741
742 * arch/riscv.c: Include 'rv32e-xregs.c'.
743 (riscv_create_target_description): Update to handle rv32e.
744 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
745 member variable.
746 <operator==>: Update to account for new field.
747 <hash>: Likewise.
748 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
749 * features/riscv/rv32e-xregs.c: Generated.
750 * features/riscv/rv32e-xregs.xml: New file.
751 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
752 file.
753 (riscv_debug_infcall): Likewise.
754 (riscv_debug_unwinder): Likewise.
755 (riscv_debug_gdbarch): Likewise.
756 (enum riscv_register_required_status): Delete.
757 (struct riscv_register_feature): Add constructor, delete default
758 constructor, copy, and assign constructors.
759 (struct riscv_register_feature::register_info) <required>: Delete.
760 <check>: Update comment and arguments.
761 (struct riscv_register_feature) <name>: Change to member function.
762 <prefer_first_name>: Delete.
763 <tdesc_feature>: New member function.
764 <registers>: Rename to...
765 <m_registers>: ...this.
766 <m_feature_name>: New member variable.
767 (riscv_register_feature::register_info::check): Update arguments.
768 (riscv_xreg_feature): Rewrite as class, create a single static
769 instance of the class.
770 (riscv_freg_feature): Likewise.
771 (riscv_virtual_feature): Likewise.
772 (riscv_csr_feature): Likewise.
773 (riscv_create_csr_aliases): Has become a member function inside
774 riscv_csr_feature class.
775 (riscv_abi_embedded): New function definition.
776 (riscv_register_name): Adjust to use new feature objects.
777 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
778 and adjust available argument registers.
779 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
780 (riscv_check_tdesc_feature): Delete.
781 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
782 (riscv_gdbarch_init): Delete target description checking code, and
783 instead call to the new feature objects to perform the checks.
784 Reorder handling of no abi information case, allows small code
785 simplification.
786 (_initialize_riscv_tdep): Remove call, this is now done in the
787 riscv_csr_feature constructor.
788 * riscv-tdep.h (riscv_abi_embedded): Declare.
789
790 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
791
792 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
793 DECLARE_CSR_ALIAS.
794
795 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
796
797 * riscv-tdep.c (riscv_is_unknown_csr): New function,
798 implementation moved from riscv_register_reggroup_p.
799 (riscv_register_reggroup_p): Update group handling for unknown
800 CSRs.
801
802 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
803
804 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
805 (dwarf2_get_dwz_file): Convert 'filename' to a
806 std::string. Use dwz_search_other_debugdirs to search for DWZ
807 files in the debug-file-directories provided by the user as well.
808
809 2020-12-01 Tom Tromey <tom@tromey.com>
810
811 * parse.c (expr_builder::expr_builder): Initialize expout.
812 (expr_builder::release): Use expression::resize.
813 (expression::expression, expression::~expression)
814 (expression::resize): New methods.
815 (write_exp_elt): Use expression::resize.
816 (prefixify_expression): Update.
817 (increase_expout_size): Use expression::resize.
818 * expression.h (struct expression): Add constructor, destructor.
819 <resize>: New method.
820 (expression_up): Change type.
821
822 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
823 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
824 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
825 set region.
826
827 2020-11-30 Tom de Vries <tdevries@suse.de>
828
829 PR symtab/26905
830 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
831 is_reference parameter.
832 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
833
834 2020-11-30 Tom Tromey <tom@tromey.com>
835
836 * rust-lang.c (rust_op_name): Remove.
837 (exp_descriptor_rust): Update.
838 * parser-defs.h (op_name_standard): Don't declare.
839 (struct exp_descriptor) <op_name>: Remove.
840 * parse.c (exp_descriptor_standard): Update.
841 * opencl-lang.c (exp_descriptor_opencl): Update.
842 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
843 * f-lang.c (op_name_f): Remove.
844 (f_language::exp_descriptor_tab): Update.
845 * expression.h (op_name): Update.
846 * expprint.c (op_name): Rewrite.
847 (op_name_standard): Remove.
848 (dump_raw_expression, dump_subexp): Update.
849 * c-lang.c (exp_descriptor_c): Update.
850 * ax-gdb.c (gen_expr): Update.
851 * ada-lang.c (ada_op_name): Remove.
852 (ada_exp_descriptor): Update.
853
854 2020-11-30 Tom Tromey <tom@tromey.com>
855
856 * eval.c (init_array_element): Remove.
857 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
858
859 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
860
861 PR tui/26973
862 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
863 static locator win info.
864
865 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
866
867 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
868 program.
869
870 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
873 is always initialized.
874
875 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
876 * MAINTAINERS (Write After Approval): Add myself.
877
878 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
879
880 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
881 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
882
883 2020-11-25 Tom Tromey <tom@tromey.com>
884
885 * eval.c (evaluate_subexp_standard): Remove unnecessary
886 variables.
887
888 2020-11-25 Tom Tromey <tom@tromey.com>
889
890 * d-lang.c: Include parser-defs.h.
891 * rust-lang.c: Include parser-defs.h.
892 * c-lang.h: Do not include parser-defs.h.
893
894 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * regcache.h (struct cached_reg): Remove typedef.
897
898 2020-11-24 Joel Brobecker <brobecker@adacore.com>
899
900 * README: Fix the URL of the MPFR library.
901
902 2020-11-24 Joel Brobecker <brobecker@adacore.com>
903
904 * README: Document the --with-libgmp-prefix configure option.
905
906 2020-11-24 Joel Brobecker <brobecker@adacore.com>
907
908 * NEWS: Add entry documenting support for DWARF-based fixed
909 point types.
910
911 2020-11-24 Joel Brobecker <brobecker@adacore.com>
912
913 * NEWS: Document that building GDB now requires GMP.
914
915 2020-11-24 Joel Brobecker <brobecker@adacore.com>
916
917 * typeprint.c (print_type_scalar): Add handling of
918 TYPE_CODE_FIXED_POINT.
919
920 2020-11-24 Joel Brobecker <brobecker@adacore.com>
921
922 * valarith.c (fixed_point_binop): Replace the
923 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
924 users accordingly.
925
926 2020-11-24 Joel Brobecker <brobecker@adacore.com>
927
928 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
929 replacing fixed_point_scaling_factor. All callers updated
930 throughout this project.
931 (fixed_point_scaling_factor): Delete declaration.
932 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
933 fixed_point_scaling_factor. Adjust implementation accordingly.
934
935 2020-11-24 Joel Brobecker <brobecker@adacore.com>
936
937 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
938 replacing the fixed_point_type_base_type function. All callers
939 updated throughout this project.
940 (fixed_point_type_base_type): Remove declaration.
941 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
942 fixed_point_type_base_type. Adjust implementation accordingly.
943
944 2020-11-24 Joel Brobecker <brobecker@adacore.com>
945
946 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
947 New methods.
948 (INIT_FIXED_POINT_SPECIFIC): Adjust.
949 (TYPE_FIXED_POINT_INFO): Delete macro.
950 (allocate_fixed_point_type_info): Change return type to void.
951 * gdbtypes.c (copy_type_recursive): Replace the use of
952 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
953 (fixed_point_scaling_factor): Likewise.
954 (allocate_fixed_point_type_info): Change return type to void.
955 Adjust implementation accordingly.
956 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
957 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
958
959 2020-11-24 Joel Brobecker <brobecker@adacore.com>
960
961 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
962 into one single gdb::array_view parameter.
963 (gdb_mpz::write): Likewise.
964 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
965 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
966 into one single gdb::array_view parameter.
967 Adjust implementation accordingly.
968 (gdb_mpz::write): Likewise.
969 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
970 * unittests/gmp-utils-selftests.c: Adapt following changes above.
971 * valarith.c, valops.c, valprint.c, value.c: Likewise.
972
973 2020-11-24 Joel Brobecker <brobecker@adacore.com>
974
975 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
976 Change return type to std::string. Update all callers.
977 * gmp-utils.c (gmp_string_printf): Likewise.
978
979 2020-11-24 Joel Brobecker <brobecker@adacore.com>
980
981 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
982 instead of mpq_set_ui to initialize our GMP rational.
983
984 2020-11-23 Tom de Vries <tdevries@suse.de>
985
986 * debuginfod-support.c (debuginfod_source_query)
987 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
988
989 2020-11-21 Tom Tromey <tom@tromey.com>
990
991 * breakpoint.c (watchpoint_exp_is_const): Return bool.
992
993 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
996 Pass 2.0 to pow.
997 (gdb_mpz_write_all_from_small): Likewise.
998
999 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1000
1001 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1002 of abs.
1003
1004 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1005
1006 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1007 ctf_arc_open_by_name.
1008
1009 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1010
1011 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1012 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1013
1014 2020-11-20 Pedro Alves <pedro@palves.net>
1015
1016 * language.c (language_arch_info::lookup_primitive_type): Use
1017 gdb::function_view instead of gdb::function.
1018 (template language_lookup_primitive_type): Rename to ...
1019 (language_lookup_primitive_type_1): ... this, and make static.
1020 (language_lookup_primitive_type(const struct language_defn *,
1021 struct gdbarch *, const char *): Make non-template.
1022 (language_lookup_primitive_type(const struct language_defn *,
1023 struct gdbarch *, std::function<bool (struct type *)>): Make
1024 non-template and use gdb::function_view.
1025 * language.h (language_arch_info::lookup_primitive_type): Use
1026 gdb::function_view instead of std::function.
1027 (language_lookup_primitive_type): No longer template.
1028 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1029 lambda instead of a std::function.
1030
1031 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1032
1033 PR tdep/26916
1034 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1035 and STOCFH.
1036
1037 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1038
1039 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1040
1041 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1044 in `loop_cb` parameter.
1045 * gdbarch.c: Re-generate.
1046 * gdbarch.h: Re-generate.
1047 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1048 parameter.
1049 * arch-utils.h (default_read_core_file_mappings): Likewise.
1050 * corelow.c (core_target::build_file_mappings): Likewise.
1051 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1052 (linux_core_info_proc_mappings): Likewise.
1053
1054 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1057 * NEWS: Mention new options.
1058 * f-array-walker.h: New file.
1059 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1060 (repack_array_slices): New static global.
1061 (show_repack_array_slices): New function.
1062 (fortran_array_slicing_debug): New static global.
1063 (show_fortran_array_slicing_debug): New function.
1064 (value_f90_subarray): Delete.
1065 (skip_undetermined_arglist): Delete.
1066 (class fortran_array_repacker_base_impl): New class.
1067 (class fortran_lazy_array_repacker_impl): New class.
1068 (class fortran_array_repacker_impl): New class.
1069 (fortran_value_subarray): Complete rewrite.
1070 (set_fortran_list): New static global.
1071 (show_fortran_list): Likewise.
1072 (_initialize_f_language): Register new commands.
1073 (fortran_adjust_dynamic_array_base_address_hack): New function.
1074 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1075 Declare.
1076 * f-valprint.c: Include 'f-array-walker.h'.
1077 (class fortran_array_printer_impl): New class.
1078 (f77_print_array_1): Delete.
1079 (f77_print_array): Delete.
1080 (fortran_print_array): New.
1081 (f_value_print_inner): Update to call fortran_print_array.
1082 * gdbtypes.c: Include 'f-lang.h'.
1083 (resolve_dynamic_type_internal): Call
1084 fortran_adjust_dynamic_array_base_address_hack.
1085
1086 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * breakpoint.c (struct watch_options): New struct.
1089 (watch_option_defs): New static global.
1090 (make_watch_options_def_group): New function.
1091 (watch_maybe_just_location): Convert option parsing.
1092 (watch_command_completer): New function.
1093 (_initialize_breakpoint): Build help text using options mechanism.
1094
1095 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1096
1097 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1098 (watch_command_1): Update parameter types. Convert locals to
1099 bool.
1100 (watch_command_wrapper): Change parameter type.
1101 (watch_maybe_just_location): Change locals to bool.
1102 (rwatch_command_wrapper): Update parameter type.
1103 (awatch_command_wrapper): Update parameter type.
1104 * breakpoint.h (watch_command_wrapper): Change parameter type.
1105 (rwatch_command_wrapper): Update parameter type.
1106 (awatch_command_wrapper): Update parameter type.
1107 * eval.c (fetch_subexp_value): Change parameter type.
1108 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1109 'false' not '0'.
1110 * value.h (fetch_subexp_value): Change parameter type in
1111 declaration.
1112
1113 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1116 skip_spaces.
1117
1118 2020-11-18 Keith Seitz <keiths@redhat.com>
1119
1120 * linux-tdep.c (dump_note_entry_p): Return true instead of
1121 checking `filename'.
1122
1123 2020-11-18 Tom de Vries <tdevries@suse.de>
1124
1125 * debuginfod-support.c (debuginfod_source_query)
1126 (debuginfod_debuginfo_query): Also do early exit if
1127 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1128
1129 2020-11-18 Tom de Vries <tdevries@suse.de>
1130
1131 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1132 warning.
1133
1134 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1135
1136 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1137 callers. Move doc here.
1138 * gdbtypes.c (get_array_bounds): Return bool
1139
1140 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1143 assert.
1144 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1145 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1146 case to the default.
1147
1148 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * printcmd.c: Include 'safe-ctype.c'.
1151 (skip_over_slash_fmt): New function.
1152 (print_command_completer): Call skip_over_slash_fmt.
1153 (display_and_x_command_completer): New function.
1154 (_initialize_printcmd): Add command completion for 'x' and
1155 'display'.
1156
1157 2020-11-16 Pedro Alves <pedro@palves.net>
1158
1159 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1160 (get_prev_frame_always_1): ... to here.
1161 * inline-frame.c (inline_frame_this_id): Mention
1162 get_prev_frame_always_1 in comment.
1163
1164 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1165
1166 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1167 handling.
1168 (value_less): Add fixed-point handling.
1169
1170 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1171
1172 * eval.c (binop_promote): Add fixed-point type handling.
1173 * valarith.c (fixed_point_binop): New function.
1174 (scalar_binop): Add fixed-point type handling.
1175 (value_neg): Add fixed-point type handling.
1176 * valops.c (value_cast_to_fixed_point): New function.
1177 (value_cast): Add fixed-point type handling.
1178
1179 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1180
1181 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1182 range types.
1183 * c-typeprint.c (c_type_print_varspec_prefix)
1184 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1185 TYPE_CODE_FIXED_POINT handling.
1186 * p-typeprint.c (pascal_type_print_varspec_prefix)
1187 (pascal_type_print_varspec_suffix): Likewise.
1188 * typeprint.c (print_type_fixed_point): New function.
1189 * typeprint.h (print_type_fixed_point): Add declaration.
1190
1191 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1192
1193 * printcmd.c (print_scalar_formatted): Add fixed-point type
1194 handling when options->format is set.
1195
1196 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1197
1198 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1199 * dwarf2/read.c (get_dwarf2_rational_constant)
1200 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1201 (has_zero_over_zero_small_attribute): New functions.
1202 read_base_type, set_die_type): Add fixed-point type handling.
1203 * gdb-gdb.py.in: Add fixed-point type handling.
1204 * gdbtypes.c: #include "gmp-utils.h".
1205 (create_range_type, set_type_code): Add fixed-point type handling.
1206 (init_fixed_point_type): New function.
1207 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1208 (print_fixed_point_type_info): New function.
1209 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1210 handling.
1211 (fixed_point_type_storage): New typedef.
1212 (fixed_point_objfile_key): New static global.
1213 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1214 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1215 functions.
1216 * gdbtypes.h: #include "gmp-utils.h".
1217 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1218 (union type_specific) <fixed_point_info>: New field.
1219 (struct fixed_point_type_info): New struct.
1220 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1221 (init_fixed_point_type, is_fixed_point_type)
1222 (fixed_point_type_base_type, fixed_point_scaling_factor)
1223 (allocate_fixed_point_type_info): Add declarations.
1224 * valprint.c (generic_val_print_fixed_point): New function.
1225 (generic_value_print): Add fixed-point type handling.
1226 * value.c (value_as_address, unpack_long): Add fixed-point type
1227 handling.
1228
1229 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1230
1231 * utils.h (uinteger_pow): Add declaration.
1232 * utils.c (uinteger_pow): Moved here (without changes)...
1233 * valarith.c (uinteger_pow): ... from here.
1234
1235 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1236
1237 * gmp-utils.h, gmp-utils.c: New file.
1238 * unittests/gmp-utils-selftests.c: New file.
1239 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1240 unittests/gmp-utils-selftests.c.
1241 (COMMON_SFILES) Add gmp-utils.c.
1242 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1243
1244 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1245
1246 * configure.ac: Generate an error if a usable GMP library
1247 could not be found.
1248 * configure: Regenerate.
1249
1250 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1251
1252 * configure.ac: Add support for --with-libgmp-prefix.
1253 * Makefile.in (LIBGMP): New variable.
1254 (CLIBS): Include $(LIBGMP).
1255 * configure, config.in: Regenerate
1256
1257 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1258
1259 PR cli/26879
1260 * f-exp.y (COMPLETE): New token.
1261 (exp): Two new rules for tab-completion.
1262 (saw_name_at_eof): New static global.
1263 (last_was_structop): Likewise.
1264 (yylex): Set new variables, and return COMPLETE token at the end
1265 of the input stream in some cases.
1266
1267 2020-11-14 Tom Tromey <tom@tromey.com>
1268
1269 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1270
1271 2020-11-14 Tom Tromey <tom@tromey.com>
1272
1273 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1274
1275 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1278
1279 2020-11-13 Tom Tromey <tom@tromey.com>
1280
1281 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1282 (convert_escape, parse_one_string): Constify.
1283
1284 2020-11-13 Keith Seitz <keiths@redhat.com>
1285
1286 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1287 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1288 outside of ELF segments" warning for debugin
1289
1290 2020-11-13 Keith Seitz <keiths@redhat.com>
1291
1292 PR gdb/23034
1293 * elfread.c (elf_symfile_segments): Output a BFD file name
1294 for the "Loadable section ... outside of ELF segments" warning.
1295
1296 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1297
1298 PR gdb/26835
1299 * arm-tdep.c (class arm_instruction_reader): New.
1300 (target_arm_instruction_reader): New.
1301 (arm_analyze_prologue): Add instruction reader parameter and use
1302 it. Use arm_expand_immediate.
1303 (class target_arm_instruction_reader): Adjust.
1304 (arm_skip_prologue): Adjust.
1305 (arm_expand_immediate): New.
1306 (arm_scan_prologue): Adjust.
1307 (arm_analyze_prologue_test): New.
1308 (class test_arm_instruction_reader): New.
1309
1310 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * f-lang.c (fortran_argument_convert): Add declaration. Add
1313 header comment, taken from f-lang.h. Make static.
1314 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1315 (fortran_argument_convert): Delete declaration.
1316
1317 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * ada-exp.y (find_primitive_type): Make parameter const.
1320 * ada-lang.c (enum ada_primitive_types): Delete.
1321 (ada_language::language_arch_info): Update.
1322 * c-lang.c (enum c_primitive_types): Delete.
1323 (c_language_arch_info): Update.
1324 (enum cplus_primitive_types): Delete.
1325 (cplus_language::language_arch_info): Update.
1326 * d-lang.c (enum d_primitive_types): Delete.
1327 (d_language::language_arch_info): Update.
1328 * f-lang.c (enum f_primitive_types): Delete.
1329 (f_language::language_arch_info): Update.
1330 * go-lang.c (enum go_primitive_types): Delete.
1331 (go_language::language_arch_info): Update.
1332 * language.c (auto_or_unknown_language::language_arch_info):
1333 Update.
1334 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1335 (language_string_char_type): Add header comment, call function in
1336 language_arch_info.
1337 (language_bool_type): Likewise
1338 (language_arch_info::bool_type): Define.
1339 (language_lookup_primitive_type_1): Delete.
1340 (language_lookup_primitive_type): Rewrite as a templated function
1341 to call function in language_arch_info, then instantiate twice.
1342 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1343 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1344 (language_arch_info::lookup_primitive_type): Define twice with
1345 different signatures.
1346 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1347 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1348 member function in language_arch_info.
1349 * language.h (language_arch_info): Complete rewrite.
1350 (language_lookup_primitive_type): Make templated.
1351 * m2-lang.c (enum m2_primitive_types): Delete.
1352 (m2_language::language_arch_info): Update.
1353 * opencl-lang.c (OCL_P_TYPE): Delete.
1354 (enum opencl_primitive_types): Delete.
1355 (opencl_type_data): Delete.
1356 (builtin_opencl_type): Delete.
1357 (lookup_opencl_vector_type): Update.
1358 (opencl_language::language_arch_info): Update, lots of content
1359 moved from...
1360 (build_opencl_types): ...here. This function is now deleted.
1361 (_initialize_opencl_language): Delete.
1362 * p-lang.c (enum pascal_primitive_types): Delete.
1363 (pascal_language::language_arch_info): Update.
1364 * rust-lang.c (enum rust_primitive_types): Delete.
1365 (rust_language::language_arch_info): Update.
1366
1367 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1368
1369 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1370 dwarf2_queue_guard.
1371
1372 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1375 comment.
1376
1377 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1378
1379 * dwarf2/read.c (dwarf_read_debug_printf,
1380 dwarf_read_debug_printf_v): New macros, use throughout the file.
1381
1382 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1383
1384 PR tdep/27015
1385 * arc-linux-tdep.c (collect_register): Populate "eret" by
1386 "pc" value from the regcache when asked for "pc" value.
1387
1388 2020-11-12 Tom Tromey <tom@tromey.com>
1389
1390 PR rust/26799:
1391 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1392 exist.
1393
1394 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * features/Makefile (XMLTOC): Add rx.xml.
1397 (FEATURE_XMLFILES): Remove rx.xml.
1398 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1399 * features/rx.c: Regenerate.
1400 * features/rx.xml: Wrap in `target` tags, and reindent.
1401 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1402 structure.
1403 (maint_print_c_tdesc_opt_def): New typedef.
1404 (maint_print_c_tdesc_opt_defs): New static global.
1405 (make_maint_print_c_tdesc_options_def_group): New function.
1406 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1407 print single feature C file for target descriptions containing a
1408 single feature.
1409 (maint_print_c_tdesc_cmd_completer): New function.
1410 (_initialize_target_descriptions): Update call to register command
1411 completer, and include command line flag in help text.
1412
1413 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1414
1415 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1416 numbers.
1417 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1418 enum values.
1419
1420 2020-11-10 Tom Tromey <tom@tromey.com>
1421
1422 * value.h (internalvar_name): Update.
1423 * value.c (internalvar_name): Make return type const.
1424
1425 2020-11-10 Tom Tromey <tom@tromey.com>
1426
1427 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1428 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1429 const.
1430
1431 2020-11-10 Tom Tromey <tom@tromey.com>
1432
1433 * objc-lang.h (value_nsstring): Update.
1434 * objc-lang.c (value_nsstring): Make "ptr" const.
1435
1436 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * expprint.c (print_subexp_funcall): Increment expression position
1439 after reading argument count.
1440 * f-lang.c (print_subexp_f): Skip over opcode before calling
1441 common function.
1442 (dump_subexp_body_f): Likewise.
1443
1444 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1445
1446 PR python/26832
1447 * configure: Regenerate.
1448 * configure.ac: Check for python modules ctypes instead of
1449 itertools.
1450
1451 2020-11-06 Pedro Alves <pedro@palves.net>
1452
1453 * macroexp.c (struct macro_buffer): Split in two classes. Add
1454 uses adjusted.
1455 (struct shared_macro_buffer): New, factored out from struct
1456 macro_buffer.
1457 (struct growable_macro_buffer): New, factored out from struct
1458 macro_buffer.
1459 (set_token, get_comment, get_identifier, get_pp_number)
1460 (get_character_constant, get_string_literal, get_punctuator)
1461 (get_next_token_for_substitution): Constify parameters.
1462 (substitute_args): Constify locals.
1463
1464 2020-11-05 Tom Tromey <tom@tromey.com>
1465
1466 * dwarf2/read.c (read_cutu_die_from_dwo)
1467 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1468 (build_type_psymtabs_1): Update.
1469 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1470 parameter.
1471 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1472 Don't read section. Add assert.
1473
1474 2020-11-04 Tom Tromey <tromey@adacore.com>
1475
1476 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1477
1478 2020-11-04 Tom Tromey <tromey@adacore.com>
1479
1480 * ada-typeprint.c (ada_print_type): Handle __T types.
1481
1482 2020-11-04 Tom Tromey <tromey@adacore.com>
1483
1484 * dwarf2/read.c (add_partial_symbol, process_die):
1485 Handle DW_TAG_array_type.
1486 (is_type_tag_for_partial): Add "lang" parameter.
1487 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1488
1489 2020-11-04 Tom Tromey <tromey@adacore.com>
1490
1491 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1492
1493 2020-11-04 Tom Tromey <tromey@adacore.com>
1494
1495 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1496 array.
1497
1498 2020-11-04 Tom Tromey <tromey@adacore.com>
1499
1500 * gdbtypes.c (update_static_array_size): Handle bit stride.
1501
1502 2020-11-04 Tom Tromey <tromey@adacore.com>
1503
1504 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1505
1506 2020-11-04 Tom Tromey <tromey@adacore.com>
1507
1508 * ada-lang.c (ada_is_any_packed_array_type): New function.
1509 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1510
1511 2020-11-04 Tom Tromey <tromey@adacore.com>
1512
1513 * dwarf2/read.c (recognize_bound_expression)
1514 (quirk_ada_thick_pointer): New functions.
1515 (read_array_type): Call quirk_ada_thick_pointer.
1516 (set_die_type): Add "skip_data_location" parameter.
1517 (quirk_ada_thick_pointer): New function.
1518 (process_structure_scope): Call quirk_ada_thick_pointer.
1519 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1520 (decode_packed_array_bitsize): Handle thick pointers without
1521 parallel types.
1522 (ada_is_gnat_encoded_packed_array_type): Rename from
1523 ada_is_packed_array_type.
1524 (ada_is_constrained_packed_array_type): Update.
1525 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1526 (ada_value_print_1): Use ada_get_decoded_value.
1527
1528 2020-11-04 Tom Tromey <tromey@adacore.com>
1529
1530 * ada-lang.c (recursively_update_array_bitsize): New function.
1531 (decode_constrained_packed_array_type): Call it.
1532
1533 2020-11-04 Tom Tromey <tromey@adacore.com>
1534
1535 * ada-lang.c (to_fixed_array_type): Error if
1536 decode_constrained_packed_array_type returns NULL.
1537
1538 2020-11-04 Tom Tromey <tromey@adacore.com>
1539
1540 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1541
1542 2020-11-02 Tom Tromey <tromey@adacore.com>
1543
1544 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1545 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1546 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1547 * amd64-ravenscar-thread.c: New file.
1548 * amd64-ravenscar-thread.h: New file.
1549 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1550 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1551
1552 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * main.c (execute_cmdargs): New function.
1555 (captured_main_1): Make use of execute_cmdargs.
1556
1557 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1558
1559 * NEWS: Mention changes to config file search path.
1560 * main.c
1561
1562 2020-11-02 Tom Tromey <tromey@adacore.com>
1563
1564 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1565 (python_GdbModuleDef): Move earlier. Now static.
1566 (do_start_initialization): Consolidate some IS_PY3K blocks.
1567
1568 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1569
1570 * aarch64-linux-tdep.c: Fix indentation.
1571 * aarch64-ravenscar-thread.c: Fix indentation.
1572 * aarch64-tdep.c: Fix indentation.
1573 * aarch64-tdep.h: Fix indentation.
1574 * ada-lang.c: Fix indentation.
1575 * ada-lang.h: Fix indentation.
1576 * ada-tasks.c: Fix indentation.
1577 * ada-typeprint.c: Fix indentation.
1578 * ada-valprint.c: Fix indentation.
1579 * ada-varobj.c: Fix indentation.
1580 * addrmap.c: Fix indentation.
1581 * addrmap.h: Fix indentation.
1582 * agent.c: Fix indentation.
1583 * aix-thread.c: Fix indentation.
1584 * alpha-bsd-nat.c: Fix indentation.
1585 * alpha-linux-tdep.c: Fix indentation.
1586 * alpha-mdebug-tdep.c: Fix indentation.
1587 * alpha-nbsd-tdep.c: Fix indentation.
1588 * alpha-obsd-tdep.c: Fix indentation.
1589 * alpha-tdep.c: Fix indentation.
1590 * amd64-bsd-nat.c: Fix indentation.
1591 * amd64-darwin-tdep.c: Fix indentation.
1592 * amd64-linux-nat.c: Fix indentation.
1593 * amd64-linux-tdep.c: Fix indentation.
1594 * amd64-nat.c: Fix indentation.
1595 * amd64-obsd-tdep.c: Fix indentation.
1596 * amd64-tdep.c: Fix indentation.
1597 * amd64-windows-tdep.c: Fix indentation.
1598 * annotate.c: Fix indentation.
1599 * arc-tdep.c: Fix indentation.
1600 * arch-utils.c: Fix indentation.
1601 * arch/arm-get-next-pcs.c: Fix indentation.
1602 * arch/arm.c: Fix indentation.
1603 * arm-linux-nat.c: Fix indentation.
1604 * arm-linux-tdep.c: Fix indentation.
1605 * arm-nbsd-tdep.c: Fix indentation.
1606 * arm-pikeos-tdep.c: Fix indentation.
1607 * arm-tdep.c: Fix indentation.
1608 * arm-tdep.h: Fix indentation.
1609 * arm-wince-tdep.c: Fix indentation.
1610 * auto-load.c: Fix indentation.
1611 * auxv.c: Fix indentation.
1612 * avr-tdep.c: Fix indentation.
1613 * ax-gdb.c: Fix indentation.
1614 * ax-general.c: Fix indentation.
1615 * bfin-linux-tdep.c: Fix indentation.
1616 * block.c: Fix indentation.
1617 * block.h: Fix indentation.
1618 * blockframe.c: Fix indentation.
1619 * bpf-tdep.c: Fix indentation.
1620 * break-catch-sig.c: Fix indentation.
1621 * break-catch-syscall.c: Fix indentation.
1622 * break-catch-throw.c: Fix indentation.
1623 * breakpoint.c: Fix indentation.
1624 * breakpoint.h: Fix indentation.
1625 * bsd-uthread.c: Fix indentation.
1626 * btrace.c: Fix indentation.
1627 * build-id.c: Fix indentation.
1628 * buildsym-legacy.h: Fix indentation.
1629 * buildsym.c: Fix indentation.
1630 * c-typeprint.c: Fix indentation.
1631 * c-valprint.c: Fix indentation.
1632 * c-varobj.c: Fix indentation.
1633 * charset.c: Fix indentation.
1634 * cli/cli-cmds.c: Fix indentation.
1635 * cli/cli-decode.c: Fix indentation.
1636 * cli/cli-decode.h: Fix indentation.
1637 * cli/cli-script.c: Fix indentation.
1638 * cli/cli-setshow.c: Fix indentation.
1639 * coff-pe-read.c: Fix indentation.
1640 * coffread.c: Fix indentation.
1641 * compile/compile-cplus-types.c: Fix indentation.
1642 * compile/compile-object-load.c: Fix indentation.
1643 * compile/compile-object-run.c: Fix indentation.
1644 * completer.c: Fix indentation.
1645 * corefile.c: Fix indentation.
1646 * corelow.c: Fix indentation.
1647 * cp-abi.h: Fix indentation.
1648 * cp-namespace.c: Fix indentation.
1649 * cp-support.c: Fix indentation.
1650 * cp-valprint.c: Fix indentation.
1651 * cris-linux-tdep.c: Fix indentation.
1652 * cris-tdep.c: Fix indentation.
1653 * darwin-nat-info.c: Fix indentation.
1654 * darwin-nat.c: Fix indentation.
1655 * darwin-nat.h: Fix indentation.
1656 * dbxread.c: Fix indentation.
1657 * dcache.c: Fix indentation.
1658 * disasm.c: Fix indentation.
1659 * dtrace-probe.c: Fix indentation.
1660 * dwarf2/abbrev.c: Fix indentation.
1661 * dwarf2/attribute.c: Fix indentation.
1662 * dwarf2/expr.c: Fix indentation.
1663 * dwarf2/frame.c: Fix indentation.
1664 * dwarf2/index-cache.c: Fix indentation.
1665 * dwarf2/index-write.c: Fix indentation.
1666 * dwarf2/line-header.c: Fix indentation.
1667 * dwarf2/loc.c: Fix indentation.
1668 * dwarf2/macro.c: Fix indentation.
1669 * dwarf2/read.c: Fix indentation.
1670 * dwarf2/read.h: Fix indentation.
1671 * elfread.c: Fix indentation.
1672 * eval.c: Fix indentation.
1673 * event-top.c: Fix indentation.
1674 * exec.c: Fix indentation.
1675 * exec.h: Fix indentation.
1676 * expprint.c: Fix indentation.
1677 * f-lang.c: Fix indentation.
1678 * f-typeprint.c: Fix indentation.
1679 * f-valprint.c: Fix indentation.
1680 * fbsd-nat.c: Fix indentation.
1681 * fbsd-tdep.c: Fix indentation.
1682 * findvar.c: Fix indentation.
1683 * fork-child.c: Fix indentation.
1684 * frame-unwind.c: Fix indentation.
1685 * frame-unwind.h: Fix indentation.
1686 * frame.c: Fix indentation.
1687 * frv-linux-tdep.c: Fix indentation.
1688 * frv-tdep.c: Fix indentation.
1689 * frv-tdep.h: Fix indentation.
1690 * ft32-tdep.c: Fix indentation.
1691 * gcore.c: Fix indentation.
1692 * gdb_bfd.c: Fix indentation.
1693 * gdbarch.sh: Fix indentation.
1694 * gdbarch.c: Re-generate
1695 * gdbarch.h: Re-generate.
1696 * gdbcore.h: Fix indentation.
1697 * gdbthread.h: Fix indentation.
1698 * gdbtypes.c: Fix indentation.
1699 * gdbtypes.h: Fix indentation.
1700 * glibc-tdep.c: Fix indentation.
1701 * gnu-nat.c: Fix indentation.
1702 * gnu-nat.h: Fix indentation.
1703 * gnu-v2-abi.c: Fix indentation.
1704 * gnu-v3-abi.c: Fix indentation.
1705 * go32-nat.c: Fix indentation.
1706 * guile/guile-internal.h: Fix indentation.
1707 * guile/scm-cmd.c: Fix indentation.
1708 * guile/scm-frame.c: Fix indentation.
1709 * guile/scm-iterator.c: Fix indentation.
1710 * guile/scm-math.c: Fix indentation.
1711 * guile/scm-ports.c: Fix indentation.
1712 * guile/scm-pretty-print.c: Fix indentation.
1713 * guile/scm-value.c: Fix indentation.
1714 * h8300-tdep.c: Fix indentation.
1715 * hppa-linux-nat.c: Fix indentation.
1716 * hppa-linux-tdep.c: Fix indentation.
1717 * hppa-nbsd-nat.c: Fix indentation.
1718 * hppa-nbsd-tdep.c: Fix indentation.
1719 * hppa-obsd-nat.c: Fix indentation.
1720 * hppa-tdep.c: Fix indentation.
1721 * hppa-tdep.h: Fix indentation.
1722 * i386-bsd-nat.c: Fix indentation.
1723 * i386-darwin-nat.c: Fix indentation.
1724 * i386-darwin-tdep.c: Fix indentation.
1725 * i386-dicos-tdep.c: Fix indentation.
1726 * i386-gnu-nat.c: Fix indentation.
1727 * i386-linux-nat.c: Fix indentation.
1728 * i386-linux-tdep.c: Fix indentation.
1729 * i386-nto-tdep.c: Fix indentation.
1730 * i386-obsd-tdep.c: Fix indentation.
1731 * i386-sol2-nat.c: Fix indentation.
1732 * i386-tdep.c: Fix indentation.
1733 * i386-tdep.h: Fix indentation.
1734 * i386-windows-tdep.c: Fix indentation.
1735 * i387-tdep.c: Fix indentation.
1736 * i387-tdep.h: Fix indentation.
1737 * ia64-libunwind-tdep.c: Fix indentation.
1738 * ia64-libunwind-tdep.h: Fix indentation.
1739 * ia64-linux-nat.c: Fix indentation.
1740 * ia64-linux-tdep.c: Fix indentation.
1741 * ia64-tdep.c: Fix indentation.
1742 * ia64-tdep.h: Fix indentation.
1743 * ia64-vms-tdep.c: Fix indentation.
1744 * infcall.c: Fix indentation.
1745 * infcmd.c: Fix indentation.
1746 * inferior.c: Fix indentation.
1747 * infrun.c: Fix indentation.
1748 * iq2000-tdep.c: Fix indentation.
1749 * language.c: Fix indentation.
1750 * linespec.c: Fix indentation.
1751 * linux-fork.c: Fix indentation.
1752 * linux-nat.c: Fix indentation.
1753 * linux-tdep.c: Fix indentation.
1754 * linux-thread-db.c: Fix indentation.
1755 * lm32-tdep.c: Fix indentation.
1756 * m2-lang.c: Fix indentation.
1757 * m2-typeprint.c: Fix indentation.
1758 * m2-valprint.c: Fix indentation.
1759 * m32c-tdep.c: Fix indentation.
1760 * m32r-linux-tdep.c: Fix indentation.
1761 * m32r-tdep.c: Fix indentation.
1762 * m68hc11-tdep.c: Fix indentation.
1763 * m68k-bsd-nat.c: Fix indentation.
1764 * m68k-linux-nat.c: Fix indentation.
1765 * m68k-linux-tdep.c: Fix indentation.
1766 * m68k-tdep.c: Fix indentation.
1767 * machoread.c: Fix indentation.
1768 * macrocmd.c: Fix indentation.
1769 * macroexp.c: Fix indentation.
1770 * macroscope.c: Fix indentation.
1771 * macrotab.c: Fix indentation.
1772 * macrotab.h: Fix indentation.
1773 * main.c: Fix indentation.
1774 * mdebugread.c: Fix indentation.
1775 * mep-tdep.c: Fix indentation.
1776 * mi/mi-cmd-catch.c: Fix indentation.
1777 * mi/mi-cmd-disas.c: Fix indentation.
1778 * mi/mi-cmd-env.c: Fix indentation.
1779 * mi/mi-cmd-stack.c: Fix indentation.
1780 * mi/mi-cmd-var.c: Fix indentation.
1781 * mi/mi-cmds.c: Fix indentation.
1782 * mi/mi-main.c: Fix indentation.
1783 * mi/mi-parse.c: Fix indentation.
1784 * microblaze-tdep.c: Fix indentation.
1785 * minidebug.c: Fix indentation.
1786 * minsyms.c: Fix indentation.
1787 * mips-linux-nat.c: Fix indentation.
1788 * mips-linux-tdep.c: Fix indentation.
1789 * mips-nbsd-tdep.c: Fix indentation.
1790 * mips-tdep.c: Fix indentation.
1791 * mn10300-linux-tdep.c: Fix indentation.
1792 * mn10300-tdep.c: Fix indentation.
1793 * moxie-tdep.c: Fix indentation.
1794 * msp430-tdep.c: Fix indentation.
1795 * namespace.h: Fix indentation.
1796 * nat/fork-inferior.c: Fix indentation.
1797 * nat/gdb_ptrace.h: Fix indentation.
1798 * nat/linux-namespaces.c: Fix indentation.
1799 * nat/linux-osdata.c: Fix indentation.
1800 * nat/netbsd-nat.c: Fix indentation.
1801 * nat/x86-dregs.c: Fix indentation.
1802 * nbsd-nat.c: Fix indentation.
1803 * nbsd-tdep.c: Fix indentation.
1804 * nios2-linux-tdep.c: Fix indentation.
1805 * nios2-tdep.c: Fix indentation.
1806 * nto-procfs.c: Fix indentation.
1807 * nto-tdep.c: Fix indentation.
1808 * objfiles.c: Fix indentation.
1809 * objfiles.h: Fix indentation.
1810 * opencl-lang.c: Fix indentation.
1811 * or1k-tdep.c: Fix indentation.
1812 * osabi.c: Fix indentation.
1813 * osabi.h: Fix indentation.
1814 * osdata.c: Fix indentation.
1815 * p-lang.c: Fix indentation.
1816 * p-typeprint.c: Fix indentation.
1817 * p-valprint.c: Fix indentation.
1818 * parse.c: Fix indentation.
1819 * ppc-linux-nat.c: Fix indentation.
1820 * ppc-linux-tdep.c: Fix indentation.
1821 * ppc-nbsd-nat.c: Fix indentation.
1822 * ppc-nbsd-tdep.c: Fix indentation.
1823 * ppc-obsd-nat.c: Fix indentation.
1824 * ppc-ravenscar-thread.c: Fix indentation.
1825 * ppc-sysv-tdep.c: Fix indentation.
1826 * ppc64-tdep.c: Fix indentation.
1827 * printcmd.c: Fix indentation.
1828 * proc-api.c: Fix indentation.
1829 * producer.c: Fix indentation.
1830 * producer.h: Fix indentation.
1831 * prologue-value.c: Fix indentation.
1832 * prologue-value.h: Fix indentation.
1833 * psymtab.c: Fix indentation.
1834 * python/py-arch.c: Fix indentation.
1835 * python/py-bpevent.c: Fix indentation.
1836 * python/py-event.c: Fix indentation.
1837 * python/py-event.h: Fix indentation.
1838 * python/py-finishbreakpoint.c: Fix indentation.
1839 * python/py-frame.c: Fix indentation.
1840 * python/py-framefilter.c: Fix indentation.
1841 * python/py-inferior.c: Fix indentation.
1842 * python/py-infthread.c: Fix indentation.
1843 * python/py-objfile.c: Fix indentation.
1844 * python/py-prettyprint.c: Fix indentation.
1845 * python/py-registers.c: Fix indentation.
1846 * python/py-signalevent.c: Fix indentation.
1847 * python/py-stopevent.c: Fix indentation.
1848 * python/py-stopevent.h: Fix indentation.
1849 * python/py-threadevent.c: Fix indentation.
1850 * python/py-tui.c: Fix indentation.
1851 * python/py-unwind.c: Fix indentation.
1852 * python/py-value.c: Fix indentation.
1853 * python/py-xmethods.c: Fix indentation.
1854 * python/python-internal.h: Fix indentation.
1855 * python/python.c: Fix indentation.
1856 * ravenscar-thread.c: Fix indentation.
1857 * record-btrace.c: Fix indentation.
1858 * record-full.c: Fix indentation.
1859 * record.c: Fix indentation.
1860 * reggroups.c: Fix indentation.
1861 * regset.h: Fix indentation.
1862 * remote-fileio.c: Fix indentation.
1863 * remote.c: Fix indentation.
1864 * reverse.c: Fix indentation.
1865 * riscv-linux-tdep.c: Fix indentation.
1866 * riscv-ravenscar-thread.c: Fix indentation.
1867 * riscv-tdep.c: Fix indentation.
1868 * rl78-tdep.c: Fix indentation.
1869 * rs6000-aix-tdep.c: Fix indentation.
1870 * rs6000-lynx178-tdep.c: Fix indentation.
1871 * rs6000-nat.c: Fix indentation.
1872 * rs6000-tdep.c: Fix indentation.
1873 * rust-lang.c: Fix indentation.
1874 * rx-tdep.c: Fix indentation.
1875 * s12z-tdep.c: Fix indentation.
1876 * s390-linux-tdep.c: Fix indentation.
1877 * score-tdep.c: Fix indentation.
1878 * ser-base.c: Fix indentation.
1879 * ser-mingw.c: Fix indentation.
1880 * ser-uds.c: Fix indentation.
1881 * ser-unix.c: Fix indentation.
1882 * serial.c: Fix indentation.
1883 * sh-linux-tdep.c: Fix indentation.
1884 * sh-nbsd-tdep.c: Fix indentation.
1885 * sh-tdep.c: Fix indentation.
1886 * skip.c: Fix indentation.
1887 * sol-thread.c: Fix indentation.
1888 * solib-aix.c: Fix indentation.
1889 * solib-darwin.c: Fix indentation.
1890 * solib-frv.c: Fix indentation.
1891 * solib-svr4.c: Fix indentation.
1892 * solib.c: Fix indentation.
1893 * source.c: Fix indentation.
1894 * sparc-linux-tdep.c: Fix indentation.
1895 * sparc-nbsd-tdep.c: Fix indentation.
1896 * sparc-obsd-tdep.c: Fix indentation.
1897 * sparc-ravenscar-thread.c: Fix indentation.
1898 * sparc-tdep.c: Fix indentation.
1899 * sparc64-linux-tdep.c: Fix indentation.
1900 * sparc64-nbsd-tdep.c: Fix indentation.
1901 * sparc64-obsd-tdep.c: Fix indentation.
1902 * sparc64-tdep.c: Fix indentation.
1903 * stabsread.c: Fix indentation.
1904 * stack.c: Fix indentation.
1905 * stap-probe.c: Fix indentation.
1906 * stubs/ia64vms-stub.c: Fix indentation.
1907 * stubs/m32r-stub.c: Fix indentation.
1908 * stubs/m68k-stub.c: Fix indentation.
1909 * stubs/sh-stub.c: Fix indentation.
1910 * stubs/sparc-stub.c: Fix indentation.
1911 * symfile-mem.c: Fix indentation.
1912 * symfile.c: Fix indentation.
1913 * symfile.h: Fix indentation.
1914 * symmisc.c: Fix indentation.
1915 * symtab.c: Fix indentation.
1916 * symtab.h: Fix indentation.
1917 * target-float.c: Fix indentation.
1918 * target.c: Fix indentation.
1919 * target.h: Fix indentation.
1920 * tic6x-tdep.c: Fix indentation.
1921 * tilegx-linux-tdep.c: Fix indentation.
1922 * tilegx-tdep.c: Fix indentation.
1923 * top.c: Fix indentation.
1924 * tracefile-tfile.c: Fix indentation.
1925 * tracepoint.c: Fix indentation.
1926 * tui/tui-disasm.c: Fix indentation.
1927 * tui/tui-io.c: Fix indentation.
1928 * tui/tui-regs.c: Fix indentation.
1929 * tui/tui-stack.c: Fix indentation.
1930 * tui/tui-win.c: Fix indentation.
1931 * tui/tui-winsource.c: Fix indentation.
1932 * tui/tui.c: Fix indentation.
1933 * typeprint.c: Fix indentation.
1934 * ui-out.h: Fix indentation.
1935 * unittests/copy_bitwise-selftests.c: Fix indentation.
1936 * unittests/memory-map-selftests.c: Fix indentation.
1937 * utils.c: Fix indentation.
1938 * v850-tdep.c: Fix indentation.
1939 * valarith.c: Fix indentation.
1940 * valops.c: Fix indentation.
1941 * valprint.c: Fix indentation.
1942 * valprint.h: Fix indentation.
1943 * value.c: Fix indentation.
1944 * value.h: Fix indentation.
1945 * varobj.c: Fix indentation.
1946 * vax-tdep.c: Fix indentation.
1947 * windows-nat.c: Fix indentation.
1948 * windows-tdep.c: Fix indentation.
1949 * xcoffread.c: Fix indentation.
1950 * xml-syscall.c: Fix indentation.
1951 * xml-tdesc.c: Fix indentation.
1952 * xstormy16-tdep.c: Fix indentation.
1953 * xtensa-config.c: Fix indentation.
1954 * xtensa-linux-nat.c: Fix indentation.
1955 * xtensa-linux-tdep.c: Fix indentation.
1956 * xtensa-tdep.c: Fix indentation.
1957
1958 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1959 Craig Blackmore <craig.blackmore@embecosm.com>
1960
1961 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1962 as an unsigned value.
1963
1964 2020-11-01 Tom Tromey <tom@tromey.com>
1965
1966 * dbxread.c (dbx_end_psymtab): Update.
1967 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1968 (build_type_psymtabs_reader): Update.
1969 * xcoffread.c (xcoff_end_psymtab): Update.
1970 * ctfread.c (scan_partial_symbols): Update.
1971 * psymtab.c (sort_pst_symbols): Remove.
1972 (partial_symtab::end): Rename from end_psymtab_common. Inline
1973 sort_pst_symbols.
1974 * psympriv.h (struct partial_symtab) <end>: New method.
1975 (end_psymtab_common): Don't declare.
1976
1977 2020-11-01 Tom Tromey <tom@tromey.com>
1978
1979 * symmisc.c (count_psyms): New function.
1980 (print_objfile_statistics): Use it.
1981 * psymtab.c (append_psymbol_to_list): Remove.
1982 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1983 * objfiles.h (struct objstats) <n_psyms>: Remove.
1984
1985 2020-11-01 Tom Tromey <tom@tromey.com>
1986
1987 * dbxread.c (dbx_end_psymtab): Update.
1988 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1989 (build_type_psymtabs_reader): Update.
1990 * xcoffread.c (xcoff_end_psymtab): Update.
1991 * ctfread.c (scan_partial_symbols): Update.
1992 * psympriv.h (end_psymtab_common): Update.
1993 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1994 (sort_pst_symbols): Likewise.
1995
1996 2020-11-01 Tom Tromey <tom@tromey.com>
1997
1998 * dbxread.c (dbx_symfile_read): Update.
1999 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2000 * xcoffread.c (xcoff_initial_scan): Update.
2001 * psympriv.h (init_psymbol_list): Don't declare.
2002 * psymtab.c (init_psymbol_list): Remove.
2003
2004 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2005
2006 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2007 gnat_encoded_fixed_type_info. Update all callers.
2008
2009 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2010
2011 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2012 line too long.
2013
2014 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2015
2016 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2017 cast_from_fixed. Update all callers.
2018 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2019 Update all callers.
2020 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2021 Update all callers.
2022 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2023 ada_scaling_factor.
2024 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2025 to print_gnat_encoded_fixed_point_type.
2026 * ada-valprint.c: Likewise.
2027
2028 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2031 (debug_prefixed_printf): Add check of debug_displaced flag.
2032 * linux-nat.c (linux_nat_debug_printf): Add check of
2033 debug_linux_nat flag.
2034
2035 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2036
2037 * infrun.c (infrun_debug_printf_1): Remove.
2038 (displaced_debug_printf_1): Remove.
2039 (stop_all_threads): Use debug_prefixed_printf.
2040 * infrun.h (infrun_debug_printf_1): Remove.
2041 (infrun_debug_printf): Use debug_prefixed_printf.
2042 (displaced_debug_printf_1): Remove.
2043 (displaced_debug_printf): Use debug_prefixed_printf.
2044 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2045 (linux_nat_debug_printf): Use debug_prefixed_printf.
2046
2047 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2048
2049 * configure: Re-generate.
2050 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2051 AC_LANG_PROGRAM.
2052
2053 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2054
2055 * configure: Re-generate.
2056
2057 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2058
2059 * configure: Re-generate.
2060
2061 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * configure: Re-generate.
2064
2065 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * configure: Re-generate.
2068
2069 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2070
2071 * acinclude.m4: Modernize.
2072 * configure: Re-generate.
2073
2074 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2075
2076 * configure.ac: Modernize.
2077 * configure: Re-generate.
2078
2079 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2080
2081 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2082 * configure: Re-generate.
2083 * configure.ac: Remove AM_PROG_CC_STDC.
2084
2085 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2086
2087 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2088 AC_CANONICAL_SYSTEM.
2089 * configure: Re-generate.
2090
2091 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2092
2093 * infrun.h (displaced_debug_printf): New macro. Replace
2094 displaced debug prints throughout to use it.
2095 (displaced_debug_printf_1): New declaration.
2096 (displaced_step_dump_bytes): Return string, remove ui_file
2097 parameter, update all callers.
2098 * infrun.c (displaced_debug_printf_1): New function.
2099 (displaced_step_dump_bytes): Return string, remove ui_file
2100 parameter
2101
2102 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2103
2104 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2105
2106 2020-10-30 Tom Tromey <tromey@adacore.com>
2107
2108 * Makefile.in (stamp-init): Depend on config.status.
2109
2110 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2111
2112 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2113
2114 2020-10-30 Pedro Alves <pedro@palves.net>
2115
2116 * thread.c (lookup_selected_frame): Move ...
2117 * frame.c (lookup_selected_frame): ... here.
2118
2119 2020-10-30 Pedro Alves <pedro@palves.net>
2120
2121 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2122 * frame.c
2123 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2124 Use save_selected_frame. Save language as well.
2125 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2126 Use restore_selected_frame, and restore language as well.
2127 (selected_frame_id, selected_frame_level): New.
2128 (selected_frame): Update comments.
2129 (save_selected_frame, restore_selected_frame): New.
2130 (get_selected_frame): Use lookup_selected_frame.
2131 (get_selected_frame_if_set): Delete.
2132 (select_frame): Record selected_frame_level and selected_frame_id.
2133 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2134 fields.
2135 (get_selected_frame): Make 'message' parameter optional.
2136 (get_selected_frame_if_set): Delete declaration.
2137 (select_frame): Update comments.
2138 (save_selected_frame, restore_selected_frame)
2139 (lookup_selected_frame): Declare.
2140 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2141 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2142 New field.
2143 (save_infcall_control_state): Use save_selected_frame.
2144 (restore_selected_frame): Delete.
2145 (restore_infcall_control_state): Use restore_selected_frame.
2146 * stack.c (select_frame_command_core, frame_command_core): Use
2147 get_selected_frame.
2148 * thread.c (restore_selected_frame): Rename to ...
2149 (lookup_selected_frame): ... this and make extern. Select the
2150 current frame if the frame level is -1.
2151 (scoped_restore_current_thread::restore): Also restore the
2152 language.
2153 (scoped_restore_current_thread::~scoped_restore_current_thread):
2154 Don't try/catch.
2155 (scoped_restore_current_thread::scoped_restore_current_thread):
2156 Save the language as well. Use save_selected_frame.
2157
2158 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2159
2160 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2161 documentation.
2162 * gdbarch.h: Re-generate.
2163
2164 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2165
2166 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2167 parameter.
2168 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2169 Likewise.
2170 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2171 Likewise.
2172 * arch-utils.c (default_displaced_step_hw_singlestep):
2173 Likewise.
2174 * arch-utils.h (default_displaced_step_hw_singlestep):
2175 Likewise.
2176 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2177 Likewise.
2178 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2179 Likewise.
2180 * gdbarch.c: Re-generate.
2181 * gdbarch.h: Re-generate.
2182 * infrun.c (resume_1): Adjust.
2183
2184 2020-10-29 Tom Tromey <tom@tromey.com>
2185
2186 * progspace.c (program_space::~program_space): Don't call
2187 exec_close.
2188
2189 2020-10-29 Tom Tromey <tom@tromey.com>
2190
2191 * exec.c (exec_target::close): Don't change current program
2192 space.
2193
2194 2020-10-29 Tom Tromey <tom@tromey.com>
2195
2196 * symfile.c (add_symbol_file_command): Update.
2197 * exec.c (program_space::add_target_sections): Rename.
2198 * symfile-mem.c (symbol_file_add_from_memory): Update.
2199 * progspace.h (struct program_space) <add_target_sections>:
2200 Declare new overload.
2201 * exec.h (add_target_sections_of_objfile): Don't declare.
2202
2203 2020-10-29 Tom Tromey <tom@tromey.com>
2204
2205 * solib.c (solib_map_sections): Update.
2206 * exec.c (program_space::add_target_sections): Now a method.
2207 (exec_file_attach): Update.
2208 * exec.h (add_target_sections): Don't declare.
2209 * progspace.h (struct program_space) <add_target_sections>:
2210 Declare.
2211
2212 2020-10-29 Tom Tromey <tom@tromey.com>
2213
2214 * progspace.h (struct program_space) <remove_target_sections>:
2215 Declare.
2216 * exec.c (program_space::remove_target_sections): Now a method.
2217 * exec.h (remove_target_sections): Don't declare.
2218
2219 2020-10-29 Tom Tromey <tom@tromey.com>
2220
2221 * inferior.c (delete_inferior): Update.
2222 * progspace.c (program_space::empty): Rename from
2223 program_space_empty_p. Return bool.
2224 * progspace.h (struct program_space) <empty>: New method.
2225 (program_space_empty_p): Don't declare.
2226
2227 2020-10-29 Tom Tromey <tom@tromey.com>
2228
2229 * progspace.c (program_space::~program_space): Don't call
2230 clear_program_space_solib_cache.
2231 (program_space::clear_solib_cache): Rename from
2232 clear_solib_cache.
2233 * solib.c (handle_solib_event): Update.
2234 * progspace.h (struct program_space) <clear_solib_cache>: New
2235 method.
2236 (clear_program_space_solib_cache): Don't declare.
2237
2238 2020-10-29 Tom Tromey <tom@tromey.com>
2239
2240 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2241 * target.c (info_target_command): Update.
2242 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2243 (symbol_file_clear, reread_symbols): Update.
2244 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2245 * stabsread.c (scan_file_globals): Update.
2246 * solib.c (update_solib_list): Update.
2247 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2248 (svr4_fetch_objfile_link_map, enable_break)
2249 (svr4_relocate_main_executable)
2250 (svr4_iterate_over_objfiles_in_search_order): Update.
2251 * solib-frv.c (lm_base, enable_break)
2252 (frv_relocate_main_executable): Update.
2253 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2254 (frv_fetch_objfile_link_map): Update.
2255 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2256 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2257 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2258 * remote.c (remote_target::get_offsets): Update.
2259 (remote_target::start_remote)
2260 (extended_remote_target::post_attach): Update.
2261 * objfiles.c (entry_point_address_query): Update.
2262 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2263 * minsyms.c (get_symbol_leading_char): Update.
2264 * frame.c (inside_main_func): Update.
2265 * progspace.h (symfile_objfile): Remove macro.
2266
2267 2020-10-29 Tom Tromey <tom@tromey.com>
2268
2269 * exec.c (exec_file_attach): Update.
2270 * progspace.c (program_space::exec_close): Update.
2271 * progspace.h (struct program_space) <ebfd>: Now a
2272 gdb_bfd_ref_ptr.
2273 <set_exec_bfd>: Change argument type.
2274 <exec_bfd>: Update.
2275
2276 2020-10-29 Tom Tromey <tom@tromey.com>
2277
2278 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2279 * symfile.c (reread_symbols): Update.
2280 * symfile-mem.c (add_symbol_file_from_memory_command)
2281 (add_vsyscall_page): Update.
2282 * source-cache.c (source_cache::get_plain_source_lines): Update.
2283 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2284 (svr4_current_sos_direct, svr4_exec_displacement)
2285 (svr4_relocate_main_executable): Update.
2286 (svr4_iterate_over_objfiles_in_search_order): Update.
2287 * solib-frv.c (enable_break2, enable_break): Update.
2288 * solib-dsbt.c (lm_base, enable_break): Update.
2289 * solib-darwin.c (find_program_interpreter)
2290 (darwin_solib_create_inferior_hook): Update.
2291 * sol-thread.c (rw_common, ps_pdmodel): Update.
2292 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2293 * remote.c (compare_sections_command)
2294 (remote_target::trace_set_readonly_regions): Update.
2295 * remote-sim.c (get_sim_inferior_data)
2296 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2297 (gdbsim_target_open, gdbsim_target::files_info): Update.
2298 * exec.h (exec_bfd): Remove macro.
2299 * progspace.c (initialize_progspace): Update.
2300 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2301 Update.
2302 * nto-procfs.c (nto_procfs_target::post_attach)
2303 (nto_procfs_target::create_inferior): Update.
2304 * maint.c (maintenance_info_sections): Update.
2305 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2306 Update.
2307 * infcmd.c (post_create_inferior): Update.
2308 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2309 (objfile_find_memory_regions): Update.
2310 * exec.c (validate_exec_file, exec_file_attach)
2311 (exec_read_partial_read_only, print_section_info): Update.
2312 * corelow.c (core_target_open): Update.
2313 * corefile.c (reopen_exec_file, validate_files): Update.
2314 * arm-tdep.c (gdb_print_insn_arm): Update.
2315 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2316 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2317 methods.
2318
2319 2020-10-29 Tom Tromey <tom@tromey.com>
2320
2321 * progspace.h (current_target_sections): Remove macro.
2322 * solib-svr4.c (scan_dyntag): Update.
2323 * solib-dsbt.c (scan_dyntag): Update.
2324 * exec.c (exec_target::close): Update.
2325 (add_target_sections, add_target_sections_of_objfile)
2326 (remove_target_sections, exec_target::get_section_table)
2327 (exec_target::files_info, set_section_command)
2328 (exec_set_section_address, exec_target::has_memory)
2329 (exec_target::has_memory): Update.
2330
2331 2020-10-29 Tom Tromey <tom@tromey.com>
2332
2333 * source-cache.c (source_cache::get_plain_source_lines): Use
2334 current_program_space.
2335 * corefile.c (reopen_exec_file): Use current_program_space.
2336 * exec.c (exec_file_attach): Use current_program_space.
2337 * exec.h (exec_bfd_mtime): Remove.
2338
2339 2020-10-29 Tom Tromey <tom@tromey.com>
2340
2341 * gcore.c (default_gcore_mach): Remove.
2342 (create_gcore_bfd): Update.
2343
2344 2020-10-29 Tom Tromey <tom@tromey.com>
2345
2346 * progspace.c (program_space::exec_close): New method, from
2347 exec_close in exec.c.
2348 * exec.c (exec_close): Move to progspace.c.
2349 (exec_target::close, exec_file_attach): Update.
2350 * progspace.h (struct program_space) <exec_close>: Declare
2351 method.
2352
2353 2020-10-29 Tom Tromey <tom@tromey.com>
2354
2355 * progspace.h (struct program_space) <exec_filename>: Rename from
2356 pspace_exec_filename. Now a unique_xmalloc_ptr.
2357 * inferior.c (print_selected_inferior): Update.
2358 (print_inferior): Update.
2359 * mi/mi-main.c (print_one_inferior): Update.
2360 * exec.h (exec_filename): Remove macro.
2361 * corefile.c (get_exec_file): Update.
2362 * exec.c (exec_close): Update.
2363 (exec_file_attach): Update.
2364 * progspace.c (clone_program_space): Update.
2365 (print_program_space): Update.
2366
2367 2020-10-29 Tom Tromey <tom@tromey.com>
2368
2369 * target-section.h (struct target_section): Add constructor.
2370 * exec.c (build_section_table, add_target_sections_of_objfile):
2371 Update.
2372 * corelow.c (core_target::build_file_mappings): Update.
2373
2374 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2375
2376 PR gdb/19318
2377 * inferior.c (detach_inferior_command): Restore the current thread.
2378 (kill_inferior_command): Ditto.
2379
2380 2020-10-28 Tom de Vries <tdevries@suse.de>
2381
2382 PR symtab/26772
2383 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2384 map, check it in the "best match" loop.
2385
2386 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2387
2388 * m32c-tdep.c: Remove unused includes.
2389
2390 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2391
2392 * xtensa-tdep.c: Remove includes.
2393
2394 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2395
2396 * breakpoint.c (struct condition_command_opts): New struct.
2397 (condition_command_option_defs): New static global.
2398 (make_condition_command_options_def_group): New function.
2399 (condition_completer): Update to consider the '-force' flag.
2400 (condition_command): Use gdb::option for the '-force' flag.
2401
2402 2020-10-27 Tom de Vries <tdevries@suse.de>
2403
2404 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2405 symbols in section check.
2406
2407 2020-10-27 Tom de Vries <tdevries@suse.de>
2408
2409 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2410
2411 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2412
2413 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2414 * breakpoint.c: Update the help text of the 'condition' and 'break'
2415 commands.
2416 (set_breakpoint_condition): Take a new bool parameter
2417 to control whether condition definition should be forced even when
2418 the condition expression is invalid in all of the current locations.
2419 (condition_command): Update the call to 'set_breakpoint_condition'.
2420 (find_condition_and_thread): Take the "-force-condition" flag into
2421 account.
2422 * linespec.c (linespec_keywords): Add "-force-condition" as an
2423 element.
2424 (FORCE_KEYWORD_INDEX): New #define.
2425 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2426 as a keyword.
2427 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2428 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2429 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2430 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2431
2432 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2433
2434 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2435 * breakpoint.c (set_breakpoint_location_condition): New function.
2436 (set_breakpoint_condition): Disable a breakpoint location if parsing
2437 the condition string gives an error.
2438 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2439 (build_target_condition_list): Ditto.
2440 (build_target_command_list): Ditto.
2441 (build_bpstat_chain): Ditto.
2442 (print_one_breakpoint_location): Ditto.
2443 (print_one_breakpoint): Ditto.
2444 (breakpoint_1): Ditto.
2445 (bp_location::bp_location): Ditto.
2446 (locations_are_equal): Ditto.
2447 (update_breakpoint_locations): Ditto.
2448 (enable_disable_bp_num_loc): Ditto.
2449 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2450 (find_condition_and_thread_for_sals): New static function.
2451 (create_breakpoint): Call find_condition_and_thread_for_sals.
2452 (location_to_sals): Call find_condition_and_thread_for_sals instead
2453 of find_condition_and_thread.
2454
2455 2020-10-26 Tom de Vries <tdevries@suse.de>
2456
2457 * dwarf2/read.c (process_full_comp_unit): Call
2458 dwarf2_find_base_address.
2459
2460 2020-10-26 Tom Tromey <tromey@adacore.com>
2461
2462 * gdbtypes.c (create_range_type): Revert previous patch. Add
2463 comment.
2464
2465 2020-10-26 Pedro Alves <pedro@palves.net>
2466
2467 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2468 (my_waitpid): Use gdb::handle_eintr.
2469
2470 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2471
2472 * acinclude.m4: Update ptrace.m4 path.
2473 * ptrace.m4: Moved to gdbsupport.
2474
2475 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2476
2477 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2478 instead of target_gdbarch.
2479
2480 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2481
2482 * jit.c (jit_reader_load_command): Pass current inferior.
2483 (jit_inferior_init): Change parameter type to inferior, use it.
2484 (jit_inferior_created): Remove.
2485 (jit_inferior_created_hook): Pass inferior parameter down.
2486 (_initialize_jit): Use jit_inferior_created_hook instead of
2487 jit_inferior_created.
2488 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2489 * infrun.c (follow_exec): Pass inferior to
2490 jit_inferior_created_hook.
2491
2492 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2493
2494 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2495 parameter and use it.
2496 (thread_db_inferior_created): Pass inferior argument.
2497
2498 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2499
2500 * aix-thread.c (aix_thread_inferior_created): Add inferior
2501 parameter.
2502 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2503 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2504 * jit.c (jit_inferior_created): Likewise.
2505 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2506 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2507 * observable.h (inferior_created): Likewise.
2508 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2509 * symfile-mem.c (add_vsyscall_page): Likewise.
2510 * infcmd.c (post_create_inferior): Pass inferior argument.
2511
2512 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2513
2514 GDB 10.1 released.
2515
2516 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2517
2518 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2519 to ada_check_typedef.
2520
2521 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2522
2523 * f-exp.y (f_parse): Rename to...
2524 (f_language::parser): ...this.
2525 * f-lang.c (f_get_encoding): Rename to...
2526 (f_language::get_encoding): ...this.
2527 (f_op_print_tab): Rename to...
2528 (f_language::op_print_tab): ...this.
2529 (exp_descriptor_f): Rename to...
2530 (f_language::exp_descriptor_tab): ...this.
2531 (class f_language): Moved to f-lang.h.
2532 (f_language::language_arch_info): New function, moved out of class
2533 declaration.
2534 (f_language::search_name_hash): Likewise.
2535 (f_language::lookup_symbol_nonlocal): Likewise.
2536 (f_language::get_symbol_name_matcher_inner): Likewise.
2537 * f-lang.h: Add 'valprint.h' include.
2538 (class f_language): Moved here from f-lang.c.
2539 * f-typeprint.c (f_type_print_args): Delete commented out
2540 declaration.
2541 (f_print_typedef): Rename to...
2542 (f_language::print_typedef): ...this.
2543 (f_print_type): Rename to...
2544 (f_language::print_type): ...this.
2545 (f_type_print_varspec_prefix): Delete declaration and rename to...
2546 (f_language::f_type_print_varspec_prefix): ...this.
2547 (f_type_print_varspec_suffix): Delete declaration and rename to...
2548 (f_language::f_type_print_varspec_suffix): ...this.
2549 (f_type_print_base): Delete declaration and rename to...
2550 (f_language::f_type_print_base): ...this.
2551 * f-valprint.c (f_value_print_inner): Rename to...
2552 (f_language::value_print_inner): ...this.
2553 * parse.c: Delete 'f-lang.h' include.
2554
2555 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2556
2557 * language.h (language_defn::print_type): Add variable names in
2558 declaration, and update header comment.
2559
2560 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 * ada-lang.c (ada_language::demangle): Rename to...
2563 (ada_language::demangle_symbol): ...this.
2564 * c-lang.c (cplus_language::demangle): Rename to...
2565 (cplus_language::demangle_symbol): ...this.
2566 * d-lang.c (d_language::demangle): Rename to...
2567 (d_language::demangle_symbol): ...this.
2568 * f-lang.c (f_language::demangle): Rename to...
2569 (f_language::demangle_symbol): ...this.
2570 * go-lang.c (go_language::demangle): Rename to...
2571 (go_language::demangle_symbol): ...this.
2572 * language.c (language_demangle): Update call to demangle_symbol.
2573 (auto_or_unknown_language::demangle): Rename to...
2574 (auto_or_unknown_language::demangle_symbol): ...this.
2575 * language.h (language_defn::demangle): Rename to...
2576 (language_defn::demangle_symbol): ...this.
2577 * objc-lang.c (objc_language::demangle): Rename to...
2578 (objc_language::demangle_symbol): ...this.
2579 * rust-lang.c (rust_language::demangle): Rename to...
2580 (rust_language::demangle_symbol): ...this.
2581
2582 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2585 (iterate_over_file_blocks): Replace use of macro with the macros
2586 definition.
2587
2588 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2591 * valprint.c (maybe_print_array_index): Replace use of macro with
2592 the macros definition.
2593
2594 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2595
2596 * ada-lang.c (ada_language::print_array_index): Call value_print
2597 directly.
2598 * language.c (language_defn::print_array_index): Likewise.
2599 * language.h (LA_VALUE_PRINT): Delete.
2600 * valprint.c (value_print): Call value_print on the
2601 current_language directly.
2602
2603 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * language.h (LA_PRINT_TYPEDEF): Delete.
2606 * typeprint.c (typedef_print): Call print_typedef directly on the
2607 current_language object.
2608
2609 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2610
2611 * m2-exp.y (m2_parse): Rename to...
2612 (m2_language::parser): ...this. Update function signature.
2613 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2614 (m2_op_print): Rename to...
2615 (m2_language::op_print_tab): ...this, and make const.
2616 (exp_descriptor_modula2): Rename to...
2617 (m2_language::exp_descriptor_modula2): ...this.
2618 (class m2_language): Move to m2-lang.h.
2619 (m2_language::language_arch_info): New function, moved out of
2620 class declaration.
2621 (m2_language::printchar): New function, body from m2_printchar.
2622 (m2_language::printstr): New function, moved out of class
2623 declaration.
2624 (m2_language::emitchar): Likewise.
2625 * m2-lang.h (m2_parse): Delete declaration.
2626 (m2_print_typedef): Delete declaration.
2627 (m2_value_print_inner): Delete declaration.
2628 (class m2_language): Class declaration moved from m2-lang.c,
2629 larger functions are left in m2-lang.c.
2630 * m2-typeprint.c (m2_print_typedef): Rename to...
2631 (m2_language::print_typedef): ...this, and update function
2632 signature.
2633 * m2-valprint.c (m2_value_print_inner): Rename to...
2634 (m2_language::value_print_inner): ...this, replace use of
2635 LA_PRINT_STRING with a direct call to printstr member function,
2636 and update recursive call.
2637
2638 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * language.c (default_is_string_type_p): Delete, implementation
2641 moved into auto_or_unknown_language::is_string_type_p.
2642 (unk_op_print_tab): Moved into
2643 auto_or_unknown_language::opcode_print_table.
2644 (unknown_language_arch_info): Delete, implementation moved into
2645 auto_or_unknown_language::language_arch_info.
2646 (class auto_or_unknown_language): New class, member functions
2647 copied from unknown_language class, with some updates.
2648 (class unknown_language): Most member functions moved into
2649 auto_or_unknown_language class. Inherit from
2650 auto_or_unknown_language class.
2651 (class auto_language): Inherit from auto_or_unknown_language.
2652 Delete most member functions.
2653
2654 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2655
2656 * stabsread.c (read_member_functions): Remove gdb_assert.
2657
2658 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2659
2660 * gdbtypes.c (init_complex_type): Check target type name.
2661
2662 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2663
2664 * target-debug.h (target_debug_print_struct_target_ops_p):
2665 Remove.
2666 (target_debug_print_async_callback_ftype_p): Remove.
2667 (target_debug_print_struct_trace_state_variable_p): Remove.
2668 (target_debug_print_struct_traceframe_info_p): Remove.
2669 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2670 (target_debug_print_enum_btrace_format): Remove.
2671 (target_debug_print_enum_info_proc_what): Remove.
2672 (target_debug_print_thread_info_pp): Remove.
2673
2674 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2675
2676 * target.h (struct target_ops) <make_corefile_notes>:
2677 Change return type to unique pointer.
2678 * target.c (dummy_make_corefile_notes): Likewise.
2679 * exec.c (struct exec_target) <make_corefile_notes>:
2680 Likewise.
2681 (exec_target::make_corefile_notes): Likewise.
2682 * procfs.c (class procfs_target) <make_corefile_notes>:
2683 Likewise.
2684 (procfs_do_thread_registers): Adjust to unique pointer.
2685 (struct procfs_corefile_thread_data): Add constructor.
2686 <note_data>: Change type to unique pointer.
2687 (procfs_corefile_thread_callback): Adjust to unique pointer.
2688 (procfs_target::make_corefile_notes): Change return type to
2689 unique pointer.
2690 * target-delegates.c: Re-generate.
2691 * gcore.c (write_gcore_file_1): Adjust.
2692 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2693 New.
2694
2695 2020-10-22 Tom de Vries <tdevries@suse.de>
2696
2697 * block.c (find_block_in_blockvector): Make sure the returned block
2698 contains pc.
2699
2700 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2701
2702 PR gdb/26693
2703 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2704 parameter.
2705 (load_cu): Pass existing CU.
2706 (process_imported_unit_die): Likewise.
2707 (follow_die_offset): Likewise.
2708
2709 2020-10-22 Luis Machado <luis.machado@linaro.org>
2710
2711 * corelow.c (core_target::xfer_partial): Also check for an empty
2712 m_core_unavailable_mappings vector.
2713
2714 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2715
2716 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2717 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2718 * f-exp.y (arglist): Allow for a series of subranges.
2719 (subrange): Add cases for subranges with strides.
2720 * f-lang.c (value_f90_subarray): Catch use of array strides and
2721 throw an error.
2722 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2723
2724 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * expprint.c (print_subexp_standard): Change enum range_type to
2727 range_flag and rename variables to match.
2728 (dump_subexp_body_standard): Likewise.
2729 * expression.h (enum range_type): Rename to...
2730 (enum range_flag): ...this.
2731 (range_types): Rename to...
2732 (range_flags): ...this.
2733 * f-lang.c (value_f90_subarray): Change enum range_type to
2734 range_flag and rename variables to match.
2735 * parse.c (operator_length_standard): Likewise.
2736 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2737 range_type to range_flag.
2738 * rust-lang.c (rust_evaluate_funcall): Likewise.
2739 (rust_range): Likewise.
2740 (rust_compute_range): Likewise.
2741 (rust_subscript): Likewise.
2742
2743 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2744
2745 * expprint.c (print_subexp_standard): Update to reflect changes to
2746 enum range_type.
2747 (dump_subexp_body_standard): Likewise.
2748 * expression.h (enum range_type): Convert to a bit field enum, and
2749 make the enum unsigned.
2750 * f-exp.y (subrange): Update to reflect changes to enum
2751 range_type.
2752 * f-lang.c (value_f90_subarray): Likewise.
2753 * parse.c (operator_length_standard): Likewise.
2754 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2755 * rust-lang.c (rust_range): Likewise.
2756 (rust_compute_range): Likewise.
2757 (rust_subscript): Likewise.
2758
2759 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2760
2761 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2762 (displaced_step_in_progress): Fix comment.
2763
2764 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2767 * gdbarch.c: Re-generate.
2768 * gdbarch.h: Re-generate.
2769 * gcore.c (write_gcore_file_1): Adjust.
2770 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2771 constructor.
2772 <note_data>: Change type to unique pointer.
2773 <abort_iteration>: Change type to bool.
2774 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2775 (fbsd_collect_thread_registers): Return void, adjust.
2776 (struct fbsd_corefile_thread_data): Add construtor.
2777 <note_data>: Change type to unique pointer.
2778 (fbsd_corefile_thread): Adjust.
2779 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2780 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2781 to unique pointer, adjust.
2782 (struct linux_collect_regset_section_cb_data): Add constructor.
2783 <note_data>: Change type to unique pointer.
2784 <abort_iteration>: Change type to bool.
2785 (linux_collect_thread_registers): Return void, adjust.
2786 (struct linux_corefile_thread_data): Add constructor.
2787 <note_data>: Change type to unique pointer.
2788 (linux_corefile_thread): Adjust.
2789 (linux_make_corefile_notes): Return unique pointer, adjust.
2790
2791 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2792
2793 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2794 * gdbarch.c: Re-generate.
2795 * gdbarch.h: Re-generate.
2796 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2797 bool.
2798 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2799 Likewise.
2800 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2801 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2802 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2803 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2804
2805 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2806
2807 * gdbarch.sh: Make generated predicates return bool.
2808 * gdbarch.c: Re-generate.
2809 * gdbarch.h: Re-generate.
2810
2811 2020-10-20 Tom Tromey <tom@tromey.com>
2812
2813 * varobj-iter.h (struct varobj_item): Remove typedef.
2814
2815 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2816
2817 * infrun.c (currently_stepping): Change int to bool
2818 (maybe_software_singlestep): Likewise.
2819 (show_stop_on_solib_events): Likewise.
2820 (stepping_past_nonsteppable_watchpoint): Likewise.
2821 (displaced_step_in_progress_any_inferior): Likewise.
2822 (displaced_step_in_progress_thread): Likewise.
2823 (keep_going_stepped_thread): Likewise.
2824 (thread_still_needs_step_over): Likewise.
2825 (start_step_over): Likewise.
2826 (do_target_resume): Likewise.
2827 (resume_1): Likewise.
2828 (clear_proceed_status): Likewise.
2829 (thread_still_needs_step_over_bp): Likewise.
2830 (proceed): Likewise.
2831 (switch_back_to_stepped_thread): Likewise.
2832 (adjust_pc_after_break): Likewise.
2833 (stepped_in_from): Likewise.
2834 (handle_stop_requested): Likewise.
2835 (handle_syscall_event): Likewise.
2836 (handle_no_resumed): Likewise.
2837 (handle_inferior_event): Likewise.
2838 (finish_step_over): Likewise.
2839 (handle_signal_stop): Likewise.
2840 (process_event_stop_test): Likewise.
2841
2842 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2843
2844 * infrun.c (get_displaced_stepping_state): Fix comment.
2845
2846 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2847
2848 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2849
2850 2020-10-19 Tom Tromey <tromey@adacore.com>
2851
2852 PR tui/26719
2853 * tui/tui-winsource.h (struct tui_source_window_base)
2854 <refresh_window>: Rename from refresh_pad.
2855 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2856 Rename from refresh_pad.
2857 (tui_source_window_base::show_source_content)
2858 (tui_source_window_base::do_scroll_horizontal): Update.
2859
2860 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2861
2862 * thread.c (_initialize_thread): Fine-tune the help text of
2863 'info threads'.
2864
2865 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2866
2867 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2868
2869 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2870
2871 * breakpoint.c (handle_jit_event): Add an argument, change how
2872 `jit_event_handler` is called.
2873
2874 2020-10-17 Tom Tromey <tom@tromey.com>
2875
2876 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2877 (scan_xcoff_symtab): Update.
2878 * psymtab.h (class psymtab_storage) <global_psymbols,
2879 static_psymbols, current_global_psymbols,
2880 current_static_psymbols>: Remove.
2881 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2882 (match_partial_symbol, lookup_partial_symbol): Update.
2883 (print_partial_symbols): Change parameters.
2884 (dump_psymtab, recursively_search_psymtabs)
2885 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2886 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2887 (concat): Remove.
2888 (end_psymtab_common): Simplify.
2889 (append_psymbol_to_list): Change parameters.
2890 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2891 (init_psymbol_list): Simplify.
2892 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2893 * psympriv.h (struct partial_symtab) <empty>: New method.
2894 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2895 Remove.
2896 <global_psymbols, static_psymbols>: New members.
2897 <add_psymbol>: New methods.
2898 (add_psymbol_to_list): Don't declare.
2899 (psymbol_placement): Move earlier.
2900 * mdebugread.c (parse_partial_symbols): Update.
2901 (handle_psymbol_enumerators): Change parameters.
2902 (mdebug_expand_psymtab): Update.
2903 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2904 (add_partial_symbol): Update.
2905 * dwarf2/index-write.c (write_psymbols): Change parameters.
2906 (write_one_signatured_type): Update.
2907 (recursively_count_psymbols): Update.
2908 (recursively_write_psymbols): Update.
2909 (class debug_names) <recursively_write_psymbols>: Update.
2910 <write_psymbols>: Change parameters.
2911 <write_one_signatured_type>: Update.
2912 * dbxread.c (read_dbx_symtab): Update.
2913 (dbx_end_psymtab): Use partial_symtab::empty.
2914 * ctfread.c (struct ctf_context) <pst>: New member.
2915 (create_partial_symtab): Set it.
2916 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2917 (scan_partial_symbols): Use the psymtab's context. Update.
2918
2919 2020-10-17 Tom Tromey <tom@tromey.com>
2920
2921 * valprint.c (generic_value_print): Remove comment.
2922 * m2-valprint.c (m2_value_print_inner): Remove comment.
2923 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2924 type.
2925
2926 2020-10-17 Tom de Vries <tdevries@suse.de>
2927
2928 PR symtab/26317
2929 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2930 symbol main.
2931
2932 2020-10-14 Tom de Vries <tdevries@suse.de>
2933
2934 PR gdb/26733
2935 * solib.c (solib_contains_address_p): Handle
2936 'solib->sections == nullptr'.
2937
2938 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2939
2940 PR gdb/26642
2941 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2942 target can't do async.
2943 * target.c (target_wait): Assert that we don't pass
2944 TARGET_WNOHANG to a target that can't async.
2945
2946 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2947
2948 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2949 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2950 * alpha-bsd-nat.c: Adjust include.
2951 * alpha-bsd-tdep.h: Adjust comment.
2952 * alpha-nbsd-tdep.c: Rename to ...
2953 * alpha-netbsd-tdep.c: ... this, adjust include.
2954 * amd64-nbsd-nat.c: Rename to ...
2955 * amd64-netbsd-nat.c: ... this, adjust include.
2956 * amd64-nbsd-tdep.c: Rename to ...
2957 * amd64-netbsd-tdep.c: ... this, adjust include.
2958 * amd64-tdep.h: Adjust include.
2959 * arm-nbsd-nat.c: Rename to ...
2960 * arm-netbsd-nat.c: ... this, adjust include.
2961 * arm-nbsd-tdep.c: Rename to ...
2962 * arm-netbsd-tdep.c: ... this, adjust include.
2963 * arm-nbsd-tdep.h: Rename to ...
2964 * arm-netbsd-tdep.h: ... this, adjust include.
2965 * configure.nat: Adjust file lists.
2966 * configure.tgt: Likewise.
2967 * hppa-nbsd-nat.c: Rename to ...
2968 * hppa-netbsd-nat.c: ... this, adjust include.
2969 * hppa-nbsd-tdep.c: Rename to ...
2970 * hppa-netbsd-tdep.c: ... this, adjust include.
2971 * i386-nbsd-nat.c: Rename to ...
2972 * i386-netbsd-nat.c: ... this, adjust include.
2973 * i386-nbsd-tdep.c: Rename to ...
2974 * i386-netbsd-tdep.c: ... this, adjust include.
2975 * m68k-bsd-nat.c: Adjust include.
2976 * mips-nbsd-nat.c: Rename to ...
2977 * mips-netbsd-nat.c: ... this, adjust include.
2978 * mips-nbsd-tdep.c: Rename to ...
2979 * mips-netbsd-tdep.c: ... this, adjust include.
2980 * mips-nbsd-tdep.h: Rename to ...
2981 * mips-netbsd-tdep.h: ... this.
2982 * nbsd-nat.c: Rename to ...
2983 * netbsd-nat.c: ... this, adjust include.
2984 * nbsd-nat.h: Rename to ...
2985 * netbsd-nat.h: ... this, adjust include.
2986 * nbsd-tdep.c: Rename to ...
2987 * netbsd-tdep.c: ... this, adjust include.
2988 * nbsd-tdep.h: Rename to ...
2989 * netbsd-tdep.h: ... this.
2990 * ppc-nbsd-nat.c: Rename to ...
2991 * ppc-netbsd-nat.c: ... this, adjust include.
2992 * ppc-nbsd-tdep.c: Rename to ...
2993 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2994 * ppc-nbsd-tdep.h: Rename to ...
2995 * ppc-netbsd-tdep.h: ... this.
2996 * sh-nbsd-nat.c: Rename to ...
2997 * sh-netbsd-nat.c: ... this, adjust include.
2998 * sh-nbsd-tdep.c: Rename to ...
2999 * sh-netbsd-tdep.c: ... this, adjust include.
3000 * sparc-nbsd-nat.c: Rename to ...
3001 * sparc-netbsd-nat.c: ... this.
3002 * sparc-nbsd-tdep.c: Rename to ...
3003 * sparc-netbsd-tdep.c: ... this, adjust include.
3004 * sparc64-nbsd-nat.c: Rename to ...
3005 * sparc64-netbsd-nat.c: ... this.
3006 * sparc64-nbsd-tdep.c: Rename to ...
3007 * sparc64-netbsd-tdep.c: ... this, adjust include.
3008 * sparc64-tdep.h: Adjust comment.
3009 * vax-bsd-nat.c: Adjust include.
3010 * vax-nbsd-tdep.c: Rename to ...
3011 * vax-netbsd-tdep.c: ... this, adjust include.
3012
3013 2020-10-12 Tom Tromey <tom@tromey.com>
3014
3015 * target.h (struct target_ops) <get_section_table>: Update.
3016 (target_get_section_table): Update.
3017 * target.c (target_get_section_table, target_section_by_addr)
3018 (memory_xfer_partial_1): Update.
3019 * target-section.h (target_section_table): Now an alias.
3020 * target-delegates.c: Rebuild.
3021 * target-debug.h (target_debug_print_target_section_table_p):
3022 Rename from target_debug_print_struct_target_section_table_p.
3023 * symfile.c (build_section_addr_info_from_section_table): Update.
3024 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3025 * solib-svr4.c (scan_dyntag): Update.
3026 * solib-dsbt.c (scan_dyntag): Update.
3027 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3028 Update.
3029 * record-full.c (record_full_core_target::xfer_partial): Update.
3030 * progspace.h (struct program_space) <target_sections>: Update.
3031 * exec.h (print_section_info): Update.
3032 * exec.c (exec_target::close, build_section_table)
3033 (add_target_sections, add_target_sections_of_objfile)
3034 (remove_target_sections, exec_on_vfork)
3035 (section_table_available_memory)
3036 (section_table_xfer_memory_partial)
3037 (exec_target::get_section_table, exec_target::xfer_partial)
3038 (print_section_info, set_section_command)
3039 (exec_set_section_address, exec_target::has_memory): Update.
3040 * corelow.c (core_target::build_file_mappings)
3041 (core_target::xfer_partial, core_target::info_proc_mappings)
3042 (core_target::info_proc_mappings): Update.
3043 * bfd-target.c (class target_bfd): Update
3044
3045 2020-10-12 Tom Tromey <tom@tromey.com>
3046
3047 * progspace.c (program_space::~program_space): Don't call
3048 clear_section_table.
3049 * exec.h (clear_section_table): Don't declare.
3050 * exec.c (exec_target::close): Update.
3051 (clear_section_table): Remove.
3052
3053 2020-10-12 Tom Tromey <tom@tromey.com>
3054
3055 * exec.c (add_target_sections_of_objfile): Simplify.
3056
3057 2020-10-12 Tom Tromey <tom@tromey.com>
3058
3059 * solib.c (solib_map_sections): Update.
3060 * record-full.c (record_full_core_open_1): Update.
3061 * exec.h (build_section_table): Return a target_section_table.
3062 * exec.c (exec_file_attach): Update.
3063 (build_section_table): Return a target_section_table.
3064 * corelow.c (core_target::core_target): Update.
3065 * bfd-target.c (target_bfd::target_bfd): Update.
3066
3067 2020-10-12 Tom Tromey <tom@tromey.com>
3068
3069 * target.c (target_section_by_addr, memory_xfer_partial_1):
3070 Update.
3071 * target-section.h (struct target_section_table): Use
3072 std::vector.
3073 * symfile.h (build_section_addr_info_from_section_table): Take a
3074 target_section_table.
3075 * symfile.c (build_section_addr_info_from_section_table): Take a
3076 target_section_table.
3077 * solist.h (struct so_list) <sections>: Change type.
3078 <sections_end>: Remove.
3079 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3080 (solib_contains_address_p): Update.
3081 * solib-svr4.c (scan_dyntag): Update.
3082 * solib-dsbt.c (scan_dyntag): Update.
3083 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3084 Update.
3085 * record-full.c (record_full_core_start, record_full_core_end):
3086 Remove.
3087 (record_full_core_sections): New global.
3088 (record_full_core_open_1, record_full_core_target::xfer_partial):
3089 Update.
3090 * exec.h (build_section_table, section_table_xfer_memory_partial)
3091 (add_target_sections): Take a target_section_table.
3092 * exec.c (exec_file_attach, clear_section_table): Update.
3093 (resize_section_table): Remove.
3094 (build_section_table, add_target_sections): Take a
3095 target_section_table.
3096 (add_target_sections_of_objfile, remove_target_sections)
3097 (exec_on_vfork): Update.
3098 (section_table_available_memory): Take a target_section_table.
3099 (section_table_read_available_memory): Update.
3100 (section_table_xfer_memory_partial): Take a target_section_table.
3101 (print_section_info, set_section_command)
3102 (exec_set_section_address, exec_target::has_memory): Update.
3103 * corelow.c (class core_target) <m_core_section_table,
3104 m_core_file_mappings>: Remove braces.
3105 <~core_target>: Remove.
3106 (core_target::core_target): Update.
3107 (core_target::~core_target): Remove.
3108 (core_target::build_file_mappings)
3109 (core_target::xfer_memory_via_mappings)
3110 (core_target::xfer_partial, core_target::info_proc_mappings):
3111 Update.
3112 * bfd-target.c (target_bfd::xfer_partial): Update.
3113 (target_bfd::target_bfd): Update.
3114 (target_bfd::~target_bfd): Remove.
3115
3116 2020-10-12 Tom Tromey <tom@tromey.com>
3117
3118 * target.h (struct target_section, struct target_section_table):
3119 Move to target-section.h.
3120 * target-section.h: New file.
3121
3122 2020-10-12 Pedro Alves <pedro@palves.net>
3123
3124 PR exp/26602
3125 * valops.c (struct struct_field_searcher): New.
3126 (update_search_result): Rename to ...
3127 (struct_field_searcher::update_result): ... this. Simplify
3128 prototype. Record all found fields.
3129 (do_search_struct_field): Rename to ...
3130 (struct_field_searcher::search): ... this. Simplify prototype.
3131 Maintain stack of visited baseclass path. Call update_result for
3132 fields too. Keep searching fields in baseclasses instead of
3133 stopping at the first found field.
3134 (search_struct_field): Use struct_field_searcher. When looking
3135 for fields, report ambiguous access attempts.
3136
3137 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3138
3139 * frame.c (inside_main_func): Check full symbols as well as
3140 minimal symbols.
3141
3142 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3143
3144 * ada-lang.c (advance_wild_match): Rewrite the function's
3145 description. Change the type of target0, t0 and t1 to char.
3146
3147 2020-10-09 Tom Tromey <tromey@adacore.com>
3148
3149 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3150
3151 2020-10-09 Tom Tromey <tromey@adacore.com>
3152
3153 * ada-lang.h (ada_encode): Return std::string.
3154 * ada-lang.c (ada_encode_1): Return std::string.
3155 (ada_encode): Likewise.
3156 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3157 Update.
3158 * ada-exp.y (block_lookup, write_var_or_type): Update.
3159
3160 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3161
3162 PR exp/26714
3163 * printcmd.c (print_formatted): Handle void results as
3164 unformatted prints.
3165
3166 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * arch/aarch32.c (aarch32_create_target_description): Release the
3169 target_desc_up as late as possible.
3170 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3171 * arch/amd64.c (amd64_create_target_description): Likewise.
3172 * arch/arc.c (arc_create_target_description): Return a
3173 target_desc_up, don't release it.
3174 * arch/arc.h (arc_create_target_description): Update declaration.
3175 (arc_lookup_target_description): Move target_desc_up into the
3176 cache, and return a borrowed pointer.
3177 * arch/arm.c (arm_create_target_description): Release the
3178 target_desc_up as late as possible.
3179 * arch/i386.c (i386_create_target_description): Likewise.
3180 * arch/riscv.h (riscv_create_target_description): Update
3181 declaration to match definition.
3182 * arch/tic6x.c (tic6x_create_target_description): Release the
3183 target_desc_up as late as possible.
3184
3185 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3186
3187 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3188 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3189
3190 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3191
3192 * source.c (directory_command): Notify observers that "directories"
3193 parameter has changed.
3194
3195 2020-10-08 Tom Tromey <tom@tromey.com>
3196
3197 * cli/cli-cmds.c (print_disassembly): Style function name and
3198 addresses. Add _() wrappers.
3199
3200 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3201
3202 * NEWS: Mention ARC support in GDBserver.
3203
3204 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * arch/aarch32.c (aarch32_create_target_description): Release
3207 unique_ptr returned from allocate_target_description.
3208 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3209 * arch/amd64.c (amd64_create_target_description): Likewise.
3210 * arch/arc.c (arc_create_target_description): Likewise.
3211 * arch/arm.c (arm_create_target_description): Likewise.
3212 * arch/i386.c (i386_create_target_description): Likewise.
3213 * arch/riscv.c (riscv_create_target_description): Update return
3214 type. Handle allocate_target_description returning a unique_ptr.
3215 (riscv_lookup_target_description): Update to handle unique_ptr.
3216 * arch/tic6x.c (tic6x_create_target_description): Release
3217 unique_ptr returned from allocate_target_description.
3218 * features/microblaze-with-stack-protect.c: Regenerate.
3219 * features/microblaze.c: Regenerate.
3220 * features/mips-dsp-linux.c: Regenerate.
3221 * features/mips-linux.c: Regenerate.
3222 * features/mips64-dsp-linux.c: Regenerate.
3223 * features/mips64-linux.c: Regenerate.
3224 * features/nds32.c: Regenerate.
3225 * features/nios2.c: Regenerate.
3226 * features/or1k.c: Regenerate.
3227 * features/rs6000/powerpc-32.c: Regenerate.
3228 * features/rs6000/powerpc-32l.c: Regenerate.
3229 * features/rs6000/powerpc-403.c: Regenerate.
3230 * features/rs6000/powerpc-403gc.c: Regenerate.
3231 * features/rs6000/powerpc-405.c: Regenerate.
3232 * features/rs6000/powerpc-505.c: Regenerate.
3233 * features/rs6000/powerpc-601.c: Regenerate.
3234 * features/rs6000/powerpc-602.c: Regenerate.
3235 * features/rs6000/powerpc-603.c: Regenerate.
3236 * features/rs6000/powerpc-604.c: Regenerate.
3237 * features/rs6000/powerpc-64.c: Regenerate.
3238 * features/rs6000/powerpc-64l.c: Regenerate.
3239 * features/rs6000/powerpc-7400.c: Regenerate.
3240 * features/rs6000/powerpc-750.c: Regenerate.
3241 * features/rs6000/powerpc-860.c: Regenerate.
3242 * features/rs6000/powerpc-altivec32.c: Regenerate.
3243 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3244 * features/rs6000/powerpc-altivec64.c: Regenerate.
3245 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3246 * features/rs6000/powerpc-e500.c: Regenerate.
3247 * features/rs6000/powerpc-e500l.c: Regenerate.
3248 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3249 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3250 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3251 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3252 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3253 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3254 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3255 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3256 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3257 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3258 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3259 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3260 * features/rs6000/powerpc-vsx32.c: Regenerate.
3261 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3262 * features/rs6000/powerpc-vsx64.c: Regenerate.
3263 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3264 * features/rs6000/rs6000.c: Regenerate.
3265 * features/rx.c: Regenerate.
3266 * features/s390-gs-linux64.c: Regenerate.
3267 * features/s390-linux32.c: Regenerate.
3268 * features/s390-linux32v1.c: Regenerate.
3269 * features/s390-linux32v2.c: Regenerate.
3270 * features/s390-linux64.c: Regenerate.
3271 * features/s390-linux64v1.c: Regenerate.
3272 * features/s390-linux64v2.c: Regenerate.
3273 * features/s390-te-linux64.c: Regenerate.
3274 * features/s390-tevx-linux64.c: Regenerate.
3275 * features/s390-vx-linux64.c: Regenerate.
3276 * features/s390x-gs-linux64.c: Regenerate.
3277 * features/s390x-linux64.c: Regenerate.
3278 * features/s390x-linux64v1.c: Regenerate.
3279 * features/s390x-linux64v2.c: Regenerate.
3280 * features/s390x-te-linux64.c: Regenerate.
3281 * features/s390x-tevx-linux64.c: Regenerate.
3282 * features/s390x-vx-linux64.c: Regenerate.
3283 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3284 from allocate_target_description.
3285 * target-descriptions.c (allocate_target_description): Update
3286 return type.
3287 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3288 allocate_target_description.
3289
3290 2020-10-07 Tom Tromey <tromey@adacore.com>
3291
3292 * unittests/search-memory-selftests.c: New file.
3293 * Makefile.in (SELFTESTS_SRCS): Add
3294 unittests/search-memory-selftests.c.
3295
3296 2020-10-07 Tom Tromey <tromey@adacore.com>
3297
3298 PR gdb/16930:
3299 * findcmd.c (_initialize_mem_search): Mention that the range is
3300 inclusive.
3301
3302 2020-10-07 Tom Tromey <tromey@adacore.com>
3303
3304 * target.h (simple_search_memory): Don't declare.
3305 * target.c (simple_search_memory): Move to gdbsupport.
3306 (default_search_memory): Update.
3307 * remote.c (remote_target::search_memory): Update.
3308
3309 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3310
3311 * Makefile.in (COMPILE): Add CXXFLAGS.
3312 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3313 (check-headers): Add CXXFLAGS.
3314
3315 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3316
3317 * arc-linux-tdep.h: New file.
3318 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3319 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3320 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3321 arc_linux_gregset, arc_linux_v2_regset,
3322 arc_linux_iterate_over_regset_sections,
3323 arc_linux_core_read_description): Implement.
3324 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3325 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3326 (arc_gdbarch_features_create): Add.
3327 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3328
3329 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3330
3331 * arch/arc.h: Rename "arc_gdbarch_features" to
3332 "arc_arch_features".
3333 * arc-tdep.h: Likewise.
3334 * arc-tdep.c: Likewise.
3335
3336 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3337
3338 * infcmd.c (attach_command): Remove the redundant call to
3339 `clear_proceed_status`.
3340
3341 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3342
3343 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3344
3345 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3346
3347 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3348 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3349 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3350
3351 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3352
3353 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3354 (_initialize_break_catch_sig): Don't allocate array.
3355
3356 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3357
3358 * symtab.c (find_pc_line): Return unmapped addresses when the
3359 requested address is also unmapped.
3360
3361 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3362
3363 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3364 tui/tui-out.h.
3365
3366 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3367
3368 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3369 type::is_vector instead of TYPE_VECTOR.
3370
3371 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3372
3373 * auto-load.c (auto_load_objfile_script_1): Don't use
3374 debugfile_holder as temporary variable when stripping drive
3375 letter.
3376
3377 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3378
3379 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3380 Add TYPE_CODE_COMPLEX.
3381 (amd64_windows_return_value): Fix types returned via XMM0.
3382
3383 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3384
3385 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3386 AArch64/ARM maintainers.
3387
3388 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3389
3390 * NEWS: Mention set/show debug event-loop.
3391
3392 2020-10-02 Tom Tromey <tromey@adacore.com>
3393
3394 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3395 REG_EXTENDED.
3396
3397 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3400 * procfs.c (procfs_inferior_created): Remove.
3401 (_initialize_procfs): Don't register procfs_inferior_created.
3402
3403 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3404
3405 * async-event.c (invoke_async_signal_handlers): Add debug
3406 print.
3407 (check_async_event_handlers): Likewise.
3408 * event-top.c (show_debug_event_loop): New function.
3409 (_initialize_event_top): Register "set debug event-loop"
3410 setting.
3411
3412 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3413
3414 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3415 * debug.h: Remove.
3416 * infrun.c: Include gdbsupport/common-debug.h.
3417 * linux-nat.c: Likewise.
3418
3419 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3420
3421 * async-event.h (create_async_signal_handler): Add name
3422 parameter.
3423 (create_async_event_handler): Likewise.
3424 * async-event.c (struct async_signal_handler) <name>: New field.
3425 (struct async_event_handler) <name>: New field.
3426 (create_async_signal_handler): Assign name.
3427 (create_async_event_handler): Assign name.
3428 * event-top.c (async_init_signals): Pass name when creating
3429 handler.
3430 * infrun.c (_initialize_infrun): Likewise.
3431 * record-btrace.c (record_btrace_push_target): Likewise.
3432 * record-full.c (record_full_open): Likewise.
3433 * remote-notif.c (remote_notif_state_allocate): Likewise.
3434 * remote.c (remote_target::open_1): Likewise.
3435 * tui/tui-win.c (tui_initialize_win): Likewise.
3436
3437 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3438
3439 * async-event.c (initialize_async_signal_handlers): Pass name to
3440 add_file_handler
3441 * event-top.c (ui_register_input_event_handler): Likewise.
3442 * linux-nat.c (linux_nat_target::async): Likewise.
3443 * run-on-main-thread.c (_initialize_run_on_main_thread):
3444 Likewise
3445 * ser-base.c (reschedule): Likewise.
3446 (ser_base_async): Likewise.
3447 * tui/tui-io.c: Likewise.
3448 * top.h (struct ui) <num>: New field.
3449 * top.c (highest_ui_num): New variable.
3450 (ui::ui): Initialize num.
3451
3452 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3453
3454 * observable.h <inferior_created>: Remove parameters. Update all
3455 listeners.
3456 * inferior.h (post_create_inferior): Remove target parameter.
3457 Update all callers.
3458
3459 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3460
3461 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3462 and DW_MACRO_undef_strx.
3463 (dwarf_decode_macros): Likewise
3464 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3465 which is the value of DW_AT_str_offsets_base.
3466 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3467 str_offsets_base.
3468
3469 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3470
3471 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3472
3473 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3474
3475 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3476 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3477
3478 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3479
3480 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3481
3482 2020-09-30 Tom de Vries <tdevries@suse.de>
3483
3484 PR symtab/26683
3485 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3486
3487 2020-09-30 Tom Tromey <tromey@adacore.com>
3488
3489 * dwarf2/read.c (handle_variant): Use constant_value.
3490
3491 2020-09-29 Tom Tromey <tom@tromey.com>
3492
3493 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3494 (read_file_scope, dwarf2_get_pc_bounds)
3495 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3496 (read_structure_type, handle_struct_member_die)
3497 (read_enumeration_type, read_array_type, read_set_type)
3498 (read_tag_pointer_type, read_tag_reference_type)
3499 (read_subroutine_type, read_base_type, read_subrange_type)
3500 (read_full_die_1, partial_die_info::read)
3501 (partial_die_info::read, by, new_symbol)
3502 (dwarf2_const_value_data, dwarf2_const_value_attr)
3503 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3504 (prepare_one_comp_unit): Update.
3505 * dwarf2/attribute.h (DW_UNSND): Remove.
3506
3507 2020-09-29 Tom Tromey <tom@tromey.com>
3508
3509 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3510 (read_subroutine_type, partial_die_info::read)
3511 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3512 (dwarf2_add_member_fn): Update.
3513 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3514 * dwarf2/attribute.c (attribute::as_boolean): New method.
3515
3516 2020-09-29 Tom Tromey <tom@tromey.com>
3517
3518 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3519 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3520 method.
3521 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3522
3523 2020-09-29 Tom Tromey <tom@tromey.com>
3524
3525 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3526 the attribute's form.
3527
3528 2020-09-29 Tom Tromey <tom@tromey.com>
3529
3530 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3531 (dwarf2_add_member_fn): Update.
3532 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3533 * dwarf2/attribute.c (attribute::defaulted): New method, from
3534 is_valid_DW_AT_defaulted.
3535
3536 2020-09-29 Tom Tromey <tom@tromey.com>
3537
3538 * dwarf2/read.c (dw2_get_file_names_reader)
3539 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3540 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3541 (dwarf2_symbol_mark_computed): Use as_unsigned.
3542 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3543 method.
3544 <form_is_section_offset>: Update comment.
3545
3546 2020-09-29 Tom Tromey <tom@tromey.com>
3547
3548 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3549 dwarf2_default_access_attribute. Look up attribute.
3550 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3551 Update.
3552
3553 2020-09-29 Tom Tromey <tom@tromey.com>
3554
3555 * dwarf2/read.c (skip_one_die): Update.
3556 (read_full_die_1): Change how reprocessing is done.
3557 (partial_die_info::read): Update.
3558 (read_attribute_value): Remove need_reprocess parameter.
3559 (read_attribute): Likewise.
3560 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3561 New method.
3562
3563 2020-09-29 Tom Tromey <tom@tromey.com>
3564
3565 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3566 (dwarf2_const_value_attr, dump_die_shallow)
3567 (dwarf2_fetch_constant_bytes): Update.
3568 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3569 comment.
3570 <set_address>: New method.
3571 (DW_ADDR): Remove.
3572 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3573 (attribute::as_string, attribute::as_address): Add assert.
3574
3575 2020-09-29 Tom Tromey <tom@tromey.com>
3576
3577 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3578 (read_attribute_reprocess, read_attribute_value): Update.
3579 (read_attribute): Clear requires_reprocessing.
3580 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3581 form_requires_reprocessing>: New methods.
3582 <string_init>: Clear requires_reprocessing.
3583 <set_unsigned_reprocess>: New method.
3584 <name>: Shrink by one bit.
3585 <requires_reprocessing>: New member.
3586 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3587 method.
3588
3589 2020-09-29 Tom Tromey <tom@tromey.com>
3590
3591 * dwarf2/read.c (read_attribute_value): Update.
3592 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3593 set_unsigned>: New methods.
3594 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3595
3596 2020-09-29 Tom Tromey <tom@tromey.com>
3597
3598 * dwarf2/read.c (get_alignment, read_array_order)
3599 (read_attribute_value, dwarf2_const_value_attr)
3600 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3601 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3602 New methods.
3603 (DW_SND): Remove.
3604
3605 2020-09-29 Tom Tromey <tom@tromey.com>
3606
3607 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3608 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3609 Update.
3610 * dwarf2/attribute.h (struct attribute) <as_signature,
3611 set_signature>: New methods.
3612 (DW_SIGNATURE): Remove.
3613
3614 2020-09-29 Tom Tromey <tom@tromey.com>
3615
3616 * dwarf2/read.c (read_call_site_scope)
3617 (handle_data_member_location, dwarf2_add_member_fn)
3618 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3619 (partial_die_info::read, read_attribute_value)
3620 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3621 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3622 (dwarf2_symbol_mark_computed): Update.
3623 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3624 methods.
3625 (DW_BLOCK): Remove.
3626 * dwarf2/attribute.c (attribute::form_is_block): Add
3627 DW_FORM_data16.
3628
3629 2020-09-29 Tom Tromey <tom@tromey.com>
3630
3631 * dwarf2/read.c (read_cutu_die_from_dwo)
3632 (read_attribute_reprocess, read_attribute_value, read_attribute)
3633 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3634 (dwarf2_fetch_constant_bytes): Update.
3635 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3636 <set_string_noncanonical, set_string_canonical>: New methods.
3637 <string_is_canonical>: Update comment.
3638 <canonical_string_p>: Add assert.
3639 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3640 * dwarf2/attribute.c (attribute::form_is_string): New method.
3641 (attribute::string): Use it.
3642
3643 2020-09-29 Tom Tromey <tom@tromey.com>
3644
3645 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3646 (dump_die_shallow): Use canonical_string_p.
3647 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3648 method.
3649
3650 2020-09-29 Tom Tromey <tom@tromey.com>
3651
3652 * dwarf2/read.c (partial_die_info::read)
3653 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3654 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3655 attribute::as_string.
3656
3657 2020-09-29 Tom Tromey <tom@tromey.com>
3658
3659 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3660 DW_ADDR.
3661 (attribute::string): Don't use DW_STRING.
3662 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3663 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3664
3665 2020-09-29 Tom Tromey <tom@tromey.com>
3666
3667 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3668 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3669 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3670 * dwarf2/attribute.h (struct attribute): Rename methods.
3671 * dwarf2/attribute.c (attribute::as_address): Rename from
3672 value_as_address.
3673 (attribute::as_string): Rename from value_as_string.
3674
3675 2020-09-29 Tom Tromey <tom@tromey.com>
3676
3677 * dwarf2/read.c (partial_die_info::read) <case
3678 DW_AT_linkage_name>: Use value_as_string.
3679 (dwarf2_string_attr): Use value_as_string.
3680 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3681 method.
3682 * dwarf2/attribute.c (attribute::value_as_string): New method.
3683
3684 2020-09-29 Pedro Alves <pedro@palves.net>
3685
3686 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3687 defined before using '#pragma GCC diagnostic' instead of checking
3688 __clang__.
3689
3690 2020-09-28 Tom Tromey <tom@tromey.com>
3691
3692 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3693 (handle_signal_stop): Update.
3694 * procfs.c (procfs_target::insert_watchpoint): Update.
3695 * target.h (target_have_steppable_watchpoint): Now a function.
3696
3697 2020-09-28 Tom Tromey <tom@tromey.com>
3698
3699 * infrun.c (set_schedlock_func): Update.
3700 * target.h (target_can_lock_scheduler): Now a function.
3701
3702 2020-09-28 Tom Tromey <tom@tromey.com>
3703
3704 * inferior.h (class inferior) <has_execution>: Update.
3705 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3706 * valops.c (find_function_in_inferior)
3707 (value_allocate_space_in_inferior): Update.
3708 * top.c (kill_or_detach): Update.
3709 * target.c (target_preopen, set_target_permissions): Update.
3710 (target_has_execution_current): Remove.
3711 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3712 Update.
3713 * solib.c (update_solib_list, reload_shared_libraries): Update.
3714 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3715 * solib-dsbt.c (enable_break): Update.
3716 * score-tdep.c (score7_fetch_inst): Update.
3717 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3718 Update.
3719 * remote.c (remote_target::start_remote)
3720 (remote_target::remote_check_symbols, remote_target::open_1)
3721 (remote_target::remote_detach_1, remote_target::verify_memory)
3722 (remote_target::xfer_partial, remote_target::read_description)
3723 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3724 * record-full.c (record_full_open_1): Update.
3725 * record-btrace.c (record_btrace_target_open): Update.
3726 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3727 (value_nsstring): Update.
3728 * linux-thread-db.c (add_thread_db_info)
3729 (thread_db_find_new_threads_silently, check_thread_db_callback)
3730 (try_thread_db_load_1, record_thread): Update.
3731 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3732 Update.
3733 * linux-fork.c (checkpoint_command): Update.
3734 * infrun.c (set_non_stop, set_observer_mode)
3735 (check_multi_target_resumption, for_each_just_stopped_thread)
3736 (maybe_remove_breakpoints, normal_stop)
3737 (class infcall_suspend_state): Update.
3738 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3739 (info_program_command, attach_command): Update.
3740 * infcall.c (call_function_by_hand_dummy): Update.
3741 * inf-loop.c (inferior_event_handler): Update.
3742 * gcore.c (gcore_command, derive_heap_segment): Update.
3743 * exec.c (exec_file_command): Update.
3744 * eval.c (evaluate_subexp): Update.
3745 * compile/compile.c (compile_to_object): Update.
3746 * cli/cli-dump.c (restore_command): Update.
3747 * breakpoint.c (update_watchpoint)
3748 (update_inserted_breakpoint_locations)
3749 (insert_breakpoint_locations, get_bpstat_thread): Update.
3750 * target.h (target_has_execution): Remove macro.
3751 (target_has_execution_current): Don't declare.
3752 (target_has_execution): Rename from target_has_execution_1. Add
3753 argument default.
3754
3755 2020-09-28 Tom Tromey <tom@tromey.com>
3756
3757 * mi/mi-main.c (exec_reverse_continue)
3758 (mi_cmd_list_target_features): Update.
3759 * infrun.c (set_exec_direction_func): Update.
3760 * target.c (default_execution_direction): Update.
3761 * reverse.c (exec_reverse_once): Update.
3762 * target.h (target_can_execute_reverse): Now a function.
3763
3764 2020-09-28 Tom Tromey <tom@tromey.com>
3765
3766 * tui/tui-regs.c (tui_get_register)
3767 (tui_data_window::show_registers): Update.
3768 * thread.c (scoped_restore_current_thread::restore)
3769 (scoped_restore_current_thread::scoped_restore_current_thread):
3770 Update.
3771 * regcache-dump.c (regcache_print): Update.
3772 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3773 Update.
3774 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3775 * mep-tdep.c (current_me_module, current_options): Update.
3776 * linux-thread-db.c (thread_db_load): Update.
3777 * infcmd.c (registers_info, info_vector_command)
3778 (info_float_command): Update.
3779 * ia64-tdep.c (ia64_frame_prev_register)
3780 (ia64_sigtramp_frame_prev_register): Update.
3781 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3782 * gcore.c (derive_stack_segment): Update.
3783 * frame.c (get_current_frame, has_stack_frames): Update.
3784 * findvar.c (language_defn::read_var_value): Update.
3785 * arm-tdep.c (arm_pc_is_thumb): Update.
3786 * target.c (target_has_registers): Rename from
3787 target_has_registers_1.
3788 * target.h (target_has_registers): Remove macro.
3789 (target_has_registers): Rename from target_has_registers_1.
3790
3791 2020-09-28 Tom Tromey <tom@tromey.com>
3792
3793 * windows-tdep.c (tlb_make_value): Update.
3794 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3795 * thread.c (scoped_restore_current_thread::restore)
3796 (scoped_restore_current_thread::scoped_restore_current_thread)
3797 (thread_command): Update.
3798 * stack.c (backtrace_command_1, frame_apply_level_command)
3799 (frame_apply_all_command, frame_apply_command): Update.
3800 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3801 Update.
3802 * gcore.c (derive_stack_segment): Update.
3803 * frame.c (get_current_frame, has_stack_frames): Update.
3804 * auxv.c (info_auxv_command): Update.
3805 * ada-tasks.c (ada_build_task_list): Update.
3806 * target.c (target_has_stack): Rename from target_has_stack_1.
3807 * target.h (target_has_stack): Remove macro.
3808 (target_has_stack): Rename from target_has_stack_1.
3809
3810 2020-09-28 Tom Tromey <tom@tromey.com>
3811
3812 * target.c (target_has_memory): Rename from target_has_memory_1.
3813 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3814 * thread.c (scoped_restore_current_thread::restore)
3815 (scoped_restore_current_thread::scoped_restore_current_thread):
3816 Update.
3817 * frame.c (get_current_frame, has_stack_frames): Update.
3818 * target.h (target_has_memory): Remove macro.
3819 (target_has_memory): Rename from target_has_memory_1.
3820
3821 2020-09-28 Tom Tromey <tom@tromey.com>
3822
3823 * target.c (target_has_all_memory_1): Remove.
3824 * target.h (target_has_all_memory): Remove define.
3825 (target_has_all_memory_1): Don't declare.
3826
3827 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 * ser-base.c: Adjust comments formatting.
3830
3831 2020-09-27 Tom Tromey <tom@tromey.com>
3832
3833 PR tui/25342:
3834 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3835
3836 2020-09-27 Tom Tromey <tom@tromey.com>
3837
3838 PR tui/25342:
3839 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3840
3841 2020-09-27 Tom Tromey <tom@tromey.com>
3842
3843 * unittests/tui-selftests.c: Update.
3844 * tui/tui-winsource.h (struct tui_source_window_base)
3845 <extra_margin, show_line_number, refresh_pad>: New methods.
3846 <m_max_length, m_pad>: New members.
3847 (tui_copy_source_line): Update.
3848 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3849 first_col, line_width, ndigits parameters. Add length.
3850 (tui_source_window_base::show_source_line): Write to pad. Line
3851 number now 0-based.
3852 (tui_source_window_base::refresh_pad): New method.
3853 (tui_source_window_base::show_source_content): Write to pad. Call
3854 refresh_pad.
3855 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3856 not refill.
3857 (tui_source_window_base::update_exec_info): Call
3858 show_line_number.
3859 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3860 method.
3861 <m_digits>: New member.
3862 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3863 and m_max_length.
3864 (tui_source_window::show_line_number): New method.
3865 * tui/tui-io.h (tui_puts): Fix comment.
3866 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3867 m_max_length.
3868
3869 2020-09-27 Tom Tromey <tom@tromey.com>
3870
3871 * tui/tui-winsource.c
3872 (tui_source_window_base::set_is_exec_point_at): Don't call
3873 show_source_line.
3874
3875 2020-09-27 Tom Tromey <tom@tromey.com>
3876
3877 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3878 method.
3879 <erase>: Update.
3880 <cursor_x, cursor_y>: Remove.
3881 <m_inner_window>: New member.
3882 (tui_py_window::rerender): Create inner window.
3883 (tui_py_window::output): Write to inner window.
3884
3885 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3886
3887 PR python/26586
3888 * cli/cli-script.c (execute_control_commands): don't set
3889 instream to nullptr here as this breaks the from_tty argument
3890 to gdb.execute in Python.
3891 (execute_user_command): set instream to nullptr here instead.
3892
3893 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3894
3895 * infrun.h (infrun_debug_printf): Fix formatting.
3896 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3897
3898 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3899
3900 * compile/compile-object-load.h (struct munmap_list): Add
3901 explicitly-defined move constructor.
3902
3903 2020-09-24 Tom Tromey <tromey@adacore.com>
3904
3905 PR tui/26638:
3906 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3907 method.
3908 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3909 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3910 (tui_prev_win): Rewrite.
3911
3912 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3913
3914 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3915 in WOW64 processes as SIGINT.
3916 * nat/windows-nat.h: Make wow64_process a shared variable.
3917 * windows-nat.c: Remove static wow64_process variable.
3918
3919 2020-09-23 Tom Tromey <tom@tromey.com>
3920
3921 PR symtab/25470:
3922 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3923 offset and bit size.
3924 * printcmd.c (print_scalar_formatted): Handle zero-length
3925 integer.
3926 (print_scalar_formatted): Use bit_size_differs_p.
3927 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3928 constant.
3929 (union type_specific): <int_stuff>: New member.
3930 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3931 methods.
3932 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3933 TYPE_SPECIFIC_FIELD.
3934 (recursive_dump_type, copy_type_recursive): Update.
3935 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3936 DW_AT_data_bit_offset.
3937
3938 2020-09-23 Tom Tromey <tom@tromey.com>
3939
3940 * utils.h (class gdb_argv): Add move operators.
3941 <append>: New methods.
3942 * compile/compile.c (build_argc_argv): Remove.
3943 (compile_args_argc): Remove.
3944 (compile_args_argv): Change type.
3945 (set_compile_args): Simplify.
3946 (append_args): Remove.
3947 (filter_args): Remove argcp parameter.
3948 (get_args): Return gdb_argv. Simplify.
3949 (compile_to_object): Update.
3950
3951 2020-09-23 Tom Tromey <tom@tromey.com>
3952
3953 * compile/compile-object-run.c (do_module_cleanup)
3954 <~do_module_cleanup> :Remove.
3955 (do_module_cleanup): Update.
3956 * compile/compile-object-load.h (struct munmap_list): Add move
3957 assignment operator.
3958 <source_file>: Now a std::string.
3959 <munmap_list>: Rename. No longer a pointer.
3960 * compile/compile-object-load.c (struct setup_sections_data): Add
3961 constructor.
3962 <setup_one_section>: Declare.
3963 <munmap_list>: Move earlier.
3964 <m_bfd>: New member.
3965 <m_last_size, m_last_section_first, m_last_prot,
3966 m_last_max_alignment>: Rename, add initializers where needed.
3967 (setup_sections_data::setup_one_section): Rename from
3968 setup_sections. Update.
3969 (compile_object_load): Update. Don't use bfd_map_over_sections.
3970
3971 2020-09-23 Tom Tromey <tom@tromey.com>
3972
3973 * compile/compile-object-run.c (struct do_module_cleanup): Add
3974 parameters to constructor. Update destructor.
3975 <source_file, scope, scope_data, out_value_type, out_value_addr,
3976 munmap_list_head, objfile_name_string>: Remove.
3977 <module>: New member.
3978 (do_module_cleanup): Update.
3979 (compile_object_run): Update.
3980
3981 2020-09-23 Tom Tromey <tom@tromey.com>
3982
3983 * compile/compile.c (eval_compile_command): Update.
3984 * compile/compile-object-run.h (compile_object_run): Take a
3985 compile_module_up.
3986 * compile/compile-object-run.c (compile_object_run): Take a
3987 compile_module_up.
3988 * compile/compile-object-load.h (struct compile_module): Add
3989 constructor, destructor.
3990 (compile_module_up): New typedef.
3991 (compile_object_load): Return compile_object_up.
3992 * compile/compile-object-load.c (compile_object_load): Return
3993 compile_module_up.
3994
3995 2020-09-23 Tom Tromey <tom@tromey.com>
3996
3997 * compile/compile-object-run.c (struct do_module_cleanup): Add
3998 constructor, destructor.
3999 <objfile_name_string>: Don't use struct hack.
4000 (do_module_cleanup): Use delete.
4001 (compile_object_run): Use new.
4002
4003 2020-09-23 Tom Tromey <tom@tromey.com>
4004
4005 * compile/compile-cplus-types.c
4006 (compile_cplus_convert_struct_or_union): Use std::vector.
4007 (compile_cplus_convert_func): Likewise.
4008 * compile/compile-c-types.c (convert_func): Use std::vector.
4009
4010 2020-09-21 Tom Tromey <tromey@adacore.com>
4011
4012 * sparc-tdep.c (sparc32_skip_prologue): Use
4013 skip_prologue_using_sal.
4014
4015 2020-09-19 Tom Tromey <tom@tromey.com>
4016
4017 * symfile.c (add_section_size_callback): Remove.
4018 (load_one_section): Rename from load_section_callback. Change
4019 parameters.
4020 (generic_load): Use foreach.
4021
4022 2020-09-19 Tom Tromey <tom@tromey.com>
4023
4024 * exec.c (add_to_section_table): Remove.
4025 (build_section_table): Use foreach.
4026
4027 2020-09-19 Tom Tromey <tom@tromey.com>
4028
4029 * elfread.c (elf_locate_sections): Change parameters.
4030 (elf_symfile_read): Use foreach.
4031
4032 2020-09-19 Tom Tromey <tom@tromey.com>
4033
4034 * cli/cli-dump.c (struct callback_data): Remove.
4035 (restore_one_section): Rename from restore_section_callback.
4036 Change parameters.
4037 (restore_binary_file): Change parameters.
4038 (restore_command): Use foreach.
4039
4040 2020-09-19 Tom Tromey <tom@tromey.com>
4041
4042 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4043 (gcore_copy_callback): Likewise.
4044 (gcore_memory_sections): Use foreach.
4045
4046 2020-09-19 Tom Tromey <tom@tromey.com>
4047
4048 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4049 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4050 parameters.
4051 (generic_elf_osabi_sniffer): Use foreach.
4052 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4053 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4054
4055 2020-09-19 Tom Tromey <tom@tromey.com>
4056
4057 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4058 (dwarf2_get_dwz_file): Use foreach.
4059 (dwarf2_locate_dwo_sections): Change parameters.
4060 (open_and_init_dwo_file): Use foreach.
4061 (dwarf2_locate_common_dwp_sections): Change parameters.
4062 (open_and_init_dwp_file): Use foreach.
4063
4064 2020-09-19 Tom Tromey <tom@tromey.com>
4065
4066 * symfile.h: (find_lowest_section): Don't declare.
4067 * symfile.c (find_lowest_section): Now static. Change
4068 parameters.
4069 (struct place_section_arg): Remove.
4070 (place_section): Change parameters.
4071 (addr_info_make_relative): Use foreach.
4072 (symfile_dummy_outputs): Remove.
4073 (default_symfile_relocate): Use foreach.
4074
4075 2020-09-19 Tom Tromey <tom@tromey.com>
4076
4077 * objfiles.c (add_to_objfile_sections): Rename from
4078 add_to_objfile_sections_full.
4079 (add_to_objfile_sections): Remove.
4080 (build_objfile_section_table): Use foreach.
4081
4082 2020-09-19 Tom Tromey <tom@tromey.com>
4083
4084 * stap-probe.c (get_stap_base_address_1): Remove.
4085 (get_stap_base_address): Use foreach.
4086
4087 2020-09-19 Tom Tromey <tom@tromey.com>
4088
4089 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4090 parameters.
4091 (gdb_bfd_close_or_warn): Use foreach.
4092
4093 2020-09-19 Tom Tromey <tom@tromey.com>
4094
4095 * corelow.c (add_to_thread_list): Change parameters.
4096 (core_target_open): Use foreach.
4097
4098 2020-09-19 Tom Tromey <tom@tromey.com>
4099
4100 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4101 existing function.
4102
4103 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4106 for arrays.
4107
4108 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4109
4110 * eval.c: Remove 'f-lang.h' include.
4111 (value_f90_subarray): Moved to f-lang.c.
4112 (eval_call): Renamed to...
4113 (evaluate_subexp_do_call): ...this, is no longer static, header
4114 comment moved into header file.
4115 (evaluate_funcall): Update call to eval_call.
4116 (skip_undetermined_arglist): Moved to f-lang.c.
4117 (fortran_value_subarray): Likewise.
4118 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4119 moved to evaluate_subexp_f.
4120 (calc_f77_array_dims): Moved to f-lang.c
4121 * expprint.c (print_subexp_funcall): New function.
4122 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4123 moved to print_subexp_f, OP_FUNCALL uses new function.
4124 (dump_subexp_body_funcall): New function.
4125 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4126 moved to dump_subexp_f, OP_FUNCALL uses new function.
4127 * expression.h (evaluate_subexp_do_call): Declare.
4128 * f-lang.c (value_f90_subarray): Moved from eval.c.
4129 (skip_undetermined_arglist): Likewise.
4130 (calc_f77_array_dims): Likewise.
4131 (fortran_value_subarray): Likewise.
4132 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4133 (operator_length_f): Likewise.
4134 (print_subexp_f): Likewise.
4135 (dump_subexp_body_f): Likewise.
4136 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4137 declaration of this operation to here.
4138 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4139 support moved to operator_length_f.
4140 * parser-defs.h (dump_subexp_body_funcall): Declare.
4141 (print_subexp_funcall): Declare.
4142 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4143 fortran-operator.def.
4144
4145 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4146
4147 * eval.c (fortran_value_subarray): New function, content is taken
4148 from...
4149 (evaluate_subexp_standard): ...here, in two places. Now arrays
4150 and strings both call the new function.
4151 (calc_f77_array_dims): Add header comment, handle strings.
4152
4153 2020-09-18 Victor Collod <vcollod@nvidia.com>
4154
4155 PR gdb/26635
4156 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4157 (i386_analyze_prologue): Call i386_skip_endbr.
4158
4159 2020-09-18 Tom Tromey <tromey@adacore.com>
4160
4161 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4162 (windows_nat_target::wait): Update.
4163 * target/wait.h (enum target_wait_flag): New. Use
4164 DEF_ENUM_FLAGS_TYPE.
4165 * target/target.h (target_wait): Change type of options.
4166 * target.h (target_options_to_string, default_target_wait):
4167 Update.
4168 (struct target_ops) <wait>: Change type of options.
4169 * target.c (target_wait, default_target_wait, do_option): Change
4170 type of "options".
4171 (target_options_to_string): Likewise.
4172 * target-delegates.c: Rebuild.
4173 * target-debug.h (target_debug_print_target_wait_flags): Rename
4174 from target_debug_print_options.
4175 * sol-thread.c (class sol_thread_target) <wait>: Update.
4176 (sol_thread_target::wait): Update.
4177 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4178 (rs6000_nat_target::wait): Update.
4179 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4180 Update.
4181 (remote_target::wait_ns, remote_target::wait_as): Change type of
4182 "options".
4183 (remote_target::wait): Update.
4184 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4185 (gdbsim_target::wait): Update.
4186 * record-full.c (class record_full_base_target) <wait>: Update.
4187 (record_full_wait_1): Change type of "options".
4188 (record_full_base_target::wait): Update.
4189 * record-btrace.c (class record_btrace_target) <wait>: Update.
4190 (record_btrace_target::wait): Update.
4191 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4192 Update.
4193 (ravenscar_thread_target::wait): Update.
4194 * procfs.c (class procfs_target) <wait>: Update.
4195 (procfs_target::wait): Update.
4196 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4197 * obsd-nat.c (obsd_nat_target::wait): Update.
4198 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4199 (nto_procfs_target::wait): Update.
4200 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4201 * nbsd-nat.c (nbsd_wait): Change type of "options".
4202 (nbsd_nat_target::wait): Update.
4203 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4204 (thread_db_target::wait): Update.
4205 * linux-nat.h (class linux_nat_target) <wait>: Update.
4206 * linux-nat.c (linux_nat_target::wait): Update.
4207 (linux_nat_wait_1): Update.
4208 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4209 "options".
4210 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4211 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4212 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4213 (go32_nat_target::wait): Update.
4214 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4215 * gnu-nat.c (gnu_nat_target::wait): Update.
4216 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4217 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4218 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4219 * darwin-nat.c (darwin_nat_target::wait): Update.
4220 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4221 (bsd_uthread_target::wait): Update.
4222 * aix-thread.c (class aix_thread_target) <wait>: Update.
4223 (aix_thread_target::wait): Update.
4224
4225 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4226
4227 * compile/compile-object-run.c (create_copied_type_recursive): New
4228 function.
4229 (compile_object_run): Use new function.
4230
4231 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4232
4233 * NEWS: Mention x86_64 Cygwin core file support.
4234
4235 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4236
4237 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4238 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4239
4240 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4241
4242 * windows-tdep.h: Add prototypes.
4243 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4244 (i386_windows_core_pid_to_str): Move and rename ...
4245 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4246 (windows_core_pid_to_str): ... and here.
4247 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4248
4249 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4250 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4251 (amd64_windows_init_abi_common): ... and register.
4252
4253 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4254
4255 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4256 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4257
4258 2020-09-18 Pedro Alves <pedro@palves.net>
4259
4260 PR gdb/26631
4261 * thread.c (thread_find_command): Switch inferior before calling
4262 target methods.
4263
4264 2020-09-17 Tom Tromey <tromey@adacore.com>
4265
4266 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4267 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4268 (tdesc_arch_data_up): New typedef.
4269 (tdesc_use_registers, tdesc_data_alloc): Update.
4270 (tdesc_data_cleanup): Don't declare.
4271 * target-descriptions.c (tdesc_data_alloc): Return a
4272 tdesc_arch_data_up.
4273 (tdesc_arch_data_deleter::operator()): Rename from
4274 tdesc_data_cleanup. Change argument type.
4275 (tdesc_use_registers): Change early_data to an rvalue reference.
4276 (tdesc_use_registers): Don't use delete.
4277 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4278 * s390-tdep.c (s390_gdbarch_init): Update.
4279 * rx-tdep.c (rx_gdbarch_init): Update.
4280 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4281 * riscv-tdep.c (riscv_gdbarch_init): Update.
4282 * or1k-tdep.c (or1k_gdbarch_init): Update.
4283 * nios2-tdep.c (nios2_gdbarch_init): Update.
4284 * nds32-tdep.c (nds32_gdbarch_init): Update.
4285 * mips-tdep.c (mips_gdbarch_init): Update.
4286 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4287 * m68k-tdep.c (m68k_gdbarch_init): Update.
4288 * i386-tdep.c (i386_gdbarch_init): Update.
4289 * arm-tdep.c (arm_gdbarch_init): Update.
4290 * arc-tdep.c (arc_tdesc_init): Update.
4291 (arc_gdbarch_init): Update.
4292 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4293
4294 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4295
4296 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4297 for WOW64 processes.
4298
4299 2020-09-17 Tom Tromey <tom@tromey.com>
4300
4301 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4302
4303 2020-09-17 Tom Tromey <tom@tromey.com>
4304
4305 * value.c (preserve_values): Update.
4306 * python/py-type.c (save_objfile_types): Update.
4307 * guile/scm-type.c (save_objfile_types): Update.
4308 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4309 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4310 * compile/compile-object-run.c (compile_object_run): Update.
4311
4312 2020-09-17 Tom Tromey <tom@tromey.com>
4313
4314 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4315 Remove.
4316 <m_table>: Now htab_up.
4317 * typeprint.c (typedef_hash_table::recursively_update)
4318 (typedef_hash_table::add_template_parameters)
4319 (typedef_hash_table::typedef_hash_table): Update.
4320 (typedef_hash_table::~typedef_hash_table): Remove.
4321 (typedef_hash_table::typedef_hash_table)
4322 (typedef_hash_table::find_global_typedef)
4323 (typedef_hash_table::find_typedef): Update.
4324
4325 2020-09-17 Tom Tromey <tom@tromey.com>
4326
4327 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4328
4329 2020-09-17 Tom Tromey <tom@tromey.com>
4330
4331 * linespec.c (class decode_compound_collector)
4332 <~decode_compound_collector>: Remove.
4333 <m_unique_syms>: Now htab_up.
4334 (decode_compound_collector::operator ()): Update.
4335 (class symtab_collector) <~symtab_collector>: Remove.
4336 <m_symtab_table>: Now htab_up.
4337 (symtab_collector::operator ()): Update.
4338
4339 2020-09-17 Tom Tromey <tom@tromey.com>
4340
4341 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4342 (filename_seen_cache::clear): Update.
4343 (~filename_seen_cache): Remove.
4344 (filename_seen_cache::seen): Update.
4345 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4346 htab_up.
4347 <~filename_seen_cache>: Remove.
4348 <traverse>: Update.
4349
4350 2020-09-17 Tom Tromey <tom@tromey.com>
4351
4352 * completer.c (completion_tracker::discard_completions)
4353 (completion_tracker::~completion_tracker)
4354 (completion_tracker::maybe_add_completion)
4355 (completion_tracker::remove_completion)
4356 (completion_tracker::recompute_lowest_common_denominator)
4357 (completion_tracker::build_completion_result): Update.
4358 * completer.h (class completion_tracker) <have_completions>:
4359 Update.
4360 <m_entries_hash>: Now htab_up.
4361
4362 2020-09-17 Tom Tromey <tom@tromey.com>
4363
4364 * breakpoint.c (ambiguous_names_p): Use htab_up.
4365
4366 2020-09-17 Tom Tromey <tom@tromey.com>
4367
4368 * auto-load.c (struct auto_load_pspace_info)
4369 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4370 <loaded_script_files, loaded_script_texts>: Change type to
4371 htab_up.
4372 (~auto_load_pspace_info) Remove.
4373 (init_loaded_scripts_info, maybe_add_script_file)
4374 (maybe_add_script_text, auto_load_info_scripts): Update.
4375
4376 2020-09-17 Tom Tromey <tromey@adacore.com>
4377
4378 * c-exp.y (name_obstack): Now static.
4379
4380 2020-09-17 Chungyi Chi <demonic@csie.io>
4381
4382 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4383
4384 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4387 (add_solib_catchpoint): Likewise.
4388 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4389 to bool.
4390 (add_solib_catchpoint): Change int parameter/variable to bool.
4391 (catch_load_or_unload): Likewise.
4392 (init_catchpoint): Likewise.
4393 (create_fork_vfork_event_catchpoint): Likewise.
4394 (catch_fork_command_1): Likewise.
4395 (catch_exec_command_1): Likewise.
4396
4397 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4400 Change instance_flags to m_instance_flags.
4401
4402 2020-09-16 Tom Tromey <tromey@adacore.com>
4403
4404 PR gdb/26598:
4405 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4406
4407 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4408
4409 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4410 PL_FLAG_EXEC.
4411 (fbsd_nat_target::insert_exec_catchpoint)
4412 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4413 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4414 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4415
4416 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4417
4418 * configure.ac: Remove check for kinfo_getvmmap().
4419 * configure, config.in: Regenerate.
4420 * fbsd-nat.c (fbsd_read_mapping): Remove
4421 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4422 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4423 kinfo_get_vmmap() are always present.
4424
4425 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4426
4427 * fbsd-nat.c: Always include support for
4428 TARGET_OBJECT_SIGNAL_INFO.
4429
4430 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4431
4432 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4433 sysctl and remove procfs fallback.
4434
4435 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4436
4437 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4438 * fbsd-nat.h: Likewise.
4439
4440 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4441
4442 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4443 argument.
4444
4445 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4446
4447 * ada-lang.c (ada_language_data): Delete.
4448 (ada_language): Remove references to ada_language_data.
4449 * c-lang.c (c_language_data): Delete.
4450 (c_language): Remove references to c_language_data.
4451 (cplus_language_data): Delete.
4452 (cplus_language): Remove references to cplus_language_data.
4453 (asm_language_data): Delete.
4454 (asm_language): Remove references to asm_language_data.
4455 (minimal_language_data): Delete.
4456 (minimal_language): Remove references to minimal_language_data.
4457 * d-lang.c (d_language_data): Delete.
4458 (d_language): Remove references to d_language_data.
4459 * f-lang.c (f_language_data): Delete.
4460 (f_language): Remove references to f_language_data.
4461 * go-lang.c (go_language_data): Delete.
4462 (go_language): Remove references to go_language_data.
4463 * language.c (unknown_language_data): Delete.
4464 (unknown_language): Remove references to unknown_language_data.
4465 (auto_language_data): Delete.
4466 (auto_language): Remove references to auto_language_data.
4467 * language.h (language_data): Delete struct.
4468 (language_defn): No longer inherit from language_data.
4469 * m2-lang.c (m2_language_data): Delete.
4470 (m2_language): Remove references to m2_language_data.
4471 * objc-lang.c (objc_language_data): Delete.
4472 (objc_language): Remove references to objc_language_data.
4473 * opencl-lang.c (opencl_language_data): Delete.
4474 (opencl_language): Remove references to opencl_language_data.
4475 * p-lang.c (pascal_language_data): Delete.
4476 (pascal_language): Remove references to pascal_language_data.
4477 * rust-lang.c (rust_language_data): Delete.
4478 (rust_language): Remove references to rust_language_data.
4479
4480 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4481
4482 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4483 initializer.
4484 (ada_language::opcode_print_table): New member function.
4485 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4486 (c_language::opcode_print_table): New member function.
4487 (cplus_language_data): Remove la_op_print_tab initializer.
4488 (cplus_language::opcode_print_table): New member function.
4489 (asm_language_data): Remove la_op_print_tab initializer.
4490 (asm_language::opcode_print_table): New member function.
4491 (minimal_language_data): Remove la_op_print_tab initializer.
4492 (minimal_language::opcode_print_table): New member function.
4493 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4494 (d_language::opcode_print_table): New member function.
4495 * expprint.c (print_subexp_standard): Update call to
4496 opcode_print_table.
4497 (op_string): Likewise.
4498 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4499 (f_language::opcode_print_table): New member function.
4500 * go-lang.c (go_language_data): Remove la_op_print_tab
4501 initializer.
4502 (go_language::opcode_print_table): New member function.
4503 * language.c (unknown_language_data): Remove la_op_print_tab
4504 initializer.
4505 (unknown_language::opcode_print_table): New member function.
4506 (auto_language_data): Remove la_op_print_tab initializer.
4507 (auto_language::opcode_print_table): New member function.
4508 * language.h (language_data): Remove la_op_print_tab field.
4509 (language_defn::opcode_print_table): Declare new member function.
4510 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4511 initializer.
4512 (m2_language::opcode_print_table): New member function.
4513 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4514 initializer.
4515 (objc_language::opcode_print_table): New member function.
4516 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4517 initializer.
4518 (opencl_language::opcode_print_table): New member function.
4519 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4520 initializer.
4521 (pascal_language::opcode_print_table): New member function.
4522 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4523 initializer.
4524 (rust_language::opcode_print_table): New member function.
4525
4526 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4527
4528 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4529 (ada_language::expression_ops): New member function.
4530 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4531 (c_language::expression_ops): New member function.
4532 (cplus_language_data): Remove la_exp_desc initializer.
4533 (cplus_language::expression_ops): New member function.
4534 (asm_language_data): Remove la_exp_desc initializer.
4535 (asm_language::expression_ops): New member function.
4536 (minimal_language_data): Remove la_exp_desc initializer.
4537 (minimal_language::expression_ops): New member function.
4538 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4539 (d_language::expression_ops): New member function.
4540 * eval.c (evaluate_subexp): Update call to expression_ops.
4541 * expprint.c (print_subexp): Likewise.
4542 (op_name): Likewise.
4543 (dump_subexp_body): Likewise.
4544 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4545 (f_language::expression_ops): New member function.
4546 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4547 (go_language::expression_ops): New member function.
4548 * language.c (language_defn::expression_ops): New function.
4549 (unknown_language_data): Remove la_exp_desc initializer.
4550 (auto_language_data): Likewise.
4551 * language.h (language_data): Remove la_exp_desc field.
4552 (language_defn::expression_ops): Declare new member function.
4553 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4554 (m2_language::expression_ops): New member function.
4555 * objc-lang.c (objc_language_data): Remove la_exp_desc
4556 initializer.
4557 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4558 initializer.
4559 (opencl_language::expression_ops): New member function.
4560 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4561 * parse.c (operator_length): Update call to expression_ops.
4562 (exp_iterate): Likewise.
4563 * rust-lang.c (rust_language_data): Remove la_exp_desc
4564 initializer.
4565 (ruse_language::expression_ops): New member function.
4566
4567 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4568
4569 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4570 initializer.
4571 (ada_language::varobj_ops): New member function.
4572 * c-lang.c (c_language_data): Remove la_varobj_ops
4573 initializer.
4574 (cplus_language_data): Likewise.
4575 (cplus_language::varobj_ops): New member function.
4576 (asm_language_data): Remove la_varobj_ops initializer.
4577 (minimal_language_data): Likewise.
4578 * d-lang.c (d_language_data): Likewise.
4579 * f-lang.c (f_language_data): Likewise.
4580 * go-lang.c (go_language_data): Likewise.
4581 * language.c (language_defn::varobj_ops): New function.
4582 (unknown_language_data): Remove la_varobj_ops
4583 initializer.
4584 (auto_language_data): Likewise.
4585 * language.h (language_data): Remove la_varobj_ops field.
4586 (language_defn::varobj_ops): Declare new member function.
4587 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4588 * objc-lang.c (objc_language_data): Likewise.
4589 * opencl-lang.c (opencl_language_data): Likewise.
4590 * p-lang.c (pascal_language_data): Likewise.
4591 * rust-lang.c (rust_language_data): Likewise.
4592 * varobj.c (varobj_create): Update call to varobj_ops.
4593 * varobj.h (default_varobj_ops): Delete define.
4594
4595 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4596
4597 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4598 initializer.
4599 * c-lang.c (c_language_data): Likewise.
4600 (c_language::macro_expansion): New member function.
4601 (cplus_language_data): Likewise.
4602 (cplus_language::macro_expansion): New member function.
4603 (asm_language_data): Likewise.
4604 (asm_language::macro_expansion): New member function.
4605 (minimal_language_data): Likewise.
4606 (minimal_language::macro_expansion): New member function.
4607 * d-lang.c (d_language_data): Remove la_macro_expansion
4608 initializer.
4609 * f-lang.c (f_language_data): Likewise.
4610 * go-lang.c (go_language_data): Likewise.
4611 * language.c (unknown_language_data): Likewise.
4612 (auto_language_data): Likewise.
4613 * language.h (language_data): Remove la_macro_expansion field.
4614 (language_defn::macro_expansion): New member function.
4615 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4616 initializer.
4617 * objc-lang.c (objc_language_data): Likewise.
4618 (objc_language::macro_expansion): New member function.
4619 * opencl-lang.c (opencl_language_data): Likewise.
4620 (opencl_language::macro_expansion): New member function.
4621 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4622 initializer.
4623 * rust-lang.c (rust_language_data): Likewise.
4624 * symtab.c (default_collect_symbol_completion_matches_break_on):
4625 Update call to macro_expansion.
4626
4627 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * ada-lang.c (ada_language_data): Remove la_array_ordering
4630 initializer.
4631 * c-lang.c (c_language_data): Likewise.
4632 (cplus_language_data): Likewise.
4633 (asm_language_data): Likewise.
4634 (minimal_language_data): Likewise.
4635 * d-lang.c (d_language_data): Likewise.
4636 * dwarf2/read.c (read_array_order): Update for call to
4637 array_ordering.
4638 * f-lang.c (f_language_data): Remove la_array_ordering
4639 initializer.
4640 (f_language::array_ordering): New member function.
4641 * go-lang.c (go_language_data): Remove la_array_ordering
4642 initializer.
4643 * language.c (unknown_language_data): Likewise.
4644 (auto_language_data): Likewise.
4645 * language.h (language_data): Delete la_array_ordering field.
4646 (language_defn::array_ordering): New member function.
4647 * m2-lang.c (m2_language_data): Remove la_array_ordering
4648 initializer.
4649 * objc-lang.c (objc_language_data): Likewise.
4650 * opencl-lang.c (opencl_language_data): Likewise.
4651 * p-lang.c (pascal_language_data): Likewise.
4652 * rust-lang.c (rust_language_data): Likewise.
4653
4654 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4655
4656 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4657 initializer.
4658 * c-lang.c (c_language_data): Likewise.
4659 (cplus_language_data): Likewise.
4660 (asm_language_data): Likewise.
4661 (minimal_language_data): Likewise.
4662 * d-lang.c (d_language_data): Likewise.
4663 * f-lang.c (f_language_data): Likewise.
4664 (f_language::case_sensitivity): New member function.
4665 * go-lang.c (go_language_data): Remove la_case_sensitivity
4666 initializer.
4667 * language.c (enum case_mode): Moved here from language.h.
4668 (case_mode): Make static.
4669 (show_case_command): Update for case_sensitivity being a method.
4670 (set_case_command): Likewise.
4671 (set_range_case): Likewise.
4672 (unknown_language_data): Remove la_case_sensitivity initializer.
4673 (auto_language_data): Likewise.
4674 * language.h (case_mode): Delete, move enum declaration to
4675 language.c.
4676 (language_data): Delete la_case_sensitivity field.
4677 (language_defn::case_sensitivity): New member function.
4678 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4679 initializer.
4680 * objc-lang.c (objc_language_data): Likewise.
4681 * opencl-lang.c (opencl_language_data): Likewise.
4682 * p-lang.c (pascal_language_data): Likewise.
4683 * rust-lang.c (rust_language_data): Likewise.
4684
4685 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4686
4687 * ada-lang.c (ada_language_data): Remove la_range_check
4688 initializer.
4689 * c-lang.c (c_language_data): Likewise.
4690 (cplus_language_data): Likewise.
4691 (asm_language_data): Likewise.
4692 (minimal_language_data): Likewise.
4693 * d-lang.c (d_language_data): Likewise.
4694 * f-lang.c (f_language_data): Likewise.
4695 (f_language::range_checking_on_by_default): New member function.
4696 * go-lang.c (go_language_data): Remove la_range_check initializer.
4697 * language.c (enum range_mode): Moved here from language.h.
4698 (range_mode): Made static.
4699 (show_range_command): Update to use
4700 range_checking_on_by_default.
4701 (set_range_command): Likewise.
4702 (set_range_case): Likewise.
4703 (unknown_language_data): Remove la_range_check initializer.
4704 (auto_language_data): Likewise.
4705 * language.h (range_mode): Delete. Enum definition moved to
4706 language.c.
4707 (language_data): Remove la_range_check field.
4708 (language_defn::range_checking_on_by_default): New member
4709 function.
4710 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4711 (m2_language::range_checking_on_by_default): New member function.
4712 * objc-lang.c (objc_language_data): Remove la_range_check
4713 initializer.
4714 * opencl-lang.c (opencl_language_data): Likewise.
4715 * p-lang.c (pascal_language_data): Likewise.
4716 (pascal_language::range_checking_on_by_default): New member
4717 function.
4718 * rust-lang.c (rust_language_data): Remove la_range_check
4719 initializer.
4720 (rust_language::range_checking_on_by_default): New member
4721 function.
4722
4723 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4724
4725 * dwarf2/read.c (dwarf2_physname): Remove special case for
4726 language_go.
4727 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4728 member function.
4729
4730 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * ada-lang.c (ada_language_data): Remove
4733 la_store_sym_names_in_linkage_form_p initializer.
4734 (ada_language::store_sym_names_in_linkage_form_p): New member
4735 function.
4736 * c-lang.c (c_language_data): Remove
4737 la_store_sym_names_in_linkage_form_p initializer.
4738 (c_language::store_sym_names_in_linkage_form_p): New member
4739 function.
4740 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4741 initializer.
4742 (asm_language_data): Likewise.
4743 (asm_language::store_sym_names_in_linkage_form_p): New member
4744 function.
4745 (minimal_language_data): Remove
4746 la_store_sym_names_in_linkage_form_p initializer.
4747 (minimal_language::store_sym_names_in_linkage_form_p): New member
4748 function.
4749 * d-lang.c (d_language_data): Remove
4750 la_store_sym_names_in_linkage_form_p initializer.
4751 * dwarf2/read.c (dwarf2_physname): Update call to
4752 store_sym_names_in_linkage_form_p.
4753 * f-lang.c (f_language_data): Remove
4754 la_store_sym_names_in_linkage_form_p initializer.
4755 * go-lang.c (go_language_data): Remove
4756 la_store_sym_names_in_linkage_form_p initializer.
4757 * language.c (unknown_language_data): Remove
4758 la_store_sym_names_in_linkage_form_p initializer.
4759 (unknown_language::store_sym_names_in_linkage_form_p): New member
4760 function.
4761 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4762 initializer.
4763 (auto_language::store_sym_names_in_linkage_form_p): New member
4764 function.
4765 * language.h (language_data): Remove
4766 la_store_sym_names_in_linkage_form_p member variable.
4767 (language_defn::store_sym_names_in_linkage_form_p): New member
4768 function.
4769 * m2-lang.c (m2_language_data): Remove
4770 la_store_sym_names_in_linkage_form_p initializer.
4771 * objc-lang.c (objc_language_data): Likewise.
4772 * opencl-lang.c (opencl_language_data): Likewise.
4773 * p-lang.c (pascal_language_data): Likewise.
4774 * rust-lang.c (rust_language_data): Likewise.
4775
4776 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4777
4778 * ada-lang.c (ada_language_data): Remove string_lower_bound
4779 initializer.
4780 * c-lang.c (c_language_data): Likewise.
4781 (cplus_language_data): Likewise.
4782 (asm_language_data): Likewise.
4783 (minimal_language_data): Likewise.
4784 * d-lang.c (d_language_data): Likewise.
4785 * f-lang.c (f_language_data): Likewise.
4786 * go-lang.c (go_language_data): Likewise.
4787 * language.c (unknown_language_data): Likewise.
4788 (auto_language_data): Likewise.
4789 * language.h (language_data): Remove string_lower_bound field.
4790 (language_defn::string_lower_bound): New member function.
4791 * m2-lang.c (m2_language_data): Remove string_lower_bound
4792 initializer.
4793 (m2_language::string_lower_bound): New member function.
4794 * objc-lang.c (objc_language_data): Remove string_lower_bound
4795 initializer.
4796 * opencl-lang.c (opencl_language_data): Likewise.
4797 * p-lang.c (pascal_language_data): Likewise.
4798 * rust-lang.c (rust_language_data): Likewise.
4799 * valops.c (value_cstring): Update call to string_lower_bound.
4800 (value_string): Likewise.
4801 * value.c (allocate_repeated_value): Likewise.
4802
4803 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4804
4805 * valops.c (value_repeat): Fix incorrect argument name in comment.
4806
4807 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4808
4809 * ada-lang.c (ada_language_data): Remove c_style_arrays
4810 initializer.
4811 (ada_language::c_style_arrays_p): New member fuction.
4812 * c-lang.c (c_language_data): Remove c_style_arrays
4813 initializer.
4814 (cplus_language_data): Likewise.
4815 (asm_language_data): Likewise.
4816 (minimal_language_data): Likewise.
4817 * d-lang.c (d_language_data): Likewise.
4818 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4819 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4820 (f_language::c_style_arrays_p): New member function.
4821 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4822 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4823 * language.c (unknown_language_data): Remove c_style_arrays
4824 initializer.
4825 (auto_language_data): Likewise.
4826 * language.h (language_data): Remove c_style_arrays field.
4827 (language_defn::c_style_arrays_p): New member function.
4828 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4829 (m2_language::c_style_arrays_p): New member function.
4830 * objc-lang.c (objc_language_data): Remove c_style_arrays
4831 initializer.
4832 * opencl-lang.c (opencl_language_data): Likewise.
4833 * p-lang.c (pascal_language_data): Likewise.
4834 * rust-lang.c (rust_language_data): Likewise.
4835 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4836 and update local variable to a bool.
4837 * valops.c (value_cast): Update call to c_style_arrays_p.
4838 (value_array): Likewise.
4839 * value.c (coerce_array): Likewise.
4840
4841 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4842
4843 * ada-lang.c (ada_language_data): Remove la_language initializer.
4844 * c-lang.c (c_language_data): Likewise.
4845 (cplus_language_data): Likewise.
4846 (asm_language_data): Likewise.
4847 (minimal_language_data): Likewise.
4848 * d-lang.c (d_language_data): Likewise.
4849 * f-lang.c (f_language_data): Likewise.
4850 * go-lang.c (go_language_data): Likewise.
4851 * language.c (unknown_language_data): Likewise.
4852 (auto_language_data): Likewise.
4853 * language.h (language_data): Remove la_language field.
4854 (language_defn::language_defn): Initialise la_language field.
4855 (language_defn::la_language): New member variable.
4856 * m2-lang.c (m2_language_data): Remove la_language field.
4857 * objc-lang.c (objc_language_data): Likewise.
4858 * opencl-lang.c (opencl_language_data): Likewise.
4859 * p-lang.c (pascal_language_data): Likewise.
4860 * rust-lang.c (rust_language_data): Likewise.
4861
4862 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4863
4864 * ada-lang.c (ada_extensions): Delete, moved into
4865 ada_language::filename_extensions.
4866 (ada_language_data): Remove la_filename_extensions initializer.
4867 (ada_language::filename_extensions): New member function.
4868 * c-lang.c (c_extensions): Delete, moved into
4869 c_language::filename_extensions.
4870 (c_language_data): Remove la_filename_extensions initializer.
4871 (c_language::filename_extensions): New member function.
4872 (cplus_extensions): Delete, moved into
4873 cplus_language::filename_extensions.
4874 (cplus_language_data): Remove la_filename_extensions initializer.
4875 (cplus_language::filename_extensions): New member function.
4876 (asm_extensions): Delete, moved into
4877 asm_language::filename_extensions.
4878 (asm_language_data): Remove la_filename_extensions initializer.
4879 (asm_language::filename_extensions): New member function.
4880 (minimal_language_data): Remove la_filename_extensions
4881 initializer.
4882 * d-lang.c (d_extensions): Delete, moved into
4883 d_language::filename_extensions.
4884 (d_language_data): Remove la_filename_extensions initializer.
4885 (d_language::filename_extensions): New member function.
4886 * f-lang.c (f_extensions): Delete, moved into
4887 f_language::filename_extensions.
4888 (f_language_data): Remove la_filename_extensions initializer.
4889 (f_language::filename_extensions): New member function.
4890 * go-lang.c (go_language_data): Remove la_filename_extensions
4891 initializer.
4892 * language.c (add_set_language_command): Update now that
4893 filename_extensions returns a vector.
4894 (unknown_language_data): Remove la_filename_extensions
4895 initializer.
4896 (auto_language_data): Likewise.
4897 * language.h (language_data): Remove la_filename_extensions field.
4898 (language_defn::filename_extensions): New member function.
4899 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4900 initializer.
4901 * objc-lang.c (objc_extensions): Delete, moved into
4902 objc_language::filename_extensions.
4903 (objc_language_data): Remove la_filename_extensions initializer.
4904 (objc_language::filename_extensions): New member function.
4905 * opencl-lang.c (opencl_language_data): Remove
4906 la_filename_extensions initializer.
4907 * p-lang.c (pascal_extensions): Delete, moved into
4908 pascal_language::filename_extensions.
4909 (pascal_language_data): Remove la_filename_extensions initializer.
4910 (pascal_language::filename_extensions): New member function.
4911 * rust-lang.c (rust_extensions): Delete, moved into
4912 rust_language::filename_extensions.
4913 (rust_language_data): Remove la_filename_extensions initializer.
4914 (rust_language::filename_extensions): New member function.
4915 * symfile.c (add_filename_language): Add new assert.
4916
4917 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4918
4919 * ada-lang.c (ada_language_data): Remove la_name and
4920 la_natural_name initializers.
4921 (ada_language::name): New member function.
4922 (ada_language::natural_name): New member function.
4923 * c-lang.c (c_language_data): Remove la_name and
4924 la_natural_name initializers.
4925 (c_language::name): New member function.
4926 (c_language::natural_name): New member function.
4927 (cplus_language_data): Remove la_name and
4928 la_natural_name initializers.
4929 (cplus_language::name): New member function.
4930 (cplus_language::natural_name): New member function.
4931 (asm_language_data): Remove la_name and
4932 la_natural_name initializers.
4933 (asm_language::name): New member function.
4934 (asm_language::natural_name): New member function.
4935 (minimal_language_data): Remove la_name and
4936 la_natural_name initializers.
4937 (minimal_language::name): New member function.
4938 (minimal_language::natural_name): New member function.
4939 * compile/compile.c (compile_to_object): Update call to
4940 lanugage_defn::name.
4941 * d-lang.c (d_language_data): Remove la_name and
4942 la_natural_name initializers.
4943 (d_language::name): New member function.
4944 (d_language::natural_name): New member function.
4945 * expprint.c (print_subexp_standard): Update call to
4946 language_defn::name.
4947 (dump_raw_expression): Likewise
4948 (dump_prefix_expression): Likewise.
4949 * f-lang.c (f_language_data): Remove la_name and
4950 la_natural_name initializers.
4951 (f_language::name): New member function.
4952 (f_language::natural_name): New member function.
4953 * go-lang.c (go_language_data): Remove la_name and
4954 la_natural_name initializers.
4955 (go_language::name): New member function.
4956 (go_language::natural_name): New member function.
4957 * language.c (show_language_command): Update call to
4958 language_defn::name.
4959 (set_language_command): Likewise.
4960 (language_enum): Likewise.
4961 (language_str): Likewise.
4962 (add_set_language_command): Likewise, use
4963 language_defn::natural_name in the doc string.
4964 (unknown_language_data): Remove la_name and
4965 la_natural_name initializers.
4966 (unknown_language::name): New member function.
4967 (unknown_language::natural_name): New member function.
4968 (auto_language_data): Remove la_name and
4969 la_natural_name initializers.
4970 (auto_language::name): New member function.
4971 (auto_language::natural_name): New member function.
4972 (language_lookup_primitive_type_as_symbol): Update call to
4973 language_defn::name.
4974 * language.h (language_data): Remove la_name and la_natural_name
4975 member variables.
4976 (language_defn::name): New member function.
4977 (language_defn::natural_name): New member function.
4978 * m2-lang.c (m2_language_data): Remove la_name and
4979 la_natural_name initializers.
4980 (m2_language::name): New member function.
4981 (m2_language::natural_name): New member function.
4982 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4983 language_defn::natural_name.
4984 * objc-lang.c (objc_language_data): Remove la_name and
4985 la_natural_name initializers.
4986 (objc_language::name): New member function.
4987 (objc_language::natural_name): New member function.
4988 * opencl-lang.c (opencl_language_data): Remove la_name and
4989 la_natural_name initializers.
4990 (opencl_language::name): New member function.
4991 (opencl_language::natural_name): New member function.
4992 * p-lang.c (pascal_language_data): Remove la_name and
4993 la_natural_name initializers.
4994 (pascal_language::name): New member function.
4995 (pascal_language::natural_name): New member function.
4996 * rust-lang.c (rust_language_data): Remove la_name and
4997 la_natural_name initializers.
4998 (rust_language::name): New member function.
4999 (rust_language::natural_name): New member function.
5000 * symtab.c (lookup_language_this): Update call to
5001 language_defn::name.
5002
5003 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5004
5005 * ada-lang.c (ada_language_data): Remove la_name_of_this
5006 initializer.
5007 * ax-gdb.c (gen_expr): Update call to name_of_this.
5008 * c-exp.y (classify_name): Likewise.
5009 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5010 (cplus_language_data): Likewise.
5011 (cplus_language::name_of_this): New member function.
5012 (asm_language_data): Remove la_name_of_this initializer.
5013 (minimal_language_data): Likewise.
5014 * d-lang.c (d_language_data): Likewise.
5015 (d_language::name_of_this): New member function.
5016 * expprint.c (print_subexp_standard): Update call to name_of_this.
5017 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5018 * go-lang.c (go_language_data): Likewise.
5019 * language.c (unknown_language_data): Likewise.
5020 (unknown_language::name_of_this): New member function.
5021 (auto_language_data): Remove la_name_of_this initializer.
5022 (auto_language::name_of_this): New member function.
5023 * language.h (language_data): Delete la_name_of_this member
5024 variable.
5025 (language_defn::name_of_this): New member function.
5026 * m2-lang.c (m2_language_data): Remove la_name_of_this
5027 initializer.
5028 * objc-lang.c (objc_language_data): Likewise.
5029 (objc_language::name_of_this): New member function.
5030 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5031 initializer.
5032 * p-lang.c (pascal_language_data): Likewise.
5033 (pascal_language::name_of_this): New member function.
5034 * rust-lang.c (rust_language_data): Remove la_name_of_this
5035 initializer.
5036 * symtab.c (lookup_language_this): Update call to name_of_this.
5037 (lookup_symbol_aux): Likewise.
5038 * valops.c (value_of_this): Likewise.
5039
5040 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5041
5042 * ada-lang.c (ada_language_data): Remove
5043 la_struct_too_deep_ellipsis initializer.
5044 (ada_language::struct_too_deep_ellipsis): New member function.
5045 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5046 initializer.
5047 (cplus_language_data): Likewise.
5048 (asm_language_data): Likewise.
5049 (minimal_language_data): Likewise.
5050 * cp-valprint.c (cp_print_value): Update call to
5051 struct_too_deep_ellipsis.
5052 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5053 initializer.
5054 * f-lang.c (f_language_data): Likewise.
5055 (f_language::struct_too_deep_ellipsis): New member function.
5056 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5057 initializer.
5058 * language.c (unknown_language_data): Likewise.
5059 (auto_language_data): Likewise.
5060 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5061 member variable.
5062 (language_defn::struct_too_deep_ellipsis): New member function.
5063 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5064 initializer.Q
5065 * objc-lang.c (objc_language_data): Likewise.
5066 * opencl-lang.c (opencl_language_data): Likewise.
5067 * p-lang.c (pascal_language_data): Likewise.
5068 * rust-lang.c (rust_language_data): Likewise.
5069 * valprint.c (val_print_check_max_depth): Update call to
5070 struct_too_deep_ellipsis.
5071
5072 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5073
5074 * MAINTAINERS (Write After Approval): Add myself.
5075
5076 2020-09-15 Tom Tromey <tom@tromey.com>
5077
5078 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5079 Remove.
5080
5081 2020-09-15 Tom Tromey <tom@tromey.com>
5082
5083 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5084 and TYPE_CODE_METHODPTR cases.
5085 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5086 (c_value_print_inner): Update.
5087 * valprint.c (generic_value_print_memberptr): New function, from
5088 c_value_print_memberptr.
5089 (generic_value_print): Use it. Call cplus_print_method_ptr.
5090
5091 2020-09-15 Tom Tromey <tromey@adacore.com>
5092
5093 * python/python-internal.h (PyInt_FromLong): Remove define.
5094 * python/py-value.c (convert_value_from_python): Use
5095 gdb_py_object_from_longest.
5096 * python/py-type.c (typy_get_code): Use
5097 gdb_py_object_from_longest.
5098 * python/py-symtab.c (salpy_get_line): Use
5099 gdb_py_object_from_longest.
5100 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5101 gdb_py_object_from_longest.
5102 * python/py-record.c (recpy_gap_reason_code): Use
5103 gdb_py_object_from_longest.
5104 * python/py-record-btrace.c (recpy_bt_insn_size)
5105 (recpy_bt_func_level, btpy_list_count): Use
5106 gdb_py_object_from_longest.
5107 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5108 gdb_py_object_from_longest. Fix error handling.
5109 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5110 gdb_py_object_from_longest.
5111 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5112 gdb_py_object_from_longest.
5113 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5114 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5115 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5116
5117 2020-09-15 Tom Tromey <tromey@adacore.com>
5118
5119 * python/python.c (gdbpy_parameter_value): Use
5120 gdb_py_object_from_ulongest.
5121
5122 2020-09-15 Tom Tromey <tromey@adacore.com>
5123
5124 * python/py-infevents.c (create_register_changed_event_object):
5125 Use gdb_py_object_from_longest.
5126 * python/py-exitedevent.c (create_exited_event_object): Use
5127 gdb_py_object_from_longest.
5128
5129 2020-09-15 Tom Tromey <tromey@adacore.com>
5130
5131 * python/python.c (gdbpy_parameter_value): Use
5132 gdb_py_object_from_longest.
5133 * python/py-type.c (convert_field, typy_range): Use
5134 gdb_py_object_from_longest.
5135 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5136 gdb_py_object_from_longest.
5137 * python/py-lazy-string.c (stpy_get_length): Use
5138 gdb_py_object_from_longest.
5139 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5140 gdb_py_object_from_longest.
5141 * python/py-infevents.c (create_memory_changed_event_object): Use
5142 gdb_py_object_from_longest.
5143 * python/py-inferior.c (infpy_get_num): Use
5144 gdb_py_object_from_longest.
5145 (infpy_get_pid): Likewise.
5146
5147 2020-09-15 Tom Tromey <tromey@adacore.com>
5148
5149 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5150 defines.
5151 * python/py-value.c (valpy_long): Use
5152 gdb_py_object_from_ulongest.
5153 * python/py-symtab.c (salpy_get_pc): Use
5154 gdb_py_object_from_ulongest.
5155 (salpy_get_last): Likewise.
5156 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5157 gdb_py_object_from_ulongest.
5158 * python/py-lazy-string.c (stpy_get_address): Use
5159 gdb_py_object_from_ulongest.
5160 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5161 * python/py-arch.c (archpy_disassemble): Use
5162 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5163 error handling.
5164
5165 2020-09-15 Tom Tromey <tromey@adacore.com>
5166
5167 * python/python-internal.h (gdb_py_long_from_longest): Remove
5168 defines.
5169 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5170 * python/py-type.c (convert_field, typy_get_sizeof): Use
5171 gdb_py_object_from_longest.
5172 * python/py-record-btrace.c (btpy_list_index): Use
5173 gdb_py_object_from_longest.
5174
5175 2020-09-15 Tom Tromey <tromey@adacore.com>
5176
5177 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5178 * python/py-record.c (recpy_element_number): Use
5179 gdb_py_object_from_longest.
5180 (recpy_gap_number): Likewise.
5181
5182 2020-09-15 Tom Tromey <tromey@adacore.com>
5183
5184 * top.c (ui::ui): Update.
5185 (highest_ui_num): Remove.
5186 * top.h (struct ui) <num>: Remove.
5187
5188 2020-09-15 Tom Tromey <tromey@adacore.com>
5189
5190 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5191 * ui-style.c (ansi_regex_text): Now array.
5192 * rust-exp.y (number_regex_text): Now array.
5193 * linespec.c (linespec_quote_characters): Now array.
5194 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5195 Now arrays.
5196
5197 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5198
5199 * debuginfod-support.c (debuginfod_client_deleter): New.
5200 (debuginfod_client_up): New.
5201 (debuginfod_init): Return debuginfod_client_up.
5202 (debuginfod_source_query): Adjust.
5203 (debuginfod_debuginfo_query): Adjust.
5204
5205 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5206
5207 * debuginfod-support.c (debuginfod_source_query): Use
5208 make_unique_xstrdup.
5209
5210 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5211
5212 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5213 with `type::instance_flags`.
5214
5215 2020-09-14 Michael Mullin <masmullin@gmail.com>
5216
5217 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5218 Remove baton parameter.
5219
5220 2020-09-14 Pedro Alves <pedro@palves.net>
5221
5222 * Makefile.in (SELFTESTS_SRCS): Add
5223 unittests/enum-flags-selftests.c.
5224 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5225 btrace_function_flags instead of enum btrace_function_flag.
5226 * compile/compile-c-types.c (convert_qualified): Use
5227 enum_flags::raw.
5228 * compile/compile-cplus-symbols.c (convert_one_symbol)
5229 (convert_symbol_bmsym):
5230 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5231 (compile_cplus_convert_struct_or_union_methods)
5232 (compile_cplus_instance::convert_qualified_base):
5233 * go-exp.y (parse_string_or_char): Add cast to int.
5234 * unittests/enum-flags-selftests.c: New file.
5235 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5236 type to btrace_thread_flags from btrace_thread_flag.
5237 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5238 local's type to btrace_thread_flags from btrace_thread_flag. Add
5239 cast in DEBUG call.
5240
5241 2020-09-14 Pedro Alves <pedro@palves.net>
5242
5243 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5244 * gdbtypes.c (address_space_name_to_int): Rename to ...
5245 (address_space_name_to_type_instance_flags): ... this.
5246 (address_space_int_to_name): Rename to ...
5247 (address_space_type_instance_flags_to_name): ... this.
5248 * gdbtypes.h (address_space_name_to_int): Rename to ...
5249 (address_space_name_to_type_instance_flags): ... this.
5250 (address_space_int_to_name): Rename to ...
5251 (address_space_type_instance_flags_to_name): ... this.
5252 * type-stack.c (type_stack::insert): Adjust to rename.
5253 * type-stack.h (type_stack::insert): Likewise.
5254
5255 2020-09-14 Pedro Alves <pedro@palves.net>
5256 Andrew Burgess <andrew.burgess@embecosm.com>
5257
5258 * avr-tdep.c (avr_address_class_type_flags): Return
5259 type_instance_flags.
5260 (avr_address_class_type_flags_to_name): Take a
5261 type_instance_flags.
5262 (avr_address_class_name_to_type_flags): Return bool and take a
5263 type_instance_flags.
5264 * d-lang.c (build_d_types): Use type::set_instance_flags.
5265 * ft32-tdep.c (ft32_address_class_type_flags): Return
5266 type_instance_flags.
5267 (ft32_address_class_type_flags_to_name): Take a
5268 type_instance_flags.
5269 (ft32_address_class_name_to_type_flags): Return bool and take a
5270 type_instance_flags.
5271 (ft32_gdbarch_init): Use type::set_instance_flags.
5272 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5273 * gdbarch.h, gdbarch.c: Regenerate.
5274 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5275 (address_class_name_to_type_flags): Use type_instance_flags and
5276 bool.
5277 * gdbtypes.c (address_space_name_to_int)
5278 (address_space_int_to_name, make_qualified_type): Use
5279 type_instance_flags.
5280 (make_qualified_type): Use type_instance_flags and
5281 type::set_instance_flags.
5282 (make_type_with_address_space, make_cv_type, make_vector_type)
5283 (check_typedef): Use type_instance_flags.
5284 (recursive_dump_type): Cast type_instance_flags to unsigned for
5285 printing.
5286 (copy_type_recursive): Use type::set_instance_flags.
5287 (gdbtypes_post_init): Use type::set_instance_flags.
5288 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5289 <m_instance_flags>: ... this.
5290 <instance_flags, set_instance_flags>: New methods.
5291 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5292 (SET_TYPE_INSTANCE_FLAGS): New.
5293 (address_space_name_to_int, address_space_int_to_name)
5294 (make_type_with_address_space): Pass flags using
5295 type_instance_flags instead of int.
5296 * stabsread.c (cleanup_undefined_types_noname): Use
5297 type::set_instance_flags.
5298 * s390-tdep.c (s390_address_class_type_flags): Return
5299 type_instance_flags.
5300 (s390_address_class_type_flags_to_name): Take a
5301 type_instance_flags.
5302 (s390_address_class_name_to_type_flags): Return bool and take a
5303 type_instance_flags.
5304 * type-stack.c (type_stack::follow_types): Use
5305 type_instance_flags.
5306 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5307
5308 2020-09-14 Tom Tromey <tromey@adacore.com>
5309
5310 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5311 * x86-tdep.c (x86_is_thunk_register_name)
5312 (x86_in_indirect_branch_thunk): Update.
5313 * sparc64-tdep.c (sparc64_fpu_register_names)
5314 (sparc64_cp0_register_names, sparc64_register_names)
5315 (sparc64_pseudo_register_names): Now const.
5316 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5317 cp0_registers_num>: Now const.
5318 * sparc-tdep.c (sparc_core_register_names)
5319 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5320 (sparc32_pseudo_register_names): Now const.
5321 (validate_tdesc_registers): Update.
5322 * rust-lang.c (rust_extensions): Now const.
5323 * p-lang.c (p_extensions): Now const.
5324 * objc-lang.c (objc_extensions): Now const.
5325 * nto-tdep.c (nto_thread_state_str): Now const.
5326 * moxie-tdep.c (moxie_register_names): Now const.
5327 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5328 Now const.
5329 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5330 (mips_linux_reg_names): Now const.
5331 (mips_gdbarch_init): Update.
5332 * microblaze-tdep.c (microblaze_register_names): Now const.
5333 * m68k-tdep.c (m68k_register_names): Now const.
5334 * m32r-tdep.c (m32r_register_names): Now const.
5335 * ia64-tdep.c (ia64_register_names): Now const.
5336 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5337 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5338 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5339 ymm_avx512_register_names, pkeys_register_names>: Now const.
5340 * i386-tdep.c (i386_register_names, i386_zmm_names)
5341 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5342 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5343 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5344 * f-lang.c (f_extensions): Now const.
5345 * d-lang.c (d_extensions): Now const.
5346 * csky-tdep.c (csky_register_names): Now const.
5347 * charset.c (default_charset_names, charset_enum): Now const.
5348 (_initialize_charset): Update.
5349 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5350 const.
5351 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5352 (bsd_uthread_solib_loaded): Update.
5353 (bsd_uthread_state): Now const.
5354 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5355 (amd64_ymm_avx512_names, amd64_ymmh_names)
5356 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5357 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5358 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5359 (amd64_dword_names): Now const.
5360 * agent.c (can_use_agent_enum): Now const.
5361 * ada-tasks.c (task_states, long_task_states): Now const.
5362 * ada-lang.c (known_runtime_file_name_patterns)
5363 (known_auxiliary_function_name_patterns, attribute_names)
5364 (standard_exc, ada_extensions): Now const.
5365
5366 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5367
5368 * bcache.h (struct bcache) <bcache>: Remove constructor.
5369 <m_hash_function, m_compare_function>: Remove.
5370 <~bcache>: Make virtual.
5371 <compare>: Remove static method, introduce virtual method.
5372 <default_hash>: Remove.
5373 <hash>: New virtual method.
5374 * bcache.c (bcache::expand_hash_table): Update.
5375 (bcache::insert): Update.
5376 (bcache::hash): New.
5377 (bcache::compare): Update comment and parameter names.
5378 * gdbtypes.c (types_deeply_equal): Update.
5379 * psymtab.h (struct psymbol_bcache): New struct.
5380 (class psymtab_storage) <psymtab_storage>: Make default.
5381 <psymbol_cache>: Change type to psymbol_bcache.
5382 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5383 (psymbol_hash): Change to...
5384 (psymbol_bcache::hash): ... this.
5385 (psymbol_compare): Change to...
5386 (psymbol_bcache::compare): ... this.
5387
5388 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5389
5390 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5391 checking for initial lwp.
5392
5393 2020-09-14 Tom Tromey <tromey@adacore.com>
5394
5395 * m68k-tdep.c (m68k_extract_return_value): Use
5396 pointer_result_regnum.
5397 (m68k_store_return_value): Likewise.
5398 (m68k_reg_struct_return_p): Handle vectors and arrays.
5399 (m68k_return_value): Handle arrays.
5400 (m68k_svr4_return_value): Fix single-element aggregate handling.
5401 Handle long double. Adjust for embedded ABI.
5402 (m68k_svr4_init_abi): Set pointer_result_regnum.
5403 (m68k_embedded_init_abi): New function.
5404 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5405 (m68k_osabi_sniffer): New function.
5406 (_initialize_m68k_tdep): Register osabi sniffer.
5407 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5408 member.
5409
5410 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5411
5412 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5413 with gdb::unique_xmalloc_ptr<char>.
5414
5415 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5416
5417 * xml-support.h (xml_fetch_another): Change type to be a
5418 function_view.
5419 (xml_process_xincludes): Remove baton parameter.
5420 (xml_fetch_content_from_file): Change baton parameter to
5421 dirname.
5422 * xml-support.c (struct xinclude_parsing_data)
5423 <xinclude_parsing_data>: Remove baton parameter.
5424 <fetcher_baton>: Remove.
5425 (xinclude_start_include): Adjust.
5426 (xml_process_xincludes): Adjust.
5427 (xml_fetch_content_from_file): Replace baton parameter with
5428 dirname.
5429 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5430 (xml_init_syscalls_info): Use a lambda.
5431 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5432 (file_read_description_xml): Use a lambda.
5433 (fetch_available_features_from_target): Change baton parameter
5434 to target_ops.
5435 (target_read_description_xml): Use a lambda.
5436 (target_fetch_description_xml): Use a lambda.
5437 (string_read_description_xml): Update.
5438
5439 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5440
5441 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5442 uses with type::endianity_is_not_default.
5443
5444 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5445
5446 * gdbtypes.h (struct type) <endianity_is_not_default,
5447 set_endianity_is_not_default>: New methods.
5448 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5449 type::endianity_is_not_default, change all write call sites to
5450 use type::set_endianity_is_not_default.
5451
5452 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5455 uses with type::is_fixed_instance.
5456
5457 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * gdbtypes.h (struct type) <is_fixed_instance,
5460 set_is_fixed_instance>: New methods.
5461 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5462 write call sites to use type::set_is_fixed_instance.
5463
5464 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5465
5466 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5467 uses with type::is_gnu_ifunc.
5468
5469 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5470
5471 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5472 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5473 use type::set_is_gnu_ifunc.
5474
5475 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5478 uses with type::stub_is_supported.
5479
5480 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5481
5482 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5483 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5484 use type::set_stub_is_supported.
5485
5486 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5487
5488 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5489 uses with type::is_vector.
5490
5491 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5492
5493 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5494 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5495 use type::set_is_vector.
5496
5497 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5498
5499 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5500 uses with type::has_varargs.
5501
5502 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5503
5504 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5505 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5506 use type::set_has_varargs.
5507
5508 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5511 uses with type::is_prototyped.
5512
5513 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5516 New methods.
5517 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5518 call sites to use type::set_is_prototyped.
5519
5520 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5521
5522 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5523 uses with type::target_is_stub.
5524
5525 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5526
5527 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5528 New methods.
5529 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5530 sites to use type::set_target_is_stub.
5531
5532 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * gdbtypes.h (TYPE_STUB): Remove, replace all
5535 uses with type::is_stub.
5536
5537 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5538
5539 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5540 (TYPE_STUB): Use type::is_stub, change all write call sites to
5541 use type::set_is_stub.
5542
5543 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5544
5545 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5546 type::has_no_signedness.
5547
5548 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * gdbtypes.h (struct type) <has_no_signedness,
5551 set_has_no_signedness>: New methods.
5552 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5553 call sites to use type::set_has_no_signedness.
5554
5555 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5558 type::is_unsigned.
5559
5560 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5561
5562 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5563 methods.
5564 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5565 sites to use type::set_is_unsigned.
5566
5567 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5568 Adam Renquinha <arenquinha@cimeq.qc.ca>
5569
5570 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5571 pointer and stack frame offset when unwinding.
5572
5573 2020-09-13 Pedro Alves <pedro@palves.net>
5574
5575 * NEWS: Document "-break-insert --qualified".
5576 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5577
5578 2020-09-13 Pedro Alves <pedro@palves.net>
5579
5580 * linespec.c (classify_mtype, compare_msyms): Delete.
5581 (search_minsyms_for_name): Remove classification logic. Instead
5582 filter out trampoline symbols if we also found an external
5583 function of the same name.
5584
5585 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5586
5587 * NEWS: Create a new section for the next release branch.
5588 Rename the section of the current branch, now that it has
5589 been cut.
5590
5591 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5592
5593 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5594 * version.in: Bump version to 11.0.50.DATE-git.
5595
5596 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5597
5598 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5599
5600 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5601 Felix Willgerodt <Felix.Willgerodt@intel.com>
5602
5603 * gdbarch.sh: Added bfloat16 type.
5604 * gdbarch.c: Regenerated.
5605 * gdbarch.h: Regenerated.
5606 * gdbtypes.c (floatformats_bfloat16): New struct.
5607 (gdbtypes_post_init): Add builtin_bfloat16.
5608 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5609 (floatformats_bfloat16): New struct.
5610 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5611 (i386_ymm_type): Add field "v16_bfloat16"
5612 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5613 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5614 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5615 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5616 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5617 * features/i386/64bit-avx512.c: Regenerated.
5618 * features/i386/64bit-sse.xml: Add bfloat16 type.
5619 * features/i386/64bit-sse.c: Regenerated.
5620
5621 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5622
5623 * i386-tdep.c (i386_zmm_type): Fix field names.
5624 (i386_ymm_type): Fix field names.
5625
5626 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5627
5628 * breakpoint.c: Fix typo in the help message of the
5629 "set breakpoint condition-evaluation" command.
5630
5631 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5632
5633 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5634 * (nbsd_nat_target::pid_to_exec_file)
5635 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5636 (nbsd_nat_target::post_startup_inferior)
5637 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5638 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5639 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5640 * (nbsd_thread_lister): Remove.
5641
5642 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5643
5644 * fork-inferior.c (startup_inferior): Avoid double free.
5645
5646 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5647
5648 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5649 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5650
5651 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5652
5653 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5654 * netbsd-nat.c: Include <sys/ptrace.h>.
5655 * (netbsd_nat::enable_proc_events): Add.
5656
5657 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5658
5659 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5660 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5661 (netbsd_nat::for_each_thread): Add.
5662 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5663 "gdbsupport/common-debug.h".
5664 * (netbsd_nat::netbsd_thread_lister)
5665 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5666 (netbsd_nat::for_each_thread): Add.
5667
5668 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5669
5670 * netbsd-nat.h: Include <unistd.h>.
5671 * (netbsd_nat::pid_to_exec_file): Add.
5672 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5673 * (netbsd_nat::pid_to_exec_file) Add.
5674
5675 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5676
5677 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5678
5679 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5680
5681 * netbsd-nat.h: New file.
5682 * netbsd-nat.c: Likewise.
5683
5684 2020-09-09 Tom Tromey <tromey@adacore.com>
5685
5686 * ada-lang.c (remove_extra_symbols): Do not increment when
5687 removing an element
5688
5689 2020-09-08 Tom Tromey <tromey@adacore.com>
5690
5691 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5692
5693 2020-09-08 Tom Tromey <tromey@adacore.com>
5694
5695 PR win32/25302:
5696 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5697 (gdb_bfd_init_data): New function.
5698 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5699
5700 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5701
5702 * infrun.c (fetch_inferior_event): Use
5703 `switch_to_target_no_thread` to switch the target.
5704
5705 2020-09-06 Tom Tromey <tom@tromey.com>
5706
5707 * symfile.h (dwarf2_free_objfile): Don't declare.
5708
5709 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5710
5711 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5712 to match 16 byte real/complex type generated by Flang compiler.
5713
5714 2020-09-03 Tom de Vries <tdevries@suse.de>
5715
5716 PR breakpoint/26546
5717 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5718 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5719
5720 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5721
5722 * maint.c (index_digits): New function.
5723 (struct maint_print_section_data): Remove.
5724 (print_bfd_section_info): Remove print_data parameter, add arg
5725 and index_digits.
5726 (print_objfile_section_info): Likewise.
5727 (print_bfd_section_info_maybe_relocated): Likewise (plus
5728 objfile).
5729 (maintenance_info_sections): Adjust calls.
5730
5731 2020-09-02 Tom Tromey <tromey@adacore.com>
5732
5733 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5734 for null pointers.
5735 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5736
5737 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5738
5739 * bcache.h (struct bcache) <insert>: Change type of `added` to
5740 pointer to bool.
5741 * bcache.c (bcache::insert): Likewise.
5742 * gdbtypes.c (check_types_worklist): Adjust.
5743 * psymtab.c (add_psymbol_to_bcache): Adjust.
5744
5745 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5746
5747 * corelow.c (unordered_set): Include.
5748 (class core_target): Add field 'm_core_unavailable_mappings'.
5749 (core_target::build_file_mappings): Print only one warning
5750 per inaccessible file. Add unavailable/broken mappings
5751 to m_core_unavailable_mappings.
5752 (core_target::xfer_partial): Call...
5753 (core_target::xfer_memory_via_mappings): New method.
5754
5755 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5756
5757 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5758 type to bool.
5759
5760 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5761
5762 * dwarf2/read.c (struct field_info): Fix indentation.
5763
5764 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5765
5766 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5767 ordering in comment.
5768 * frame.c (frame_id_eq): Fix indentation.
5769
5770 2020-08-31 Scott Linder <scott@scottlinder.com>
5771 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5774 inline frame ids in outer frame.
5775
5776 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5779 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5780 (outer_frame_id): Use FID_STACK_OUTER instead of
5781 FID_STACK_INVALID.
5782 (frame_id_p): Don't check for outer_frame_id.
5783
5784 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5785
5786 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5787 regnum/frame in value. Call allocate_value_lazy.
5788 * frame.c (frame_unwind_register_value): Use
5789 val_print_not_saved.
5790
5791 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5792
5793 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5794
5795 2020-08-29 Pedro Alves <pedro@palves.net>
5796
5797 * progspace.c (print_program_space): Use all_inferiors. Switch to
5798 the inferior before calling target_pid_to_str.
5799
5800 2020-08-28 Tom Tromey <tom@tromey.com>
5801
5802 * xcoffread.c (xcoff_end_psymtab): Update comment.
5803 * dbxread.c (dbx_end_psymtab): Update comment.
5804
5805 2020-08-28 Tom de Vries <tdevries@suse.de>
5806
5807 PR breakpoint/26544
5808 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5809 event_location.
5810 (create_breakpoint): Same.
5811 (base_breakpoint_decode_location): Same.
5812 (bkpt_create_sals_from_location): Same.
5813 (bkpt_decode_location): Same.
5814 (bkpt_probe_create_sals_from_location): Same.
5815 (bkpt_probe_decode_location): Same.
5816 (tracepoint_create_sals_from_location): Same.
5817 (tracepoint_decode_location): Same.
5818 (tracepoint_probe_decode_location): Same.
5819 (strace_marker_create_sals_from_location): Same.
5820 (strace_marker_decode_location): Same.
5821 (create_sals_from_location_default): Same.
5822 (decode_location_default): Same.
5823 * breakpoint.h (struct breakpoint_ops): Same.
5824 (create_breakpoint): Same.
5825 * linespec.h (decode_line_full): Same.
5826 * linespec.c (decode_line_full): Same. Throw error if
5827 result.size () == 0.
5828
5829 2020-08-27 Pedro Alves <pedro@palves.net>
5830
5831 PR gdb/26524
5832 * breakpoint.c (until_break_fsm) <location_breakpoint,
5833 caller_breakpoint>: Delete fields.
5834 <breakpoints>: New field.
5835 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5836 two individual breakpoints.
5837 (until_break_fsm::should_stop): Loop over breakpoints in the
5838 breakpoint vector.
5839 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5840 vector.
5841 (until_break_command): Handle location expanding into multiple
5842 sals.
5843
5844 2020-08-27 Pedro Alves <pedro@palves.net>
5845
5846 PR gdb/26523
5847 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5848 bp_until breakpoints user-specified locations. Update intro
5849 comment.
5850
5851 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5852
5853 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5854 gdb_bfd_sections): New.
5855 * maint.c (print_bfd_section_info): Change param type to
5856 maint_print_section_data.
5857 (print_objfile_section_info): Likewise.
5858 (print_bfd_section_info_maybe_relocated): Likewise.
5859 (maintenance_info_sections): Use gdb_bfd_sections.
5860
5861 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5862
5863 * MAINTAINERS: Add ARC target and maintainer.
5864
5865 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5866
5867 * configure.tgt: ARC support for GNU/Linux.
5868 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5869 * arc-linux-tdep.c: New file.
5870 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5871 * arc-tdep.c (arc_write_pc): Use it.
5872
5873 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5874
5875 * arc-tdep.c (arc_check_for_hardware_loop): New.
5876 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5877
5878 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5879
5880 * arc-tdep.h: Include "gdbarch.h".
5881
5882 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5883
5884 * arch/arc.h
5885 (arc_gdbarch_features): New class to stir the selection of target XML.
5886 (arc_create_target_description): Use FEATURES to choose XML target.
5887 (arc_lookup_target_description): Use arc_create_target_description
5888 to create _new_ target descriptions or return the already created
5889 ones if the FEATURES is the same.
5890 * arch/arc.c: Implementation of prototypes described above.
5891 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5892 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5893 * arc-tdep.c (*_feature_name): Make feature names consistent.
5894 (arc_register_feature): A new struct to hold information about
5895 registers of a particular target/feature.
5896 (arc_check_tdesc_feature): Check if XML provides registers in
5897 compliance with ARC_REGISTER_FEATURE structs.
5898 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5899 (determine_*_reg_feature_set): Which feature name to look for.
5900 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5901 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5902 to expected ISA enums to be used in arc_gdbarch_features structs.
5903 * features/Makefile (FEATURE_XMLFILES): Add new files.
5904 * gdb/features/arc/v1-aux.c: New file.
5905 * gdb/features/arc/v1-aux.xml: Likewise.
5906 * gdb/features/arc/v1-core.c: Likewise.
5907 * gdb/features/arc/v1-core.xml: Likewise.
5908 * gdb/features/arc/v2-aux.c: Likewise.
5909 * gdb/features/arc/v2-aux.xml: Likewise.
5910 * gdb/features/arc/v2-core.c: Likewise.
5911 * gdb/features/arc/v2-core.xml: Likewise.
5912 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5913
5914 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5915 Andrew Burgess <andrew.burgess@embecosm.com>
5916
5917 PR m2/26372
5918 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5919 an assert. Remove single element array indexing pattern as the
5920 MULTI_SUBSCRIPT support will handle this case too.
5921
5922 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * value.h (valprint_check_validity): Move declaration from
5925 here...
5926 * valprint.h (valprint_check_validity): ... to here.
5927
5928 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5929
5930 * debug.h: New file.
5931 * debug.c (debug_prefixed_vprintf): New function.
5932 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5933 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5934
5935 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5936
5937 * infrun.h (infrun_debug_printf_1): New function declaration.
5938 (infrun_debug_printf): New macro.
5939 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5940 throughout.
5941 (infrun_debug_printf): New function.
5942 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5943 (handle_jit_event): Likewise.
5944
5945 2020-08-21 Mark Wielaard <mark@klomp.org>
5946
5947 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5948
5949 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5950
5951 * frame.c (enum class frame_id_status): New.
5952 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5953 (fprintf_frame): Update.
5954 (compute_frame_id): Set frame id status to "computing" on entry.
5955 Set it back to "not_computed" on failure and to "computed" on
5956 success.
5957 (get_frame_id): Assert the frame id is not being computed.
5958 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5959 (create_new_frame): Likewise.
5960 (frame_cleanup_after_sniffer): Update assert.
5961
5962 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5963
5964 * regcache.c (pid_ptid_regcache_map): New type.
5965 (target_ptid_regcache_map): Remove.
5966 (target_pid_ptid_regcache_map): New type.
5967 (regcaches): Change type to target_pid_ptid_regcache_map.
5968 (get_thread_arch_aspace_regcache): Update.
5969 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5970 case.
5971 (regcaches_size): Update.
5972 (regcache_count): Update.
5973 (registers_changed_ptid_target_pid_test): New.
5974 (_initialize_regcache): Register new test.
5975
5976 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5977
5978 * regcache.c (regcache_count): New.
5979 (struct regcache_test_data): New.
5980 (regcache_test_data_up): New.
5981 (populate_regcaches_for_test): New.
5982 (regcaches_test): Remove.
5983 (get_thread_arch_aspace_regcache_test): New.
5984 (registers_changed_ptid_all_test): New.
5985 (registers_changed_ptid_target_test): New.
5986 (registers_changed_ptid_target_ptid_test): New.
5987 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5988 (_initialize_regcache): Register new tests.
5989
5990 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5991
5992 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5993 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5994 gdbarch and aspace parameter. Use current inferior's aspace.
5995 Validate regcache's arch value.
5996 (regcaches_test): Update.
5997
5998 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5999
6000 * regcache.c (regcaches_test): Call registers_changed.
6001
6002 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6003
6004 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6005
6006 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6007
6008 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6009 to find the end of prologue for flang compiled binaries.
6010 * arm-tdep.c (arm_skip_prologue): Likewise.
6011 * i386-tdep.c (i386_skip_prologue): Likewise.
6012 * producer.c (producer_is_llvm): New function.
6013 (producer_parsing_tests): Added new tests for clang/flang.
6014 * producer.h (producer_is_llvm): New declaration.
6015
6016 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6017
6018 * linux-nat.c (linux_nat_debug_printf): New function.
6019 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6020
6021 2020-08-18 Aaron Merey <amerey@redhat.com>
6022
6023 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6024 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6025 (CLIBS): Add DEBUGINFOD_LIBS.
6026
6027 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6028
6029 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6030 'gdbarch_num_regs'.
6031
6032 2020-08-17 Tom Tromey <tromey@adacore.com>
6033
6034 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6035 ada_get_decoded_value returns NULL.
6036
6037 2020-08-17 Tom Tromey <tromey@adacore.com>
6038
6039 * python/py-inferior.c (infpy_search_memory): Use
6040 gdb_py_object_from_ulongest.
6041 * python/py-infevents.c (create_inferior_call_event_object)
6042 (create_memory_changed_event_object): Use
6043 gdb_py_object_from_ulongest.
6044 * python/py-linetable.c (ltpy_entry_get_pc): Use
6045 gdb_py_object_from_ulongest.
6046
6047 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6048
6049 * loc.c (class symbol_needs_eval_context): Fix indentation.
6050
6051 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6052
6053 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6054 bool.
6055
6056 2020-08-17 Tom de Vries <tdevries@suse.de>
6057
6058 PR gdb/26393
6059 * gdbtypes.c (dump_dynamic_prop): New function.
6060 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6061
6062 2020-08-15 Tom de Vries <tdevries@suse.de>
6063
6064 PR backtrace/26390
6065 * stack.c (print_frame_args): Temporarily set the selected
6066 frame to FRAME while printing the frame's arguments.
6067
6068 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6069
6070 PR breakpoints/26385
6071 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6072 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6073
6074 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6075
6076 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6077 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6078 and >= to check return value instead of == -1 and != -1.
6079
6080 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6081
6082 * utils.h (class gdb_argv) <as_array_view>: New method.
6083 * utils.c (gdb_argv_as_array_view_test): New.
6084 (_initialize_utils): Register selftest.
6085 * maint.c (maintenance_selftest): Use the new method.
6086
6087 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6088
6089 * target.h (supports_dumpcore, dumpcore): New
6090 function declarations.
6091 * target.c (supports_dumpcore, dumpcore): New
6092 functions.
6093 * target-delegates.c: Rebuild.
6094 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6095 and target_dumpcore ().
6096
6097 2020-08-13 Aaron Merey <amerey@redhat.com>
6098
6099 * debuginfod-support.c: Replace global variables with user_data.
6100
6101 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * maint.c (maintenance_selftest): Split args and pass array_view
6104 to run_tests.
6105
6106 2020-08-12 Luis Machado <luis.machado@linaro.org>
6107
6108 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6109 type's length.
6110 Use %s and pulongest to print the length.
6111
6112 2020-08-12 Pedro Alves <palves@redhat.com>
6113
6114 * NEWS: Move "Multi-target debugging support" item to the
6115 "Changes since GDB 9" section.
6116
6117 2020-08-12 Pedro Alves <palves@redhat.com>
6118
6119 PR gdb/26336
6120 * progspace.c (program_space::remove_objfile): Invalidate the
6121 frame cache.
6122
6123 2020-08-11 Tom de Vries <tdevries@suse.de>
6124
6125 * MAINTAINERS: Mark ms1 as deleted.
6126
6127 2020-08-10 Luis Machado <luis.machado@linaro.org>
6128
6129 PR gdb/26310
6130
6131 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6132 act accordingly.
6133 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6134 movz/str/stur/stp skipping behavior.
6135
6136 2020-08-10 Luis Machado <luis.machado@linaro.org>
6137
6138 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6139 struct user_sve_header instead of struct sve_context.
6140
6141 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * read.h (dwarf2_fetch_die_loc_sect_off,
6144 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6145 `void *` parameter with function_view.
6146 * read.c (dwarf2_fetch_die_loc_sect_off,
6147 dwarf2_fetch_die_loc_cu_off): Likewise.
6148 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6149 (per_cu_dwarf_call): Adjust.
6150 (get_frame_address_in_block_wrapper): Remove.
6151 (indirect_synthetic_pointer): Adjust.
6152 (get_ax_pc): Remove.
6153 (dwarf2_compile_expr_to_ax): Adjust.
6154
6155 2020-08-08 Tom de Vries <tdevries@suse.de>
6156
6157 PR build/26344
6158 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6159 constructor.
6160 * regcache.c (get_thread_arch_aspace_regcache): Same.
6161
6162 2020-08-07 Tom Tromey <tromey@adacore.com>
6163
6164 * ravenscar-thread.c
6165 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6166 New method.
6167 (ravenscar_thread_target::wait): Check
6168 runtime_initialized.
6169 (ravenscar_thread_target::prepare_to_store)
6170 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6171 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6172 (ravenscar_thread_target::stopped_by_watchpoint)
6173 (ravenscar_thread_target::stopped_data_address)
6174 (ravenscar_thread_target::core_of_thread): Use
6175 scoped_restore_current_thread and
6176 set_base_thread_from_ravenscar_task.
6177
6178 2020-08-07 Tom Tromey <tromey@adacore.com>
6179
6180 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6181
6182 2020-08-07 Tom Tromey <tromey@adacore.com>
6183
6184 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6185 update_inferior_ptid before update_thread_list.
6186 (temporarily_change_regcache_ptid): New class.
6187 (ravenscar_thread_target::fetch_registers)
6188 (ravenscar_thread_target::store_registers)
6189 (ravenscar_thread_target::prepare_to_store): Use base thread when
6190 forwarding operation.
6191
6192 2020-08-07 Tom Tromey <tromey@adacore.com>
6193
6194 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6195 "is_pid" case.
6196
6197 2020-08-07 Tom Tromey <tromey@adacore.com>
6198
6199 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6200 New methods.
6201 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6202 first.
6203 (ravenscar_thread_target::add_thread): Rename from
6204 ravenscar_add_thread.
6205 (ravenscar_thread_target::update_thread_list): Use a lambda.
6206 (ravenscar_thread_target::xfer_partial): New method.
6207
6208 2020-08-07 Tom Tromey <tromey@adacore.com>
6209
6210 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6211 gdb::function_view.
6212 (iterate_over_live_ada_tasks): Change type of argument.
6213 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6214 of argument.
6215
6216 2020-08-07 Tom Tromey <tromey@adacore.com>
6217
6218 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6219 Remove.
6220 (ravenscar_thread_target::extra_thread_info): Remove.
6221 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6222 defer to target beneath for non-Ravenscar threads.
6223
6224 2020-08-07 Tom Tromey <tromey@adacore.com>
6225
6226 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6227 get_base_thread_from_ravenscar_task>: Now methods.
6228 <m_cpu_map>: New member.
6229 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6230 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6231 (ravenscar_thread_target::task_is_currently_active): Update.
6232 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6233 Now a method.
6234 (ravenscar_thread_target::add_active_thread): Put initial thread
6235 into the m_cpu_map.
6236
6237 2020-08-07 Tom Tromey <tromey@adacore.com>
6238
6239 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6240 event_ptid.
6241
6242 2020-08-07 Tom Tromey <tromey@adacore.com>
6243
6244 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6245 runtime_initialized.
6246
6247 2020-08-07 Tom Tromey <tromey@adacore.com>
6248
6249 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6250 add_active_thread.
6251 (ravenscar_thread_target::add_active_thread): Now public.
6252 (ravenscar_inferior_created): Call add_active_thread after pushing
6253 the target.
6254
6255 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6256
6257 * regcache.c (ptid_regcache_map): New type.
6258 (target_ptid_regcache_map): New type.
6259 (regcaches): Change type to target_ptid_regcache_map.
6260 (get_thread_arch_aspace_regcache): Update to regcaches' new
6261 type.
6262 (regcache_thread_ptid_changed): Likewise.
6263 (registers_changed_ptid): Likewise.
6264 (regcaches_size): Likewise.
6265 (regcaches_test): Update.
6266 (regcache_thread_ptid_changed): Update.
6267 * regcache.h (regcache_up): New type.
6268 * gdbsupport/ptid.h (hash_ptid): New struct.
6269
6270 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6271
6272 * observable.h (thread_ptid_changed): Add parameter
6273 `process_stratum_target *`.
6274 * infrun.c (infrun_thread_ptid_changed): Add parameter
6275 `process_stratum_target *` and use it.
6276 (selftests): New namespace.
6277 (infrun_thread_ptid_changed): New function.
6278 (_initialize_infrun): Register selftest.
6279 * regcache.c (regcache_thread_ptid_changed): Add parameter
6280 `process_stratum_target *` and use it.
6281 (regcache_thread_ptid_changed): New function.
6282 (_initialize_regcache): Register selftest.
6283 * thread.c (thread_change_ptid): Pass target to
6284 thread_ptid_changed observable.
6285
6286 2020-08-06 Caroline Tice <cmtice@google.com>
6287
6288 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6289 (struct dwp_sections): Update field comments. Add loclists and
6290 rnglists fields.
6291 (struct virtual_v2_dwo_sections): Rename struct to
6292 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6293 size & offset fields for loclists and rnglists.
6294 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6295 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6296 skipping dummy type units.
6297 (create_dwp_hash_table): Update the large comment above the function to
6298 discuss Version 5 DWP files as well, with references. Update all the
6299 version checks in the function to check for version 5 as well. Add new
6300 section at the end to create dwp hash table for version 5.
6301 (create_dwp_v2_section): Rename function to
6302 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6303 Add V5 to error message text.
6304 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6305 into calls to create_dwp_v2_or_v5_section.
6306 (create_dwo_unit_in_dwp_v5): New function.
6307 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6308 check for version2; add else clause to handle version 5.
6309 (open_and_init_dwo_file): Add code to check dwarf version & only call
6310 create_debug_types_hash_table (with sections.types) if version is not 5;
6311 else call create_debug_type_hash_table, with sections.info.
6312 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6313 version 5.
6314 (dwarf2_locate_v5_dwp_sections): New function.
6315 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6316 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6317
6318 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6319
6320 * regcache.h (class regcache): Remove friend
6321 registers_changed_ptid.
6322 <regcache_thread_ptid_changed>: Remove.
6323 <regcaches>: Remove.
6324 * regcache.c (regcache::regcaches): Rename to...
6325 (regcaches): ... this. Make static.
6326 (get_thread_arch_aspace_regcache): Update.
6327 (regcache::regcache_thread_ptid_changed): Rename to...
6328 (regcache_thread_ptid_changed): ... this. Update.
6329 (class regcache_access): Remove.
6330 (regcaches_test): Update.
6331 (_initialize_regcache): Update.
6332 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6333 <forward_list>.
6334
6335 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6336
6337 * regcache.h (class regcache) <current_regcache>: Rename to...
6338 <regcaches>: ... this. Move doc here.
6339 * regcache.c (regcache::current_regcache) Rename to...
6340 (regcache::regcaches): ... this. Move doc to header.
6341 (get_thread_arch_aspace_regcache): Update.
6342 (regcache::regcache_thread_ptid_changed): Update.
6343 (registers_changed_ptid): Update.
6344 (class regcache_access) <current_regcache_size>: Rename to...
6345 <regcaches_size>: ... this.
6346 (current_regcache_test): Rename to...
6347 (regcaches_test): ... this.
6348 (_initialize_regcache): Update.
6349
6350 2020-08-06 Victor Collod <vcollod@nvidia.com>
6351
6352 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6353
6354 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6355
6356 * corelow.c (core_target::build_file_mappings): Don't output
6357 null pathname in warning.
6358
6359 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6360
6361 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6362 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6363 gdb.dwarf2/dw2-single-line-discriminators.exp,
6364 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6365
6366 2020-08-05 Tom Tromey <tromey@adacore.com>
6367
6368 PR rust/26197:
6369 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6370 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6371 Fix off-by-one and type size errors in ordinary case.
6372
6373 2020-08-05 Tom de Vries <tdevries@suse.de>
6374
6375 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6376 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6377
6378 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6379
6380 * frame.h (frame_id_p): Return bool.
6381 (frame_id_artificial_p): Return bool.
6382 (frame_id_eq): Return bool.
6383 (has_stack_frames): Return bool.
6384 (get_selected_frame): Fix typo in comment.
6385 (get_frame_pc_if_available): Return bool.
6386 (get_frame_address_in_block_if_available): Return bool.
6387 (get_frame_func_if_available): Return bool.
6388 (read_frame_register_unsigned): Return bool.
6389 (get_frame_register_bytes): Return bool.
6390 (safe_frame_unwind_memory): Return bool.
6391 (deprecated_frame_register_read): Return bool.
6392 (frame_unwinder_is): Return bool.
6393 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6394 bool.
6395 <this_id::p>: Likewise.
6396 <prev_p>: Likewise.
6397 (frame_stash_add): Return bool.
6398 (get_frame_id): Use bool.
6399 (frame_id_build_special) Use bool.
6400 (frame_id_build_unavailable_stack): Use bool.
6401 (frame_id_build): Use bool.
6402 (frame_id_p): Return bool, use true/false instead of 1/0.
6403 (frame_id_artificial_p): Likewise.
6404 (frame_id_eq): Likewise.
6405 (frame_id_inner): Likewise.
6406 (get_frame_func_if_available): Likewise.
6407 (read_frame_register_unsigned): Likewise.
6408 (deprecated_frame_register_read): Likewise.
6409 (get_frame_register_bytes): Likewise.
6410 (has_stack_frames): Likewise.
6411 (inside_main_func): Likewise.
6412 (inside_entry_func): Likewise.
6413 (get_frame_pc_if_available): Likewise.
6414 (get_frame_address_in_block_if_available): Likewise.
6415 (frame_unwinder_is): Likewise.
6416 (safe_frame_unwind_memory): Likewise.
6417 (frame_unwind_arch): Likewise.
6418
6419 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6420
6421 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6422 type to cached_copy_status.
6423 (fprintf_frame): Adjust.
6424 (get_frame_func_if_available): Adjust.
6425 (frame_cleanup_after_sniffer): Adjust.
6426
6427 2020-08-04 Mark Wielaard <mark@klomp.org>
6428
6429 * MAINTAINERS (Write After Approval): Update email address.
6430
6431 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6432
6433 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6434 dynamic_prop::const_val.
6435
6436 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6437
6438 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6439 dynamic_prop::kind.
6440
6441 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6442
6443 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6444
6445 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6446
6447 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6448
6449 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6450 Jose E. Marchesi <jose.marchesi@oracle.com>
6451
6452 * configure.tgt: Add entry for bpf-*-*.
6453 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6454 (ALLDEPFILES): Add bpf-tdep.c.
6455 * bpf-tdep.c: New file.
6456 * MAINTAINERS: Add bpf target and maintainer.
6457 * NEWS: Mention the support for the new target.
6458
6459 2020-08-04 Tom de Vries <tdevries@suse.de>
6460
6461 PR symtab/23270
6462 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6463 Error.
6464
6465 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6466
6467 * syscalls/freebsd.xml: Regenerate.
6468
6469 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6470
6471 * syscalls/update-freebsd.sh: Fix usage and year range.
6472
6473 2020-08-03 Tom de Vries <tdevries@suse.de>
6474
6475 PR symtab/26333
6476 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6477 DW_LNE_lo_user/DW_LNE_hi_user range.
6478
6479 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6480
6481 PR ada/26318
6482 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6483 kind.
6484
6485 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6486
6487 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6488
6489 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6490
6491 * breakpoint.c (set_breakpoint_condition): Update the condition
6492 expressions after checking that the input condition string parses
6493 successfully and does not contain junk at the end.
6494
6495 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6496
6497 * breakpoint.c (set_breakpoint_condition): Update the
6498 condition string after parsing the new condition successfully.
6499
6500 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6501
6502 * proc-api.c (_STRUCTURED_PROC): Don't define.
6503 * proc-events.c: Likewise.
6504 * proc-flags.c: Likewise.
6505 * proc-why.c: Likewise.
6506 * procfs.c: Likewise.
6507
6508 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6509 * configure, config.in: Regenerate.
6510
6511 2020-07-30 Tom de Vries <tdevries@suse.de>
6512
6513 PR build/26320
6514 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6515 m_red/m_green/m_blue in a union.
6516
6517 2020-07-29 Tom de Vries <tdevries@suse.de>
6518
6519 PR tdep/26280
6520 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6521
6522 2020-07-28 Tom Tromey <tromey@adacore.com>
6523
6524 PR symtab/26270:
6525 * symtab.h (find_pc_partial_function_sym): Declare.
6526 * cli/cli-cmds.c (disassemble_command): Use
6527 find_pc_partial_function_sym. Check asm_demangle.
6528 * blockframe.c (cache_pc_function_sym): New global.
6529 (cache_pc_function_name): Remove.
6530 (clear_pc_function_cache): Update.
6531 (find_pc_partial_function_sym): New function, from
6532 find_pc_partial_function.
6533 (find_pc_partial_function): Rewrite using
6534 find_pc_partial_function_sym.
6535
6536 2020-07-28 Tom Tromey <tromey@adacore.com>
6537
6538 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6539 help. Add usage.
6540
6541 2020-07-28 Tom Tromey <tromey@adacore.com>
6542
6543 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6544 <DW_OP_GNU_variable_value>: Cast to address type.
6545
6546 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6547
6548 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6549 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6550 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6551 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6552 (nbsd_get_siginfo_type): New.
6553 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6554 (_initialize_nbsd_tdep): New.
6555
6556 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6557
6558 PR binutils/26301
6559 * configure: Regenerated.
6560
6561 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6562
6563 PR binutils/26301
6564 * configure: Regenerated.
6565
6566 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * python/py-frame.c: Remove 'user-regs.h' include.
6569 (frapy_read_register): Rewrite to make use of
6570 gdbpy_parse_register_id.
6571 * python/py-registers.c (gdbpy_parse_register_id): New function,
6572 moved here from python/py-unwind.c. Updated the return type, and
6573 also accepts register descriptor objects.
6574 * python/py-unwind.c: Remove 'user-regs.h' include.
6575 (pyuw_parse_register_id): Moved to python/py-registers.c.
6576 (unwind_infopy_add_saved_register): Update to use
6577 gdbpy_parse_register_id.
6578 (pending_framepy_read_register): Likewise.
6579 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6580
6581 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6582
6583 * python/py-registers.c: Add 'user-regs.h' include.
6584 (register_descriptor_iter_find): New function.
6585 (register_descriptor_iterator_object_methods): New static global
6586 methods array.
6587 (register_descriptor_iterator_object_type): Add pointer to methods
6588 array.
6589
6590 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6591
6592 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6593 for all architectures on FreeBSD 11.3 and later.
6594
6595 2020-07-27 Tom Tromey <tromey@adacore.com>
6596
6597 * gcore.h (load_corefile): Don't declare.
6598
6599 2020-07-27 Tom de Vries <tdevries@suse.de>
6600
6601 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6602 * config.in: Regenerate.
6603 * configure: Regenerate.
6604
6605 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6606
6607 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6608 ws2tcpip.h. When checking whether socklen_t type is defined, use
6609 ws2tcpip.h if it is available and sys/socket.h isn't.
6610 * configure: Regenerate.
6611 * config.in: Regenerate.
6612
6613 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6614
6615 PR fortran/23051
6616 PR fortran/26139
6617 * valops.c (value_ind): Pass address to
6618 readjust_indirect_value_type.
6619 * value.c (readjust_indirect_value_type): Make parameter
6620 non-const, and add extra address parameter. Resolve original type
6621 before using it.
6622 * value.h (readjust_indirect_value_type): Update function
6623 signature and comment.
6624
6625 2020-07-25 Tom de Vries <tdevries@suse.de>
6626
6627 PR symtab/26243
6628 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6629 entries.
6630
6631 2020-07-24 Aaron Merey <amerey@redhat.com>
6632
6633 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6634 * configure: Rebuild.
6635
6636 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6637
6638 PR corefiles/26294
6639 * corelow.c (_initialize_corelow): Add period to help text
6640 for "maintenance print core-file-backed-mappings".
6641
6642 2020-07-23 Pedro Alves <pedro@palves.net>
6643
6644 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6645 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6646 meanwhile.
6647 * frame.c (frame_cache_generation, get_frame_cache_generation):
6648 New.
6649 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6650 (get_prev_frame_if_no_cycle): On exception, don't touch
6651 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6652 * frame.h (get_frame_cache_generation): Declare.
6653
6654 2020-07-23 Tom de Vries <tdevries@suse.de>
6655
6656 PR tui/26282
6657 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6658 New default constructor.
6659
6660 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6661
6662 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6663 exclude non-statement entries.
6664
6665 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6666
6667 * NEWS (New commands): Mention new command
6668 "maintenance print core-file-backed-mappings".
6669
6670 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6671
6672 * corelow.c (gdbcmd.h): Include.
6673 (core_target::info_proc_mappings): New method.
6674 (get_current_core_target): New function.
6675 (maintenance_print_core_file_backed_mappings): New function.
6676 (_initialize_corelow): Add core-file-backed-mappings to
6677 "maint print" commands.
6678
6679 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6680
6681 * linux-tdep.c (dump_note_entry_p): New function.
6682 (linux_dump_mapping_p_ftype): New typedef.
6683 (linux_find_memory_regions_full): Add new parameter,
6684 should_dump_mapping_p.
6685 (linux_find_memory_regions): Adjust call to
6686 linux_find_memory_regions_full.
6687 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6688 call to linux_find_memory_regions_full.
6689
6690 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6691
6692 * corelow.c (solist.h, unordered_map): Include.
6693 (class core_target): Add field m_core_file_mappings and
6694 method build_file_mappings.
6695 (core_target::core_target): Call build_file_mappings.
6696 (core_target::~core_target): Free memory associated with
6697 m_core_file_mappings.
6698 (core_target::build_file_mappings): New method.
6699 (core_target::xfer_partial): Use m_core_file_mappings
6700 for memory transfers.
6701 * linux-tdep.c (linux_read_core_file_mappings): New
6702 function.
6703 (linux_core_info_proc_mappings): Rewrite to use
6704 linux_read_core_file_mappings.
6705 (linux_init_abi): Register linux_read_core_file_mappings.
6706
6707 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6708
6709 * arch-utils.c (default_read_core_file_mappings): New function.
6710 * arch-utils.c (default_read_core_file_mappings): Declare.
6711 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6712 * gdbarch.h, gdbarch.c: Regenerate.
6713
6714 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6715
6716 PR corefiles/25631
6717 * corelow.c (core_target:xfer_partial): Revise
6718 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6719 case after first checking the stratum beneath the core
6720 target.
6721 (has_all_memory): Return true.
6722 * target.c (raw_memory_xfer_partial): Revise comment
6723 regarding use of has_all_memory.
6724
6725 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6726
6727 * exec.h (section_table_xfer_memory): Revise declaration,
6728 replacing section name parameter with an optional callback
6729 predicate.
6730 * exec.c (section_table_xfer_memory): Likewise.
6731 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6732 of section_table_xfer_memory.
6733
6734 2020-07-22 Tom Tromey <tromey@adacore.com>
6735
6736 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6737 lookup_symbol_search_name.
6738
6739 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6740
6741 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6742 redundant local variable.
6743 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6744 reference, not pointer, update code accordingly.
6745
6746 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6747 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6748
6749 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6750 * jit.c (jit_breakpoint_re_set_internal): Use the
6751 `skip_jit_symbol_lookup` field.
6752
6753 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6754 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6755
6756 * jit.c (jit_read_descriptor): Define the descriptor address once,
6757 use twice.
6758 (jit_breakpoint_deleted): Move the declaration of the loop variable
6759 `iter` into the loop header.
6760 (jit_breakpoint_re_set_internal): Move the declaration of the local
6761 variable `objf_data` to the first point of definition.
6762 (jit_event_handler): Move the declaration of local variables
6763 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6764 Rename `objf` to `jited`.
6765
6766 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6767
6768 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6769 Remove.
6770 * jit.c (get_jiter_objfile_data): Update.
6771
6772 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6773 Simon Marchi <simon.marchi@polymtl.ca>
6774
6775 * jit.c (struct jit_program_space_data): Remove.
6776 (jit_program_space_key): Remove.
6777 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6778 stuff.
6779 (get_jit_program_space_data): Remove.
6780 (jit_breakpoint_deleted): Iterate on all of the program space's
6781 objfiles.
6782 (jit_inferior_init): Likewise.
6783 (jit_breakpoint_re_set_internal): Likewise. Also change return
6784 type to void.
6785 (jit_breakpoint_re_set): Pass current_program_space to
6786 jit_breakpoint_re_set_internal.
6787
6788 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6789
6790 * jit.h (struct jiter_objfile_data) <cached_code_address,
6791 jit_breakpoint>: Move to here from ...
6792 * jit.c (jit_program_space_data): ... here.
6793 (jiter_objfile_data::~jiter_objfile_data): Update.
6794 (jit_breakpoint_deleted): Update.
6795 (jit_breakpoint_re_set_internal): Update.
6796
6797 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6800 checks.
6801 (jit_read_descriptor): Remove NULL check.
6802 (jit_event_handler): Add an assertion.
6803
6804 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6805
6806 * jit.h (struct jit_objfile_data): Split into...
6807 (struct jiter_objfile_data): ... this ...
6808 (struct jited_objfile_data): ... and this.
6809 * objfiles.h (struct objfile) <jit_data>: Remove.
6810 <jiter_data, jited_data>: New fields.
6811 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6812 (jiter_objfile_data::~jiter_objfile_data): ... this.
6813 (get_jit_objfile_data): Rename to ...
6814 (get_jiter_objfile_data): ... this.
6815 (add_objfile_entry): Update.
6816 (jit_read_descriptor): Use get_jiter_objfile_data.
6817 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6818 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6819 (jit_inferior_exit_hook): Use objfile's jited_data field.
6820
6821 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6822
6823 * jit.h: Forward-declare `struct minimal_symbol`.
6824 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6825 constructor, destructor, and an objfile* field.
6826 * jit.c (jit_objfile_data): Remove.
6827 (struct jit_objfile_data): Migrate from here to jit.h.
6828 (jit_objfile_data::~jit_objfile_data): New destructor
6829 implementation with code moved from free_objfile_data.
6830 (free_objfile_data): Delete.
6831 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6832 (jit_find_objf_with_entry_addr): Ditto.
6833 (jit_inferior_exit_hook): Ditto.
6834 (_initialize_jit): Remove the call to
6835 register_objfile_data_with_cleanup.
6836 * objfiles.h (struct objfile) <jit_data>: New field.
6837
6838 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6839
6840 * jit.h: Forward-declare `struct objfile`.
6841 (jit_event_handler): Add a second parameter, the JITer objfile.
6842 * jit.c (jit_read_descriptor): Change the signature to take the
6843 JITer objfile as an argument instead of the jit_program_space_data.
6844 (jit_inferior_init): Update the call to jit_read_descriptor.
6845 (jit_event_handler): Use the new JITer objfile argument when calling
6846 jit_read_descriptor.
6847 * breakpoint.c (handle_jit_event): Update the call to
6848 jit_event_handler to pass the JITer objfile.
6849
6850 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6851
6852 * gdbarch.c: Regenerate.
6853 * gdbarch.h: Regenerate.
6854 * gdbarch.sh (handle_segmentation_fault): Remove method.
6855 * infrun.c (handle_segmentation_fault): Remove.
6856 (print_signal_received_reason): Remove call to
6857 handle_segmentation_fault.
6858
6859 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6860
6861 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6862 Rename to sparc64_linux_report_signal_info and add siggnal
6863 argument.
6864 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6865 instead of sparc64_linux_handle_segmentation_fault.
6866
6867 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6868
6869 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6870 i386_linux_report_signal_info instead of
6871 i386_linux_handle_segmentation_fault.
6872 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6873 to i386_linux_report_signal_info and add siggnal argument.
6874 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6875 of i386_linux_handle_segmentation_fault.
6876 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6877 to i386_linux_report_signal_info and add siggnal argument.
6878
6879 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6880
6881 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6882 hook if present.
6883
6884 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6885
6886 * gdbarch.c: Regenerate.
6887 * gdbarch.h: Regenerate.
6888 * gdbarch.sh (report_signal_info): New method.
6889 * infrun.c (print_signal_received_reason): Invoke gdbarch
6890 report_signal_info hook if present.
6891
6892 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6893
6894 * python/py-registers.c : Add 'unordered_map' include.
6895 (gdbpy_new_reggroup): Renamed to...
6896 (gdbpy_get_reggroup): ...this. Update to only create register
6897 group descriptors when needed.
6898 (gdbpy_reggroup_iter_next): Update.
6899
6900 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6901
6902 * python/py-registers.c (gdbpy_register_object_data): New static
6903 global.
6904 (gdbpy_register_object_data_init): New function.
6905 (gdbpy_new_register_descriptor): Renamed to...
6906 (gdbpy_get_register_descriptor): ...this, and update to reuse
6907 existing register descriptors where possible.
6908 (gdbpy_register_descriptor_iter_next): Update.
6909 (gdbpy_initialize_registers): Register new gdbarch data.
6910
6911 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6912
6913 * linux-nat.c (stopped_pids): Make static.
6914
6915 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6916
6917 PR ada/26235
6918 * gdbtypes.c (ada_discrete_type_low_bound,
6919 ada_discrete_type_high_bound): Handle undefined bounds.
6920
6921 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6922
6923 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6924 declaration.
6925 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6926 function.
6927
6928 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6929
6930 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6931 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6932 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6933 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6934 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6935 method.
6936
6937 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6938
6939 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6940 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6941 which are deprecated in Guile 3.0.
6942 * configure.ac (try_guile_versions): Add "guile-3.0".
6943 * configure (try_guile_versions): Regenerate.
6944 * NEWS: Update entry.
6945
6946 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6947 Doug Evans <dje@google.com>
6948
6949 PR gdb/21104
6950 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6951 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6952 USING_GUILE_BEFORE_2_2.
6953 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6954 Change type to 'scm_t_port_type *'.
6955 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6956 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6957 parameter and honor it. Update callers.
6958 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6959 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6960 functions.
6961 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6962 USING_GUILE_BEFORE_2_2.
6963 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6964 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6965 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6966 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6967 and 'SCM_PORT_TYPE'.
6968 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6969 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6970 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6971 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6972 [!USING_GUILE_BEFORE_2_2]: New functions.
6973 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6974 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6975 'gdbscm_memory_port_read'.
6976 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6977 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6978 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6979 function.
6980 (ioscm_init_memory_port): Remove.
6981 (ioscm_init_memory_port_stream): New function
6982 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6983 function.
6984 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6985 Return scm_from_uint (0).
6986 (gdbscm_set_memory_port_read_buffer_size_x)
6987 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6988 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6989 Return scm_from_uint (0).
6990 (gdbscm_set_memory_port_write_buffer_size_x)
6991 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6992 * configure.ac (try_guile_versions): Add "guile-2.2".
6993 * configure: Regenerate.
6994 * NEWS: Add entry.
6995
6996 2020-07-18 Tom Tromey <tom@tromey.com>
6997
6998 * linux-nat.c (linux_multi_process): Remove.
6999 (linux_nat_target::supports_multi_process): Return true.
7000
7001 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7002
7003 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7004 (riscv_lookup_target_description): Return pointer out of
7005 unique_ptr.
7006 * target-descriptions.c (allocate_target_description): Add
7007 comment.
7008 (target_desc_deleter::operator()): Likewise.
7009 * target-descriptions.h (struct target_desc_deleter): Moved to
7010 gdbsupport/tdesc.h.
7011 (target_desc_up): Likewise.
7012
7013 2020-07-17 Tom Tromey <tromey@adacore.com>
7014
7015 * linux-nat.c (linux_nat_target::supports_non_stop)
7016 (linux_nat_target::always_non_stop_p): Use "true".
7017 (linux_nat_target::supports_disable_randomization): Use "true" and
7018 "false".
7019
7020 2020-07-16 Caroline Tice <cmtice@google.com>
7021
7022 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7023 (RNGLIST_HEADER_SIZE64): New constant definition.
7024 (struct dwop_section_names): Add rnglists_dwo.
7025 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7026 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7027 (struct dwo_sections): Add rnglists field.
7028 (read_attribut_reprocess): Add tag parameter.
7029 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7030 (cu_debug_rnglists_section): New function (decl & definition).
7031 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7032 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7033 die whose range is being checked; get rnglist section from
7034 cu_debug_rnglists_section, to get from either objfile or dwo file as
7035 appropriate. Add cases for DW_RLE_base_addressx,
7036 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7037 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7038 test inside if-condition and updating complaint message.
7039 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7040 dwarf2_rnglists_process.
7041 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7042 dwarf2_ranges_process.
7043 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7044 need_ranges_base and update comment appropriately. Also pass die tag
7045 to dwarf2_ranges_read.
7046 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7047 need_ranges_base and update comment appropriately. Also pass die tag
7048 to dwarf2_ranges_process.
7049 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7050 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7051 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7052 need_ranges_base and update comment appropriately. Also pass die tag
7053 to read_attribute_reprocess and dwarf2_ranges_read.
7054 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7055 and update function comment appropriately.
7056 (read_loclist_index): Call read_loclists_rnglists_header instead of
7057 read_loclist_header.
7058 (read_rnglist_index): New function.
7059 (read_attribute_reprocess): Add tag parameter. Add code for
7060 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7061 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7062
7063 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7064
7065 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7066 being resolved.
7067
7068 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7069
7070 * arch-utils.c (show_architecture): Update formatting of messages.
7071
7072 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7073
7074 * gdbtypes.h (struct type) <bounds>: Handle array and string
7075 types.
7076 * ada-lang.c (assign_aggregate): Use type::bounds on
7077 array/string type.
7078 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7079 * c-varobj.c (c_number_of_children): Likewise.
7080 (c_describe_child): Likewise.
7081 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7082 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7083 (f_type_print_base): Likewise.
7084 * f-valprint.c (f77_array_offset_tbl): Likewise.
7085 (f77_get_upperbound): Likewise.
7086 (f77_print_array_1): Likewise.
7087 * guile/scm-type.c (gdbscm_type_range): Likewise.
7088 * m2-typeprint.c (m2_array): Likewise.
7089 (m2_is_long_set_of_type): Likewise.
7090 * m2-valprint.c (get_long_set_bounds): Likewise.
7091 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7092 * python/py-type.c (typy_range): Likewise.
7093 * rust-lang.c (rust_internal_print_type): Likewise.
7094 * type-stack.c (type_stack::follow_types): Likewise.
7095 * valarith.c (value_subscripted_rvalue): Likewise.
7096 * valops.c (value_cast): Likewise.
7097
7098 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7099
7100 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7101 callers to use the equivalent accessor methods.
7102
7103 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7104
7105 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7106 (struct type) <bit_stride>: New method.
7107 (TYPE_BIT_STRIDE): Remove.
7108 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7109
7110 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7111
7112 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7113 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7114 callers to use the equivalent accessor methods instead.
7115
7116 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7117
7118 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7119 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7120 callers to use the equivalent accessor methods instead.
7121
7122 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7123
7124 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7125 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7126 to use dynamic_prop::kind.
7127
7128 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7129
7130 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7131 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7132 to get the bound property's kind and check against
7133 PROP_UNDEFINED.
7134
7135 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7136
7137 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7138 all callers to use type::range_bounds followed by
7139 dynamic_prop::{low,high}.
7140
7141 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7144 const_val, set_const_val, baton, set_locexpr, set_loclist,
7145 set_addr_offset, variant_parts, set_variant_parts,
7146 original_type, set_original_type>: New methods.
7147 <kind>: Rename to...
7148 <m_kind>: ... this. Update all users to use the new methods
7149 instead.
7150 <data>: Rename to...
7151 <m_data>: ... this. Update all users to use the new methods
7152 instead.
7153
7154 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * gdbtypes.c (get_discrete_bounds): Return failure if
7157 the range type's bounds are not both defined and constant
7158 values.
7159 (get_array_bounds): Update comment. Remove undefined bound check.
7160
7161 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7162
7163 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7164 the type::bounds method directly.
7165
7166 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7167
7168 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7169 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7170 are used to set the range type's bounds to use set_bounds.
7171
7172 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7173
7174 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7175
7176 2020-07-10 Pedro Alves <pedro@palves.net>
7177
7178 * gdbthread.h (inferior_ref): Define.
7179 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7180 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7181 * thread.c
7182 (scoped_restore_current_thread::restore):
7183 Adjust to gdb::ref_ptr.
7184 (scoped_restore_current_thread::~scoped_restore_current_thread):
7185 Remove manual decref handling.
7186 (scoped_restore_current_thread::scoped_restore_current_thread):
7187 Adjust to use
7188 inferior_ref::new_reference/thread_info_ref::new_reference.
7189 Incref the thread before calling get_frame_id instead of after.
7190 Let TARGET_CLOSE_ERROR propagate.
7191
7192 2020-07-10 Pedro Alves <pedro@palves.net>
7193
7194 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7195 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7196 NOT_AVAILABLE_ERROR.
7197 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7198 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7199
7200 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7201 Pedro Alves <pedro@palves.net>
7202
7203 PR gdb/26199
7204 * infrun.c (threads_are_resumed_pending_p): Delete.
7205 (do_target_wait): Remove threads_are_executing and
7206 threads_are_resumed_pending_p checks from the inferior_matches
7207 lambda. Update comments.
7208
7209 2020-07-10 Pedro Alves <pedro@palves.net>
7210
7211 PR gdb/26199
7212 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7213 executing threads.
7214
7215 2020-07-10 Pedro Alves <pedro@palves.net>
7216
7217 PR gdb/26199
7218 * infrun.c (handle_no_resumed): Handle multiple targets.
7219
7220 2020-07-10 Pedro Alves <pedro@palves.net>
7221
7222 PR gdb/26199
7223 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7224 target_is_async_p.
7225
7226 2020-07-10 Pedro Alves <pedro@palves.net>
7227
7228 PR gdb/26199
7229 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7230 threads, not all threads.
7231
7232 2020-07-10 Pedro Alves <pedro@palves.net>
7233
7234 PR gdb/26199
7235 * remote.c (remote_target::open_1): Pass remote target pointer as
7236 data to create_async_event_handler.
7237 (remote_async_inferior_event_handler): Mark async event handler
7238 before returning if the remote target still has either pending
7239 events or unacknowledged notifications.
7240
7241 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7242
7243 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7244 declaration.
7245 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7246 function.
7247
7248 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7249
7250 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7251 inferior_ptid.
7252
7253 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7254
7255 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7256 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7257 AT_FREEBSD_PS_STRINGS.
7258
7259 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7260
7261 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7262 of debugfile path on Windows.
7263
7264 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7265
7266 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7267 argument to 'data'.
7268
7269 2020-07-08 Tom Tromey <tromey@adacore.com>
7270
7271 * ada-lang.c (ada_exception_message_1): Use read_memory.
7272
7273 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7274
7275 PR python/22748
7276 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7277 special handling for inline frames.
7278 * findvar.c (value_of_register_lazy): Skip inline frames when
7279 creating lazy register values.
7280 * frame.c (frame_id_computed_p): Delete definition.
7281 * frame.h (frame_id_computed_p): Delete declaration.
7282
7283 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * NEWS: Mention additions to Python API.
7286 * python/py-arch.c (archpy_register_groups): New function.
7287 (arch_object_methods): Add 'register_groups' method.
7288 * python/py-registers.c (reggroup_iterator_object): New struct.
7289 (reggroup_object): New struct.
7290 (gdbpy_new_reggroup): New function.
7291 (gdbpy_reggroup_to_string): New function.
7292 (gdbpy_reggroup_name): New function.
7293 (gdbpy_reggroup_iter): New function.
7294 (gdbpy_reggroup_iter_next): New function.
7295 (gdbpy_new_reggroup_iterator): New function
7296 (gdbpy_initialize_registers): Register new types.
7297 (reggroup_iterator_object_type): Define new Python type.
7298 (gdbpy_reggroup_getset): New static global.
7299 (reggroup_object_type): Define new Python type.
7300 * python/python-internal.h
7301
7302 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7303
7304 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7305 * python/py-arch.c (archpy_registers): New function.
7306 (arch_object_methods): Add 'registers' method.
7307 * python/py-registers.c: New file.
7308 * python/python-internal.h
7309 (gdbpy_new_register_descriptor_iterator): Declare.
7310 (gdbpy_initialize_registers): Declare.
7311 * python/python.c (do_start_initialization): Call
7312 gdbpy_initialize_registers.
7313 * NEWS: Mention additions to the Python API.
7314
7315 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7316
7317 * NEWS: Mention new Python API method.
7318 * python/py-unwind.c (pending_framepy_architecture): New function.
7319 (pending_frame_object_methods): Add architecture method.
7320
7321 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7322
7323 * gdbarch.c: Regenerate.
7324 * gdbarch.h: Regenerate.
7325 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7326 (gdbarch_data): Use internal_error for the case where
7327 deprecated_set_gdbarch_data was originally needed.
7328 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7329 and use passed in obstack.
7330 (libunwind_frame_set_descr): Should no longer get back NULL from
7331 gdbarch_data.
7332 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7333 type.
7334 * user-regs.c (user_regs_init): Update parameters, and use passed
7335 in obstack.
7336 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7337 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7338
7339 2020-07-06 Tom de Vries <tdevries@suse.de>
7340
7341 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7342 End-Of-Sequence in lte_is_less_than.
7343 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7344 "gdb: Don't reorder line table entries too much when sorting".
7345
7346 2020-07-06 Tom de Vries <tdevries@suse.de>
7347
7348 PR tui/26205
7349 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7350
7351 2020-07-05 Tom de Vries <tdevries@suse.de>
7352
7353 PR build/26187
7354 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7355 std::uncaught_exceptions instead of deprecated
7356 std::uncaught_exception.
7357
7358 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7359
7360 * macroexp.h (macro_stringify): Return
7361 gdb::unique_xmalloc_ptr<char>.
7362 * macroexp.c (macro_stringify): Likewise.
7363 * macrotab.c (fixup_definition): Update.
7364
7365 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7366
7367 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7368 (lex_one_token): Update.
7369 * macroexp.c (struct macro_buffer) <release>: Return
7370 gdb::unique_xmalloc_ptr<char>.
7371 (macro_stringify): Update.
7372 (macro_expand): Update.
7373 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7374 * macroexp.h (macro_expand_next): Likewise.
7375
7376 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7377
7378 * macroexp.h (macro_lookup_ftype): Remove.
7379 (macro_expand, macro_expand_once, macro_expand_next): Remove
7380 lookup function parameters, add scope parameter.
7381 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7382 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7383 * macroscope.h (standard_macro_lookup): Change parameter type
7384 to macro_scope.
7385 * macroscope.c (standard_macro_lookup): Likewise.
7386 * c-exp.y (lex_one_token): Update.
7387 * macrocmd.c (macro_expand_command): Likewise.
7388 (macro_expand_once_command): Likewise.
7389
7390 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7391
7392 * inf-loop.c (inferior_event_handler): Remove client_data param.
7393 * inf-loop.h (inferior_event_handler): Likewise.
7394 * infcmd.c (step_1): Adjust.
7395 * infrun.c (proceed): Adjust.
7396 (fetch_inferior_event): Remove client_data param.
7397 (infrun_async_inferior_event_handler): Adjust.
7398 * infrun.h (fetch_inferior_event): Remove `void *` param.
7399 * linux-nat.c (handle_target_event): Adjust.
7400 * record-btrace.c (record_btrace_handle_async_inferior_event):
7401 Adjust.
7402 * record-full.c (record_full_async_inferior_event_handler):
7403 Adjust.
7404 * remote.c (remote_async_inferior_event_handler): Adjust.
7405
7406 2020-07-01 Tom Tromey <tom@tromey.com>
7407
7408 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7409 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7410
7411 2020-07-01 Tom Tromey <tom@tromey.com>
7412
7413 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7414 tui_gen_win_info.
7415 (tui_win_info::make_window): Merge with
7416 tui_gen_win_info::make_window.
7417 (tui_win_info::make_visible): Move from tui_gen_win_info.
7418 * tui/tui-win.c (tui_win_info::max_width): Move from
7419 tui_gen_win_info.
7420 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7421 type.
7422 <window_factory>: Likewise.
7423 * tui/tui-layout.c (tui_win_info::resize): Move from
7424 tui_gen_win_info.
7425 (make_standard_window): Change return type.
7426 (get_locator_window, tui_get_window_by_name): Likewise.
7427 (tui_layout_window::apply): Remove a cast.
7428 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7429 (struct tui_win_info): Merge with tui_gen_win_info.
7430 (struct tui_gen_win_info): Remove.
7431
7432 2020-07-01 Tom Tromey <tom@tromey.com>
7433
7434 * tui/tui-stack.h (struct tui_locator_window): Derive from
7435 tui_win_info.
7436 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7437 <can_box>: New method.
7438
7439 2020-07-01 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7442
7443 2020-07-01 Tom Tromey <tom@tromey.com>
7444
7445 * tui/tui-regs.c (tui_data_window::display_registers_from)
7446 (tui_data_window::display_registers_from)
7447 (tui_data_window::first_data_item_displayed)
7448 (tui_data_window::delete_data_content_windows): Update.
7449 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7450 Remove.
7451 (tui_data_window::check_register_values): Update.
7452 (tui_data_item_window::rerender): Add parameters. Update.
7453 (tui_data_item_window::refresh_window): Remove.
7454 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7455 virtual.
7456 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7457 tui_gen_win_info.
7458 <refresh_window, max_height, min_height>: Remove.
7459 <rerender>: Add parameters.
7460 <x, y, visible>: New members.
7461 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7462 <m_item_width>: New member.
7463
7464 2020-07-01 Tom Tromey <tom@tromey.com>
7465
7466 * tui/tui-regs.c (tui_data_window::show_register_group)
7467 (tui_data_window::check_register_values): Update.
7468 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7469 from item_no.
7470
7471 2020-07-01 Tom Tromey <tom@tromey.com>
7472
7473 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7474 useless "if".
7475
7476 2020-07-01 Tom Tromey <tom@tromey.com>
7477
7478 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7479 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7480
7481 2020-07-01 Tom Tromey <tom@tromey.com>
7482
7483 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7484 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7485 (struct tui_line_or_address): Move from tui-data.h.
7486 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7487 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7488 (tui_cmd_window, tui_source_window_base, tui_source_window)
7489 (tui_disasm_window): Don't declare.
7490 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7491 to tui-winsource.h.
7492 (SINGLE_KEY): Move to tui-stack.c.
7493
7494 2020-07-01 Tom Tromey <tom@tromey.com>
7495
7496 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7497 std::string.
7498 * tui/tui-regs.c (class tab_expansion_file): New.
7499 (tab_expansion_file::write): New method.
7500 (tui_register_format): Change return type. Use
7501 tab_expansion_file.
7502 (tui_get_register, tui_data_window::display_registers_from)
7503 (tui_data_item_window::rerender): Update.
7504 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7505 * tui/tui-io.c (tui_expand_tabs): Remove.
7506
7507 2020-07-01 Tom Tromey <tom@tromey.com>
7508
7509 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7510
7511 2020-07-01 Fangrui Song <maskray@google.com>
7512
7513 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7514
7515 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7516
7517 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7518 forms for DW_AT_associated and DW_AT_allocated attributes,
7519 which is already checked in function attr_to_dynamic_prop.
7520
7521 2020-06-30 Tom Tromey <tromey@adacore.com>
7522
7523 * dwarf2/read.c (quirk_rust_enum): Correctly call
7524 alloc_rust_variant for default-less enum.
7525
7526 2020-06-30 Tom Tromey <tromey@adacore.com>
7527
7528 PR build/26183:
7529 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7530 gdb::to_string.
7531
7532 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7533
7534 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7535 * gdbarch.h: Re-generate.
7536
7537 2020-06-28 Tom Tromey <tom@tromey.com>
7538
7539 * command.h (cmd_types): Remove.
7540 (cmd_type): Don't declare.
7541 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7542 typedef.
7543 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7544 * cli/cli-decode.c (cmd_type): Remove.
7545
7546 2020-06-27 Pedro Alves <palves@redhat.com>
7547
7548 * fork-child.c (prefork_hook): Adjust.
7549 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7550 Delete.
7551 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7552 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7553 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7554 Remove declarations.
7555 (struct inferior) <set_tty, tty>: New methods.
7556 (struct inferior) <terminal>: Rename to ...
7557 (struct inferior) <m_terminal>: ... this and make private.
7558 * main.c (captured_main_1): Adjust.
7559 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7560 (mi_cmd_inferior_tty_show): Adjust.
7561 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7562 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7563
7564 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7565
7566 * configure.ac: Add --enable-libctf: handle --disable-static
7567 properly.
7568 * acinclude.m4: sinclude ../config/enable.m4.
7569 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7570 (LIBCTF): Substitute in.
7571 (CTF_DEPS): New, likewise.
7572 (CLIBS): libctf needs symbols from libbfd: move earlier.
7573 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7574 flags.
7575 * ctfread.c: Surround in ENABLE_LIBCTF.
7576 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7577 * configure: Regenerate.
7578 * config.in: Likewise.
7579
7580 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7581
7582 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7583
7584 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7585
7586 * inferior.h (struct inferior) <terminal>: Change type to
7587 gdb::unique_xmalloc_ptr<char>.
7588 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7589 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7590 field, adjust to unique pointer.
7591 (get_inferior_io_terminal): Adjust to unique pointer.
7592
7593 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7594
7595 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7596 registers, not just the known core set of registers.
7597
7598 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7599
7600 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7601 fflags, frm, and fcsr registers.
7602 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7603 restore groups.
7604 (riscv_tdesc_unknown_reg): New function.
7605 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7606 tdesc_use_registers.
7607 * riscv-tdep.h (struct gdbarch_tdep): Add
7608 unknown_csrs_first_regnum, unknown_csrs_count,
7609 duplicate_fflags_regnum, duplicate_frm_regnum, and
7610 duplicate_fcsr_regnum fields.
7611
7612 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7613
7614 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7615 callback, use the callback (when not null) to help number unknown
7616 registers.
7617 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7618 (tdesc_use_registers): Add extra parameter to declaration.
7619
7620 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7621
7622 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7623 in the file.
7624 (class riscv_pending_register_alias): Likewise.
7625 (riscv_register_feature::register_info): Change 'required_p' field
7626 to 'required', and change its type. Add 'check' member function.
7627 (riscv_register_feature::register_info::check): Define new member
7628 function.
7629 (riscv_xreg_feature): Change initialisation of 'required' field.
7630 (riscv_freg_feature): Likewise.
7631 (riscv_virtual_feature): Likewise.
7632 (riscv_csr_feature): Likewise.
7633 (riscv_check_tdesc_feature): Take extra parameter, the csr
7634 tdesc_feature, rewrite the function to use the new
7635 riscv_register_feature::register_info::check function.
7636 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7637
7638 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7639
7640 * features/Makefile: Remove all references to the deleted files
7641 below.
7642 * features/riscv/32bit-csr.c: Deleted.
7643 * features/riscv/32bit-csr.xml: Deleted.
7644 * features/riscv/64bit-csr.c: Deleted.
7645 * features/riscv/64bit-csr.xml: Deleted.
7646 * features/riscv/rebuild-csr-xml.sh: Deleted.
7647
7648 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7649
7650 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7651 whitespace error for declaration of names member variable.
7652 (struct riscv_register_feature): Add new prefer_first_name member
7653 variable, and fix whitespace error in declaration of registers.
7654 (riscv_xreg_feature): Initialize prefer_first_name field.
7655 (riscv_freg_feature): Likewise.
7656 (riscv_virtual_feature): Likewise.
7657 (riscv_csr_feature): Likewise.
7658 (riscv_register_name): Expand on comments. Remove register name
7659 modifications for CSR and virtual registers.
7660
7661 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7662
7663 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7664 errors.
7665
7666 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7669 riscv-opc.h.
7670 (class riscv_pending_register_alias): New class.
7671 (riscv_check_tdesc_feature): Take vector of pending aliases and
7672 populate it as appropriate.
7673 (riscv_setup_register_aliases): Delete.
7674 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7675 to riscv_check_tdesc_feature in all cases. Use the vector to
7676 create the register aliases.
7677
7678 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7679
7680 * sol2-tdep.c (sol2_static_transform_name): Remove.
7681 (sol2_init_abi): Don't register it.
7682 * gdbarch.sh (static_transform_name): Remove.
7683 * gdbarch.c, gdbarch.h: Regenerate.
7684
7685 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7686 gdbarch_static_transform_name.
7687 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7688 * stabsread.c (define_symbol) <'X'>: Remove.
7689 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7690 handling.
7691 <'V'>: Likewise.
7692 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7693 <'S'>: Remove call to gdbarch_static_transform_name.
7694
7695 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7696
7697 * procfs.c (procfs_pre_trace): New function.
7698 (procfs_target::create_inferior): Pass it to fork_inferior.
7699
7700 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7701
7702 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7703 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7704 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7705 sol2-tdep.o, sparc-sol2-tdep.o.
7706 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7707 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7708 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7709 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7710
7711 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7712
7713 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7714 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7715 Call sol2_init_abi.
7716 Remove calls to set_gdbarch_skip_solib_resolver,
7717 set_gdbarch_core_pid_to_str.
7718 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7719 (i386_sol2_static_transform_name): Remove.
7720 (i386_sol2_init_abi): Call sol2_init_abi.
7721 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7722 set_gdbarch_static_transform_name,
7723 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7724 Use sol2_sigtramp_p.
7725 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7726 (sol2_sigtramp_p): New function.
7727 (sol2_static_transform_name): New function.
7728 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7729 (sol2_init_abi): New function.
7730 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7731 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7732 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7733 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7734 (sparc_sol2_static_transform_name): Remove.
7735 (sparc32_sol2_init_abi): Call sol2_init_abi.
7736 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7737 set_gdbarch_static_transform_name,
7738 set_gdbarch_skip_solib_resolver,
7739 set_gdbarch_core_pid_to_str.
7740 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7741 (sparc_sol2_static_transform_name): Remove
7742 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7743 call sol2_sigtramp_p.
7744 (sparc64_sol2_init_abi): Call sol2_init_abi.
7745 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7746 set_gdbarch_static_transform_name,
7747 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7748
7749 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7750
7751 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7752 * exec.c (validate_exec_file): If from_tty, set both
7753 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7754 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7755 and from_tty, unconditionally ask a confirmation.
7756
7757 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7758
7759 * target-descriptions.c (tdesc_architecture_name): Protect against
7760 NULL pointer dereference.
7761 (maint_print_xml_tdesc_cmd): New function.
7762 (_initialize_target_descriptions): Register new 'maint print
7763 xml-tdesc' command and give it the filename completer.
7764 * NEWS: Mention new 'maint print xml-tdesc' command.
7765
7766 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7767
7768 * target-descriptions.c (class tdesc_compatible_info): New class.
7769 (struct target_desc): Change type of compatible vector.
7770 (tdesc_compatible_p): Update for change in type of
7771 target_desc::compatible.
7772 (tdesc_compatible_info_list): New function.
7773 (tdesc_compatible_info_arch_name): New function.
7774 (tdesc_add_compatible): Update for change in type of
7775 target_desc::compatible.
7776 (print_c_tdesc::visit_pre): Likewise.
7777
7778 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7779
7780 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7781 whitespace to underscore.
7782 (maint_print_c_tdesc_cmd): Use fake filename for target
7783 descriptions that came from the target.
7784 (_initialize_target_descriptions): Add filename command completion
7785 for 'maint print c-tdesc'.
7786
7787 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7788
7789 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7790 lines.
7791
7792 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7793
7794 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7795 lines.
7796 (dwarf2_find_location_expression): Likewise.
7797 (call_site_parameter_matches): Likewise.
7798 (dwarf2_compile_expr_to_ax): Likewise.
7799 (disassemble_dwarf_expression): Likewise.
7800 (loclist_describe_location): Likewise.
7801
7802 2020-06-23 Pedro Alves <palves@redhat.com>
7803
7804 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7805 progspace-and-thread.h. Include scoped-mock-context.h instead.
7806 (register_to_value_test): Use scoped_mock_context.
7807 * regcache.c: Include "scoped-mock-context.h".
7808 (cooked_read_test): Don't error out if a target is already pushed.
7809 Use scoped_mock_context. Adjust.
7810 * scoped-mock-context.h: New file.
7811
7812 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7813
7814 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7815 initializer.
7816 (ada_language::is_string_type_p): New member function.
7817 * c-lang.c (c_language_data): Delete la_is_string_type_p
7818 initializer.
7819 (cplus_language_data): Likewise.
7820 (asm_language_data): Likewise.
7821 (minimal_language_data): Likewise.
7822 * d-lang.c (d_language_data): Likewise.
7823 * f-lang.c (f_is_string_type_p): Delete function, implementation
7824 moved to f_language::is_string_type_p.
7825 (f_language_data): Delete la_is_string_type_p initializer.
7826 (f_language::is_string_type_p): New member function,
7827 implementation from f_is_string_type_p.
7828 * go-lang.c (go_is_string_type_p): Delete function, implementation
7829 moved to go_language::is_string_type_p.
7830 (go_language_data): Delete la_is_string_type_p initializer.
7831 (go_language::is_string_type_p): New member function,
7832 implementation from go_is_string_type_p.
7833 * language.c (language_defn::is_string_type_p): Define new member
7834 function.
7835 (default_is_string_type_p): Make static, add comment copied from
7836 header file.
7837 (unknown_language_data): Delete la_is_string_type_p initializer.
7838 (unknown_language::is_string_type_p): New member function.
7839 (auto_language_data): Delete la_is_string_type_p initializer.
7840 (auto_language::is_string_type_p): New member function.
7841 * language.h (language_data): Delete la_is_string_type_p field.
7842 (language_defn::is_string_type_p): Declare new function.
7843 (default_is_string_type_p): Delete desclaration, move comment to
7844 definition.
7845 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7846 moved to m2_language::is_string_type_p.
7847 (m2_language_data): Delete la_is_string_type_p initializer.
7848 (m2_language::is_string_type_p): New member function,
7849 implementation from m2_is_string_type_p.
7850 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7851 initializer.
7852 * opencl-lang.c (opencl_language_data): Likewise.
7853 * p-lang.c (pascal_is_string_type_p): Delete function,
7854 implementation moved to pascal_language::is_string_type_p.
7855 (pascal_language_data): Delete la_is_string_type_p initializer.
7856 (pascal_language::is_string_type_p): New member function,
7857 implementation from pascal_is_string_type_p.
7858 * rust-lang.c (rust_is_string_type_p): Delete function,
7859 implementation moved to rust_language::is_string_type_p.
7860 (rust_language_data): Delete la_is_string_type_p initializer.
7861 (rust_language::is_string_type_p): New member function,
7862 implementation from rust_is_string_type_p.
7863 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7864 is_string_type_p.
7865
7866 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7867
7868 * ada-lang.c (ada_language_data): Delete la_print_typedef
7869 initializer.
7870 (ada_language::print_typedef): New member function.
7871 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7872 (cplus_language_data): Likewise.
7873 (asm_language_data): Likewise.
7874 (minimal_language_data): Likewise.
7875 * d-lang.c (d_language_data): Likewise.
7876 * f-lang.c (f_language_data): Likewise.
7877 (f_language::print_typedef): New member function.
7878 * go-lang.c (go_language_data): Delete la_print_typedef
7879 initializer.
7880 * language.c (language_defn::print_typedef): Define member
7881 function.
7882 (unknown_language_data): Delete la_print_typedef initializer.
7883 (unknown_language::print_typedef): New member function.
7884 (auto_language_data): Delete la_print_typedef initializer.
7885 (auto_language::print_typedef): New member function.
7886 * language.h (language_data): Delete la_print_typedef field.
7887 (language_defn::print_typedef): Declare new member function.
7888 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7889 (default_print_typedef): Delete declaration.
7890 * m2-lang.c (m2_language_data): Delete la_print_typedef
7891 initializer.
7892 (m2_language::print_typedef): New member function.
7893 * objc-lang.c (objc_language_data): Delete la_print_typedef
7894 initializer.
7895 * opencl-lang.c (opencl_language_data): Likewise.
7896 * p-lang.c (pascal_language_data): Likewise.
7897 (pascal_language::print_typedef): New member function.
7898 * rust-lang.c (rust_print_typedef): Delete function,
7899 implementation moved to rust_language::print_typedef.
7900 (rust_language): Delete la_print_typedef initializer.
7901 (rust_language::print_typedef): New member function,
7902 implementation from rust_print_typedef.
7903 * typeprint.c (default_print_typedef): Delete.
7904
7905 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7906
7907 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7908 (ada_language::printstr): New member function.
7909 * c-lang.c (c_language_data): Delete la_printstr initializer.
7910 (cplus_language_data): Likewise.
7911 (asm_language_data): Likewise.
7912 (minimal_language_data): Likewise.
7913 * d-lang.c (d_language_data): Likewise.
7914 * f-lang.c (f_printstr): Rename to f_language::printstr.
7915 (f_language_data): Delete la_printstr initializer.
7916 (f_language::printstr): New member function, implementation from
7917 f_printstr.
7918 * go-lang.c (go_language_data): Delete la_printstr initializer.
7919 * language.c (language_defn::printstr): Define new member
7920 function.
7921 (unk_lang_printstr): Delete.
7922 (unknown_language_data): Delete la_printstr initializer.
7923 (unknown_language::printstr): New member function.
7924 (auto_language_data): Delete la_printstr initializer.
7925 (auto_language::printstr): New member function.
7926 * language.h (language_data): Delete la_printstr field.
7927 (language_defn::printstr): Declare new member function.
7928 (LA_PRINT_STRING): Update call to printstr.
7929 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7930 (m2_language_data): Delete la_printstr initializer.
7931 (m2_language::printstr): New member function, implementation from
7932 m2_printstr.
7933 * objc-lang.c (objc_language_data): Delete la_printstr
7934 initializer.
7935 * opencl-lang.c (opencl_language_data): Likewise.
7936 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7937 (pascal_language_data): Delete la_printstr initializer.
7938 (pascal_language::printstr): New member function, implementation
7939 from pascal_printstr.
7940 * p-lang.h (pascal_printstr): Delete declaration.
7941 * rust-lang.c (rust_printstr): Update header comment.
7942 (rust_language_data): Delete la_printstr initializer.
7943 (rust_language::printstr): New member function.
7944
7945 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7946
7947 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7948 (ada_language::printchar): New member function.
7949 * c-lang.c (c_language_data): Delete la_printchar initializer.
7950 (cplus_language_data): Likewise.
7951 (asm_language_data): Likewise.
7952 (minimal_language_data): Likewise.
7953 * d-lang.c (d_language_data): Likewise.
7954 * f-lang.c (f_printchar): Rename to f_language::printchar.
7955 (f_language_data): Delete la_printchar initializer.
7956 (f_language::printchar): New member function, implementation from
7957 f_printchar.
7958 * go-lang.c (go_language_data): Delete la_printchar initializer.
7959 * language.c (unk_lang_printchar): Delete.
7960 (language_defn::printchar): Define new member function.
7961 (unknown_language_data): Delete la_printchar initializer.
7962 (unknown_language::printchar): New member function.
7963 (auto_language_data): Delete la_printchar initializer.
7964 (auto_language::printchar): New member function.
7965 * language.h (language_data): Delete la_printchar field.
7966 (language_defn::printchar): Declare new member function.
7967 (LA_PRINT_CHAR): Update call to printchar.
7968 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7969 (m2_language::printchar): New member function.
7970 * objc-lang.c (objc_language_data): Delete la_printchar
7971 initializer.
7972 * opencl-lang.c (opencl_language_data): Likewise.
7973 * p-lang.c (pascal_language_data): Delete la_printchar
7974 initializer.
7975 (pascal_language::printchar): New member function.
7976 * rust-lang.c (rust_printchar): Rename to
7977 rust_language::printchar.
7978 (rust_language_data): Delete la_printchar initializer.
7979 (rust_language::printchar): New member function, implementation
7980 from rust_printchar.
7981
7982 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7985 (ada_language_data): Delete la_emitchar initializer.
7986 (ada_language::emitchar): New member function, implementation from
7987 emit_char.
7988 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7989 (cplus_language_data): Likewise.
7990 (asm_language_data): Likewise.
7991 (minimal_language_data): Likewise.
7992 * d-lang.c (d_language_data): Likewise.
7993 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7994 (f_language_data): Delete la_emitchar initializer.
7995 (f_language::emitchar): New member function, implementation from
7996 f_emit_char.
7997 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7998 * language.c (unk_lang_emit_char): Delete.
7999 (language_defn::emitchar): New member function definition.
8000 (unknown_language_data): Delete la_emitchar initializer.
8001 (unknown_language::emitchar): New member function.
8002 (auto_language_data): Delete la_emitchar initializer.
8003 (auto_language::emitchar): New member function.
8004 * language.h (language_data): Delete la_emitchar field.
8005 (language_defn::emitchar): New member field declaration.
8006 (LA_EMIT_CHAR): Update call to emitchar.
8007 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8008 (m2_language_data): Delete la_emitchar initializer.
8009 (m2_language::emitchar): New member function, implementation from
8010 m2_emit_char.
8011 * objc-lang.c (objc_language_data): Delete la_emitchar
8012 initializer.
8013 * opencl-lang.c (opencl_language_data): Likewise.
8014 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8015 (pascal_language_data): Delete la_emitchar initializer.
8016 (pascal_language::emitchar): New member function, implementation
8017 from pascal_emit_char.
8018 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8019 (rust_language_data): Delete la_emitchar initializer.
8020 (rust_language::emitchar): New member function, implementation
8021 from rust_emitchar.
8022
8023 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8024
8025 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8026 (ada_language_data): Delete la_post_parser initializer.
8027 (ada_language::post_parser): New member function.
8028 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8029 (cplus_language_data): Likewise.
8030 (asm_language_data): Likewise.
8031 (minimal_language_data): Likewise.
8032 * d-lang.c (d_language_data): Likewise.
8033 * f-lang.c (f_language_data): Likewise.
8034 * go-lang.c (go_language_data): Likewise.
8035 * language.c (unknown_language_data): Likewise.
8036 (auto_language_data): Likewise.
8037 * language.h (language_data): Delete la_post_parser field.
8038 (language_defn::post_parser): New member function.
8039 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8040 * objc-lang.c (objc_language_data): Likewise.
8041 * opencl-lang.c (opencl_language_data): Likewise.
8042 * p-lang.c (pascal_language_data): Likewise.
8043 * parse.c (parse_exp_in_context): Update call to post_parser.
8044 (null_post_parser): Delete definition.
8045 * parser-defs.h (null_post_parser): Delete declaration.
8046 * rust-lang.c (rust_language_data): Delete la_post_parser
8047 initializer.
8048
8049 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8050
8051 * ada-lang.c (parse): Rename to ada_language::parser.
8052 (ada_language_data): Delete la_parser initializer.
8053 (ada_language::parser): New member function, implementation from
8054 parse.
8055 * c-lang.c (c_language_data): Delete la_parser initializer.
8056 (cplus_language_data): Likewise.
8057 (asm_language_data): Likewise.
8058 (minimal_language_data): Likewise.
8059 * d-lang.c (d_language_data): Likewise.
8060 (d_language::parser): New member function.
8061 * f-lang.c (f_language_data): Delete la_parser initializer.
8062 (f_language::parser): New member function.
8063 * go-lang.c (go_language_data): Delete la_parser initializer.
8064 (go_language::parser): New member function.
8065 * language.c (unk_lang_parser): Delete.
8066 (language_defn::parser): Define new member function.
8067 (unknown_language_data): Delete la_parser initializer.
8068 (unknown_language::parser): New member function.
8069 (auto_language_data): Delete la_parser initializer.
8070 (auto_language::parser): New member function.
8071 * language.h (language_data): Delete la_parser field.
8072 (language_defn::parser): Declare new member function.
8073 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8074 (m2_language::parser): New member function.
8075 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8076 * opencl-lang.c (opencl_language_data): Likewise.
8077 * p-lang.c (pascal_language_data): Likewise.
8078 (pascal_language::parser): New member function.
8079 * parse.c (parse_exp_in_context): Update call to parser.
8080 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8081 (rust_language::parser): New member function.
8082
8083 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8084
8085 * top.c (print_gdb_configuration): Print --with-python-libdir
8086 configuration value.
8087
8088 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8089
8090 * NEWS: Mention change to the alias command.
8091
8092 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8093
8094 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8095 (alias_command_completer)
8096 (make_alias_options_def_group): New functions.
8097 (alias_opts, alias_option_defs): New struct and array.
8098 (alias_usage_error): Update usage.
8099 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8100 Use option framework.
8101 (_initialize_cli_cmds): Update alias command help.
8102 Update aliases command help.
8103 (show_user):
8104 Add NULL for new default_args lookup_cmd argument.
8105 (valid_command_p): Rename to validate_aliased_command.
8106 Add NULL for new default_args lookup_cmd argument. Verify that the
8107 aliased_command has no default args.
8108 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8109 (lookup_cmd_1, lookup_cmd): New argument default_args.
8110 (add_alias_cmd):
8111 Add NULL for new default_args lookup_cmd argument.
8112 (print_help_for_command): Show default args under the layout
8113 alias some_alias = some_aliased_cmd some_alias_default_arg.
8114 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8115 xfree default_args in destructor.
8116 * cli/cli-script.c (process_next_line, do_define_command):
8117 Add NULL for new default_args lookup_cmd argument.
8118 * command.h: Declare new default_args argument in lookup_cmd
8119 and lookup_cmd_1.
8120 * completer.c (complete_line_internal_1):
8121 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8122 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8123 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8124 Likewise.
8125 * infcmd.c (_initialize_infcmd): Likewise.
8126 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8127 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8128 * python/py-param.c (add_setshow_generic): Likewise.
8129 * remote.c (_initialize_remote): Likewise.
8130 * top.c (execute_command): Prepend default_args if command has some.
8131 (set_verbose):
8132 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8133 * tracepoint.c (validate_actionline, encode_actions_1):
8134 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8135
8136 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8137
8138 * jit.c (jit_read_descriptor): Use bool as the return type.
8139 (jit_breakpoint_re_set_internal): Use bool as the return type.
8140 Invert the return value logic; return true if the jit breakpoint
8141 has been successfully initialized.
8142 (jit_inferior_init): Update the call to
8143 jit_breakpoint_re_set_internal.
8144
8145 2020-06-22 Pedro Alves <palves@redhat.com>
8146
8147 PR gdb/25939
8148 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8149 Use the current inferior instead. Don't return
8150 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8151 wait again.
8152 * sol-thread.c (sol_thread_target::wait): Don't reference
8153 inferior_ptid.
8154 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8155 (sol_update_thread_list_callback): Use the current inferior's pid
8156 instead of inferior_ptid.
8157
8158 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8159
8160 * procfs.c: Cleanup many comments.
8161
8162 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8163 (AFTER_WATCHFLAG): Replace by value.
8164
8165 (MAIN_PROC_NAME_FORMAT): Inline ...
8166 (create_procinfo): ... here.
8167
8168 (procfs_debug_inferior): Remove SYS_exec handling.
8169 (syscall_is_exec): Likewise.
8170 (procfs_set_exec_trap): Likewise.
8171
8172 (syscall_is_lwp_exit): Inline in callers.
8173 (syscall_is_exit): Likewise.
8174 (syscall_is_exec): Likewise.
8175 (syscall_is_lwp_create): Likewise.
8176
8177 (invalidate_cache): Remove #if 0 code.
8178
8179 (make_signal_thread_runnable): Remove.
8180 (procfs_target::resume): Remove #if 0 code.
8181
8182 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8183
8184 PR gdb/25939
8185 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8186 call ...
8187 (procfs_target::create_inferior): ... here.
8188
8189 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8190
8191 * exec.c (validate_exec_file): Ensure the build-id is up to
8192 date by calling reopen_exec_file (that checks file timestamp
8193 to decide to re-read the file).
8194
8195 2020-06-18 Pedro Alves <palves@redhat.com>
8196
8197 PR gdb/25412
8198 * gdbthread.h (delete_thread, delete_thread_silent)
8199 (find_thread_ptid): Update comments.
8200 * thread.c (current_thread_): New global.
8201 (is_current_thread): Move higher, and reimplement.
8202 (inferior_thread): Reimplement.
8203 (set_thread_exited): Use bool. Add assertions.
8204 (add_thread_silent): Simplify thread-reuse handling by always
8205 calling delete_thread.
8206 (delete_thread): Remove intro comment.
8207 (find_thread_ptid): Skip exited threads.
8208 (switch_to_thread_no_regs): Write to current_thread_.
8209 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8210 INFERIOR_PTID. Clear current_thread_.
8211
8212 2020-06-18 Pedro Alves <palves@redhat.com>
8213
8214 * aix-thread.c (pd_update): Use switch_to_thread.
8215
8216 2020-06-18 Pedro Alves <palves@redhat.com>
8217
8218 * ravenscar-thread.c (ravenscar_thread_target): Update.
8219 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8220 (ravenscar_thread_target::add_active_thread): ... this. Don't
8221 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8222 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8223
8224 2020-06-18 Pedro Alves <palves@redhat.com>
8225
8226 * nat/windows-nat.c (current_windows_thread): Remove.
8227 * nat/windows-nat.h (current_windows_thread): Remove.
8228 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8229 Adjust.
8230 (display_selectors): Adjust to fetch the current
8231 windows_thread_info based on inferior_ptid.
8232 (fake_create_process): No longer write to current_windows_thread.
8233 (windows_nat_target::get_windows_debug_event):
8234 Don't set inferior_ptid or current_windows_thread.
8235 (windows_nat_target::wait): Adjust to not rely on
8236 current_windows_thread.
8237 (do_initial_windows_stuff): Now a method of windows_nat_target.
8238 Switch to the last_ptid thread.
8239 (windows_nat_target::attach): Adjust.
8240 (windows_nat_target::detach): Use switch_to_no_thread instead of
8241 writing to inferior_ptid directly.
8242 (windows_nat_target::create_inferior): Adjust.
8243
8244 2020-06-18 Pedro Alves <palves@redhat.com>
8245
8246 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8247
8248 2020-06-18 Pedro Alves <palves@redhat.com>
8249
8250 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8251 after creating it, instead of writing to inferior_ptid. Don't
8252 write to inferior_ptid.
8253
8254 2020-06-18 Pedro Alves <palves@redhat.com>
8255
8256 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8257
8258 2020-06-18 Pedro Alves <palves@redhat.com>
8259
8260 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8261 it, instead of writing to inferior_ptid.
8262
8263 2020-06-18 Pedro Alves <palves@redhat.com>
8264
8265 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8266 to inferior_ptid.
8267
8268 2020-06-18 Pedro Alves <palves@redhat.com>
8269
8270 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8271 instead of writing to inferior_ptid directly.
8272
8273 2020-06-18 Pedro Alves <palves@redhat.com>
8274
8275 * corelow.c (core_target::close): Use switch_to_no_thread instead
8276 of writing to inferior_ptid directly.
8277 (add_to_thread_list, core_target_open): Use switch_to_thread
8278 instead of writing to inferior_ptid directly.
8279
8280 2020-06-18 Pedro Alves <palves@redhat.com>
8281
8282 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8283 inferior_ptid.
8284 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8285 inferior_ptid.
8286 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8287 inferior_ptid directly.
8288 (darwin_nat_target::init_thread_list): Switch to thread, instead
8289 of writing to inferior_ptid.
8290 (darwin_nat_target::attach): Don't write to inferior_ptid.
8291 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8292
8293 2020-06-18 Pedro Alves <palves@redhat.com>
8294
8295 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8296 thread.
8297 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8298 Instead use switch_to_thread.
8299 (gnu_nat_target::detach): Use switch_to_no_thread
8300 instead of writing to inferior_ptid directly. Used passed-in
8301 inferior instead of looking up the inferior by pid.
8302
8303 2020-06-18 Pedro Alves <palves@redhat.com>
8304
8305 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8306 inferior_ptid.
8307
8308 2020-06-18 Pedro Alves <palves@redhat.com>
8309
8310 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8311 inferior_ptid.
8312 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8313 thread.
8314 (nto_procfs_target::detach): Avoid referencing
8315 inferior_ptid. Use switch_to_no_thread instead of writing to
8316 inferior_ptid directly.
8317 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8318 instead of writing to inferior_ptid directly.
8319 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8320 to thread.
8321
8322 2020-06-18 Pedro Alves <palves@redhat.com>
8323
8324 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8325 after creating it, instead of writing to inferior_ptid.
8326 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8327 to inferior_ptid directly.
8328 (gdbsim_target::wait): Don't write to inferior_ptid.
8329
8330 2020-06-18 Pedro Alves <palves@redhat.com>
8331
8332 * remote.c (remote_target::remote_notice_new_inferior): Use
8333 switch_to_thread instead of writing to inferior_ptid directly.
8334 (remote_target::add_current_inferior_and_thread): Use
8335 switch_to_no_thread instead of writing to inferior_ptid directly.
8336 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8337 and switch_to_thread instead of using set_current_inferior or
8338 writing to inferior_ptid directly.
8339
8340 2020-06-18 Pedro Alves <palves@redhat.com>
8341
8342 * tracectf.c (ctf_target_open): Switch to added thread instead of
8343 writing to inferior_ptid directly.
8344 (ctf_target::close): Use switch_to_no_thread instead of writing to
8345 inferior_ptid directly.
8346
8347 2020-06-18 Pedro Alves <palves@redhat.com>
8348
8349 * tracefile-tfile.c (tfile_target_open): Don't write to
8350 inferior_ptid directly, instead switch to added thread.
8351 (tfile_target::close): Use switch_to_no_thread instead of writing
8352 to inferior_ptid directly.
8353
8354 2020-06-18 Pedro Alves <palves@redhat.com>
8355
8356 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8357 (procfs_target::detach): Use switch_to_no_thread
8358 instead of writing to inferior_ptid directly.
8359 (do_attach): Change return type to void. Switch to the added
8360 thread.
8361 (procfs_target::create_inferior): Switch to the added thread.
8362 (procfs_do_thread_registers): Don't write to inferior_ptid.
8363
8364 2020-06-18 Pedro Alves <palves@redhat.com>
8365
8366 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8367 of writing to inferior_ptid.
8368 (scoped_restore_exited_inferior): Delete.
8369 (handle_vfork_child_exec_or_exit): Simplify using
8370 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8371 instead of writing to inferior_ptid.
8372 (THREAD_STOPPED_BY): Delete.
8373 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8374 (thread_stopped_by_hw_breakpoint): Delete.
8375 (save_waitstatus): Use
8376 scoped_restore_current_thread+switch_to_thread, and call
8377 target_stopped_by_watchpoint instead of
8378 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8379 instead of thread_stopped_by_sw_breakpoint, and
8380 target_stopped_by_hw_breakpoint instead of
8381 thread_stopped_by_hw_breakpoint.
8382 (handle_inferior_event)
8383 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8384 inferior_ptid directly, nor
8385 set_current_inferior/set_current_program_space. Use
8386 switch_to_thread / switch_to_inferior_no_thread instead.
8387
8388 2020-06-18 Pedro Alves <palves@redhat.com>
8389
8390 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8391 instead of writing to inferior_ptid.
8392
8393 2020-06-18 Pedro Alves <palves@redhat.com>
8394
8395 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8396 added thread.
8397 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8398 to the added thread.
8399 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8400 instead of writing to inferior_ptid.
8401
8402 2020-06-18 Pedro Alves <palves@redhat.com>
8403
8404 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8405 (register_to_value_test): Mock a program_space too. Heap-allocate
8406 the address space. Don't write to inferior_ptid. Use
8407 switch_to_thread instead.
8408
8409 2020-06-18 Pedro Alves <palves@redhat.com>
8410
8411 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8412 Delete.
8413 (find_signalled_thread()): New, factored out from
8414 linux_make_corefile_notes and adjusted to handle exited threads.
8415 (linux_make_corefile_notes): Adjust to use the new
8416 find_signalled_thread.
8417
8418 2020-06-18 Pedro Alves <palves@redhat.com>
8419
8420 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8421 of saving/restoring inferior_ptid.
8422
8423 2020-06-17 Tom Tromey <tom@tromey.com>
8424
8425 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8426 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8427 declare.
8428 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8429
8430 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8431
8432 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8433 of partial symtabs.
8434
8435 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8436
8437 * regformats/reg-arm.dat: Remove.
8438 * regformats/reg-bfin.dat: Remove.
8439 * regformats/reg-cris.dat: Remove.
8440 * regformats/reg-crisv32.dat: Remove.
8441 * regformats/reg-m32r.dat: Remove.
8442 * regformats/reg-tilegx.dat: Remove.
8443 * regformats/reg-tilegx32.dat: Remove.
8444
8445 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8446
8447 * features/Makefile (WHICH): Remove arm files.
8448 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8449 * regformats/arm/arm-with-neon.dat: Remove.
8450 * regformats/arm/arm-with-vfpv2.dat: Remove.
8451 * regformats/arm/arm-with-vfpv3.dat: Remove.
8452
8453 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8454
8455 * features/Makefile (XMLTOC): Remove rx.xml.
8456
8457 2020-06-17 Pedro Alves <palves@redhat.com>
8458
8459 * gdbthread.h (thread_control_state) <trap_expected> Update
8460 comments.
8461
8462 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8463
8464 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8465 ada_language::lookup_symbol_nonlocal.
8466 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8467 (ada_language::lookup_symbol_nonlocal): New member function,
8468 implementation from ada_lookup_symbol_nonlocal.
8469 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8470 initializer.
8471 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8472 initializer.
8473 (cplus_language::lookup_symbol_nonlocal): New member function.
8474 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8475 (minimal_language_data) Likewise.
8476 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8477 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8478 initializer.
8479 (d_language::lookup_symbol_nonlocal): New member function.
8480 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8481 initializer.
8482 (f_language::lookup_symbol_nonlocal): New member function.
8483 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8484 initializer.
8485 * language.c (unknown_language_data): Likewise.
8486 (auto_language_data): Likewise.
8487 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8488 field.
8489 (language_defn::lookup_symbol_nonlocal): New member function.
8490 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8491 initializer.
8492 * objc-lang.c (objc_language_data): Likewise.
8493 * opencl-lang.c (opencl_language_data): Likewise.
8494 * p-lang.c (pascal_language_data): Likewise.
8495 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8496 rust_language::lookup_symbol_nonlocal.
8497 (rust_language_data): Delete la_lookup_symbol_nonlocal
8498 initializer.
8499 (rust_language::lookup_symbol_nonlocal): New member function,
8500 implementation from rust_lookup_symbol_nonlocal.
8501 * symtab.c (lookup_symbol_aux): Update call to
8502 lookup_symbol_nonlocal.
8503 (basic_lookup_symbol_nonlocal): Rename to...
8504 (language_defn::lookup_symbol_nonlocal): ...this, and update
8505 header comment. Remove language_defn parameter, and replace with
8506 uses of `this'.
8507 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8508
8509 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8510
8511 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8512 initializer.
8513 (ada_language::value_print_inner): New member function.
8514 * c-lang.c (c_language_data): Delete la_value_print_inner
8515 initializer.
8516 (cplus_language_data): Likewise.
8517 (asm_language_data): Likewise.
8518 (minimal_language_data): Likewise.
8519 * d-lang.c (d_language_data): Likewise.
8520 (d_language::value_print_inner): New member function.
8521 * f-lang.c (f_language_data): Delete la_value_print_inner
8522 initializer.
8523 (f_language::value_print_inner): New member function.
8524 * f-lang.h (f_value_print_innner): Rename to...
8525 (f_value_print_inner): ...this (note spelling of 'inner').
8526 * f-valprint.c (f_value_print_innner): Rename to...
8527 (f_value_print_inner): ...this (note spelling of 'inner').
8528 * go-lang.c (go_language_data): Delete la_value_print_inner
8529 initializer.
8530 (go_language::value_print_inner): New member function.
8531 * language.c (language_defn::value_print_inner): Define new member
8532 function.
8533 (unk_lang_value_print_inner): Delete.
8534 (unknown_language_data): Delete la_value_print_inner initializer.
8535 (unknown_language::value_print_inner): New member function.
8536 (auto_language_data): Delete la_value_print_inner initializer.
8537 (auto_language::value_print_inner): New member function.
8538 * language.h (language_data): Delete la_value_print_inner field.
8539 (language_defn::value_print_inner): Delcare new member function.
8540 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8541 initializer.
8542 (m2_language::value_print_inner): New member function.
8543 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8544 initializer.
8545 * opencl-lang.c (opencl_language_data): Likewise.
8546 * p-lang.c (pascal_language_data): Likewise.
8547 (pascal_language::value_print_inner): New member function.
8548 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8549 initializer.
8550 (rust_language::value_print_inner): New member function.
8551 * valprint.c (do_val_print): Update call to value_print_inner.
8552
8553 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8554
8555 * ada-lang.c (ada_language_data): Delete la_value_print
8556 initializer.
8557 (ada_language::value_print): New member function.
8558 * c-lang.c (c_language_data): Delete la_value_print initializer.
8559 (cplus_language_data): Likewise.
8560 (asm_language_data): Likewise.
8561 (minimal_language_data): Likewise.
8562 * d-lang.c (d_language_data): Likewise.
8563 * f-lang.c (f_language_data): Likewise.
8564 * go-lang.c (go_language_data): Likewise.
8565 * language.c (unk_lang_value_print): Delete.
8566 (language_defn::value_print): Define new member function.
8567 (unknown_language_data): Delete la_value_print initializer.
8568 (unknown_language::value_print): New member function.
8569 (auto_language_data): Delete la_value_print initializer.
8570 (auto_language::value_print): New member function.
8571 * language.h (language_data): Delete la_value_print field.
8572 (language_defn::value_print): Declare new member function.
8573 (LA_VALUE_PRINT): Update call to value_print.
8574 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8575 * objc-lang.c (objc_language_data): Likewise.
8576 * opencl-lang.c (opencl_language_data): Likewise.
8577 * p-lang.c (pascal_language_data): Likewise.
8578 (pascal_language::value_print): New member function.
8579 * rust-lang.c (rust_language_data): Delete la_value_print
8580 initializer.
8581
8582 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8583
8584 * ada-lang.c (ada_watch_location_expression): Rename to
8585 ada_language::watch_location_expression.
8586 (ada_language_data): Delete la_watch_location_expression
8587 initializer.
8588 (ada_language::watch_location_expression): New member function,
8589 implementation from ada_watch_location_expression.
8590 * breakpoint.c (watch_command_1): Update call to
8591 watch_location_expression.
8592 * c-lang.c (c_watch_location_expression): Rename to
8593 language_defn::watch_location_expression.
8594 (c_language_data): Delete la_watch_location_expression
8595 initializer.
8596 (cplus_language_data): Likewise.
8597 (asm_language_data): Likewise.
8598 (minimal_language_data): Likewise.
8599 * c-lang.h (c_watch_location_expression): Delete declaration.
8600 * d-lang.c (d_language_data): Delete la_watch_location_expression
8601 initializer.
8602 * f-lang.c (f_language_data): Likewise.
8603 * go-lang.c (go_language_data): Likewise.
8604 * language.c (language_defn::watch_location_expression): Member
8605 function implementation from c_watch_location_expression.
8606 (unknown_language_data): Delete la_watch_location_expression
8607 initializer.
8608 (auto_language_data): Likewise.
8609 * language.h (language_data): Delete la_watch_location_expression
8610 field.
8611 (language_defn::watch_location_expression): Declare new member
8612 function.
8613 * m2-lang.c (m2_language_data): Delete
8614 la_watch_location_expression initializer.
8615 * objc-lang.c (objc_language_data): Likewise.
8616 * opencl-lang.c (opencl_language_data): Likewise.
8617 * p-lang.c (pascal_language_data): Likewise.
8618 * rust-lang.c (rust_watch_location_expression): Rename to
8619 rust_language::watch_location_expression.
8620 (rust_language_data): Delete la_watch_location_expression
8621 initializer.
8622 (rust_language::watch_location_expression): New member function,
8623 implementation from rust_watch_location_expression.
8624
8625 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8626
8627 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8628 ada_language::collect_symbol_completion_matches.
8629 (ada_language_data): Delete la_collect_symbol_completion_matches
8630 initializer.
8631 (ada_language::collect_symbol_completion_matches): New member
8632 function, implementation from
8633 ada_collect_symbol_completion_matches.
8634 * c-lang.c (c_language_data): Delete
8635 la_collect_symbol_completion_matches initializer.
8636 (cplus_language_data): Likewise.
8637 (asm_language_data): Likewise.
8638 (minimal_language_data): Likewise.
8639 * d-lang.c (d_language_data): Likewise.
8640 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8641 f_language::collect_symbol_completion_matches.
8642 (f_language_data): Delete la_collect_symbol_completion_matches
8643 initializer.
8644 (f_language::collect_symbol_completion_matches) New member
8645 function, implementation from f_collect_symbol_completion_matches.
8646 * go-lang.c (go_language_data): Delete
8647 la_collect_symbol_completion_matches initializer.
8648 * language.c (unknown_language_data): Likewise.
8649 (auto_language_data): Likewise.
8650 * language.h (language_data): Delete
8651 la_collect_symbol_completion_matches field.
8652 (language_defn::collect_symbol_completion_matches): New member
8653 function.
8654 * m2-lang.c (m2_language_data): Delete
8655 la_collect_symbol_completion_matches initializer.
8656 * objc-lang.c (objc_language_data): Likewise.
8657 * opencl-lang.c (opencl_language_data): Likewise.
8658 * p-lang.c (pascal_language_data): Likewise.
8659 * rust-lang.c (rust_language_data): Likewise.
8660 * symtab.c (default_collect_symbol_completion_matches): Delete.
8661 (collect_symbol_completion_matches): Update call to
8662 collect_symbol_completion_matches.
8663 (collect_symbol_completion_matches_type): Likewise.
8664 * symtab.h (default_collect_symbol_completion_matches): Delete
8665 declaration.
8666
8667 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8668
8669 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8670 (ada_language_data): Delete la_word_break_characters initializer.
8671 (ada_language::word_break_characters): New member function.
8672 * c-lang.c (c_language_data): Delete la_word_break_characters
8673 initializer.
8674 (cplus_language_data): Likewise.
8675 (asm_language_data): Likewise.
8676 (minimal_language_data): Likewise.
8677 * completer.c: Update global comment.
8678 (advance_to_expression_complete_word_point): Update call to
8679 word_break_characters.
8680 (complete_files_symbols): Likewise.
8681 (complete_line_internal_1): Likewise.
8682 (default_completer_handle_brkchars): Likewise.
8683 (skip_quoted_chars): Likewise.
8684 * d-lang.c (d_language_data): Delete la_word_break_characters
8685 initializer.
8686 * f-lang.c (f_word_break_characters): Delete.
8687 (f_language_data): Delete la_word_break_characters initializer.
8688 (f_language::word_break_characters): New member function.
8689 * go-lang.c (go_language_data): Delete la_word_break_characters
8690 initializer.
8691 * language.c (unknown_language_data): Likewise.
8692 (auto_language_data): Likewise.
8693 * language.h (default_word_break_characters): Move declaration to
8694 earlier in the file.
8695 (language_data): Delete la_word_break_characters field.
8696 (language_defn::word_break_characters): New member function.
8697 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8698 initializer.
8699 * objc-lang.c (objc_language_data): Likewise.
8700 * opencl-lang.c (opencl_language_data): Likewise.
8701 * p-lang.c (pascal_language_data): Likewise.
8702 * rust-lang.c (rust_language_data): Likewise.
8703
8704 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8705
8706 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8707 (ada_language_data): Delete la_get_symbol_name_matcher
8708 initializer.
8709 (language_defn::get_symbol_name_matcher_inner): New member
8710 function.
8711 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8712 initializer.
8713 (cplus_language_data): Likewise.
8714 (cplus_language::get_symbol_name_matcher_inner): New member
8715 function.
8716 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8717 (minimal_language_data): Likewise.
8718 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8719 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8720 initializer.
8721 * dictionary.c (iter_match_first_hashed): Update call to
8722 get_symbol_name_matcher.
8723 (iter_match_next_hashed): Likewise.
8724 (iter_match_next_linear): Likewise.
8725 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8726 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8727 initializer.
8728 (f_language::get_symbol_name_matcher_inner): New member function.
8729 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8730 initializer.
8731 * language.c (default_symbol_name_matcher): Update header comment,
8732 make static.
8733 (language_defn::get_symbol_name_matcher): New definition.
8734 (language_defn::get_symbol_name_matcher_inner): Likewise.
8735 (get_symbol_name_matcher): Delete.
8736 (unknown_language_data): Delete la_get_symbol_name_matcher
8737 initializer.
8738 (auto_language_data): Likewise.
8739 * language.h (language_data): Delete la_get_symbol_name_matcher
8740 field.
8741 (language_defn::get_symbol_name_matcher): New member function.
8742 (language_defn::get_symbol_name_matcher_inner): Likewise.
8743 (default_symbol_name_matcher): Delete declaration.
8744 * linespec.c (find_methods): Update call to
8745 get_symbol_name_matcher.
8746 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8747 initializer.
8748 * minsyms.c (lookup_minimal_symbol): Update call to
8749 get_symbol_name_matcher.
8750 (iterate_over_minimal_symbols): Likewise.
8751 * objc-lang.c (objc_language_data): Delete
8752 la_get_symbol_name_matcher initializer.
8753 * opencl-lang.c (opencl_language_data): Likewise.
8754 * p-lang.c (pascal_language_data): Likewise.
8755 * psymtab.c (psymbol_name_matches): Update call to
8756 get_symbol_name_matcher.
8757 * rust-lang.c (rust_language_data): Delete
8758 la_get_symbol_name_matcher initializer.
8759 * symtab.c (symbol_matches_search_name): Update call to
8760 get_symbol_name_matcher.
8761 (compare_symbol_name): Likewise.
8762
8763 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8764
8765 * ada-lang.c (ada_language_data): Delete la_compute_program
8766 initializer.
8767 * c-lang.c (c_language_data): Likewise.
8768 (c_language::compute_program): New member function.
8769 (cplus_language_data): Delete la_compute_program initializer.
8770 (cplus_language::compute_program): New member function.
8771 (asm_language_data): Delete la_compute_program initializer.
8772 (minimal_language_data): Likewise.
8773 * c-lang.h (c_compute_program): Update comment.
8774 (cplus_compute_program): Likewise.
8775 * compile/compile-c-support.c (c_compute_program): Likewise.
8776 (cplus_compute_program): Likewise.
8777 * compile/compile.c (compile_to_object): Update call to
8778 la_compute_program.
8779 * d-lang.c (d_language_data): Delete la_compute_program
8780 initializer.
8781 * f-lang.c (f_language_data): Likewise.
8782 * go-lang.c (go_language_data): Likewise.
8783 * language.c (unknown_language_data): Likewise.
8784 (auto_language_data): Likewise.
8785 * language.h (language_data): Delete la_compute_program field.
8786 (language_defn::compute_program): New member function.
8787 * m2-lang.c (m2_language_data): Delete la_compute_program
8788 initializer.
8789 * objc-lang.c (objc_language_data): Likewise.
8790 * opencl-lang.c (opencl_language_data): Likewise.
8791 * p-lang.c (pascal_language_data): Likewise.
8792 * rust-lang.c (rust_language_data): Likewise.
8793
8794 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8795
8796 * ada-lang.c (ada_language_data) Delete
8797 la_class_name_from_physname initializer.
8798 * c-lang.c (c_language_data): Likewise.
8799 (cplus_language_data): Likewise.
8800 (cplus_language::class_name_from_physname): New member function.
8801 (asm_language_data): Delete la_class_name_from_physname
8802 initializer.
8803 (minimal_language_data): Likewise.
8804 * d-lang.c (d_language_data): Likewise.
8805 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8806 method on language_defn class.
8807 (guess_full_die_structure_name): Likewise.
8808 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8809 initializer.
8810 * go-lang.c (go_language_data): Likewise.
8811 * language.c (language_class_name_from_physname): Delete.
8812 (unk_lang_class_name): Delete.
8813 (unknown_language_data): Delete la_class_name_from_physname
8814 initializer.
8815 (auto_language_data): Likewise.
8816 * language.h (language_data): Delete la_class_name_from_physname
8817 field.
8818 (language_defn::class_name_from_physname): New function.
8819 (language_class_name_from_physname): Delete declaration.
8820 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8821 initializer.
8822 * objc-lang.c (objc_language_data): Likewise.
8823 * opencl-lang.c (opencl_language_data): Likewise.
8824 * p-lang.c (pascal_language_data): Likewise.
8825 * rust-lang.c (rust_language_data): Likewise.
8826
8827 2020-06-16 Tom Tromey <tom@tromey.com>
8828
8829 * tui/tui-data.h (STATUS_NAME): New macro.
8830 * tui/tui-layout.c (tui_remove_some_windows)
8831 (initialize_known_windows, tui_register_window)
8832 (tui_layout_split::remove_windows, initialize_layouts)
8833 (tui_new_layout_command): Don't use hard-coded window names.
8834
8835 2020-06-16 Tom Tromey <tom@tromey.com>
8836
8837 PR tui/25348:
8838 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8839 tui_initialize_readline. Only run once. Call rl_initialize.
8840 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8841 tui_initialize_readline.
8842 * tui/tui-io.c (tui_setup_io): Call
8843 tui_ensure_readline_initialized.
8844 * tui/tui-interp.c (tui_interp::init): Update.
8845
8846 2020-06-16 Tom Tromey <tom@tromey.com>
8847
8848 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8849 Also preserve the status window.
8850
8851 2020-06-16 Tom Tromey <tom@tromey.com>
8852
8853 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8854 where m_window==nullptr.
8855
8856 2020-06-15 Tom Tromey <tromey@adacore.com>
8857
8858 * windows-nat.c (windows_nat::handle_output_debug_string):
8859 Update.
8860 (windows_nat::handle_ms_vc_exception): Update.
8861 * target.h (target_read_string): Change API.
8862 * target.c (target_read_string): Change API.
8863 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8864 Update.
8865 * solib-frv.c (frv_current_sos): Update.
8866 * solib-dsbt.c (dsbt_current_sos): Update.
8867 * solib-darwin.c (darwin_current_sos): Update.
8868 * linux-thread-db.c (inferior_has_bug): Update.
8869 * expprint.c (print_subexp_standard): Update.
8870 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8871 (ada_exception_message_1): Update.
8872
8873 2020-06-15 Tom Tromey <tromey@adacore.com>
8874
8875 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8876
8877 2020-06-15 Tom Tromey <tromey@adacore.com>
8878
8879 * valprint.c (read_string): Update comment.
8880 * target.c (MIN): Remove.
8881 (target_read_string): Rewrite.
8882
8883 2020-06-15 Tom Tromey <tromey@adacore.com>
8884
8885 * corefile.c (read_memory_string): Remove.
8886 * ada-valprint.c (ada_value_print_ptr): Update.
8887 * ada-lang.h (ada_tag_name): Change return type.
8888 * ada-lang.c (type_from_tag): Update.
8889 (ada_tag_name_from_tsd): Change return type. Use
8890 target_read_string.
8891 (ada_tag_name): Likewise.
8892 * gdbcore.h (read_memory_string): Don't declare.
8893
8894 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8895
8896 * symtab.c (rbreak_command): Ignore Windows drive colon.
8897
8898 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8899
8900 * NEWS: Mention removed GDBserver host support.
8901
8902 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8903
8904 * features/riscv/rebuild-csr-xml.sh: Updated.
8905
8906 2020-06-11 Tom Tromey <tom@tromey.com>
8907
8908 PR gdb/18318:
8909 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8910
8911 2020-06-09 Jonny Grant <jg@jguk.org>
8912 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8913
8914 * main.c (captured_main_1): Don't print new line after help.
8915 (print_gdb_help): add mailing list and IRC channel information
8916 to --help. Add new lines between items in the footer. Remove
8917 quotes around bug url.
8918
8919 2020-06-11 Keith Seitz <keiths@redhat.com>
8920
8921 PR gdb/21356
8922 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8923 Resolve typedefs for type length calculations.
8924
8925 2020-06-10 Tom de Vries <tdevries@suse.de>
8926
8927 PR ada/24713
8928 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8929 (write_psymbols): Enable .gdb_index for ada.
8930 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8931 ada.
8932
8933 2020-06-10 Tom de Vries <tdevries@suse.de>
8934
8935 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8936 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8937 namei" instead of "const char *name" argument.
8938 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8939 dw2_symtab_iter_init.
8940
8941 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8942
8943 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8944 to use type::field and field::type instead.
8945
8946 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8947
8948 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8949 to use field::type instead.
8950
8951 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8952
8953 * gdbtypes.h (struct field) <type, set_type>: New methods.
8954 Rename `type` field to...
8955 <m_type>: ... this. Change references throughout to use type or
8956 set_type methods.
8957 (FIELD_TYPE): Use field::type. Change call sites that modify
8958 the field's type to use field::set_type instead.
8959
8960 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8961
8962 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8963 to use type::index_type instead.
8964
8965 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8966
8967 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8968 methods.
8969 (TYPE_INDEX_TYPE): Use type::index_type.
8970 * gdbtypes.c (create_array_type_with_stride): Likewise.
8971
8972 2020-06-07 Tom Tromey <tom@tromey.com>
8973
8974 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8975 parameter.
8976 (generic_value_print): Update.
8977
8978 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8979
8980 Revert commit 982a38f60b0.
8981 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8982
8983 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8984
8985 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8986 avoid use after free.
8987
8988 2020-06-05 Tom de Vries <tdevries@suse.de>
8989
8990 * NEWS: Fix typos.
8991
8992 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8993
8994 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8995 the per_bfd object.
8996 (dwarf2_read_debug_names): Likewise.
8997 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8998 object when re-using a per_bfd object with an index.
8999
9000 2020-06-03 Tom de Vries <tdevries@suse.de>
9001
9002 PR symtab/26046
9003 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9004 children for C++.
9005 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9006 DW_TAG_subprogram.
9007
9008 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9009
9010 * ada-lang.c (ada_language_data): Delete skip_trampoline
9011 initializer.
9012 * c-lang.c (c_language_data): Likewise.
9013 (cplus_language_data): Likewise.
9014 (cplus_language::skip_trampoline): New member function.
9015 (asm_language_data): Delete skip_trampoline initializer.
9016 (minimal_language_data): Likewise.
9017 * d-lang.c (d_language_data): Likewise.
9018 * f-lang.c (f_language_data): Likewise.
9019 * go-lang.c (go_language_data): Likewise.
9020 * language.c (unk_lang_trampoline): Delete function.
9021 (skip_language_trampoline): Update.
9022 (unknown_language_data): Delete skip_trampoline initializer.
9023 (auto_language_data): Likewise.
9024 * language.h (language_data): Delete skip_trampoline field.
9025 (language_defn::skip_trampoline): New function.
9026 * m2-lang.c (m2_language_data): Delete skip_trampoline
9027 initializer.
9028 * objc-lang.c (objc_skip_trampoline): Delete function, move
9029 implementation to objc_language::skip_trampoline.
9030 (objc_language_data): Delete skip_trampoline initializer.
9031 (objc_language::skip_trampoline): New member function with
9032 implementation from objc_skip_trampoline.
9033 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9034 initializer.
9035 * p-lang.c (pascal_language_data): Likewise.
9036 * rust-lang.c (rust_language_data): Likewise.
9037
9038 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9039
9040 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9041 (ada_language::demangle): New member function.
9042 * c-lang.c (c_language_data): Delete la_demangle initializer.
9043 (cplus_language_data): Delete la_demangle initializer.
9044 (cplus_language::demangle): New member function.
9045 (asm_language_data): Delete la_demangle initializer.
9046 (minimal_language_data): Delete la_demangle initializer.
9047 * d-lang.c (d_language_data): Delete la_demangle initializer.
9048 (d_language::demangle): New member function.
9049 * f-lang.c (f_language_data): Delete la_demangle initializer.
9050 (f_language::demangle): New member function.
9051 * go-lang.c (go_language_data): Delete la_demangle initializer.
9052 (go_language::demangle): New member function.
9053 * language.c (language_demangle): Update.
9054 (unk_lang_demangle): Delete.
9055 (unknown_language_data): Delete la_demangle initializer.
9056 (unknown_language::demangle): New member function.
9057 (auto_language_data): Delete la_demangle initializer.
9058 (auto_language::demangle): New member function.
9059 * language.h (language_data): Delete la_demangle field.
9060 (language_defn::demangle): New function.
9061 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9062 * objc-lang.c (objc_language_data): Delete la_demangle
9063 initializer.
9064 (objc_language::demangle): New member function.
9065 * opencl-lang.c (opencl_language_data): Delete la_demangle
9066 initializer.
9067 * p-lang.c (pascal_language_data): Likewise.
9068 * rust-lang.c (rust_language_data): Likewise.
9069 (rust_language::demangle): New member function.
9070
9071 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9072
9073 * ada-lang.c (ada_language_data): Delete la_print_type
9074 initializer.
9075 (ada_language::print_type): New member function.
9076 * c-lang.c (c_language_data): Delete la_print_type initializer.
9077 (c_language::print_type): New member function.
9078 (cplus_language_data): Delete la_print_type initializer.
9079 (cplus_language::print_type): New member function.
9080 (asm_language_data): Delete la_print_type initializer.
9081 (asm_language::print_type): New member function.
9082 (minimal_language_data): Delete la_print_type initializer.
9083 (minimal_language::print_type): New member function.
9084 * d-lang.c (d_language_data): Delete la_print_type initializer.
9085 (d_language::print_type): New member function.
9086 * f-lang.c (f_language_data): Delete la_print_type initializer.
9087 (f_language::print_type): New member function.
9088 * go-lang.c (go_language_data): Delete la_print_type initializer.
9089 (go_language::print_type): New member function.
9090 * language.c (unk_lang_print_type): Delete.
9091 (unknown_language_data): Delete la_print_type initializer.
9092 (unknown_language::print_type): New member function.
9093 (auto_language_data): Delete la_print_type initializer.
9094 (auto_language::print_type): New member function.
9095 * language.h (language_data): Delete la_print_type field.
9096 (language_defn::print_type): New function.
9097 (LA_PRINT_TYPE): Update.
9098 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9099 (m2_language::print_type): New member function.
9100 * objc-lang.c (objc_language_data): Delete la_print_type
9101 initializer.
9102 (objc_language::print_type): New member function.
9103 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9104 to opencl_language::print_type.
9105 (opencl_language_data): Delete la_print_type initializer.
9106 (opencl_language::print_type): New member function, implementation
9107 from opencl_print_type.
9108 * p-lang.c (pascal_language_data): Delete la_print_type
9109 initializer.
9110 (pascal_language::print_type): New member function.
9111 * rust-lang.c (rust_print_type): Delete, implementation moved to
9112 rust_language::print_type.
9113 (rust_language_data): Delete la_print_type initializer.
9114 (rust_language::print_type): New member function, implementation
9115 from rust_print_type.
9116
9117 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9118
9119 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9120 implementation moves to...
9121 (ada_language::sniff_from_mangled_name): ...here. Update return
9122 type.
9123 (ada_language_data): Delete la_sniff_from_mangled_name
9124 initializer.
9125 * c-lang.c (c_language_data): Likewise.
9126 (cplus_language_data): Likewise.
9127 (cplus_language::sniff_from_mangled_name): New member function,
9128 implementation taken from gdb_sniff_from_mangled_name.
9129 (asm_language_data): Delete la_sniff_from_mangled_name
9130 initializer.
9131 (minimal_language_data): Likewise.
9132 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9133 implementation moves to cplus_language::sniff_from_mangled_name.
9134 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9135 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9136 moves to...
9137 (d_language::sniff_from_mangled_name): ...here.
9138 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9139 * f-lang.c (f_language_data): Likewise.
9140 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9141 moves to...
9142 (go_language::sniff_from_mangled_name): ...here.
9143 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9144 * language.c (language_sniff_from_mangled_name): Delete.
9145 (unknown_language_data): Delete la_sniff_from_mangled_name
9146 initializer.
9147 (auto_language_data): Likewise.
9148 * language.h (language_data): Delete la_sniff_from_mangled_name
9149 field.
9150 (language_defn::sniff_from_mangled_name): New function.
9151 (language_sniff_from_mangled_name): Delete declaration.
9152 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9153 field.
9154 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9155 implementation moves to...
9156 (objc_language::sniff_from_mangled_name): ...here.
9157 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9158 * opencl-lang.c (opencl_language_data): Likewise.
9159 * p-lang.c (pascal_language_data): Likewise.
9160 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9161 implementation moves to...
9162 (rust_language::sniff_from_mangled_name): ...here.
9163 (rust_language_data): Delete la_sniff_from_mangled_name
9164 initializer.
9165 * symtab.c (symbol_find_demangled_name): Call
9166 sniff_from_mangled_name member function.
9167
9168 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9169
9170 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9171 initializer.
9172 * c-lang.c (c_language_data): Likewise.
9173 (cplus_language_data): Likewise.
9174 (cplus_language::search_name_hash): New member function.
9175 (asm_language_data): Delete la_search_name_hash initializer.
9176 (minimal_language_data): Likewise.
9177 * d-lang.c (d_language_data): Likewise.
9178 * dictionary.c (default_search_name_hash): Rename to...
9179 (language_defn::search_name_hash): ...this.
9180 * f-lang.c (f_language_data): Likewise.
9181 (f_language::search_name_hash): New member function.
9182 * go-lang.c (go_language_data): Delete la_search_name_hash
9183 initializer.
9184 * language.c (unknown_language_data): Likewise.
9185 (auto_language_data): Likewise.
9186 * language.h (struct language_data): Delete la_search_name_hash
9187 field.
9188 (language_defn::search_name_hash): Declare new member function.
9189 (default_search_name_hash): Delete declaration.
9190 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9191 initializer.
9192 * objc-lang.c (objc_language_data): Likewise.
9193 * opencl-lang.c (opencl_language_data): Likewise.
9194 * p-lang.c (pascal_language_data): Likewise.
9195 * rust-lang.c (rust_language_data): Likewise.
9196 * symtab.c (search_name_hash): Update call.
9197
9198 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9199
9200 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9201 initializer.
9202 * c-lang.c (class compile_instance): Declare.
9203 (c_language_data): Delete la_get_compile_instance initializer.
9204 (c_language::get_compile_instance): New member function.
9205 (cplus_language_data): Delete la_get_compile_instance initializer.
9206 (cplus_language::get_compile_instance): New member function.
9207 (asm_language_data): Delete la_get_compile_instance initializer.
9208 (minimal_language_data): Likewise.
9209 * c-lang.h (c_get_compile_context): Update comment.
9210 (cplus_get_compile_context): Update comment.
9211 * compile/compile.c (compile_to_object): Update calls, don't rely
9212 on function pointer being NULL.
9213 * d-lang.c (d_language_data): Delete la_get_compile_instance
9214 initializer.
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_get_compile_instance field.
9220 (language_defn::get_compile_instance): New member function.
9221 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9222 initializer.
9223 * objc-lang.c (objc_language_data): Likewise.
9224 * opencl-lang.c (opencl_language_data): Likewise.
9225 * p-lang.c (pascal_language_data): Likewise.
9226 * rust-lang.c (rust_language_data): Likewise.
9227
9228 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9229
9230 * ada-lang.c (ada_add_all_symbols): Update comment.
9231 (ada_iterate_over_symbols): Delete, move implementation to...
9232 (ada_language::iterate_over_symbols): ...here, a new member
9233 function, rewrite to use range based for loop.
9234 (ada_language_data): Delete la_iterate_over_symbols initializer.
9235 * c-lang.c (c_language_data): Likewise.
9236 (cplus_language_data): Likewise.
9237 (asm_language_data): Likewise.
9238 (minimal_language_data): Likewise.
9239 * d-lang.c (d_language_data): Likewise.
9240 * f-lang.c (f_language_data): Likewise.
9241 * go-lang.c (go_language_data): Likewise.
9242 * language.c (unknown_language_data): Likewise.
9243 (auto_language_data): Likewise.
9244 * language.h (language_data): Delete la_iterate_over_symbols field.
9245 (language_defn::iterate_over_symbols): New member function.
9246 (LA_ITERATE_OVER_SYMBOLS): Update.
9247 * linespec.c (iterate_over_all_matching_symtabs): Update.
9248 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
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
9255 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9256
9257 * ada-lang.c (ada_language_data): Delete
9258 la_lookup_transparent_type initializer.
9259 * c-lang.c (c_language_data): Likewise.
9260 (cplus_language_data): Likewise.
9261 (cplus_language::lookup_transparent_type): New member function.
9262 (asm_language_data): Delete la_lookup_transparent_type
9263 initializer.
9264 (minimal_language_data): Likewise.
9265 * d-lang.c (d_language_data): Likewise.
9266 * f-lang.c (f_language_data): Likewise.
9267 * go-lang.c (go_language_data): Likewise.
9268 * language.c (unknown_language_data): Likewise.
9269 (auto_language_data): Likewise.
9270 * language.h (struct language_data): Delete
9271 la_lookup_transparent_type field.
9272 (language_defn::lookup_transparent_type): New member function.
9273 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9274 initializer.
9275 * objc-lang.c (objc_language_data): Likewise.
9276 * opencl-lang.c (opencl_language_data): Likewise.
9277 * p-lang.c (pascal_language_data): Likewise.
9278 * rust-lang.c (rust_language_data): Likewise.
9279 * symtab.c (symbol_matches_domain): Update call.
9280
9281 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9282
9283 * ada-lang.c (ada_language_arch_info): Delete function, move
9284 implementation to...
9285 (ada_language::language_arch_info): ...here, a new member
9286 function.
9287 (ada_language_data): Delete la_language_arch_info.
9288 * c-lang.c (c_language_data): Likewise.
9289 (c_language::language_arch_info): New member function.
9290 (cplus_language_arch_info): Delete function, move
9291 implementation to...
9292 (cplus_language::language_arch_info): ...here, a new member
9293 function.
9294 (cplus_language_data): Delete la_language_arch_info.
9295 (asm_language_data): Likewise.
9296 (asm_language::language_arch_info): New member function.
9297 (minimal_language_data): Delete la_language_arch_info.
9298 (minimal_language::language_arch_info): New member function.
9299 * d-lang.c (d_language_arch_info): Delete function, move
9300 implementation to...
9301 (d_language::language_arch_info): ...here, a new member
9302 function.
9303 (d_language_data): Delete la_language_arch_info.
9304 * f-lang.c (f_language_arch_info): Delete function, move
9305 implementation to...
9306 (f_language::language_arch_info): ...here, a new member
9307 function.
9308 (f_language_data): Delete la_language_arch_info.
9309 * go-lang.c (go_language_arch_info): Delete function, move
9310 implementation to...
9311 (go_language::language_arch_info): ...here, a new member
9312 function.
9313 (go_language_data): Delete la_language_arch_info.
9314 * language.c (unknown_language_data): Likewise.
9315 (unknown_language::language_arch_info): New member function.
9316 (auto_language_data): Delete la_language_arch_info.
9317 (auto_language::language_arch_info): New member function.
9318 (language_gdbarch_post_init): Update call to
9319 la_language_arch_info.
9320 * language.h (language_data): Delete la_language_arch_info
9321 function pointer.
9322 (language_defn::language_arch_info): New function.
9323 * m2-lang.c (m2_language_arch_info): Delete function, move
9324 implementation to...
9325 (m2_language::language_arch_info): ...here, a new member
9326 function.
9327 (m2_language_data): Delete la_language_arch_info.
9328 * objc-lang.c (objc_language_arch_info): Delete function, move
9329 implementation to...
9330 (objc_language::language_arch_info): ...here, a new member
9331 function.
9332 (objc_language_data): Delete la_language_arch_info.
9333 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9334 implementation to...
9335 (opencl_language::language_arch_info): ...here, a new member
9336 function.
9337 (opencl_language_data): Delete la_language_arch_info.
9338 * p-lang.c (pascal_language_arch_info): Delete function, move
9339 implementation to...
9340 (pascal_language::language_arch_info): ...here, a new member
9341 function.
9342 (pascal_language_data): Delete la_language_arch_info.
9343 * rust-lang.c (rust_language_arch_info): Delete function, move
9344 implementation to...
9345 (rust_language::language_arch_info): ...here, a new member
9346 function.
9347 (rust_language_data): Delete la_language_arch_info.
9348
9349 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9350
9351 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9352 initializer.
9353 * c-lang.c (c_language_data): Likewise.
9354 (cplus_language_data): Likewise.
9355 (cplus_language::pass_by_reference_info): New method.
9356 (asm_language_data): Delete la_pass_by_reference initializer.
9357 (minimal_language_data): Likewise.
9358 * cp-abi.c (cp_pass_by_reference): Remove use of
9359 default_pass_by_reference.
9360 * d-lang.c (d_language_data): Likewise.
9361 * f-lang.c (f_language_data): Likewise.
9362 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9363 default_pass_by_reference.
9364 * go-lang.c (go_language_data): Likewise.
9365 * language.c (language_pass_by_reference): Update.
9366 (default_pass_by_reference): Delete.
9367 (unknown_language_data): Delete la_pass_by_reference
9368 initializer.
9369 (auto_language_data): Likewise.
9370 * language.h (struct language_data): Delete la_pass_by_reference
9371 field.
9372 (language_defn::pass_by_reference_info): New member function.
9373 (default_pass_by_reference): Delete declaration.
9374 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9375 initializer.
9376 * objc-lang.c (objc_language_data): Likewise.
9377 * opencl-lang.c (opencl_language_data): Likewise.
9378 * p-lang.c (pascal_language_data): Likewise.
9379 * rust-lang.c (rust_language_data): Likewise.
9380
9381 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9382
9383 * ada-lang.c (ada_read_var_value): Delete function, move
9384 implementation to...
9385 (ada_language::read_var_value): ...here.
9386 (ada_language_data): Delete la_read_var_value initializer.
9387 * c-lang.c (c_language_data): Likewise.
9388 (cplus_language_data): Likewise.
9389 (minimal_language_data): Likewise.
9390 * d-lang.c (d_language_data): Likewise.
9391 * f-lang.c (f_language_data): Likewise.
9392 * findvar.c (default_read_var_value): Rename to...
9393 (language_defn::read_var_value): ...this.
9394 * findvar.c (read_var_value): Update header comment, and change to
9395 call member function instead of function pointer.
9396 * go-lang.c (go_language_data): Likewise.
9397 * language.c (unknown_language_data): Delete la_read_var_value
9398 initializer.
9399 (auto_language_data): Likewise.
9400 * language.h (struct language_data): Delete la_read_var_value
9401 field.
9402 (language_defn::read_var_value): New member function.
9403 (default_read_var_value): Delete declaration.
9404 * m2-lang.c (m2_language_data): Delete la_read_var_value
9405 initializer.
9406 * objc-lang.c (objc_language_data): Likewise.
9407 * opencl-lang.c (opencl_language_data): Likewise.
9408 * p-lang.c (pascal_language_data): Likewise.
9409 * rust-lang.c (rust_language_data): Likewise.
9410 * value.h (default_read_var_value): Delete declaration.
9411
9412 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9413
9414 * ada-lang.c (ada_print_array_index): Delete function, move
9415 implementation to...
9416 (ada_language::print_array_index): ...here.
9417 (ada_language_data): Delete la_print_array_index initializer.
9418 * c-lang.c (c_language_data): Likewise.
9419 (cplus_language_data): Likewise.
9420 (minimal_language_data): Likewise.
9421 * d-lang.c (d_language_data): Likewise.
9422 * f-lang.c (f_language_data): Likewise.
9423 * go-lang.c (go_language_data): Likewise.
9424 * language.c (default_print_array_index): Delete function, move
9425 implementation to...
9426 (language_defn::print_array_index): ...here.
9427 (unknown_language_data): Delete la_print_array_index initializer.
9428 (auto_language_data): Likewise.
9429 * language.h (struct language_data): Delete la_print_array_index
9430 field.
9431 (language_defn::print_array_index): New member function.
9432 (LA_PRINT_ARRAY_INDEX): Update.
9433 (default_print_array_index): Delete declaration.
9434 * m2-lang.c (m2_language_data): Delete la_print_array_index
9435 initializer.
9436 * objc-lang.c (objc_language_data): Likewise.
9437 * opencl-lang.c (opencl_language_data): Likewise.
9438 * p-lang.c (pascal_language_data): Likewise.
9439 * rust-lang.c (rust_language_data): Likewise.
9440
9441 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9442
9443 * gdb/ada-lang.c (ada_language_defn): Convert to...
9444 (ada_language_data): ...this.
9445 (class ada_language): New class.
9446 (ada_language_defn): New static global.
9447 * gdb/c-lang.c (c_language_defn): Convert to...
9448 (c_language_data): ...this.
9449 (class c_language): New class.
9450 (c_language_defn): New static global.
9451 (cplus_language_defn): Convert to...
9452 (cplus_language_data): ...this.
9453 (class cplus_language): New class.
9454 (cplus_language_defn): New static global.
9455 (asm_language_defn): Convert to...
9456 (asm_language_data): ...this.
9457 (class asm_language): New class.
9458 (asm_language_defn): New static global.
9459 (minimal_language_defn): Convert to...
9460 (minimal_language_data): ...this.
9461 (class minimal_language): New class.
9462 (minimal_language_defn): New static global.
9463 * gdb/d-lang.c (d_language_defn): Convert to...
9464 (d_language_data): ...this.
9465 (class d_language): New class.
9466 (d_language_defn): New static global.
9467 * gdb/f-lang.c (f_language_defn): Convert to...
9468 (f_language_data): ...this.
9469 (class f_language): New class.
9470 (f_language_defn): New static global.
9471 * gdb/go-lang.c (go_language_defn): Convert to...
9472 (go_language_data): ...this.
9473 (class go_language): New class.
9474 (go_language_defn): New static global.
9475 * gdb/language.c (unknown_language_defn): Remove declaration.
9476 (current_language): Initialize to nullptr, real initialization is
9477 moved to _initialize_language.
9478 (languages): Delete global.
9479 (language_defn::languages): Define.
9480 (set_language_command): Use language_defn::languages.
9481 (set_language): Likewise.
9482 (range_error): Likewise.
9483 (language_enum): Likewise.
9484 (language_def): Likewise.
9485 (add_set_language_command): Use language_def::languages for the
9486 language list, and language_def to lookup language pointers.
9487 (skip_language_trampoline): Use language_defn::languages.
9488 (unknown_language_defn): Convert to...
9489 (unknown_language_data): ...this.
9490 (class unknown_language): New class.
9491 (unknown_language_defn): New static global.
9492 (auto_language_defn): Convert to...
9493 (auto_language_data): ...this.
9494 (class auto_language): New class.
9495 (auto_language_defn): New static global.
9496 (language_gdbarch_post_init): Use language_defn::languages.
9497 (_initialize_language): Initialize current_language.
9498 * gdb/language.h (struct language_defn): Rename to...
9499 (struct language_data): ...this.
9500 (struct language_defn): New.
9501 (auto_language_defn): Delete.
9502 (unknown_language_defn): Delete.
9503 (minimal_language_defn): Delete.
9504 (ada_language_defn): Delete.
9505 (asm_language_defn): Delete.
9506 (c_language_defn): Delete.
9507 (cplus_language_defn): Delete.
9508 (d_language_defn): Delete.
9509 (f_language_defn): Delete.
9510 (go_language_defn): Delete.
9511 (m2_language_defn): Delete.
9512 (objc_language_defn): Delete.
9513 (opencl_language_defn): Delete.
9514 (pascal_language_defn): Delete.
9515 (rust_language_defn): Delete.
9516 * gdb/m2-lang.c (m2_language_defn): Convert to...
9517 (m2_language_data): ...this.
9518 (class m2_language): New class.
9519 (m2_language_defn): New static global.
9520 * gdb/objc-lang.c (objc_language_defn): Convert to...
9521 (objc_language_data): ...this.
9522 (class objc_language): New class.
9523 (objc_language_defn): New static global.
9524 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9525 (opencl_language_data): ...this.
9526 (class opencl_language): New class.
9527 (opencl_language_defn): New static global.
9528 * gdb/p-lang.c (pascal_language_defn): Convert to...
9529 (pascal_language_data): ...this.
9530 (class pascal_language): New class.
9531 (pascal_language_defn): New static global.
9532 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9533 language pointer, update comment format.
9534 * gdb/rust-lang.c (rust_language_defn): Convert to...
9535 (rust_language_data): ...this.
9536 (class rust_language): New class.
9537 (rust_language_defn): New static global.
9538
9539 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9540
9541 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9542 member variable.
9543 <m_stmt_at_address>: New member variable.
9544 (lnp_state_machine::record_line): Don't record some lines, update
9545 tracking of is_stmt at the same address.
9546 (lnp_state_machine::lnp_state_machine): Initialise new member
9547 variables.
9548
9549 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9550
9551 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9552 "-include gnu-nat-mig.h".
9553 * gnu-nat-mig.h: New file.
9554 * gnu-nat.c: Include "gnu-nat-mig.h".
9555 (exc_server, msg_reply_server, notify_server,
9556 process_reply_server): Remove declarations.
9557
9558 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9559
9560 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9561 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9562 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9563 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9564 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9565 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9566 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9567 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9568 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9569 to gnu_nat_target class.
9570 * gnu-nat.c: Likewise.
9571 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9572 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9573 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9574 object.
9575 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9576 instead of `gnu_target'.
9577
9578 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9579
9580 * i386-gnu-tdep.c: Include "gdbcore.h"
9581 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9582 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9583 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9584 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9585 i386_gnu_sigcontext_addr): New functions
9586 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9587 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9588 tdep.
9589
9590 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9591
9592 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9593 before fork_inferior call. Avoid calling it if target_is_pushed returns
9594 true.
9595
9596 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9597
9598 * gnu-nat.h (gnu_target): New variable declaration.
9599 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9600 gnu_target.
9601 * gnu-nat.c (gnu_target): New variable.
9602 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9603 add_thread_silent, and add_thread calls.
9604 (gnu_nat_target::create_inferior): Pass gnu_target to
9605 add_thread_silent, thread_change_ptid call.
9606 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9607 call.
9608
9609 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9610
9611 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9612 (gnu_nat_target::find_memory_regions): Remove unused
9613 `old_address' variable.
9614
9615 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9616
9617 * gnu-nat.c: Include "gdbarch.h".
9618
9619 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9620
9621 * reply_mig_hack.awk (Error return): Cast function through
9622 void *, to bypass compiler function call check.
9623
9624 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9625
9626 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9627 $(srcdir)/reply_mig_hack.awk.
9628
9629 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9630
9631 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9632
9633 2020-05-30 Jonny Grant <jg@jguk.org>
9634
9635 * configure.ac (ACX_BUGURL): change bug URL to https.
9636
9637 2020-05-30 Pedro Alves <palves@redhat.com>
9638
9639 * cp-support.c (replace_typedefs_template): New.
9640 (replace_typedefs_qualified_name): Handle
9641 DEMANGLE_COMPONENT_TEMPLATE.
9642
9643 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9644
9645 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9646 dwarf2/index-cache.h, dwarf2/index-write.c,
9647 dwarf2/index-write.h, dwarf2/line-header.c,
9648 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9649 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9650 variables and fields from `dwarf2_per_objfile` to just
9651 `per_objfile` throughout.
9652
9653 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9654
9655 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9656 <push_dwarf_reg_entry_value>: Add comment.
9657
9658 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9659 Keith Seitz <keiths@redhat.com>
9660
9661 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9662 instead of PyEval_ReleaseLock.
9663 (class gdbpy_gil): Move to earlier in file.
9664 (finalize_python): Set gdb_python_initialized.
9665 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9666 when not initialized.
9667
9668 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9669
9670 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9671 <push_dwarf_reg_entry_value>: Remove assert. Override
9672 per_objfile with caller_per_objfile.
9673
9674 2020-05-28 Tom de Vries <tdevries@suse.de>
9675
9676 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9677 PR gold/15646 workaround to symbol kind "type".
9678
9679 2020-05-27 Tom Tromey <tromey@adacore.com>
9680
9681 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9682
9683 2020-05-27 Tom Tromey <tromey@adacore.com>
9684
9685 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9686 Use htab_find_with_hash.
9687 <add_abbrev>: Remove "abbrev_number" parameter.
9688 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9689 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9690 (hash_abbrev): Add comment.
9691 (abbrev_table::lookup_abbrev): Move to header file.
9692 (abbrev_table::read): Update.
9693
9694 2020-05-27 Tom Tromey <tromey@adacore.com>
9695
9696 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9697 method.
9698 <canonical_name>: New member.
9699 <raw_name>: Rename from "name".
9700 (partial_die_info): Initialize canonical_name.
9701 (scan_partial_symbols): Check raw_name.
9702 (partial_die_parent_scope, partial_die_full_name)
9703 (add_partial_symbol, add_partial_subprogram)
9704 (add_partial_enumeration, load_partial_dies): Use "name" method.
9705 (partial_die_info::name): New method.
9706 (partial_die_info::read, guess_partial_die_structure_name)
9707 (partial_die_info::fixup): Update.
9708
9709 2020-05-27 Tom Tromey <tromey@adacore.com>
9710
9711 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9712 <get_ref_die_offset>: Inline.
9713 <get_ref_die_offset_complaint>: New method.
9714 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9715 (attribute::get_ref_die_offset_complaint): Rename from
9716 get_ref_die_offset. Just issue complaint.
9717
9718 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9719
9720 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9721
9722 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9723
9724 * exec.c (exec_file_attach): Use errno value of first openp failure.
9725
9726 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9727
9728 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9729 Don't close thread handle.
9730
9731 2020-05-27 Tom Tromey <tom@tromey.com>
9732 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9735 shared_ptr.
9736 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9737 member.
9738 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9739 dwarf2_per_bfd_objfile_data_key>: New globals.
9740 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9741 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9742 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9743 shared.
9744 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9745 short-circuit when sharing.
9746 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9747 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9748
9749 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9752 to...
9753 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9754 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9755
9756 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9757
9758 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9759 build_name_components, find_name_components_bounds>:
9760 Add per_objfile parameter.
9761 (struct mapped_index) <symbol_name_at>: Likewise.
9762 (struct mapped_debug_names): Remove constructor.
9763 <dwarf2_per_objfile>: Remove field.
9764 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9765 (mapped_index_base::find_name_components_bounds,
9766 mapped_index_base::build_name_components,
9767 dw2_expand_symtabs_matching_symbol): Likewise.
9768 (class mock_mapped_index) <symbol_name_at>: Likewise.
9769 (check_match): Likewise.
9770 (check_find_bounds_finds): Likewise.
9771 (test_mapped_index_find_name_component_bounds): Update.
9772 (CHECK_MATCH): Update.
9773 (dw2_expand_symtabs_matching): Update.
9774 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9775 per_objfile parameter.
9776 <find_vec_in_debug_names>: Likewise.
9777 <m_per_objfile>: New field.
9778 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9779 parameter.
9780 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9781 (dw2_debug_names_iterator::next): Update.
9782 (dw2_debug_names_lookup_symbol): Update.
9783 (dw2_debug_names_expand_symtabs_for_function): Update.
9784 (dw2_debug_names_map_matching_symbols): Update.
9785 (dw2_debug_names_expand_symtabs_matching): Update.
9786 (dwarf2_read_debug_names): Update.
9787
9788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9789
9790 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9791 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9792 move to dwarf2_per_objfile.
9793 <read_in_chain>: Remove.
9794 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9795 remove_all_cus, age_comp_units>: New methods.
9796 <m_dwarf2_cus>: New member.
9797 (struct dwarf2_per_cu_data) <cu>: Remove.
9798 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9799 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9800 moved to methods of dwarf2_per_objfile.
9801 (dwarf2_clear_marks): Remove.
9802 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9803 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9804 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9805 (dwarf2_per_objfile::remove_all_cus): New.
9806 (class free_cached_comp_units) <~free_cached_comp_units>:
9807 Update.
9808 (load_cu): Update.
9809 (dw2_do_instantiate_symtab): Adjust.
9810 (fill_in_sig_entry_from_dwo_entry): Adjust.
9811 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9812 (cutu_reader::cutu_reader): Likewise.
9813 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9814 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9815 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9816 and dwarf2_per_objfile::age_comp_units.
9817 (load_partial_comp_unit): Update.
9818 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9819 (process_queue): Likewise.
9820 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9821 backlink.
9822 (dwarf2_read_addr_index): Likewise.
9823 (follow_die_offset): Likewise.
9824 (dwarf2_fetch_die_loc_sect_off): Likewise.
9825 (dwarf2_fetch_constant_bytes): Likewise.
9826 (dwarf2_fetch_die_type_sect_off): Likewise.
9827 (follow_die_sig_1): Likewise.
9828 (load_full_type_unit): Likewise.
9829 (read_signatured_type): Likewise.
9830 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9831 (dwarf2_cu::~dwarf2_cu): Remove.
9832 (dwarf2_per_objfile::get_cu): New.
9833 (dwarf2_per_objfile::set_cu): New.
9834 (age_cached_comp_units): Rename to...
9835 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9836 to std::unordered_map.
9837 (free_one_cached_comp_unit): Rename to...
9838 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9839 to std::unordered_map.
9840 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9841 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9842 a dwarf2_per_objfile in data.
9843 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9844 (dwarf2_clear_marks): Remove.
9845
9846 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9847
9848 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9849 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9850 (init_tu_and_read_dwo_dies): Likewise.
9851 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9852 (cutu_reader::cutu_reader): Likewise.
9853 (load_partial_comp_unit): Likewise.
9854 (process_psymtab_comp_unit): Update.
9855 (build_type_psymtabs_1): Update.
9856 (process_skeletonless_type_unit): Update.
9857 (load_full_comp_unit): Update.
9858 (find_partial_die): Update.
9859 (dwarf2_read_addr_index): Update.
9860 (read_signatured_type): Update.
9861
9862 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9863
9864 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9865 m_header_read_in>: New fields.
9866 <get_header>: New method.
9867 * dwarf2/read.c (per_cu_header_read_in): Remove.
9868 (dwarf2_per_cu_data::get_header): New.
9869 (dwarf2_per_cu_data::addr_size): Update.
9870 (dwarf2_per_cu_data::offset_size): Update.
9871 (dwarf2_per_cu_data::ref_addr_size): Update.
9872
9873 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9874
9875 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9876 (dw2_do_instantiate_symtab): Update.
9877 (queue_and_load_all_dwo_tus): Change parameter from
9878 dwarf2_per_cu_data to dwarf2_cu.
9879 (dwarf2_fetch_die_loc_sect_off): Update.
9880 (dwarf2_fetch_constant_bytes): Update.
9881 (dwarf2_fetch_die_type_sect_off): Update.
9882
9883 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9884
9885 * dwarf2/read.c (process_full_comp_unit,
9886 process_full_type_unit): Remove per_cu, per_objfile paramters.
9887 Add dwarf2_cu parameter.
9888 (process_queue): Update.
9889
9890 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9891
9892 * dwarf2/read.c (create_cu_from_index_list): Replace
9893 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9894 (create_cus_from_index_list): Likewise.
9895 (create_cus_from_index): Likewise.
9896 (create_signatured_type_table_from_index): Likewise.
9897 (create_cus_from_debug_names_list): Likewise.
9898 (create_cus_from_debug_names): Likewise.
9899 (dwarf2_read_gdb_index): Update.
9900 (dwarf2_read_debug_names): Update.
9901
9902 2020-05-27 Tom Tromey <tom@tromey.com>
9903 Simon Marchi <simon.marchi@efficios.com>
9904
9905 * dwarf2/read.h (struct dwarf2_per_objfile)
9906 <get_type_for_signatured_type, set_type_for_signatured_type>:
9907 New methods.
9908 <m_type_map>: New member.
9909 (struct signatured_type) <type>: Remove.
9910 * dwarf2/read.c
9911 (dwarf2_per_objfile::get_type_for_signatured_type,
9912 dwarf2_per_objfile::set_type_for_signatured_type): New.
9913 (get_signatured_type): Use new methods.
9914
9915 2020-05-27 Tom Tromey <tom@tromey.com>
9916 Simon Marchi <simon.marchi@efficios.com>
9917
9918 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9919 (struct dwarf2_per_objfile) <type_units>: New member.
9920 <get_type_unit_group_unshareable>: New method.
9921 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9922 num_symtabs, symtabs>: Remove; move to
9923 type_unit_group_unshareable.
9924 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9925 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9926 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9927
9928 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9929
9930 * dwarf2/read.h (struct dwarf2_per_cu_data):
9931 <dwarf2_per_objfile>: Remove.
9932 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9933 dwarf2_per_objfile.
9934 (create_signatured_type_table_from_index): Likewise.
9935 (create_signatured_type_table_from_debug_names): Likewise.
9936 (create_debug_type_hash_table): Likewise.
9937 (fill_in_sig_entry_from_dwo_entry): Likewise.
9938 (create_type_unit_group): Likewise.
9939 (read_comp_units_from_section): Likewise.
9940 (create_cus_hash_table): Likewise.
9941
9942 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9945 dwarf2_per_cu_data::dwarf2_per_objfile.
9946 (compute_compunit_symtab_includes): Likewise.
9947 (dwarf2_cu::start_symtab): Likewise.
9948
9949 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9950
9951 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9952 parameter.
9953 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9954 (read_namespace_alias): Update.
9955 (lookup_die_type): Update.
9956 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9957 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9958 Update.
9959 (disassemble_dwarf_expression): Update.
9960
9961 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9962
9963 * dwarf2/read.h (struct dwarf2_queue_item): Add
9964 dwarf2_per_objfile parameter, assign new parameter.
9965 <per_objfile>: New field.
9966 * dwarf2/read.c (free_one_cached_comp_unit): Add
9967 dwarf2_per_objfile parameter.
9968 (queue_comp_unit): Likewise.
9969 (dw2_do_instantiate_symtab): Update.
9970 (process_psymtab_comp_unit): Update.
9971 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9972 (process_imported_unit_die): Update.
9973 (queue_and_load_dwo_tu): Update.
9974 (follow_die_offset): Update.
9975 (follow_die_sig_1): Update.
9976
9977 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9980 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9981 (read_call_site_scope): Assign per_objfile.
9982 (dwarf2_per_cu_data::objfile): Remove.
9983 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9984 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9985 dwarf2_per_objfile parameter.
9986 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9987 dwarf2_per_objfile parameter.
9988 (dwarf_expr_reg_to_entry_parameter): Add output
9989 dwarf2_per_objfile parameter.
9990 (locexpr_get_frame_base): Update.
9991 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9992 <push_dwarf_reg_entry_value>: Update.
9993 <call_site_to_target_addr>: Update.
9994 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9995 parameter.
9996 (value_of_dwarf_reg_entry): Update.
9997 (rw_pieced_value): Update.
9998 (indirect_synthetic_pointer): Update.
9999 (dwarf2_evaluate_property): Update.
10000 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10001 parameter.
10002 (locexpr_read_variable): Update.
10003 (locexpr_get_symbol_read_needs): Update.
10004 (loclist_read_variable): Update.
10005
10006 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10007
10008 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10009 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10010 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10011 parameter.
10012 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10013 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10014 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10015 parameter.
10016 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10017 sect_variable_value): Add dwarf2_per_objfile parameter.
10018 (class dwarf_evaluate_loc_desc) <dwarf_call,
10019 dwarf_variable_value>: Update.
10020 (fetch_const_value_from_synthetic_pointer): Add
10021 dwarf2_per_objfile parameter.
10022 (fetch_const_value_from_synthetic_pointer): Update.
10023 (coerced_pieced_ref): Update.
10024 (class symbol_needs_eval_context) <dwarf_call,
10025 dwarf_variable_value>: Update.
10026 (dwarf2_compile_expr_to_ax): Update.
10027
10028 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10029
10030 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10031 parameter.
10032 (dwarf2_evaluate_loc_desc_full): Update.
10033
10034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10035
10036 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10037 parameter.
10038 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10039 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10040 dwarf2_per_objfile parameter.
10041 (decode_debug_loc_dwo_addresses): Likewise.
10042 (dwarf2_find_location_expression): Update.
10043 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10044 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10045 parameter.
10046 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10047 parameter.
10048 (locexpr_describe_location_1): Likewise.
10049 (locexpr_describe_location): Update.
10050
10051 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10052
10053 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10054 Remove.
10055 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10056 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10057 (dwarf2_compile_property_to_c): Update.
10058 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10059 use text offset from objfile.
10060 (locexpr_tracepoint_var_ref): Update.
10061 (locexpr_generate_c_location): Update.
10062 (loclist_describe_location): Update.
10063 (loclist_tracepoint_var_ref): Update.
10064 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10065 dwarf2_per_objfile parameter.
10066 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10067 use text offset from objfile.
10068 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10069
10070 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10071
10072 * dwarf2/expr.h (struct dwarf_expr_context)
10073 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10074 <offset>: Remove.
10075 <per_objfile>: New member.
10076 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10077 dwarf2_per_objfile parameter. Don't set offset, set
10078 per_objfile.
10079 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10080 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10081 a dwarf2_per_objfile object instead of an offset.
10082 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10083 constructor.
10084 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10085 to dwarf2_expr_executor constructor. Don't set offset.
10086 (dwarf2_fetch_cfa_info): Update.
10087 (struct dwarf2_frame_cache) <text_offset>: Remove.
10088 <per_objfile>: New field.
10089 (dwarf2_frame_cache): Update.
10090 (dwarf2_frame_prev_register): Update.
10091 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10092 <dwarf_evaluate_loc_desc>: Add constructor.
10093 (dwarf2_evaluate_loc_desc_full): Update.
10094 (dwarf2_locexpr_baton_eval): Update.
10095 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10096 Add constructor.
10097 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10098
10099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10100
10101 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10102 addr_sized_int_type>: Move to dwarf2_cu.
10103 <int_type>: Move to dwarf2_per_objfile.
10104 (struct dwarf2_per_objfile) <int_type>: Move here.
10105 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10106 addr_sized_int_type>: Move here.
10107 (read_func_scope): Update.
10108 (read_array_type): Update.
10109 (read_tag_string_type): Update.
10110 (attr_to_dynamic_prop): Update.
10111 (dwarf2_per_cu_data::int_type): Rename to...
10112 (dwarf2_per_objfile::int_type): ... this.
10113 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10114 (dwarf2_cu::addr_sized_int_type): ... this.
10115 (read_subrange_type): Update.
10116 (dwarf2_per_cu_data::addr_type): Rename to...
10117 (dwarf2_cu::addr_type): ... this.
10118 (set_die_type): Update.
10119
10120 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10121
10122 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10123 data through per_cu->cu.
10124
10125 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10128 dwarf2_per_cu_data parameter fo dwarf2_cu.
10129 (lookup_dwo_type_unit): Likewise.
10130 (read_cutu_die_from_dwo): Likewise.
10131 (lookup_dwo_unit): Likewise.
10132 (open_and_init_dwo_file): Likewise.
10133 (lookup_dwo_cutu): Likewise.
10134 (lookup_dwo_comp_unit): Likewise.
10135 (lookup_dwo_type_unit): Likewise.
10136 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10137 (cutu_reader::cutu_reader): Update.
10138
10139 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10142 parameter.
10143 (process_full_type_unit): Likewise.
10144 (process_queue): Update.
10145
10146 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10147
10148 * dwarf2/read.c (recursively_compute_inclusions): Add
10149 dwarf2_per_objfile parameter.
10150 (compute_compunit_symtab_includes): Likewise.
10151 (process_cu_includes): Update.
10152
10153 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10154
10155 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10156 parameter.
10157 (create_type_unit_group): Update.
10158 (process_psymtab_comp_unit_reader): Update.
10159 (build_type_psymtabs_reader): Update.
10160
10161 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10162
10163 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10164 object through m_this_cu->cu.
10165
10166 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10167
10168 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10169 the info parameter.
10170 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10171
10172 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10173
10174 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10175 per_objfile parameter.
10176 (load_full_type_unit): Add per_objfile parameter.
10177 (read_signatured_type): Likewise.
10178 (load_full_comp_unit): Likewise.
10179 (load_cu): Likewise.
10180 (dw2_do_instantiate_symtab): Likewise.
10181 (dw2_get_file_names): Likewise.
10182 (dw2_map_symtabs_matching_filename): Update.
10183 (dw_expand_symtabs_matching_file_matcher): Update.
10184 (dw2_map_symbol_filenames): Update.
10185 (process_psymtab_comp_unit): Add per_objfile parameter.
10186 (build_type_psymtabs_1): Update.
10187 (process_skeletonless_type_unit): Update.
10188 (dwarf2_build_psymtabs_hard): Update.
10189 (load_partial_comp_unit): Add per_objfile parameter.
10190 (scan_partial_symbols): Update.
10191 (load_full_comp_unit): Add per_objfile parameter.
10192 (process_imported_unit_die): Update.
10193 (create_cus_hash_table): Update.
10194 (find_partial_die): Update.
10195 (dwarf2_read_addr_index): Update.
10196 (follow_die_offset): Update.
10197 (dwarf2_fetch_die_loc_sect_off): Update.
10198 (dwarf2_fetch_constant_bytes): Update.
10199 (dwarf2_fetch_die_type_sect_off): Update.
10200 (follow_die_sig_1): Update.
10201 (load_full_type_unit): Add per_objfile parameter.
10202 (read_signatured_type): Likewise.
10203
10204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10205
10206 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10207 of objfile_name.
10208
10209 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10210
10211 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10212 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10213 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10214 field.
10215 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10216 (create_cus_from_index): Update.
10217 (dwarf2_read_gdb_index): Update.
10218 (create_cus_from_debug_names): Update.
10219 (dwarf2_read_debug_names): Update.
10220 (get_abbrev_section_for_cu): Update.
10221 (create_all_comp_units): Update.
10222 (read_attribute_value): Update.
10223 (get_debug_line_section): Update.
10224 * dwarf2/index-cache.c (index_cache::store): Update.
10225 * dwarf2/index-write.c (save_gdb_index_command): Update.
10226 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10227
10228 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10229
10230 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10231 member.
10232 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10233 dwarf2_per_cu_data::per_bfd.
10234 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10235 (create_type_unit_group): Likewise.
10236 (queue_comp_unit): Remove reference to
10237 per_cu->dwarf2_per_objfile.
10238 (maybe_queue_comp_unit): Likewise.
10239 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10240 (create_cus_hash_table): Assign new field.
10241
10242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10243
10244 * dwarf2/read.c: Replace
10245 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10246 dwarf2_cu->per_objfile throughout.
10247
10248 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10249
10250 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10251 parameter, don't use per_cu->dwarf2_per_objfile.
10252 (dw2_instantiate_symtab): Likewise.
10253 (dw2_find_last_source_symtab): Update.
10254 (dw2_map_expand_apply): Update.
10255 (dw2_lookup_symbol): Update.
10256 (dw2_expand_symtabs_for_function): Update.
10257 (dw2_expand_all_symtabs): Update.
10258 (dw2_expand_symtabs_with_fullname): Update.
10259 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10260 don't use per_cu->dwarf2_per_objfile.
10261 (dw2_expand_marked_cus): Update.
10262 (dw2_find_pc_sect_compunit_symtab): Update.
10263 (dw2_debug_names_lookup_symbol): Update.
10264 (dw2_debug_names_expand_symtabs_for_function): Update.
10265 (dw2_debug_names_map_matching_symbols): Update.
10266 (dwarf2_psymtab::expand_psymtab): Update.
10267
10268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10269
10270 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10271 <per_objfile>: New member.
10272 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10273 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10274 call to dwarf2_cu.
10275 (cutu_reader::cutu_reader): Update.
10276 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10277
10278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10279
10280 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10281 struct dwarf2_per_objfile.
10282 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10283 dwarf2_per_bfd.
10284 * dwarf2/read.c (set_die_type): Update.
10285 (get_die_type_at_offset): Update.
10286
10287 2020-05-27 Tom Tromey <tom@tromey.com>
10288 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10291 method.
10292 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10293 get_symtab, set_symtab>: New methods.
10294 <m_symtabs>: New field.
10295 (struct dwarf2_psymtab): Derive from partial_symtab.
10296 <readin_p, get_compunit_symtab>: Declare methods.
10297 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10298 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10299 New methods.
10300 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10301 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10302 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10303 (dw2_symtab_iter_next, dw2_print_stats)
10304 (dw2_expand_symtabs_with_fullname)
10305 (dw2_expand_symtabs_matching_one)
10306 (dw_expand_symtabs_matching_file_matcher)
10307 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10308 (dw2_debug_names_iterator::next)
10309 (dw2_debug_names_map_matching_symbols)
10310 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10311 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10312 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10313 New methods.
10314 (get_compunit_symtab, process_full_comp_unit)
10315 (process_full_type_unit): Update.
10316 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10317
10318 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10319
10320 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10321 then introduce a new dwarf2_per_objfile type.
10322 <read_line_string>: Move to the new dwarf2_per_objfile type.
10323 <objfile>: Likewise.
10324 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10325 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10326 dwarf2_per_objfile->per_bfd.
10327 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10328 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10329 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10330 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10331 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10332 (dwarf2_per_objfile::locate_sections): Rename to...
10333 (dwarf2_per_bfd::locate_sections): ... this.
10334 (dwarf2_per_objfile::get_cutu): Rename to...
10335 (dwarf2_per_bfd::get_cutu): ... this.
10336 (dwarf2_per_objfile::get_cu): Rename to...
10337 (dwarf2_per_bfd::get_cu): ... this.
10338 (dwarf2_per_objfile::get_tu): Rename to...
10339 (dwarf2_per_bfd::get_tu): ... this.
10340 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10341 (dwarf2_per_bfd::allocate_per_cu): ... this.
10342 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10343 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10344 (get_gdb_index_contents_ftype): Change parameter from
10345 dwarf2_per_objfile to dwarf2_per_bfd.
10346 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10347 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10348
10349 2020-05-27 Tom Tromey <tom@tromey.com>
10350 Simon Marchi <simon.marchi@efficios.com>
10351
10352 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10353 (allocate_piece_closure): Set "per_objfile" member.
10354 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10355 (locexpr_describe_location, loclist_describe_location): Use new
10356 member.
10357 * dwarf2/read.c (read_call_site_scope)
10358 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10359 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10360 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10361 handle_data_member_location): Set per_objfile member.
10362 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10363 member.
10364 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10365
10366 2020-05-27 Tom Tromey <tom@tromey.com>
10367
10368 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10369 allocate_signatured_type>: Declare new methods.
10370 <m_num_psymtabs>: New member.
10371 (struct dwarf2_per_cu_data) <index>: New member.
10372 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10373 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10374 (create_cu_from_index_list): Use allocate_per_cu.
10375 (create_signatured_type_table_from_index)
10376 (create_signatured_type_table_from_debug_names)
10377 (create_debug_type_hash_table, add_type_unit)
10378 (read_comp_units_from_section): Use allocate_signatured_type.
10379
10380 2020-05-27 Tom Tromey <tom@tromey.com>
10381
10382 * psymtab.c (partial_map_expand_apply)
10383 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10384 (psym_lookup_global_symbol_language)
10385 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10386 (psym_print_stats, psym_expand_symtabs_for_function)
10387 (psym_map_symbol_filenames, psym_map_matching_symbols)
10388 (psym_expand_symtabs_matching)
10389 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10390 (maintenance_check_psymtabs): Update.
10391 * psympriv.h (struct partial_symtab) <readin_p,
10392 get_compunit_symtab>: Add objfile parameter.
10393 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10394 Likewise.
10395 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10396 get_compunit_symtab>: Likewise.
10397 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10398
10399 2020-05-27 Tom Tromey <tom@tromey.com>
10400
10401 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10402 member.
10403 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10404 (create_cu_from_index_list)
10405 (create_signatured_type_table_from_index)
10406 (create_signatured_type_table_from_debug_names)
10407 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10408 (dwarf2_create_include_psymtab)
10409 (create_debug_type_hash_table, add_type_unit)
10410 (create_type_unit_group, read_comp_units_from_section)
10411 (dwarf2_compute_name, create_cus_hash_table)
10412 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10413 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10414 obstack.
10415 (dw2_get_real_path): Likewise. Change argument to
10416 dwarf2_per_objfile.
10417
10418 2020-05-27 Luis Machado <luis.machado@linaro.org>
10419
10420 PR tdep/26000
10421 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10422 for ldrd (immediate).
10423
10424 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10425
10426 * command.h: Add comment giving the name of class_tui.
10427 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10428 create the fake command for the help for class_tui.
10429
10430 2020-05-26 Tom Tromey <tromey@adacore.com>
10431
10432 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10433 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10434 (val_atr): New function.
10435 (value_val_atr): Use it.
10436 * ada-valprint.c (print_optional_low_bound): Change low bound
10437 handling for enums.
10438 (val_print_packed_array_elements): Don't call discrete_position.
10439 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10440 discrete_position for enum types.
10441 * language.c (default_print_array_index): Change type.
10442 * language.h (struct language_defn) <la_print_array_index>: Add
10443 index_type parameter, change type of index_value.
10444 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10445 (default_print_array_index): Update.
10446 * valprint.c (maybe_print_array_index): Don't call
10447 value_from_longest. Update.
10448 (value_print_array_elements): Don't call discrete_position.
10449
10450 2020-05-26 Tom Tromey <tromey@adacore.com>
10451
10452 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10453 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10454
10455 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10456
10457 PR gdb/13519
10458 * avr-tdep.c (avr_integer_to_address): Return data or code
10459 address accordingly to the second 'type' argument of the
10460 function.
10461
10462 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10463
10464 * infcmd.c, inferior.h: (construct_inferior_arguments):
10465 Moved function from here to gdbsupport/common-inferior.{h,cc}
10466
10467 2020-05-23 Tom Tromey <tom@tromey.com>
10468
10469 Revert commit eca1f90c:
10470 * NEWS: Remove entry for completion styling.
10471 * completer.c (_rl_completion_prefix_display_length): Move
10472 declaration later.
10473 (gdb_fnprint): Revert.
10474 (gdb_display_match_list_1): Likewise.
10475 * cli/cli-style.c (completion_prefix_style)
10476 (completion_difference_style, completion_suffix_style): Remove.
10477 (_initialize_cli_style): Revert.
10478 * cli/cli-style.h (completion_prefix_style)
10479 (completion_difference_style, completion_suffix_style): Don't
10480 declare.
10481
10482 2020-05-24 Pedro Alves <palves@redhat.com>
10483
10484 * symtab.c (completion_list_add_name): Return boolean indication
10485 of whether the symbol matched.
10486 (completion_list_add_symbol): Don't try to remove C++ aliases if
10487 the symbol didn't match in the first place.
10488 * symtab.h (completion_list_add_name): Return bool.
10489
10490 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10491
10492 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10493 type::field.
10494
10495 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10496
10497 GDB 9.2 released.
10498
10499 2020-05-23 Tom Tromey <tom@tromey.com>
10500
10501 * NEWS: Add entry for completion styling.
10502 * completer.c (_rl_completion_prefix_display_length): Move
10503 declaration earlier.
10504 (gdb_fnprint): Use completion_style.
10505 (gdb_display_match_list_1): Likewise.
10506 * cli/cli-style.c (completion_prefix_style)
10507 (completion_difference_style, completion_suffix_style): New
10508 globals.
10509 (_initialize_cli_style): Register new globals.
10510 * cli/cli-style.h (completion_prefix_style)
10511 (completion_difference_style, completion_suffix_style): Declare.
10512
10513 2020-05-23 Pedro Alves <palves@redhat.com>
10514
10515 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10516 (parse_escape): Use ISDIGIT instead of isdigit.
10517 (puts_debug): Use gdb_isprint instead of isprint.
10518 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10519 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10520 ISSPACE instead of isspace.
10521 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10522 instead of isspace.
10523 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10524 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10525 instead of isxdigit and ISDIGIT instead of isdigit.
10526
10527 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10528
10529 * gdbtypes.h (struct type) <field>: New method.
10530 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10531 or type::field.
10532
10533 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10534
10535 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10536 (TYPE_FIELDS): Use type::fields. Change all call sites that
10537 modify the propery to use type::set_fields instead.
10538
10539 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10540
10541 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10542 type::num_fields instead.
10543
10544 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10545
10546 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10547 methods.
10548 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10549 that modify the number of fields to use type::set_num_fields
10550 instead.
10551
10552 2020-05-22 Tom Tromey <tromey@adacore.com>
10553
10554 * compile/compile-object-load.h (munmap_list_free): Don't
10555 declare.
10556
10557 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10558
10559 * annotate.c (annotate_source_line): Update return type, add call
10560 to update current symtab and line.
10561 * annotate.h (annotate_source_line): Update return type, and
10562 extend header comment.
10563 * source.c (info_line_command): Check annotation_level before
10564 calling annotate_source_line.
10565 * stack.c (print_frame_info): If calling annotate_source_line
10566 returns true, then don't print any other source line information.
10567
10568 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10569
10570 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10571
10572 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10573
10574 * coffread.c (patch_type): Remove NULL check before xfree.
10575 * corefile.c (set_gnutarget): Likewise.
10576 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10577 * exec.c (build_section_table): Likewise.
10578 * remote.c (remote_target::pass_signals): Likewise.
10579 * utils.c (n_spaces): Likewise.
10580 * cli/cli-script.c (document_command): Likewise.
10581 * i386-windows-tdep.c (core_process_module_section): Likewise.
10582 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10583
10584 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10585
10586 * symfile.c (reread_symbols): Clear objfile's section_offsets
10587 vector and section indices, re-compute them by calling
10588 sym_offsets.
10589
10590 2020-05-20 Tom Tromey <tromey@adacore.com>
10591
10592 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10593 (desc_one_bound, desc_index_type): Compute field name.
10594
10595 2020-05-20 Tom de Vries <tdevries@suse.de>
10596
10597 PR symtab/25833
10598 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10599
10600 2020-05-20 Alan Modra <amodra@gmail.com>
10601
10602 PR 25993
10603 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10604 bfd_set_filename.
10605 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10606 passed to bfd_set_filename.
10607 * symfile-mem.c (add_vsyscall_page): Likewise for string
10608 passed to symbol_file_add_from_memory.
10609 (symbol_file_add_from_memory): Make name param a const char* and
10610 don't strdup.
10611
10612 2020-05-20 Alan Modra <amodra@gmail.com>
10613
10614 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10615 rather than accessing bfd->filename directly.
10616 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10617 and use bfd_section_name.
10618 * dwarf2/frame.c (decode_frame_entry): Likewise.
10619 * exec.c (exec_set_section_address): Likewise.
10620 * solib-aix.c (solib_aix_bfd_open): Likewise.
10621 * stap-probe.c (get_stap_base_address): Likewise.
10622 * symfile.c (reread_symbols): Likewise.
10623
10624 2020-05-19 Tom Tromey <tromey@adacore.com>
10625
10626 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10627
10628 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10629
10630 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10631
10632 2020-05-19 Pedro Alves <palves@redhat.com>
10633
10634 * NEWS (set exec-file-mismatch): Adjust entry.
10635 * exec.c: Include "build-id.h".
10636 (validate_exec_file): Try to match build IDs instead of filenames.
10637 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10638 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10639 and pass down 'warn_if_slow'.
10640 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10641 gdb_bfd_open_closure to pass it down.
10642 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10643
10644 2020-05-19 Pedro Alves <palves@redhat.com>
10645
10646 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10647 * target.c (target_fileio_open_1): Rename to target_fileio_open
10648 and make extern. Use bool.
10649 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10650 (target_fileio_read_alloc_1): Adjust.
10651 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10652 (target_fileio_open_warn_if_slow): Delete declaration.
10653
10654 2020-05-19 Pedro Alves <palves@redhat.com>
10655
10656 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10657 Adjust all callers.
10658
10659 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10660
10661 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10662 whether disp is negative.
10663
10664 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10665
10666 * symfile.h (struct symfile_segment_data)
10667 <~symfile_segment_data>: Remove.
10668 <segment_info>: Change to std::vector.
10669 * symfile.c (default_symfile_segments): Update.
10670 * elfread.c (elf_symfile_segments): Update.
10671
10672 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10673
10674 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10675 <segments>: New.
10676 <segment_bases, segment_sizes>: Remove.
10677 * symfile.c (default_symfile_segments): Update.
10678 * elfread.c (elf_symfile_segments): Update.
10679 * remote.c (remote_target::get_offsets): Update.
10680 * solib-target.c (solib_target_relocate_section_addresses):
10681 Update.
10682
10683 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10684
10685 * symfile.h (struct symfile_segment_data): Initialize fields.
10686 <~symfile_segment_data>: Add.
10687 (symfile_segment_data_up): New.
10688 (struct sym_fns) <sym_segments>: Return a
10689 symfile_segment_data_up.
10690 (default_symfile_segments): Return a symfile_segment_data_up.
10691 (free_symfile_segment_data): Remove.
10692 (get_symfile_segment_data): Return a symfile_segment_data_up.
10693 * symfile.c (default_symfile_segments): Likewise.
10694 (get_symfile_segment_data): Likewise.
10695 (free_symfile_segment_data): Remove.
10696 (symfile_find_segment_sections): Update.
10697 * elfread.c (elf_symfile_segments): Return a
10698 symfile_segment_data_up.
10699 * remote.c (remote_target::get_offsets): Update.
10700 * solib-target.c (solib_target_relocate_section_addresses):
10701 Update.
10702 * symfile-debug.c (debug_sym_segments): Return a
10703 symfile_segment_data_up.
10704
10705 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10706
10707 PR build/25981
10708 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10709 Hardcode register numbers.
10710
10711 PR build/25981
10712 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10713 procfs_find_LDT_entry): Remove.
10714 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10715 procfs_find_LDT_entry): Remove.
10716 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10717 Remove.
10718
10719 2020-05-17 Pedro Alves <palves@redhat.com>
10720 Andrew Burgess <andrew.burgess@embecosm.com>
10721 Keno Fischer <keno@juliacomputing.com>
10722
10723 PR gdb/25741
10724 * breakpoint.c (build_target_condition_list): Update comments.
10725 (build_target_command_list): Update comments and skip matching
10726 locations.
10727 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10728 a separate function. Simplify "set breakpoint auto-hw off"
10729 handling.
10730 (insert_breakpoints): Update comment.
10731 (tracepoint_locations_match): New parameter. For breakpoints,
10732 compare location types too, if the caller wants to.
10733 (handle_automatic_hardware_breakpoints): New functions.
10734 (bp_location_is_less_than): Also sort by location type and
10735 hardware breakpoint length.
10736 (update_global_location_list): Handle "set breakpoint auto-hw on"
10737 here.
10738 (update_breakpoint_locations): Ask breakpoint_locations_match to
10739 ignore location types.
10740
10741 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10742
10743 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10744 type::name instead.
10745
10746 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10747
10748 * gdbtypes.h (struct type) <name, set_name>: New methods.
10749 (TYPE_CODE): Use type::name. Change all call sites used to set
10750 the name to use type::set_name instead.
10751
10752 2020-05-16 Tom Tromey <tom@tromey.com>
10753
10754 * top.c (quit_force): Update.
10755 * infrun.c (handle_no_resumed): Update.
10756 * top.h (all_uis): New function.
10757 (ALL_UIS): Remove.
10758
10759 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10760
10761 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10762
10763 2020-05-16 Pedro Alves <palves@redhat.com>
10764
10765 * ia64-linux-nat.c
10766 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10767 Declare method.
10768 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10769
10770 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10771
10772 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10773 (sparc64_adi_info): Likewise.
10774
10775 2020-05-15 Tom Tromey <tom@tromey.com>
10776
10777 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10778 block_objfile.
10779 (lookup_objfile_from_block): Remove.
10780 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10781 (lookup_global_symbol): Use block_objfile.
10782 * symtab.h (lookup_objfile_from_block): Don't declare.
10783 * printcmd.c (clear_dangling_display_expressions): Use
10784 block_objfile.
10785 * parse.c (operator_check_standard): Use block_objfile.
10786
10787 2020-05-15 Tom Tromey <tom@tromey.com>
10788
10789 * language.c (language_alloc_type_symbol): Set
10790 SYMBOL_SECTION.
10791 * symtab.c (initialize_objfile_symbol): Remove.
10792 (allocate_symbol): Remove.
10793 (allocate_template_symbol): Remove.
10794 * dwarf2/read.c (fixup_go_packaging): Use "new".
10795 (new_symbol): Use "new".
10796 (read_variable): Don't call initialize_objfile_symbol. Use
10797 "new".
10798 (read_func_scope): Use "new".
10799 * xcoffread.c (process_xcoff_symbol): Don't call
10800 initialize_objfile_symbol.
10801 (SYMBOL_DUP): Remove.
10802 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10803 "new".
10804 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10805 (allocate_template_symbol): Don't declare.
10806 (struct symbol): Add copy constructor. Change defaults.
10807 * jit.c (finalize_symtab): Use "new".
10808 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10809 Use "new".
10810 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10811 (common_block_end): Use "new".
10812 * mdebugread.c (parse_symbol): Use "new".
10813 (new_symbol): Likewise.
10814
10815 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10816
10817 * NEWS: Mention changes to help and apropos.
10818
10819 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10820
10821 * command.h (enum command_class): Improve comments, document
10822 that class_alias is for user-defined aliases, give the class
10823 name for each class, remove unused class_xdb.
10824 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10825 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10826 by a precise class.
10827 * infcmd.c (_initialize_infcmd): Likewise.
10828 * reverse.c (_initialize_reverse): Likewise.
10829 * stack.c (_initialize_stack): Likewise.
10830 * symfile.c (_initialize_symfile): Likewise.
10831 * tracepoint.c (_initialize_tracepoint): Likewise.
10832
10833 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10834
10835 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10836 when their aliased command is traversed.
10837 (help_cmd): Add fput_command_names_styled call to
10838 output command name and aliases when command has an alias.
10839
10840 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10841
10842 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10843 * cli/cli-decode.c (help_cmd_list): Declare as static,
10844 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10845 a command together with the command.
10846 (fput_command_name_styled, fput_command_names_styled): New functions.
10847 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10848 fput_command_name_styled.
10849 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10850 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10851
10852 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10853
10854 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10855 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10856 * command.h (cmd_show_list): Likewise.
10857 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10858 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10859
10860 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10861
10862 * unittests/command-def-selftests.c (traverse_command_structure):
10863 Verify all commands of a list have the same prefix command and
10864 that only the top cmdlist commands have a null prefix.
10865
10866 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10867
10868 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10869 as prefix, not one of its aliases.
10870 (set_cmd_prefix): Remove.
10871 (do_add_cmd): Centralize the setting of the prefix of a command, when
10872 command is defined after its full chain of prefix commands.
10873 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10874 (add_setshow_cmd_full): Likewise.
10875 (update_prefix_field_of_prefixed_commands): New function.
10876 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10877 update_prefix_field_of_prefixed_commands.
10878 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10879 addresses of remote_set_cmdlist and remote_show_cmdlist given
10880 as argument, not the address of an argument.
10881 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10882 * gdb/remote.c (_initialize_remote): Likewise.
10883
10884 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10885
10886 * cli/cli-cmds.c (alias_command): Check for an existing alias
10887 using lookup_cmd_composition, as valid_command_p is too strict
10888 and forbids aliases that are the prefix of an existing alias
10889 or command.
10890 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10891 command is properly recognised as a valid command.
10892
10893 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10894
10895 * unittests/help-doc-selftests.c: Rename to
10896 unittests/command-def-selftests.c
10897 * unittests/command-def-selftests.c (help_doc_tests): Update some
10898 comments.
10899 (command_structure_tests, traverse_command_structure): New namespace
10900 and function.
10901 (command_structure_invariants_tests): New function.
10902 (_initialize_command_def_selftests) Renamed from
10903 _initialize_help_doc_selftests, register command_structure_invariants
10904 selftest.
10905
10906 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10907
10908 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10909 an alias of 'show'.
10910
10911 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10912
10913 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10914 ada_is_fixed_point_type. Update all callers.
10915 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10916 all callers.
10917 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10918 Update all callers.
10919 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10920 print_fixed_point_type. Update all callers.
10921 * ada-valprint.c (ada_value_print_num): Replace call to
10922 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10923
10924 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10925
10926 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10927 processors.
10928 (cpu_supports_bts): Add CV_AMD case.
10929
10930 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10931 Simon Marchi <simon.marchi@efficios.com>
10932
10933 * infrun.c (stop_all_threads): Collect multiple wait events at
10934 each pass.
10935
10936 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10937
10938 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10939 type::code instead.
10940
10941 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10942
10943 * gdbtypes.h (struct type) <code, set_code>: New methods.
10944 (TYPE_CODE): Use type::code. Change all call sites used to set
10945 the code to use type::set_code instead.
10946
10947 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10948 Tom de Vries <tdevries@suse.de>
10949 Pedro Alves <palves@redhat.com>
10950
10951 PR threads/25478
10952 * infrun.c (stop_all_threads): Do NOT ignore
10953 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10954 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10955 received.
10956 (handle_no_resumed): Remove code handling a live inferior with no
10957 threads.
10958 * remote.c (has_single_non_exited_thread): New.
10959 (remote_target::update_thread_list): Do not delete a thread if is
10960 the last thread of the process.
10961 * thread.c (thread_select): Call delete_exited_threads instead of
10962 prune_threads.
10963
10964 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10965
10966 * infrun.c (stop_all_threads): Enable/disable thread events of all
10967 targets. Move a debug message denoting the end of the function
10968 into the SCOPED_EXIT block.
10969
10970 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10971
10972 * process-stratum-target.h: Include <set>.
10973 (all_non_exited_process_targets, switch_to_target_no_thread): New
10974 function declarations.
10975 * process-stratum-target.c (all_non_exited_process_targets)
10976 (switch_to_target_no_thread): New function implementations.
10977
10978 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10979
10980 * infrun.c (handle_inferior_event): Extract out a piece of code
10981 into...
10982 (mark_non_executing_threads): ...this new function.
10983
10984 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10985
10986 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10987 use.
10988
10989 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10990
10991 * regcache.c (regcache_read_pc_protected): New function
10992 implementation that returns 0 if the PC cannot read via
10993 'regcache_read_pc'.
10994 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10995 instead of 'regcache_read_pc'.
10996 (keep_going_pass_signal): Ditto.
10997
10998 2020-05-13 Tom Tromey <tromey@adacore.com>
10999
11000 * ada-lang.c (align_value): Remove.
11001 (ada_template_to_fixed_record_type_1): Use align_up.
11002
11003 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11004
11005 * async-event.c: Update the copyright year.
11006 * async-event.h: Update the copyright year.
11007
11008 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11009
11010 * objfiles.h (is_addr_in_objfile,
11011 shared_objfile_contains_address_p): Return bool.
11012 * objfile.c (is_addr_in_objfile,
11013 shared_objfile_contains_address_p): Return bool.
11014
11015 2020-05-11 Tom Tromey <tromey@adacore.com>
11016
11017 * cli/cli-cmds.c (info_command): Restore.
11018 (_initialize_cli_cmds): Use add_prefix_command for "info".
11019 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11020
11021 2020-05-11 Tom Tromey <tromey@adacore.com>
11022
11023 * ada-lang.c (ada_value_primitive_field): Now public.
11024 * ada-lang.h (ada_value_primitive_field): Declare.
11025 * ada-valprint.c (print_field_values): Use
11026 ada_value_primitive_field for wrapper fields.
11027
11028 2020-05-11 Tom de Vries <tdevries@suse.de>
11029
11030 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11031 MODULE_DOMAIN.
11032
11033 2020-05-11 Tom de Vries <tdevries@suse.de>
11034
11035 PR symtab/25941
11036 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11037 with length 0, if not gdb-produced.
11038 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11039
11040 2020-05-09 Tom de Vries <tdevries@suse.de>
11041
11042 PR gdb/25955
11043 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11044 calculation.
11045
11046 2020-05-09 Tom Tromey <tom@tromey.com>
11047
11048 * top.c (server_command): Now bool.
11049 * top.h (server_command): Now bool.
11050
11051 2020-05-08 Tom Tromey <tromey@adacore.com>
11052
11053 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11054 already being processed.
11055
11056 2020-05-08 Tom Tromey <tom@tromey.com>
11057
11058 * printcmd.c (struct display) <next>: Remove.
11059 <display>: New constructor.
11060 <exp_string>: Now a std::string.
11061 <enabled_p>: Now a bool.
11062 (display_number): Move definition earlier.
11063 (displays): Rename from display_chain. Now a std::vector.
11064 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11065 (display_command): Update.
11066 (do_one_display, disable_display)
11067 (enable_disable_display_command, do_enable_disable_display):
11068 Update.
11069 (free_display): Remove.
11070 (clear_displays): Rewrite.
11071 (delete_display): Update.
11072 (map_display_numbers): Use function_view. Remove "data"
11073 parameter. Update.
11074 (do_delete_display): Remove.
11075 (undisplay_command): Update.
11076 (do_one_display, do_displays, disable_display)
11077 (info_display_command): Update.
11078 (do_enable_disable_display): Remove.
11079 (enable_disable_display_command)
11080 (clear_dangling_display_expressions): Update.
11081
11082 2020-05-08 Tom Tromey <tom@tromey.com>
11083
11084 * symtab.c (set_symbol_cache_size)
11085 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11086 (maintenance_print_symbol_cache_statistics): Update.
11087 * symmisc.c (print_symbol_bcache_statistics)
11088 (print_objfile_statistics, maintenance_print_objfiles)
11089 (maintenance_info_symtabs, maintenance_check_symtabs)
11090 (maintenance_expand_symtabs, maintenance_info_line_tables):
11091 Update.
11092 * symfile-debug.c (set_debug_symfile): Update.
11093 * source.c (forget_cached_source_info): Update.
11094 * python/python.c (gdbpy_progspaces): Update.
11095 * psymtab.c (maintenance_info_psymtabs): Update.
11096 * probe.c (parse_probes): Update.
11097 * linespec.c (iterate_over_all_matching_symtabs)
11098 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11099 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11100 * exec.c (exec_target::close): Update.
11101 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11102 * breakpoint.c (print_one_breakpoint_location)
11103 (create_longjmp_master_breakpoint)
11104 (create_std_terminate_master_breakpoint): Update.
11105 * progspace.c (program_spaces): Now a std::vector.
11106 (maybe_new_address_space): Update.
11107 (add_program_space): Remove.
11108 (program_space::program_space): Update.
11109 (remove_program_space): Update.
11110 (number_of_program_spaces): Remove.
11111 (print_program_space, update_address_spaces): Update.
11112 * progspace.h (program_spaces): Change type.
11113 (ALL_PSPACES): Remove.
11114 (number_of_program_spaces): Don't declare.
11115 (struct program_space) <next>: Remove.
11116
11117 2020-05-08 Tom Tromey <tom@tromey.com>
11118
11119 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11120 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11121 (enable_break): Update.
11122 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11123 (frv_fdpic_find_canonical_descriptor): Update.
11124 (frv_fetch_objfile_link_map): Update.
11125 * progspace.c (program_space::free_all_objfiles): Update.
11126 (program_space::solibs): New method.
11127 * progspace.h (struct program_space) <solibs>: New method.
11128 * solist.h (master_so_list): Don't declare.
11129 (ALL_SO_LIBS): Remove.
11130 * solib.h (so_list_head): Remove.
11131 (update_solib_list): Update comment.
11132 * solib.c (master_so_list): Remove.
11133 (solib_used, update_solib_list, solib_add)
11134 (info_sharedlibrary_command, clear_solib)
11135 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11136
11137 2020-05-08 Tom Tromey <tom@tromey.com>
11138
11139 * extension.c (extension_languages): Now a std::array.
11140 (ALL_EXTENSION_LANGUAGES): Remove.
11141 (get_ext_lang_defn, get_ext_lang_of_file)
11142 (eval_ext_lang_from_control_command): Update.
11143 (finish_ext_lang_initialization)
11144 (auto_load_ext_lang_scripts_for_objfile)
11145 (ext_lang_type_printers::ext_lang_type_printers)
11146 (apply_ext_lang_type_printers)
11147 (ext_lang_type_printers::~ext_lang_type_printers)
11148 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11149 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11150 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11151 (get_matching_xmethod_workers, ext_lang_colorize)
11152 (ext_lang_before_prompt): Update.
11153 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11154
11155 2020-05-08 Tom Tromey <tom@tromey.com>
11156
11157 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11158 overload.
11159 <swap_string, m_string>: Remove.
11160 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11161 Update.
11162 * stabsread.c (define_symbol, read_type): Update.
11163 * linespec.c (find_linespec_symbols): Update.
11164 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11165 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11166 * dbxread.c (read_dbx_symtab): Update.
11167 * cp-support.h (cp_canonicalize_string_full)
11168 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11169 Return unique_xmalloc_ptr.
11170 * cp-support.c (inspect_type): Update.
11171 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11172 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11173 Likewise.
11174 * c-typeprint.c (print_name_maybe_canonical): Update.
11175 * break-catch-throw.c (check_status_exception_catchpoint):
11176 Update.
11177
11178 2020-05-08 Tom de Vries <tdevries@suse.de>
11179
11180 * infrun.c (follow_fork): Copy current_line and current_symtab to
11181 child thread.
11182
11183 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11184
11185 * async-event.c (struct async_signal_handler, struct
11186 async_event_handler): Reformat, remove typedef.
11187
11188 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11189
11190 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11191 access thistype->main_type->dyn_prop_list directly.
11192
11193 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11194
11195 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11196 (remove_dyn_prop): Remove. Update all users to use
11197 type::remove_dyn_prop.
11198 * gdbtypes.c (remove_dyn_prop): Rename to...
11199 (type::remove_dyn_prop): ... this.
11200
11201 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11202
11203 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11204 (add_dyn_prop): Remove. Update all users to use
11205 type::add_dyn_prop.
11206 * gdbtypes.c (add_dyn_prop): Rename to...
11207 (type::add_dyn_prop): ... this.
11208
11209 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11210
11211 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11212 (get_dyn_prop): Remove. Update all users to use
11213 type::dyn_prop.
11214 * gdbtypes.c (get_dyn_prop): Rename to...
11215 (type::dyn_prop): ... this.
11216
11217 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11218
11219 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11220
11221 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11222
11223 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11224 instruction, skip it if it's there.
11225
11226 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11227
11228 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11229
11230 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11231
11232 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11233 * gdbtypes.c (recursive_dump_type): Remove use of
11234 TYPE_INCOMPLETE.
11235
11236 2020-05-03 Tom Tromey <tom@tromey.com>
11237
11238 * breakpoint.c (catch_command, tcatch_command): Remove.
11239 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11240 add_show_prefix_cmd.
11241 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11242 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11243 Remove.
11244 (add_internal_problem_command): Use add_basic_prefix_cmd,
11245 add_show_prefix_cmd.
11246 * mips-tdep.c (set_mipsfpu_command): Remove.
11247 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11248 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11249 (_initialize_index_cache): Use add_basic_prefix_cmd.
11250 * memattr.c (dummy_cmd): Remove.
11251 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11252 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11253 (_initialize_tui_win): Use add_basic_prefix_cmd,
11254 add_show_prefix_cmd.
11255 * cli/cli-logging.c (set_logging_command): Remove.
11256 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11257 add_show_prefix_cmd.
11258 (show_logging_command): Remove.
11259 * target.c (target_command): Remove.
11260 (add_target): Use add_basic_prefix_cmd.
11261
11262 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11263
11264 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11265
11266 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11267
11268 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11269 info_command.
11270
11271 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11272
11273 * nbsd-nat.c (nbsd_enable_proc_events)
11274 (nbsd_nat_target::post_startup_inferior): Add.
11275 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11276 (nbsd_nat_target::update_thread_list): Rewrite.
11277 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11278 "PTRACE_LWP_CREATE".
11279 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11280
11281 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11282
11283 * stack.c (_initialize_stack): Remove duplicated creation
11284 of "frame" command and "f" alias.
11285
11286 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11287
11288 PR gdb/18706
11289 * gdbtypes.c (check_typedef): Calculate size of array of
11290 stubbed type.
11291
11292 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11293
11294 PR gdb/15559
11295 * i386-tdep.c (i386_push_dummy_call): Call
11296 i386_thiscall_push_dummy_call.
11297 (i386_thiscall_push_dummy_call): New function.
11298 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11299 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11300 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11301
11302 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11303
11304 * gdbarch.sh (do_read): Add shellcheck disable directive for
11305 warning SC2162.
11306
11307 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11308
11309 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11310 "referenced but not assigned" warning.
11311
11312 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11313
11314 * gdbarch.sh: Remove code that sets fallbackdefault.
11315
11316 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11317
11318 * gdbarch.sh: Use shell operators && and || instead of
11319 -a and -o.
11320
11321 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11322
11323 * gdbarch.sh: Use $(...) instead of `...`.
11324
11325 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11326
11327 * gdbarch.sh: Use double quotes around variables.
11328
11329 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11330
11331 * gdbarch.sh: Use %s with printf, instead of variables in the
11332 format string.
11333
11334 2020-04-29 Tom Tromey <tromey@adacore.com>
11335
11336 PR ada/25875:
11337 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11338 type fields here.
11339 (read_enumeration_type): Call
11340 update_enumeration_type_from_children later. Update comments.
11341 (process_enumeration_scope): Don't create type fields.
11342
11343 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11344
11345 * nbsd-tdep.c: Include "xml-syscall.h".
11346 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11347
11348 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11349
11350 * nbsd-nat.c: Include "sys/wait.h".
11351 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11352 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11353 (nbsd_nat_target::remove_exec_catchpoint)
11354 (nbsd_nat_target::set_syscall_catchpoint): Add.
11355 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11356 (nbsd_nat_target::insert_exec_catchpoint)
11357 (nbsd_nat_target::remove_exec_catchpoint)
11358 (nbsd_nat_target::set_syscall_catchpoint): Add.
11359 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11360 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11361 `nbsd_get_syscall_number'.
11362
11363 2020-04-29 Tom Tromey <tom@tromey.com>
11364
11365 * stack.c (print_block_frame_labels): Remove.
11366
11367 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11368
11369 PR gdb/17320
11370 * ada-valprint.c (val_print_packed_array_elements): Move array
11371 end bracket to new line.
11372 (ada_val_print_string): Remove extra spaces before first array
11373 element.
11374 * c-valprint.c (c_value_print_array): Likewise.
11375 * m2-valprint.c (m2_print_array_contents): Likewise.
11376 (m2_value_print_inner): Likewise.
11377 * p-valprint.c (pascal_value_print_inner): Likewise.
11378 * valprint.c (generic_val_print_array): Likewise.
11379 (value_print_array_elements): Move first array element and array
11380 end bracket to new line.
11381
11382 2020-04-29 Tom de Vries <tdevries@suse.de>
11383
11384 PR symtab/25889
11385 * linespec.c (find_method): Fix ix calculation.
11386
11387 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11388
11389 * syscalls/update-netbsd.sh: New file.
11390 * syscalls/netbsd.xml: Regenerate.
11391 * data-directory/Makefile.in: Register `netbsd.xml' in
11392 `SYSCALLS_FILES'.
11393
11394 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11395
11396 * syscalls/update-freebsd.sh: Add double quotes.
11397
11398 2020-04-28 Tom Tromey <tom@tromey.com>
11399
11400 * NEWS: Update.
11401 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11402 (cmdpy_init): Allow class_tui.
11403
11404 2020-04-28 Mark Williams <mark@myosotissp.com>
11405
11406 PR gdb/24480
11407 * dwarf2read.c: Add missing assingments to list_in_scope when
11408 start_symtab was already called.
11409
11410 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11411
11412 PR gdb/25881
11413 * dwarf2/read.c (offset_map_type): Use
11414 gdb:hash_enum<sect_offset> as hash function.
11415
11416 2020-04-28 Tom de Vries <tdevries@suse.de>
11417
11418 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11419 with DW_AT_signature.
11420
11421 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11422
11423 * configure.ac: Remove check for fs_base/gs_base in
11424 user_regs_struct.
11425 * configure: Re-generate.
11426 * config.in: Re-generate.
11427 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11428 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11429 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11430
11431 2020-04-27 Luis Machado <luis.machado@linaro.org>
11432
11433 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11434 problematic inline frame unwinding situation.
11435 * frame.c (frame_id_computed_p): New function.
11436 * frame.h (frame_id_computed_p): New prototype.
11437
11438 2020-04-26 Tom Tromey <tom@tromey.com>
11439
11440 * command.h (enum command_class) <class_pseudo>: Remove.
11441
11442 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11443
11444 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11445 and whitespace.
11446
11447 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11448
11449 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11450 `PT_GET_PROCESS_STATE' block.
11451
11452 2020-04-24 Tom Tromey <tom@tromey.com>
11453
11454 * symtab.h (symbol_get_demangled_name): Don't declare.
11455 * symtab.c (symbol_get_demangled_name): Remove.
11456 (general_symbol_info::natural_name)
11457 (general_symbol_info::demangled_name): Update.
11458
11459 2020-04-24 Tom Tromey <tom@tromey.com>
11460
11461 PR rust/25025:
11462 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11463
11464 2020-04-24 Tom Tromey <tom@tromey.com>
11465
11466 PR symtab/12707:
11467 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11468 exists.
11469 (new_symbol): Likewise.
11470 * compile/compile-object-load.c (get_out_value_type): Use
11471 symbol_matches_search_name.
11472
11473 2020-04-24 Tom Tromey <tom@tromey.com>
11474
11475 * dwarf2/read.c (add_partial_symbol): Do not call
11476 compute_and_set_names.
11477
11478 2020-04-24 Tom Tromey <tom@tromey.com>
11479
11480 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11481 overload.
11482
11483 2020-04-24 Tom Tromey <tom@tromey.com>
11484
11485 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11486 (add_psymbol_to_list): New overload. Make old overload call new
11487 one.
11488 * psympriv.h (add_psymbol_to_list): New overload.
11489
11490 2020-04-24 Tom Tromey <tom@tromey.com>
11491
11492 * dwarf2/read.c (partial_die_info::read) <case
11493 DW_AT_linkage_name>: Use value_as_string.
11494 (dwarf2_string_attr): Use value_as_string.
11495 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11496 method.
11497 * dwarf2/attribute.c (attribute::value_as_string): New method.
11498
11499 2020-04-24 Tom Tromey <tom@tromey.com>
11500
11501 * symtab.c (general_symbol_info::natural_name)
11502 (general_symbol_info::demangled_name): Check for language_rust.
11503
11504 2020-04-24 Tom Tromey <tom@tromey.com>
11505
11506 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11507 (dwarf2_physname): ... from here.
11508 (partial_die_info::read): Add Rust "{" hack.
11509
11510 2020-04-24 Tom Tromey <tom@tromey.com>
11511
11512 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11513 method.
11514 (symbol_set_demangled_name): Don't declare.
11515 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11516 symbol_set_demangled_name.
11517 (general_symbol_info::set_language)
11518 (general_symbol_info::compute_and_set_names): Update.
11519 * minsyms.c (minimal_symbol_reader::install): Update.
11520 * dwarf2/read.c (new_symbol): Update.
11521
11522 2020-04-24 Tom Tromey <tromey@adacore.com>
11523
11524 PR python/23662:
11525 * python/py-type.c (convert_field): Handle
11526 FIELD_LOC_KIND_DWARF_BLOCK.
11527 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11528 (typy_get_dynamic): Nw function.
11529 (type_object_getset): Add "dynamic".
11530 * NEWS: Add entry.
11531
11532 2020-04-24 Tom Tromey <tromey@adacore.com>
11533
11534 * ada-typeprint.c (print_choices, print_variant_part)
11535 (print_record_field_types_dynamic): New functions.
11536 (print_record_field_types): Use print_record_field_types_dynamic.
11537
11538 2020-04-24 Tom Tromey <tromey@adacore.com>
11539
11540 * dwarf2/read.c (handle_data_member_location): New overload.
11541 (dwarf2_add_field): Use it.
11542 (decode_locdesc): Add "computed" parameter. Update comment.
11543 * gdbtypes.c (is_dynamic_type_internal): Also look for
11544 FIELD_LOC_KIND_DWARF_BLOCK.
11545 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11546 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11547 virtual base classes.
11548 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11549 FIELD_LOC_KIND_DWARF_BLOCK.
11550
11551 2020-04-24 Tom Tromey <tromey@adacore.com>
11552
11553 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11554 * gdbtypes.c (is_dynamic_type_internal): Check
11555 TYPE_HAS_DYNAMIC_LENGTH.
11556 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11557 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11558 New macros.
11559 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11560 constant.
11561
11562 2020-04-24 Tom Tromey <tromey@adacore.com>
11563
11564 * dwarf2/read.c (struct variant_field): Rewrite.
11565 (struct variant_part_builder): New.
11566 (struct nextfield): Remove "variant" field. Add "offset".
11567 (struct field_info): Add "current_variant_part" and
11568 "variant_parts".
11569 (alloc_discriminant_info): Remove.
11570 (alloc_rust_variant): New function.
11571 (quirk_rust_enum): Update.
11572 (dwarf2_add_field): Set "offset" member. Don't handle
11573 DW_TAG_variant_part.
11574 (offset_map_type): New typedef.
11575 (convert_variant_range, create_one_variant)
11576 (create_one_variant_part, create_variant_parts)
11577 (add_variant_property): New functions.
11578 (dwarf2_attach_fields_to_type): Call add_variant_property.
11579 (read_structure_type): Don't handle DW_TAG_variant_part.
11580 (handle_variant_part, handle_variant): New functions.
11581 (handle_struct_member_die): Use them.
11582 (process_structure_scope): Don't handle variant parts.
11583 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11584 (struct discriminant_info): Remove.
11585 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11586 (struct main_type) <flag_discriminated_union>: Remove.
11587 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11588 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11589 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11590 Update.
11591 * valops.c (value_union_variant): Remove.
11592 * value.h (value_union_variant): Don't declare.
11593
11594 2020-04-24 Tom Tromey <tromey@adacore.com>
11595
11596 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11597 (ada_value_primitive_packed_val): Update.
11598 * ada-valprint.c (ada_value_print_1): Update.
11599 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11600 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11601 just an address. Use evaluate_for_locexpr_baton.
11602 (dwarf2_evaluate_property): Update.
11603 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11604 array_view.
11605 * findvar.c (default_read_var_value): Update.
11606 * gdbtypes.c (compute_variant_fields_inner)
11607 (resolve_dynamic_type_internal): Update.
11608 (resolve_dynamic_type): Change type of valaddr parameter.
11609 * gdbtypes.h (resolve_dynamic_type): Update.
11610 * valarith.c (value_subscripted_rvalue): Update.
11611 * value.c (value_from_contents_and_address): Update.
11612
11613 2020-04-24 Tom Tromey <tromey@adacore.com>
11614
11615 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11616 "push_initial_value" parameter.
11617 (dwarf2_evaluate_property): Likewise.
11618 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11619
11620 2020-04-24 Tom Tromey <tromey@adacore.com>
11621
11622 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11623 (variant::matches, compute_variant_fields_recurse)
11624 (compute_variant_fields_inner, compute_variant_fields): New
11625 functions.
11626 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11627 Use resolved_type after type is made.
11628 (operator==): Add new cases.
11629 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11630 (struct discriminant_range, struct variant, struct variant_part):
11631 New.
11632 (union dynamic_prop_data) <variant_parts, original_type>: New
11633 members.
11634 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11635 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11636 constants.
11637 * value.c (unpack_bits_as_long): Now public.
11638 * value.h (unpack_bits_as_long): Declare.
11639
11640 2020-04-24 Tom Tromey <tromey@adacore.com>
11641
11642 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11643 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11644
11645 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11646
11647 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11648
11649 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11650
11651 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11652 (remove_fork_catchpoint, post_startup_inferior)
11653 (post_attach): Move...
11654 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11655 (remove_fork_catchpoint, post_startup_inferior)
11656 (post_attach): ...here.
11657 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11658 (remove_fork_catchpoint, post_startup_inferior)
11659 (post_attach): Move...
11660 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11661 (remove_fork_catchpoint, post_startup_inferior)
11662 (post_attach): ...here.
11663
11664 2020-04-24 Tom Tromey <tromey@adacore.com>
11665
11666 * nat/windows-nat.h (struct windows_thread_info)
11667 <pc_adjusted>: New member.
11668 * windows-nat.c (windows_fetch_one_register): Check
11669 pc_adjusted.
11670 (windows_nat_target::get_windows_debug_event)
11671 (windows_nat_target::wait): Set pc_adjusted.
11672
11673 2020-04-24 Tom de Vries <tdevries@suse.de>
11674
11675 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11676 Run gdb-add-index inside temp dir.
11677
11678 2020-04-23 Tom Tromey <tromey@adacore.com>
11679
11680 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11681 in loop.
11682
11683 2020-04-23 Luis Machado <luis.machado@linaro.org>
11684
11685 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11686 get_frame_register instead of gdbarch_unwind_pc.
11687
11688 2020-04-23 Tom de Vries <tdevries@suse.de>
11689
11690 * symtab.c (lookup_global_symbol): Prefer def over decl.
11691
11692 2020-04-23 Tom de Vries <tdevries@suse.de>
11693
11694 PR symtab/25807
11695 * block.c (best_symbol, better_symbol): Promote to external.
11696 * block.h (best_symbol, better_symbol): Declare.
11697 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11698 decl.
11699
11700 2020-04-23 Tom Tromey <tromey@adacore.com>
11701
11702 PR ada/25837:
11703 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11704 "const char *", not a "const std::string &".
11705 <name_and_matcher::operator==>: Update.
11706 * unittests/lookup_name_info-selftests.c: Change type of
11707 "result".
11708
11709 2020-04-23 Tom Tromey <tom@tromey.com>
11710
11711 * inferior.h (iterate_over_inferiors): Don't declare.
11712 * inferior.c (iterate_over_inferiors): Remove.
11713 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11714 Remove.
11715 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11716 use iterate_over_inferiors.
11717 (darwin_resume_inferior_it)
11718 (struct resume_inferior_threads_param)
11719 (darwin_resume_inferior_threads_it): Remove.
11720 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11721
11722 2020-04-23 Tom de Vries <tdevries@suse.de>
11723
11724 * blockframe.c (find_pc_partial_function): Use
11725 find_pc_sect_compunit_symtab rather than
11726 objfile->sf->qf->find_pc_sect_compunit_symtab.
11727
11728 2020-04-22 Tom de Vries <tdevries@suse.de>
11729
11730 PR symtab/25764
11731 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11732 in psymtabs.
11733
11734 2020-04-22 Tom de Vries <tdevries@suse.de>
11735
11736 PR symtab/25801
11737 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11738 symtabs.
11739
11740 2020-04-22 Tom de Vries <tdevries@suse.de>
11741
11742 PR symtab/25700
11743 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11744 CU if already created.
11745
11746 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11747
11748 * infrun.c (displaced_step_fixup): Switch to the event_thread
11749 before calling displaced_step_restore, not after.
11750
11751 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11752
11753 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11754 its inferior is not recorded by us.
11755 (record_btrace_target_open): Replace call to
11756 all_non_exited_threads () with call to current_inferior
11757 ()->non_exited_threads ().
11758 (record_btrace_target::stop_recording): Likewise.
11759 (record_btrace_target::close): Likewise.
11760 (record_btrace_target::wait): Likewise.
11761 (record_btrace_target::record_stop_replaying): Likewise.
11762
11763 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11764
11765 * btrace.c (btrace_enable): Throw an error on double enables and
11766 when enabling recording fails.
11767 (btrace_disable): Throw an error if the thread is not recorded.
11768
11769 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11770
11771 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11772 request if we do not have a thread_info.
11773
11774 2020-04-21 Tom de Vries <tdevries@suse.de>
11775
11776 PR gdb/25471
11777 * thread.c
11778 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11779 exception in get_frame_id.
11780
11781 2020-04-20 Tom Tromey <tromey@adacore.com>
11782
11783 * python/python.c (struct gdbpy_event): Mark move constructor as
11784 noexcept.
11785 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11786 constructor as noexcept.
11787 * completer.h (struct completion_result): Mark move constructor as
11788 noexcept.
11789 * completer.c (completion_result::completion_result): Use
11790 initialization style. Don't call reset_match_list.
11791
11792 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11793
11794 * MAINTAINERS (Write After Approval): Add myself.
11795
11796 2020-04-18 Tom Tromey <tom@tromey.com>
11797
11798 * windows-tdep.c (init_w32_command_list)
11799 (w32_prefix_command_valid): Restore.
11800 (_initialize_windows_tdep): Call init_w32_command_list.
11801
11802 2020-04-18 Tom Tromey <tom@tromey.com>
11803
11804 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11805 * value.c (value_fn_field): Update.
11806 * valops.c (find_function_in_inferior)
11807 (value_allocate_space_in_inferior): Update.
11808 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11809 Update.
11810 * tui/tui-source.c (tui_source_window::set_contents): Update.
11811 * symtab.c (lookup_global_or_static_symbol)
11812 (find_function_start_sal_1, skip_prologue_sal)
11813 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11814 * symmisc.c (dump_msymbols, dump_symtab_1)
11815 (maintenance_print_one_line_table): Update.
11816 * symfile.c (init_entry_point_info, section_is_mapped)
11817 (list_overlays_command, simple_read_overlay_table)
11818 (simple_overlay_update_1): Update.
11819 * stap-probe.c (handle_stap_probe): Update.
11820 * stabsread.c (dbx_init_float_type, define_symbol)
11821 (read_one_struct_field, read_enum_type, read_range_type): Update.
11822 * source.c (info_line_command): Update.
11823 * python/python.c (gdbpy_source_objfile_script)
11824 (gdbpy_execute_objfile_script): Update.
11825 * python/py-type.c (save_objfile_types): Update.
11826 * python/py-objfile.c (py_free_objfile): Update.
11827 * python/py-inferior.c (python_new_objfile): Update.
11828 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11829 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11830 (maintenance_check_psymtabs): Update.
11831 * printcmd.c (info_address_command): Update.
11832 * objfiles.h (struct objfile) <arch>: New method, from
11833 get_objfile_arch.
11834 (get_objfile_arch): Don't declare.
11835 * objfiles.c (get_objfile_arch): Remove.
11836 (filter_overlapping_sections): Update.
11837 * minsyms.c (msymbol_is_function): Update.
11838 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11839 (output_nondebug_symbol): Update.
11840 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11841 (mdebug_expand_psymtab): Update.
11842 * machoread.c (macho_add_oso_symfile): Update.
11843 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11844 Update.
11845 * linux-fork.c (checkpoint_command): Update.
11846 * linespec.c (convert_linespec_to_sals): Update.
11847 * jit.c (finalize_symtab): Update.
11848 * infrun.c (insert_exception_resume_from_probe): Update.
11849 * ia64-tdep.c (ia64_find_unwind_table): Update.
11850 * hppa-tdep.c (internalize_unwinds): Update.
11851 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11852 Update.
11853 * gcore.c (call_target_sbrk): Update.
11854 * elfread.c (record_minimal_symbol, elf_symtab_read)
11855 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11856 (elf_gnu_ifunc_resolve_by_got): Update.
11857 * dwarf2/read.c (create_addrmap_from_index)
11858 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11859 (read_debug_names_from_section)
11860 (process_psymtab_comp_unit_reader, add_partial_symbol)
11861 (add_partial_subprogram, process_full_comp_unit)
11862 (read_file_scope, read_func_scope, read_lexical_block_scope)
11863 (read_call_site_scope, dwarf2_ranges_read)
11864 (dwarf2_record_block_ranges, dwarf2_add_field)
11865 (mark_common_block_symbol_computed, read_tag_pointer_type)
11866 (read_tag_string_type, dwarf2_init_float_type)
11867 (dwarf2_init_complex_target_type, read_base_type)
11868 (partial_die_info::read, partial_die_info::read)
11869 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11870 (dwarf2_fetch_die_loc_sect_off): Update.
11871 * dwarf2/loc.c (dwarf2_find_location_expression)
11872 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11873 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11874 (dwarf2_loc_desc_get_symbol_read_needs)
11875 (locexpr_describe_location_piece, locexpr_describe_location_1)
11876 (loclist_describe_location): Update.
11877 * dwarf2/index-write.c (write_debug_names): Update.
11878 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11879 * dtrace-probe.c (dtrace_process_dof): Update.
11880 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11881 (process_one_symbol): Update.
11882 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11883 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11884 (coff_read_enum_type): Update.
11885 * cli/cli-cmds.c (edit_command, list_command): Update.
11886 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11887 * breakpoint.c (create_overlay_event_breakpoint)
11888 (create_longjmp_master_breakpoint)
11889 (create_std_terminate_master_breakpoint)
11890 (create_exception_master_breakpoint, get_sal_arch): Update.
11891 * block.c (block_gdbarch): Update.
11892 * annotate.c (annotate_source_line): Update.
11893
11894 2020-04-17 Tom Tromey <tromey@adacore.com>
11895
11896 * auto-load.c (show_auto_load_cmd): Remove.
11897 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11898 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11899 (maintenance_print_arc_command): Remove.
11900 * tui/tui-win.c (tui_command): Remove.
11901 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11902 * tui/tui-layout.c (tui_layout_command): Remove.
11903 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11904 * python/python.c (user_set_python, user_show_python): Remove.
11905 (_initialize_python): Use add_basic_prefix_cmd,
11906 add_show_prefix_cmd.
11907 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11908 (install_gdb_commands): Use add_basic_prefix_cmd,
11909 add_show_prefix_cmd.
11910 (info_guile_command): Remove.
11911 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11912 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11913 add_show_prefix_cmd.
11914 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11915 Remove do_set and do_show parameters.
11916 * cli/cli-style.c (set_style, show_style): Remove.
11917 (_initialize_cli_style): Use add_basic_prefix_cmd,
11918 add_show_prefix_cmd.
11919 (cli_style_option::add_setshow_commands): Remove do_set and
11920 do_show parameters.
11921 (cli_style_option::add_setshow_commands): Use
11922 add_basic_prefix_cmd, add_show_prefix_cmd.
11923 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11924 (set_style_name): Remove.
11925 * cli/cli-dump.c (dump_command, append_command): Remove.
11926 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11927 (tekhex_dump_command, binary_dump_command)
11928 (binary_append_command): Remove.
11929 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11930 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11931 (init_w32_command_list): Remove; move into ...
11932 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11933 * valprint.c (set_print, show_print, set_print_raw)
11934 (show_print_raw): Remove.
11935 (_initialize_valprint): Use add_basic_prefix_cmd,
11936 add_show_prefix_cmd.
11937 * typeprint.c (set_print_type, show_print_type): Remove.
11938 (_initialize_typeprint): Use add_basic_prefix_cmd,
11939 add_show_prefix_cmd.
11940 * record.c (set_record_command, show_record_command): Remove.
11941 (_initialize_record): Use add_basic_prefix_cmd,
11942 add_show_prefix_cmd.
11943 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11944 add_show_prefix_cmd.
11945 (info_command, show_command, set_debug, show_debug): Remove.
11946 * top.h (set_history, show_history): Don't declare.
11947 * top.c (set_history, show_history): Remove.
11948 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11949 (unset_tdesc_cmd): Remove.
11950 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11951 add_show_prefix_cmd.
11952 * symtab.c (info_module_command): Remove.
11953 (_initialize_symtab): Use add_basic_prefix_cmd.
11954 * symfile.c (overlay_command): Remove.
11955 (_initialize_symfile): Use add_basic_prefix_cmd.
11956 * sparc64-tdep.c (info_adi_command): Remove.
11957 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11958 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11959 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11960 add_show_prefix_cmd.
11961 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11962 (_initialize_serial): Use add_basic_prefix_cmd,
11963 add_show_prefix_cmd.
11964 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11965 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11966 add_show_prefix_cmd.
11967 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11968 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11969 add_show_prefix_cmd.
11970 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11971 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11972 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11973 add_show_prefix_cmd.
11974 * remote.c (remote_command, set_remote_cmd): Remove.
11975 (_initialize_remote): Use add_basic_prefix_cmd.
11976 * record-full.c (set_record_full_command)
11977 (show_record_full_command): Remove.
11978 (_initialize_record_full): Use add_basic_prefix_cmd,
11979 add_show_prefix_cmd.
11980 * record-btrace.c (cmd_set_record_btrace)
11981 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11982 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11983 (cmd_show_record_btrace_pt): Remove.
11984 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11985 add_show_prefix_cmd.
11986 * ravenscar-thread.c (set_ravenscar_command)
11987 (show_ravenscar_command): Remove.
11988 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11989 add_show_prefix_cmd.
11990 * mips-tdep.c (show_mips_command, set_mips_command)
11991 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11992 add_show_prefix_cmd.
11993 * maint.c (maintenance_command, maintenance_info_command)
11994 (maintenance_check_command, maintenance_print_command)
11995 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11996 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11997 add_show_prefix_cmd.
11998 (show_per_command_cmd): Remove.
11999 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12000 Remove.
12001 (maintenance_show_test_settings_cmd): Remove.
12002 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12003 add_show_prefix_cmd.
12004 * maint-test-options.c (maintenance_test_options_command):
12005 Remove.
12006 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12007 * macrocmd.c (macro_command): Remove
12008 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12009 * language.c (set_check, show_check): Remove.
12010 (_initialize_language): Use add_basic_prefix_cmd,
12011 add_show_prefix_cmd.
12012 * infcmd.c (unset_command): Remove.
12013 (_initialize_infcmd): Use add_basic_prefix_cmd.
12014 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12015 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12016 add_show_prefix_cmd.
12017 * go32-nat.c (go32_info_dos_command): Remove.
12018 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12019 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12020 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12021 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12022 (_initialize_frame): Use add_basic_prefix_cmd,
12023 add_show_prefix_cmd.
12024 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12025 (_initialize_dcache): Use add_basic_prefix_cmd,
12026 add_show_prefix_cmd.
12027 * cp-support.c (maint_cplus_command): Remove.
12028 (_initialize_cp_support): Use add_basic_prefix_cmd.
12029 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12030 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12031 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12032 add_basic_prefix_cmd, add_show_prefix_cmd.
12033 * breakpoint.c (save_command): Remove.
12034 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12035 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12036 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12037 add_show_prefix_cmd.
12038 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12039 (set_ada_command, show_ada_command): Remove.
12040 (_initialize_ada_language): Use add_basic_prefix_cmd,
12041 add_show_prefix_cmd.
12042 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12043
12044 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12045
12046 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12047 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12048
12049 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12050
12051 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12052 warning messages.
12053
12054 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12055
12056 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12057 import table is not at beginning of .idata section.
12058
12059 2020-04-16 Pedro Alves <palves@redhat.com>
12060
12061 * inferior.c (delete_inferior): Use delete operator directly
12062 instead of delete_program_space.
12063 * progspace.c (add_program_space): New, factored out from
12064 program_space::program_space.
12065 (remove_program_space): New, factored out from
12066 delete_program_space.
12067 (program_space::program_space): Remove intro comment. Rewrite.
12068 (program_space::~program_space): Remove intro comment. Call
12069 remove_program_space.
12070 (delete_program_space): Delete.
12071 * progspace.h (program_space::program_space): Make explicit. Move
12072 intro comment here, adjusted.
12073 (program_space::~program_space): Move intro comment here,
12074 adjusted.
12075 (delete_program_space): Remove.
12076
12077 2020-04-16 Tom Tromey <tromey@adacore.com>
12078
12079 * windows-nat.c (windows_nat::handle_access_violation): New
12080 function.
12081 * nat/windows-nat.h (handle_access_violation): Declare.
12082 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12083 windows-nat.c. Call handle_access_violation.
12084
12085 2020-04-16 Tom de Vries <tdevries@suse.de>
12086
12087 PR symtab/25791
12088 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12089 CUs without psymtab.
12090
12091 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12092
12093 * python/python.c (do_start_initialization): Don't call
12094 PyEval_InitThreads for Python 3.9 and beyond.
12095
12096 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12097
12098 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12099 thread functions.
12100 (obsd_nat_target::wait): Likewise.
12101
12102 2020-04-15 Tom Tromey <tromey@adacore.com>
12103
12104 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12105 (DEBUG_EXCEPT): Use debug_printf.
12106
12107 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12108
12109 * completer.c (class completion_tracker::completion_hash_entry)
12110 <hash_name>: New member function.
12111 (completion_tracker::discard_completions): New callback to hash a
12112 completion_hash_entry, pass this to htab_create_alloc.
12113
12114 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12115
12116 * windows-nat.c (windows_make_so): Warn rather than stopping with
12117 an error if realpath() fails.
12118
12119 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12120
12121 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12122 (nbsd_nat_target::info_proc): Add do_status.
12123
12124 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12125 Tom de Vries <tdevries@suse.de>
12126
12127 PR symtab/25718
12128 * psympriv.h (struct partial_symtab::read_symtab)
12129 (struct partial_symtab::expand_psymtab)
12130 (struct partial_symtab::read_dependencies): Update comments.
12131 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12132 read_symtab for includer.
12133 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12134 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12135 (struct dwarf2_include_psymtab::m_readin): Remove.
12136 (struct dwarf2_include_psymtab::includer): New member function.
12137 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12138
12139 2020-04-14 Tom de Vries <tdevries@suse.de>
12140
12141 PR symtab/25720
12142 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12143 with NULL symbol_matcher and lookup_name.
12144 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12145 and lookup_name.
12146 * dwarf2/read.c (dw2_expand_symtabs_matching)
12147 (dw2_debug_names_expand_symtabs_matching): Same.
12148 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12149 Make lookup_name a pointer. Update comment.
12150 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12151 lookup_name being a pointer.
12152 * symfile.c (expand_symtabs_matching): Same.
12153 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12154 * linespec.c (iterate_over_all_matching_symtabs): Same.
12155
12156 2020-04-13 Tom Tromey <tom@tromey.com>
12157
12158 * run-on-main-thread.c: Update include.
12159 * unittests/main-thread-selftests.c: Update include.
12160 * tui/tui-win.c: Update include.
12161 * tui/tui-io.c: Update include.
12162 * tui/tui-interp.c: Update include.
12163 * tui/tui-hooks.c: Update include.
12164 * top.h: Update include.
12165 * top.c: Update include.
12166 * ser-base.c: Update include.
12167 * remote.c: Update include.
12168 * remote-notif.c: Update include.
12169 * remote-fileio.c: Update include.
12170 * record-full.c: Update include.
12171 * record-btrace.c: Update include.
12172 * python/python.c: Update include.
12173 * posix-hdep.c: Update include.
12174 * mingw-hdep.c: Update include.
12175 * mi/mi-main.c: Update include.
12176 * mi/mi-interp.c: Update include.
12177 * main.c: Update include.
12178 * linux-nat.c: Update include.
12179 * interps.c: Update include.
12180 * infrun.c: Update include.
12181 * inf-loop.c: Update include.
12182 * event-top.c: Update include.
12183 * event-loop.c: Move to ../gdbsupport/.
12184 * event-loop.h: Move to ../gdbsupport/.
12185 * async-event.h: Update include.
12186 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12187
12188 2020-04-13 Tom Tromey <tom@tromey.com>
12189
12190 * tui/tui-win.c: Include async-event.h.
12191 * remote.c: Include async-event.h.
12192 * remote-notif.c: Include async-event.h.
12193 * record-full.c: Include async-event.h.
12194 * record-btrace.c: Include async-event.h.
12195 * infrun.c: Include async-event.h.
12196 * event-top.c: Include async-event.h.
12197 * event-loop.h: Move some declarations to async-event.h.
12198 * event-loop.c: Don't include ser-event.h or top.h. Move some
12199 code to async-event.c.
12200 * async-event.h: New file.
12201 * async-event.c: New file.
12202 * Makefile.in (COMMON_SFILES): Add async-event.c.
12203 (HFILES_NO_SRCDIR): Add async-event.h.
12204
12205 2020-04-13 Tom Tromey <tom@tromey.com>
12206
12207 * utils.c (flush_streams): New function.
12208 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12209
12210 2020-04-13 Tom Tromey <tom@tromey.com>
12211
12212 * event-loop.c (handle_file_event): Use warning, not
12213 printf_unfiltered.
12214
12215 2020-04-13 Tom Tromey <tom@tromey.com>
12216
12217 * event-loop.c: Include <chrono>.
12218
12219 2020-04-13 Tom Tromey <tom@tromey.com>
12220
12221 * gdb_select.h: Move to ../gdbsupport/.
12222 * event-loop.c: Update include path.
12223 * top.c: Update include path.
12224 * ser-base.c: Update include path.
12225 * ui-file.c: Update include path.
12226 * ser-tcp.c: Update include path.
12227 * guile/scm-ports.c: Update include path.
12228 * posix-hdep.c: Update include path.
12229 * ser-unix.c: Update include path.
12230 * gdb_usleep.c: Update include path.
12231 * mingw-hdep.c: Update include path.
12232 * inflow.c: Update include path.
12233 * infrun.c: Update include path.
12234 * event-top.c: Update include path.
12235
12236 2020-04-13 Tom Tromey <tom@tromey.com>
12237
12238 * configure: Rebuild.
12239 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12240
12241 2020-04-13 Tom Tromey <tom@tromey.com>
12242
12243 * event-loop.h (start_event_loop): Don't declare.
12244 * event-loop.c (start_event_loop): Move...
12245 * main.c (start_event_loop): ...here. Now static.
12246
12247 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12248
12249 * MAINTAINERS: Update my email address.
12250
12251 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12252
12253 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12254 IP_ALL.
12255
12256 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12257
12258 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12259 (nbsd_nat_target::info_proc): Add do_cmdline.
12260
12261 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12262
12263 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12264 (nbsd_nat_target::info_proc): Add do_cwd.
12265
12266 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12267
12268 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12269
12270 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12271
12272 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12273 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12274 (nbsd_nat_target::info_proc): New functions.
12275 * nbsd-nat.c (kinfo_get_vmmap): New function.
12276 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12277 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12278 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12279 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12280 functions.
12281 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12282 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12283 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12284 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12285 (KINFO_VME_FLAG_GROWS_DOWN): New.
12286
12287 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12288
12289 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12290 bit shift.
12291
12292 2020-04-10 Tom Tromey <tromey@adacore.com>
12293
12294 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12295
12296 2020-04-10 Tom Tromey <tromey@adacore.com>
12297
12298 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12299 separate debug files.
12300
12301 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12302
12303 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12304 Move to...
12305 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12306 ... here.
12307 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12308 Check for STATUS_WX86_BREAKPOINT.
12309 (windows_nat_target::wait): Same.
12310
12311 2020-04-10 Tom de Vries <tdevries@suse.de>
12312
12313 PR cli/25808
12314 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12315
12316 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12317
12318 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12319 (Write After Approval): Remove Tom de Vries.
12320
12321 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12322
12323 revert partially:
12324 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12325
12326 * buildsym.c (record_line): Fix undefined behavior and preserve
12327 lines at eof.
12328
12329 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12330
12331 * auxv.h (svr4_auxv_parse): New.
12332 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12333 and generic_auxv_parse.
12334 (svr4_auxv_parse): Add.
12335 * obsd-tdep.c: Include "auxv.h".
12336 (obsd_auxv_parse): Remove.
12337 (obsd_init_abi): Remove comment.
12338 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12339 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12340 * nbsd-tdep.c: Include "auxv.h".
12341 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12342
12343 2020-04-08 Tom Tromey <tromey@adacore.com>
12344
12345 * nat/windows-nat.h (last_wait_event): Don't declare.
12346 (wait_for_debug_event): Update comment.
12347 * nat/windows-nat.c (last_wait_event): Now static.
12348
12349 2020-04-08 Tom Tromey <tromey@adacore.com>
12350
12351 * windows-nat.c (wait_for_debug_event): Move to
12352 nat/windows-nat.c.
12353 * nat/windows-nat.h (wait_for_debug_event): Declare.
12354 * nat/windows-nat.c (wait_for_debug_event): Move from
12355 windows-nat.c. No longer static.
12356
12357 2020-04-08 Tom Tromey <tromey@adacore.com>
12358
12359 * windows-nat.c (get_windows_debug_event): Use
12360 fetch_pending_stop.
12361 * nat/windows-nat.h (fetch_pending_stop): Declare.
12362 * nat/windows-nat.c (fetch_pending_stop): New function.
12363
12364 2020-04-08 Tom Tromey <tromey@adacore.com>
12365
12366 * windows-nat.c (windows_continue): Use matching_pending_stop and
12367 continue_last_debug_event.
12368 * nat/windows-nat.h (matching_pending_stop)
12369 (continue_last_debug_event): Declare.
12370 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12371 (matching_pending_stop, continue_last_debug_event): New
12372 functions.
12373
12374 2020-04-08 Tom Tromey <tromey@adacore.com>
12375
12376 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12377 (handle_exception_result): Move to nat/windows-nat.h.
12378 (DEBUG_EXCEPTION_SIMPLE): Remove.
12379 (windows_nat::handle_ms_vc_exception): New function.
12380 (handle_exception): Move to nat/windows-nat.c.
12381 (get_windows_debug_event): Update.
12382 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12383 nat/windows-nat.c.
12384 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12385 (handle_exception_result): Move from windows-nat.c.
12386 (handle_exception): Declare.
12387 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12388 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12389 windows-nat.c.
12390
12391 2020-04-08 Tom Tromey <tromey@adacore.com>
12392
12393 * windows-nat.c (exception_count, event_count): Remove.
12394 (handle_exception, get_windows_debug_event)
12395 (do_initial_windows_stuff): Update.
12396
12397 2020-04-08 Tom Tromey <tromey@adacore.com>
12398
12399 * windows-nat.c (windows_nat::handle_load_dll)
12400 (windows_nat::handle_unload_dll): Rename. No longer static.
12401 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12402 Declare.
12403
12404 2020-04-08 Tom Tromey <tromey@adacore.com>
12405
12406 * complaints.h (stop_whining): Declare at top-level.
12407 (complaint): Don't declare stop_whining.
12408
12409 2020-04-08 Tom Tromey <tromey@adacore.com>
12410
12411 * windows-nat.c (windows_nat::handle_output_debug_string):
12412 Rename. No longer static.
12413 * nat/windows-nat.h (handle_output_debug_string): Declare.
12414
12415 2020-04-08 Tom Tromey <tromey@adacore.com>
12416
12417 * windows-nat.c (current_process_handle, current_process_id)
12418 (main_thread_id, last_sig, current_event, last_wait_event)
12419 (current_windows_thread, desired_stop_thread_id, pending_stops)
12420 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12421 (display_selectors, fake_create_process)
12422 (get_windows_debug_event): Update.
12423 * nat/windows-nat.h (current_process_handle, current_process_id)
12424 (main_thread_id, last_sig, current_event, last_wait_event)
12425 (current_windows_thread, desired_stop_thread_id, pending_stops)
12426 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12427 * nat/windows-nat.c (current_process_handle, current_process_id)
12428 (main_thread_id, last_sig, current_event, last_wait_event)
12429 (current_windows_thread, desired_stop_thread_id, pending_stops)
12430 (siginfo_er): New globals. Move from windows-nat.c.
12431
12432 2020-04-08 Tom Tromey <tromey@adacore.com>
12433
12434 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12435 (handle_load_dll): Update.
12436 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12437
12438 2020-04-08 Tom Tromey <tromey@adacore.com>
12439
12440 * windows-nat.c (enum thread_disposition_type): Move to
12441 nat/windows-nat.h.
12442 (windows_nat::thread_rec): Rename from thread_rec. No longer
12443 static.
12444 (windows_add_thread, windows_nat_target::fetch_registers)
12445 (windows_nat_target::store_registers, handle_exception)
12446 (windows_nat_target::resume, get_windows_debug_event)
12447 (windows_nat_target::get_tib_address)
12448 (windows_nat_target::thread_name)
12449 (windows_nat_target::thread_alive): Update.
12450 * nat/windows-nat.h (enum thread_disposition_type): Move from
12451 windows-nat.c.
12452 (thread_rec): Declare.
12453
12454 2020-04-08 Tom Tromey <tromey@adacore.com>
12455
12456 * windows-nat.c: Add "using namespace".
12457 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12458 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12459
12460 2020-04-08 Tom Tromey <tromey@adacore.com>
12461
12462 * nat/windows-nat.h (struct windows_thread_info): Declare
12463 destructor.
12464 * nat/windows-nat.c (~windows_thread_info): New.
12465
12466 2020-04-08 Tom Tromey <tromey@adacore.com>
12467
12468 PR gdb/22992
12469 * windows-nat.c (current_event): Update comment.
12470 (last_wait_event, desired_stop_thread_id): New globals.
12471 (struct pending_stop): New.
12472 (pending_stops): New global.
12473 (windows_nat_target) <stopped_by_sw_breakpoint>
12474 <supports_stopped_by_sw_breakpoint>: New methods.
12475 (windows_fetch_one_register): Add assertions. Adjust PC.
12476 (windows_continue): Handle pending stops. Suspend other threads
12477 when stepping. Use last_wait_event
12478 (wait_for_debug_event): New function.
12479 (get_windows_debug_event): Use wait_for_debug_event. Handle
12480 pending stops. Queue spurious stops.
12481 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12482 (windows_nat_target::kill): Use wait_for_debug_event.
12483 * nat/windows-nat.h (struct windows_thread_info)
12484 <stopped_at_software_breakpoint>: New field.
12485 * nat/windows-nat.c (windows_thread_info::resume): Clear
12486 stopped_at_software_breakpoint.
12487
12488 2020-04-08 Tom Tromey <tromey@adacore.com>
12489
12490 * windows-nat.c (enum thread_disposition_type): New.
12491 (thread_rec): Replace "get_context" parameter with "disposition";
12492 change type.
12493 (windows_add_thread, windows_nat_target::fetch_registers)
12494 (windows_nat_target::store_registers, handle_exception)
12495 (windows_nat_target::resume, get_windows_debug_event)
12496 (windows_nat_target::get_tib_address)
12497 (windows_nat_target::thread_name)
12498 (windows_nat_target::thread_alive): Update.
12499
12500 2020-04-08 Tom Tromey <tromey@adacore.com>
12501
12502 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12503 (windows_continue): Use windows_continue::resume.
12504 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12505 resume>: Declare new methods.
12506 * nat/windows-nat.c: New file.
12507 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12508
12509 2020-04-08 Tom Tromey <tromey@adacore.com>
12510
12511 * windows-nat.c (windows_add_thread, windows_delete_thread)
12512 (windows_nat_target::fetch_registers)
12513 (windows_nat_target::store_registers, fake_create_process)
12514 (windows_nat_target::resume, windows_nat_target::resume)
12515 (get_windows_debug_event, windows_nat_target::wait)
12516 (windows_nat_target::pid_to_str)
12517 (windows_nat_target::get_tib_address)
12518 (windows_nat_target::get_ada_task_ptid)
12519 (windows_nat_target::thread_name)
12520 (windows_nat_target::thread_alive): Use lwp, not tid.
12521
12522 2020-04-08 Tom Tromey <tromey@adacore.com>
12523
12524 * windows-nat.c (handle_exception)
12525 (windows_nat_target::thread_name): Update.
12526 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12527 <name>: Now unique_xmalloc_ptr.
12528
12529 2020-04-08 Tom Tromey <tromey@adacore.com>
12530
12531 * windows-nat.c (thread_rec)
12532 (windows_nat_target::fetch_registers): Update.
12533 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12534 Update comment.
12535 <debug_registers_changed, reload_context>: Now bool.
12536
12537 2020-04-08 Tom Tromey <tromey@adacore.com>
12538
12539 * windows-nat.c (windows_add_thread): Use new.
12540 (windows_init_thread_list, windows_delete_thread): Use delete.
12541 (get_windows_debug_event): Update.
12542 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12543 destructor, and initializers.
12544
12545 2020-04-08 Tom Tromey <tromey@adacore.com>
12546
12547 * windows-nat.c (struct windows_thread_info): Remove.
12548 * nat/windows-nat.h: New file.
12549
12550 2020-04-08 Tom Tromey <tromey@adacore.com>
12551
12552 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12553 (thread_rec, windows_add_thread, windows_delete_thread)
12554 (windows_continue): Update.
12555
12556 2020-04-08 Tom Tromey <tromey@adacore.com>
12557
12558 * windows-nat.c (struct windows_thread_info): Remove typedef.
12559 (thread_head): Remove.
12560 (thread_list): New global.
12561 (thread_rec, windows_add_thread, windows_init_thread_list)
12562 (windows_delete_thread, windows_continue): Update.
12563
12564 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12565
12566 * windows-tdep.h (windows_init_abi): Add comment.
12567 (cygwin_init_abi): New declaration.
12568 * windows-tdep.c: Split signal enumeration in two, one for
12569 Windows and one for Cygwin.
12570 (windows_gdb_signal_to_target): Only deal with signal of the
12571 Windows OS ABI.
12572 (cygwin_gdb_signal_to_target): New function.
12573 (windows_init_abi): Rename to windows_init_abi_common, don't set
12574 gdb_signal_to_target gdbarch method. Add new new function with
12575 this name.
12576 (cygwin_init_abi): New function.
12577 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12578 comment. Don't call windows_init_abi.
12579 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12580 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12581 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12582 i386_windows_init_abi_common, don't call windows_init_abi. Add
12583 a new function of this name.
12584 (i386_cygwin_init_abi): New function.
12585 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12586 OS ABI Cygwin.
12587
12588 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12589
12590 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12591 parameter.c.
12592 (dwarf2_read_gdb_index): Update.
12593
12594 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12595
12596 * nbsd-tdep.c: Include "objfiles.h".
12597 (nbsd_skip_solib_resolver): New.
12598 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12599
12600 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12601
12602 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12603 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12604 with DW_LLE_base_addressx are being emitted in DWARFv5.
12605 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12606 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12607 unsigned integer.
12608
12609 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12610
12611 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12612 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12613 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12614 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12615 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12616 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12617 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12618
12619
12620 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12621
12622 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12623 (read_loclist_index): New function definition.
12624 (lookup_loclist_base): New function definition.
12625 (read_loclist_header): New function definition.
12626 (dwarf2_cu): Add loclist_base and loclist_header field.
12627 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12628 (read_full_die_1): Read the value of DW_AT_loclists_base.
12629 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12630 (read_attribute_value): Handle DW_FORM_loclistx.
12631 (skip_one_die): Handle DW_FORM_loclistx.
12632 (loclist_header): New structure declaration.
12633 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12634
12635 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12636
12637 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12638 constructor. Remove `addr` parameter from other constructor and
12639 add `per_cu` parameter.
12640 * dwarf2/read.c (create_partial_symtab): Update.
12641
12642 2020-04-07 Tom de Vries <tdevries@suse.de>
12643
12644 PR symtab/25796
12645 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12646 (partial_die_info::fixup): Inherit has_const_value.
12647
12648 2020-04-07 Tom de Vries <tdevries@suse.de>
12649
12650 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12651 symbols without address.
12652
12653 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12654
12655 * nbsd-nat.h (struct thread_info): Add forward declaration.
12656 (nbsd_nat_target::thread_alive): Add.
12657 (nbsd_nat_target::thread_name): Likewise.
12658 (nbsd_nat_target::update_thread_list): Likewise.
12659 (update_thread_list::post_attach): Likewise.
12660 (post_attach::pid_to_str): Likewise.
12661 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12662 (nbsd_thread_lister): Add.
12663 (nbsd_nat_target::thread_alive): Likewise.
12664 (nbsd_nat_target::thread_name): Likewise.
12665 (nbsd_add_threads): Likewise.
12666 (update_thread_list::post_attach): Likewise.
12667 (nbsd_nat_target::update_thread_list): Likewise.
12668 (post_attach::pid_to_str): Likewise.
12669
12670 2020-04-06 Tom Tromey <tromey@adacore.com>
12671
12672 * ada-valprint.c (print_variant_part): Extract the variant field.
12673 (print_field_values): Use the field as the outer value when
12674 recursing.
12675
12676 2020-04-06 Tom Tromey <tromey@adacore.com>
12677
12678 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12679 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12680 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12681 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12682 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12683
12684 2020-04-06 Tom Tromey <tromey@adacore.com>
12685
12686 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12687 TYPE_CODE_ERROR.
12688
12689 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12690
12691 * nbsd-tdep.c: Include "gdbarch.h".
12692 Define enum with NetBSD signal numbers.
12693 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12694 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12695 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12696 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12697 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12698 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12699 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12700 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12701 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12702 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12703 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12704 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12705
12706 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12707
12708 PR gdb/25325
12709 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12710
12711 2020-04-03 Tom Tromey <tromey@adacore.com>
12712
12713 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12714 Read constant block.
12715
12716 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12717
12718 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12719 (gdb_bfd_get_full_section_contents): New declaration.
12720 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12721 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12722 gdb_bfd_get_full_section_contents.
12723
12724 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12725
12726 * exec.c (build_section_table): Replace internal_error with
12727 gdb_assert.
12728 (section_table_xfer_memory_partial): Likewise.
12729 * mdebugread.c (parse_partial_symbols): Likewise.
12730 * psymtab.c (lookup_partial_symbol): Likewise.
12731 * utils.c (wrap_here): Likewise.
12732
12733 2020-04-02 Tom Tromey <tromey@adacore.com>
12734
12735 * f-lang.c (build_fortran_types): Use arch_type to initialize
12736 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12737
12738 2020-04-02 Tom Tromey <tromey@adacore.com>
12739
12740 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12741 of attributes.
12742
12743 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12744 Bernd Edlinger <bernd.edlinger@hotmail.de>
12745 Tom Tromey <tromey@adacore.com>
12746
12747 * buildsym.c (buildsym_compunit::record_line): Remove
12748 deduplication code.
12749
12750 2020-04-02 Tom de Vries <tdevries@suse.de>
12751
12752 PR ada/24671
12753 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12754
12755 2020-04-02 Tom de Vries <tdevries@suse.de>
12756
12757 * dwarf2/read.c (dwarf2_gdb_index_functions,
12758 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12759 NULL.
12760 * psymtab.c (psym_lookup_global_symbol_language): New function.
12761 (psym_functions): Init psym_lookup_global_symbol_language with
12762 psym_lookup_global_symbol_language.
12763 * symfile-debug.c (debug_sym_quick_functions): Init
12764 lookup_global_symbol_language with NULL.
12765 * symfile.c (set_initial_language): Remove fixme comment.
12766 * symfile.h (struct quick_symbol_functions): Add
12767 lookup_global_symbol_language.
12768 * symtab.c (find_quick_global_symbol_language): New function.
12769 (find_main_name): Use find_quick_global_symbol_language.
12770
12771 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12772
12773 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12774
12775 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12776
12777 * buildsym.c (record_line): Fix undefined behavior and preserve
12778 lines at eof.
12779
12780 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12781
12782 * buildsym.c (record_line): Fix the resizing condition.
12783
12784 2020-04-01 Tom Tromey <tom@tromey.com>
12785
12786 * value.h (value_literal_complex): Add comment.
12787 * valops.c (value_literal_complex): Refer to value.h.
12788
12789 2020-04-01 Tom Tromey <tom@tromey.com>
12790
12791 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12792 (scalar_type): New rule, from typebase.
12793 (typebase): Use scalar_type. Recognize complex types.
12794 (field_name): Handle FLOAT_KEYWORD.
12795 (ident_tokens): Add _Complex and __complex__.
12796
12797 2020-04-01 Tom Tromey <tom@tromey.com>
12798
12799 PR exp/25299:
12800 * valarith.c (promotion_type, complex_binop): New functions.
12801 (scalar_binop): Handle complex numbers. Use promotion_type.
12802 (value_pos, value_neg, value_complement): Handle complex numbers.
12803
12804 2020-04-01 Tom Tromey <tom@tromey.com>
12805
12806 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12807 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12808 (parse_number): Handle complex numbers.
12809
12810 2020-04-01 Tom Tromey <tom@tromey.com>
12811
12812 * c-valprint.c (c_decorations): Change complex suffix to "i".
12813
12814 2020-04-01 Tom Tromey <tom@tromey.com>
12815
12816 * valprint.c (generic_value_print_complex): Use accessors.
12817 * value.h (value_real_part, value_imaginary_part): Declare.
12818 * valops.c (value_real_part, value_imaginary_part): New
12819 functions.
12820 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12821
12822 2020-04-01 Tom Tromey <tom@tromey.com>
12823
12824 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12825 (read_range_type): Update.
12826 * mdebugread.c (basic_type): Update.
12827 * go-lang.c (build_go_types): Use init_complex_type.
12828 * gdbtypes.h (struct main_type) <complex_type>: New member.
12829 (init_complex_type): Update.
12830 (arch_complex_type): Don't declare.
12831 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12832 Make name if none given. Use alloc_type_copy. Look for cached
12833 complex type.
12834 (arch_complex_type): Remove.
12835 (gdbtypes_post_init): Use init_complex_type.
12836 * f-lang.c (build_fortran_types): Use init_complex_type.
12837 * dwarf2/read.c (read_base_type): Update.
12838 * d-lang.c (build_d_types): Use init_complex_type.
12839 * ctfread.c (read_base_type): Update.
12840
12841 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12842
12843 * infrun.c (stop_all_threads): Update assertion, plus when
12844 stopping threads, take into account that we might be trying
12845 to stop an all-stop target.
12846 (stop_waiting): Call 'stop_all_threads' if there exists a
12847 non-stop target.
12848
12849 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12850
12851 * target.h (exists_non_stop_target): New function declaration.
12852 * target.c (exists_non_stop_target): New function.
12853
12854 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12855
12856 PR gdb/24789
12857 * eval.c (is_integral_or_integral_reference): New function.
12858 (evaluate_subexp_standard): Allow integer references in
12859 pointer arithmetic.
12860
12861 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12862
12863 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12864 check for no ptid in the stop reply when the target is non-stop.
12865
12866 2020-04-01 Tom Tromey <tromey@adacore.com>
12867
12868 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12869 "name" parameter to rvalue reference. Initialize m_name_holder.
12870 <lookup_name_info>: New overloads.
12871 <name>: Return gdb::string_view.
12872 <c_str>: New method.
12873 <make_ignore_params>: Update.
12874 <search_name_hash>: Update.
12875 <language_lookup_name>: Return const char *.
12876 <m_name>: Change type.
12877 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12878 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12879 (lookup_name_info::match_any): Update.
12880 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12881 Update.
12882 * minsyms.c (linkage_name_str): Update.
12883 * language.c (default_symbol_name_matcher): Update.
12884 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12885 Update.
12886 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12887 (ada_lookup_name_info::ada_lookup_name_info): Update.
12888 (literal_symbol_name_matcher): Update.
12889
12890 2020-04-01 Tom Tromey <tromey@adacore.com>
12891
12892 * psymtab.c (psymtab_search_name): Remove function.
12893 (psym_lookup_symbol): Create search name and lookup name here.
12894 (lookup_partial_symbol): Remove "name" parameter; add
12895 lookup_name.
12896 (psym_expand_symtabs_for_function): Update.
12897
12898 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12899
12900 PR tui/25597:
12901 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12902
12903 2020-03-31 Tom Tromey <tromey@adacore.com>
12904
12905 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12906 memcpy.
12907
12908 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12909
12910 * features/riscv/32bit-csr.xml: Regenerated.
12911 * features/riscv/64bit-csr.xml: Regenerated.
12912
12913 2020-03-30 Tom Tromey <tromey@adacore.com>
12914
12915 * ada-valprint.c (print_variant_part): Update.
12916 * ada-lang.h (ada_which_variant_applies): Update.
12917 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12918 outer_valaddr parameters; replace with "outer" value parameter.
12919 (to_fixed_variant_branch_type): Update.
12920
12921 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12922
12923 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12924 <list>. Remove inclusion of observable.h.
12925 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12926 (struct arch_lwp_info): New struct.
12927 (class ppc_linux_dreg_interface): New class.
12928 (struct ppc_linux_process_info): New struct.
12929 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12930 <low_new_clone, low_forget_process, low_prepare_to_resume>
12931 <copy_thread_dreg_state, mark_thread_stale>
12932 <mark_debug_registers_changed, register_hw_breakpoint>
12933 <clear_hw_breakpoint, register_wp, clear_wp>
12934 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12935 <num_memory_accesses, get_trigger_type>
12936 <create_watchpoint_request, hwdebug_point_cmp>
12937 <init_arch_lwp_info, get_arch_lwp_info>
12938 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12939 methods.
12940 <struct ptid_hash>: New inner struct.
12941 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12942 members.
12943 (saved_dabr_value, hwdebug_info, max_slots_number)
12944 (struct hw_break_tuple, struct thread_points, ppc_threads)
12945 (have_ptrace_hwdebug_interface)
12946 (hwdebug_find_thread_points_by_tid)
12947 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12948 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12949 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12950 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12951 use m_dreg_interface.
12952 (hwdebug_point_cmp): Change to...
12953 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12954 reference arguments instead of pointers.
12955 (ppc_linux_nat_target::ranged_break_num_registers): Use
12956 m_dreg_interface.
12957 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12958 m_dreg_interface. Call register_hw_breakpoint.
12959 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12960 m_dreg_interface. Call clear_hw_breakpoint.
12961 (get_trigger_type): Change to...
12962 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12963 comment.
12964 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12965 use m_dreg_interface. Call register_hw_breakpoint.
12966 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12967 use m_dreg_interface. Call clear_hw_breakpoint.
12968 (can_use_watchpoint_cond_accel): Change to...
12969 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12970 method. Update comment, use m_dreg_interface and
12971 m_process_info.
12972 (calculate_dvc): Change to...
12973 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12974 m_dreg_interface.
12975 (num_memory_accesses): Change to...
12976 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12977 (check_condition): Change to...
12978 (ppc_linux_nat_target::check_condition): ...this method.
12979 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12980 comment, use m_dreg_interface.
12981 (create_watchpoint_request): Change to...
12982 (ppc_linux_nat_target::create_watchpoint_request): ...this
12983 method. Use m_dreg_interface.
12984 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12985 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12986 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12987 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12988 (ppc_linux_nat_target::low_forget_process)
12989 (ppc_linux_nat_target::low_new_fork)
12990 (ppc_linux_nat_target::low_new_clone)
12991 (ppc_linux_nat_target::low_delete_thread)
12992 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12993 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12994 only call mark_thread_stale.
12995 (ppc_linux_thread_exit): Remove.
12996 (ppc_linux_nat_target::stopped_data_address): Change to...
12997 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12998 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12999 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13000 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13001 comment. Call low_stopped_data_address.
13002 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13003 m_dreg_interface.
13004 (ppc_linux_nat_target::masked_watch_num_registers): Use
13005 m_dreg_interface.
13006 (ppc_linux_nat_target::copy_thread_dreg_state)
13007 (ppc_linux_nat_target::mark_thread_stale)
13008 (ppc_linux_nat_target::mark_debug_registers_changed)
13009 (ppc_linux_nat_target::register_hw_breakpoint)
13010 (ppc_linux_nat_target::clear_hw_breakpoint)
13011 (ppc_linux_nat_target::register_wp)
13012 (ppc_linux_nat_target::clear_wp)
13013 (ppc_linux_nat_target::init_arch_lwp_info)
13014 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13015 (_initialize_ppc_linux_nat): Remove observer callback.
13016
13017 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13018
13019 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13020 (ppc_linux_nat_target::auxv_parse)
13021 (ppc_linux_nat_target::read_description)
13022 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13023 Move up.
13024
13025 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13026
13027 * linux-nat.h (low_new_clone): New method.
13028 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13029
13030 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13031
13032 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13033 (dbx_expand_psymtab): ... this.
13034 (start_psymtab): Update.
13035 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13036 (mdebug_expand_psymtab): ... this.
13037 (parse_partial_symbols): Update.
13038 (new_psymtab): Update.
13039 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13040 (xcoff_expand_psymtab): ... this.
13041 (xcoff_start_psymtab): Update.
13042
13043 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13044
13045 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13046 <expand_dependencies>: ... this.
13047 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13048 (partial_symtab::expand_dependencies): ... this.
13049 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13050 Update.
13051 (dwarf2_psymtab::expand_psymtab): Update.
13052 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13053 * mdebugread.c (psymtab_to_symtab_1): Update.
13054 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13055
13056 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13057
13058 * psympriv.h (discard_psymtab): Remove.
13059 * dbxread.c (dbx_end_psymtab): Update.
13060 * xcoffread.c (xcoff_end_psymtab): Update.
13061
13062 2020-03-28 Tom Tromey <tom@tromey.com>
13063
13064 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13065 comment.
13066
13067 2020-03-28 Tom Tromey <tom@tromey.com>
13068
13069 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13070
13071 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13072
13073 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13074
13075 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13076
13077 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13078
13079 2020-03-26 Tom Tromey <tom@tromey.com>
13080
13081 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13082 (mark_common_block_symbol_computed, read_tag_string_type)
13083 (attr_to_dynamic_prop, read_subrange_type): Update.
13084 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13085 to be methods on struct attribute.
13086 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13087 (read_call_site_scope, partial_die_info::read)
13088 (partial_die_info::read, lookup_die_type, follow_die_ref):
13089 Update.
13090 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13091 from dwarf2_get_ref_die_offset.
13092 (attribute::constant_value): New method, from
13093 dwarf2_get_attr_constant_value.
13094 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13095 Declare method.
13096 <constant_value>: New method.
13097
13098 2020-03-26 Tom Tromey <tom@tromey.com>
13099
13100 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13101 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13102 (dwarf_type_encoding_name): Move to stringify.c.
13103 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13104 * dwarf2/stringify.c: New file.
13105 * dwarf2/stringify.h: New file.
13106
13107 2020-03-26 Tom Tromey <tom@tromey.com>
13108
13109 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13110 Rewrite.
13111
13112 2020-03-26 Tom Tromey <tom@tromey.com>
13113
13114 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13115 methods.
13116 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13117 (lookup_ranges_base): Likewise.
13118 (read_cutu_die_from_dwo, read_full_die_1): Update.
13119
13120 2020-03-26 Tom Tromey <tom@tromey.com>
13121
13122 * dwarf2/read.c (read_import_statement, read_file_scope)
13123 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13124 (read_lexical_block_scope, read_call_site_scope)
13125 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13126 (handle_struct_member_die, process_structure_scope)
13127 (update_enumeration_type_from_children)
13128 (process_enumeration_scope, read_array_type, read_common_block)
13129 (read_namespace, read_module, read_subroutine_type): Update.
13130 (sibling_die): Remove.
13131
13132 2020-03-26 Tom Tromey <tom@tromey.com>
13133
13134 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13135 (build_type_psymtabs_reader, read_structure_type)
13136 (read_enumeration_type, read_full_die_1): Update.
13137 (dwarf2_attr_no_follow): Move to die.h.
13138 * dwarf2/die.h (struct die_info) <attr>: New method.
13139
13140 2020-03-26 Tom Tromey <tom@tromey.com>
13141
13142 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13143 <base_address>: Now an optional.
13144 (dwarf2_find_base_address, dwarf2_rnglists_process)
13145 (dwarf2_ranges_process, fill_in_loclist_baton)
13146 (dwarf2_symbol_mark_computed): Update.
13147
13148 2020-03-26 Tom Tromey <tom@tromey.com>
13149
13150 * dwarf2/read.c (struct die_info): Move to die.h.
13151 * dwarf2/die.h: New file.
13152
13153 2020-03-26 Tom Tromey <tom@tromey.com>
13154
13155 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13156 * dwarf2/read.c
13157 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13158 Move to line-header.c.
13159 (read_checked_initial_length_and_offset, read_formatted_entries):
13160 Likewise.
13161 (dwarf_decode_line_header): Split into two.
13162 * dwarf2/line-header.c
13163 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13164 Move from read.c.
13165 (read_checked_initial_length_and_offset, read_formatted_entries):
13166 Likewise.
13167 (dwarf_decode_line_header): New function, split from read.c.
13168
13169 2020-03-26 Tom Tromey <tom@tromey.com>
13170
13171 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13172 Declare method.
13173 * dwarf2/read.c (read_attribute_value): Update.
13174 (dwarf2_per_objfile::read_line_string): Rename from
13175 read_indirect_line_string.
13176 (read_formatted_entries): Update.
13177
13178 2020-03-26 Tom Tromey <tom@tromey.com>
13179
13180 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13181 variable.
13182
13183 2020-03-26 Tom Tromey <tom@tromey.com>
13184
13185 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13186 const.
13187 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13188 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13189 parameter const.
13190
13191 2020-03-26 Tom Tromey <tom@tromey.com>
13192
13193 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13194 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13195 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13196 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13197
13198 2020-03-26 Tom Tromey <tom@tromey.com>
13199
13200 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13201 file_names_size, file_full_name, file_file_name>: Use const.
13202 <file_name_at, file_names>: Add const overload.
13203 * dwarf2/line-header.c (line_header::file_file_name)
13204 (line_header::file_full_name): Update.
13205
13206 2020-03-26 Tom Tromey <tom@tromey.com>
13207
13208 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13209 (macro_start_file, consume_improper_spaces)
13210 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13211 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13212 (dwarf_decode_macros): Move to macro.c.
13213 * dwarf2/macro.c: New file.
13214 * dwarf2/macro.h: New file.
13215 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13216
13217 2020-03-26 Tom Tromey <tom@tromey.com>
13218
13219 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13220 method.
13221 * dwarf2/section.c: New method. From
13222 read_indirect_string_at_offset_from.
13223 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13224 (read_indirect_string_at_offset_from): Move to section.c.
13225 (read_indirect_string_at_offset): Rewrite.
13226 (read_indirect_line_string_at_offset): Remove.
13227 (read_indirect_string, read_indirect_line_string)
13228 (dwarf_decode_macro_bytes): Update.
13229
13230 2020-03-26 Tom Tromey <tom@tromey.com>
13231
13232 * dwarf2/section.h (struct dwarf2_section_info)
13233 <overload_complaint>: Declare.
13234 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13235 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13236 Rename from dwarf2_section_buffer_overflow_complaint.
13237 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13238 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13239
13240 2020-03-26 Tom Tromey <tom@tromey.com>
13241
13242 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13243 Declare.
13244 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13245 Move from read.c.
13246 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13247 to section.c.
13248
13249 2020-03-26 Tom Tromey <tom@tromey.com>
13250
13251 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13252
13253 2020-03-26 Tom Tromey <tom@tromey.com>
13254
13255 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13256 "builder".
13257 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13258 parameter.
13259 (dwarf_decode_macros): Update.
13260
13261 2020-03-26 Tom Tromey <tom@tromey.com>
13262
13263 * dwarf2/read.c (read_attribute_value): Update.
13264 (read_indirect_string_from_dwz): Move to dwz.c; change into
13265 method.
13266 (dwarf_decode_macro_bytes): Update.
13267 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13268 * dwarf2/dwz.c: New file.
13269 * Makefile.in (COMMON_SFILES): Add dwz.c.
13270
13271 2020-03-26 Tom Tromey <tom@tromey.com>
13272
13273 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13274 * dwarf2/read.c: Add include.
13275 * dwarf2/index-write.c: Add include.
13276 * dwarf2/index-cache.c: Add include.
13277 * dwarf2/dwz.h: New file.
13278
13279 2020-03-25 Tom Tromey <tom@tromey.com>
13280
13281 * compile/compile-object-load.c (get_out_value_type): Mention
13282 correct symbol name in error message.
13283
13284 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13285
13286 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13287
13288 2020-03-25 Tom de Vries <tdevries@suse.de>
13289
13290 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13291 * symmisc.c (dump_symtab_1): Print user and includes fields.
13292 (maintenance_info_symtabs): Same.
13293
13294 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13295
13296 PR gdb/25534
13297 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13298 (riscv_regcache_cooked_write): New function.
13299 (riscv_push_dummy_call): Use new function.
13300 (riscv_return_value): Likewise.
13301
13302 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13303
13304 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13305 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13306 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13307 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13308 * infrun.c (follow_fork): Likewise.
13309 (follow_fork_inferior): Likewise.
13310 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13311 * linux-nat.h (class linux_nat_target): Likewise.
13312 * remote.c (class remote_target) <follow_fork>: Likewise.
13313 (remote_target::follow_fork): Likewise.
13314 * target-delegates.c: Re-generate.
13315 * target.c (default_follow_fork): Likewise.
13316 (target_follow_fork): Likewise.
13317 * target.h (struct target_ops) <follow_fork>: Likewise.
13318 (target_follow_fork): Likewise.
13319
13320 2020-03-24 Tom de Vries <tdevries@suse.de>
13321
13322 * psymtab.c (maintenance_info_psymtabs): Print user field.
13323
13324 2020-03-20 Tom Tromey <tromey@adacore.com>
13325
13326 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13327 const.
13328 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13329 const.
13330
13331 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13332
13333 * ptrace.m4: Don't check for ptrace declaration.
13334 * config.in: Re-generate.
13335 * configure: Re-generate.
13336 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13337 not defined.
13338
13339 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13340
13341 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13342 `PTRACE_TYPE_RET'.
13343 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13344 * sparc-nat.c (gdb_ptrace): Likewise.
13345 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13346
13347 2020-03-20 Tom Tromey <tromey@adacore.com>
13348
13349 * c-exp.y (lex_one_token): Fix assert.
13350
13351 2020-03-20 Tom Tromey <tromey@adacore.com>
13352
13353 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13354 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13355 strncpy call.
13356
13357 2020-03-20 Tom Tromey <tromey@adacore.com>
13358
13359 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13360
13361 2020-03-20 Tom Tromey <tromey@adacore.com>
13362
13363 * ada-valprint.c (print_variant_part): Remove parameters; switch
13364 to value-based API.
13365 (print_field_values): Likewise.
13366 (ada_val_print_struct_union): Likewise.
13367 (ada_value_print_1): Update.
13368
13369 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13370
13371 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13372 nbsd_nat_target instead of inf_ptrace_target.
13373 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13374 nbsd_nat_target.
13375
13376 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13377
13378 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13379 it to the ptrace call.
13380 * (store_registers): Likewise.
13381
13382 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13383
13384 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13385 it to the ptrace call.
13386 * (store_registers): Likewise.
13387
13388 2020-03-19 Luis Machado <luis.machado@linaro.org>
13389
13390 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13391 valid, fetch vg value from ptrace.
13392
13393 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13394 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13395 * inf-ptrace.c: Likewise.
13396 * (gdb_ptrace): Add.
13397 * (inf_ptrace_target::resume): Update.
13398 * (inf_ptrace_target::xfer_partial): Likewise.
13399 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13400 * (inf_ptrace_peek_poke): Update.
13401
13402 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13403
13404 * x86-bsd-nat.c (gdb_ptrace): New.
13405 * (x86bsd_dr_set): Add new argument `ptid'.
13406 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13407 x86bsd_dr_set_addr): Update.
13408
13409 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13410
13411 * remote.c (remote_target::process_stop_reply): Handle events for
13412 all threads differently.
13413
13414 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13415
13416 * completer.c (completion_tracker::remove_completion): Define new
13417 function.
13418 * completer.h (completion_tracker::remove_completion): Declare new
13419 function.
13420 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13421 when adding a C++ function symbol.
13422
13423 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13424
13425 * completer.c (completion_tracker::completion_hash_entry): Define
13426 new class.
13427 (advance_to_filename_complete_word_point): Call
13428 recompute_lowest_common_denominator.
13429 (completion_tracker::completion_tracker): Call discard_completions
13430 to setup the hash table.
13431 (completion_tracker::discard_completions): Allow for being called
13432 from the constructor, pass new equal function, and element deleter
13433 when constructing the hash table. Initialise new class member
13434 variables.
13435 (completion_tracker::maybe_add_completion): Remove use of
13436 m_entries_vec, and store more information into m_entries_hash.
13437 (completion_tracker::recompute_lcd_visitor): New function, most
13438 content taken from...
13439 (completion_tracker::recompute_lowest_common_denominator):
13440 ...here, this now just visits each item in the hash calling the
13441 above visitor.
13442 (completion_tracker::build_completion_result): Remove use of
13443 m_entries_vec, call recompute_lowest_common_denominator.
13444 * completer.h (completion_tracker::have_completions): Remove use
13445 of m_entries_vec.
13446 (completion_tracker::completion_hash_entry): Declare new class.
13447 (completion_tracker::recompute_lowest_common_denominator): Change
13448 function signature.
13449 (completion_tracker::recompute_lcd_visitor): Declare new function.
13450 (completion_tracker::m_entries_vec): Delete.
13451 (completion_tracker::m_entries_hash): Initialize to NULL.
13452 (completion_tracker::m_lowest_common_denominator_valid): New
13453 member variable.
13454 (completion_tracker::m_lowest_common_denominator_max_length): New
13455 member variable.
13456
13457 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13458
13459 * regformats/regdef.h: Put reg in gdb namespace.
13460
13461 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13462
13463 * i386-bsd-nat.c (gdb_ptrace): New.
13464 * (i386bsd_fetch_inferior_registers,
13465 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13466 * (i386bsd_fetch_inferior_registers,
13467 i386bsd_store_inferior_registers) Use gdb_ptrace.
13468
13469 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13470
13471 * amd64-bsd-nat.c (gdb_ptrace): New.
13472 * (amd64bsd_fetch_inferior_registers,
13473 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13474 * (amd64bsd_fetch_inferior_registers,
13475 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13476
13477 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13478
13479 * user-regs.c (user_reg::read): Rename to...
13480 (user_reg::xread): ...this.
13481 * (append_user_reg): Rename argument `read' to `xread'.
13482 * (user_reg_add_builtin): Likewise.
13483 * (user_reg_add): Likewise.
13484 * (value_of_user_reg): Likewise.
13485
13486 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13487
13488 * sparc-nat.c (gdb_ptrace): New.
13489 * sparc-nat.c (sparc_fetch_inferior_registers)
13490 (sparc_store_inferior_registers) Remove obsolete comment.
13491 * sparc-nat.c (sparc_fetch_inferior_registers)
13492 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13493 * sparc-nat.c (sparc_fetch_inferior_registers)
13494 (sparc_store_inferior_registers) Use gdb_ptrace.
13495
13496 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13497
13498 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13499 it to the ptrace call.
13500 * sh-nbsd-nat.c (store_registers): Likewise.
13501
13502 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13503
13504 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13505 nbsd_nat_target instead of inf_ptrace_target.
13506 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13507 nbsd_nat_target.
13508
13509 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13510
13511 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13512
13513 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13514
13515 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13516 <sys/sysctl.h>.
13517 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13518
13519 2020-03-17 Tom de Vries <tdevries@suse.de>
13520
13521 PR gdb/23710
13522 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13523 fields.
13524 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13525 fields.
13526 (process_imported_unit_die): Skip import of c++ CUs.
13527
13528 2020-03-16 Tom Tromey <tom@tromey.com>
13529
13530 * p-valprint.c (pascal_object_print_value): Initialize
13531 base_value.
13532
13533 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13534 Shahab Vahedi <shahab@synopsys.com>
13535
13536 * Makefile.in: Add arch/arc.o
13537 * configure.tgt: Likewise.
13538 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13539 (_initialize_arc_tdep): Don't initialize old target descriptions.
13540 (arc_read_description): New function to cache target descriptions.
13541 * arc-tdep.h (arc_read_description): Add proto type.
13542 * arch/arc.c: New file.
13543 * arch/arc.h: Likewise.
13544 * features/Makefile: Replace old target descriptions with new.
13545 * features/arc-arcompact.c: Remove.
13546 * features/arc-arcompact.xml: Likewise.
13547 * features/arc-v2.c: Likewise
13548 * features/arc-v2.xml: Likewise
13549 * features/arc/aux-arcompact.xml: New file.
13550 * features/arc/aux-v2.xml: Likewise.
13551 * features/arc/core-arcompact.xml: Likewise.
13552 * features/arc/core-v2.xml: Likewise.
13553 * features/arc/aux-arcompact.c: Generate.
13554 * features/arc/aux-v2.c: Likewise.
13555 * features/arc/core-arcompact.c: Likewise.
13556 * features/arc/core-v2.c: Likewise.
13557 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13558
13559 2020-03-16 Tom Tromey <tromey@adacore.com>
13560
13561 PR gdb/25663:
13562 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13563 putting value into bcache.
13564
13565 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13566
13567 PR gdb/21500
13568 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13569 to...
13570 (amd64_windows_init_abi_common): ... this. Don't set size of
13571 long type.
13572 (amd64_windows_init_abi): New function.
13573 (amd64_cygwin_init_abi): New function.
13574 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13575 the Cygwin OS ABI.
13576 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13577 comment.
13578
13579 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13580
13581 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13582 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13583 (pe_import_directory_entry): New struct type.
13584 (is_linked_with_cygwin_dll): New function.
13585 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13586 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13587 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13588
13589 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13590
13591 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13592 i386_cygwin_core_osabi_sniffer.
13593
13594 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13595
13596 * i386-cygwin-tdep.c: Rename to...
13597 * i386-windows-tdep.c: ... this.
13598 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13599 i386-windows-tdep.c.
13600 * configure.tgt: Likewise.
13601
13602 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13603
13604 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13605 * osabi.c (gdb_osabi_names): Add "Windows".
13606 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13607 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13608 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13609 i386_cygwin_osabi_sniffer.
13610 (_initialize_i386_cygwin_tdep): Register OS ABI
13611 GDB_OSABI_WINDOWS for i386.
13612 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13613 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13614 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13615 for x86-64.
13616 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13617 when the target matches '*-*-mingw*'.
13618
13619 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13620
13621 * defs.h (enum gdb_osabi): Move to...
13622 * osabi.h (enum gdb_osabi): ... here.
13623 * gdbarch.sh: Include osabi.h in gdbarch.h.
13624 * gdbarch.h: Re-generate.
13625
13626 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13627
13628 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13629 function.
13630 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13631
13632 2020-03-14 Tom Tromey <tom@tromey.com>
13633
13634 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13635 for C++.
13636 (c_type_print_modifier): Likewise. Add "language" parameter.
13637 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13638 (c_type_print_base_1): Update.
13639 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13640 constants.
13641 * type-stack.c (type_stack::insert): Handle tp_atomic and
13642 tp_restrict.
13643 (type_stack::follow_type_instance_flags): Likewise.
13644 (type_stack::follow_types): Likewise. Merge type-following code.
13645 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13646 (space_identifier, cv_with_space_id)
13647 (const_or_volatile_or_space_identifier_noopt)
13648 (const_or_volatile_or_space_identifier): Remove.
13649 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13650 rules.
13651 (ptr_operator, typebase): Update.
13652 (enum token_flag) <FLAG_C>: New constant.
13653 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13654 "_Atomic".
13655 (lex_one_token): Handle FLAG_C.
13656
13657 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13658
13659 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13660 it to the ptrace call.
13661 * m68k-bsd-nat.c (store_registers): Likewise.
13662
13663 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13664
13665 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13666 gdb_byte *.
13667 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13668 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13669 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13670
13671 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13672
13673 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13674 nbsd_nat_target instead of inf_ptrace_target.
13675 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13676 nbsd_nat_target.
13677
13678 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13679
13680 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13681 register_t.
13682
13683 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13684
13685 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13686 it to the ptrace call.
13687 * alpha-bsd-nat.c (store_registers): Likewise.
13688
13689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13690
13691 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13692 includes.
13693 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13694 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13695 fill_fpregset): Likewise.
13696
13697 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13698
13699 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13700 nbsd_nat_target instead of inf_ptrace_target.
13701 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13702 nbsd_nat_target.
13703
13704 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13705
13706 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13707 register_t.
13708
13709 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13710
13711 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13712 it to the ptrace call.
13713 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13714 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13715 * arm-nbsd-nat.c (store_register): Likewise.
13716 * arm-nbsd-nat.c (store_regs): Likewise.
13717 * arm-nbsd-nat.c (store_fp_register): Likewise.
13718 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13719
13720 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13721
13722 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13723 nbsd_nat_target instead of inf_ptrace_target.
13724 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13725 nbsd_nat_target.
13726
13727 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13728
13729 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13730 it to the ptrace call.
13731 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13732
13733 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13734
13735 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13736 it to the ptrace call.
13737 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13738
13739 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13740
13741 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13742 gdb_byte *.
13743 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13744
13745 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13746
13747 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13748 instead of inf_ptrace_target.
13749 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13750 nbsd_nat_target.
13751
13752 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13753
13754 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13755 register_t.
13756
13757 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13758
13759 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13760 register_t.
13761
13762 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13763
13764 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13765 register_t.
13766
13767 2020-03-13 Tom Tromey <tom@tromey.com>
13768
13769 * value.h (val_print): Don't declare.
13770 * valprint.h (val_print_array_elements)
13771 (val_print_scalar_formatted, generic_val_print): Don't declare.
13772 * valprint.c (generic_val_print_array): Take a struct value.
13773 (generic_val_print_ptr, generic_val_print_memberptr)
13774 (generic_val_print_bool, generic_val_print_int)
13775 (generic_val_print_char, generic_val_print_complex)
13776 (generic_val_print): Remove.
13777 (generic_value_print): Update.
13778 (do_val_print): Remove unused parameters. Don't call
13779 la_val_print.
13780 (val_print): Remove.
13781 (common_val_print): Update. Don't call value_check_printable.
13782 (val_print_scalar_formatted, val_print_array_elements): Remove.
13783 * rust-lang.c (rust_val_print): Remove.
13784 (rust_language_defn): Update.
13785 * p-valprint.c (pascal_val_print): Remove.
13786 (pascal_value_print_inner): Update.
13787 (pascal_object_print_val_fields, pascal_object_print_val):
13788 Remove.
13789 (pascal_object_print_static_field): Update.
13790 * p-lang.h (pascal_val_print): Don't declare.
13791 * p-lang.c (pascal_language_defn): Update.
13792 * opencl-lang.c (opencl_language_defn): Update.
13793 * objc-lang.c (objc_language_defn): Update.
13794 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13795 * m2-lang.h (m2_val_print): Don't declare.
13796 * m2-lang.c (m2_language_defn): Update.
13797 * language.h (struct language_defn) <la_val_print>: Remove.
13798 * language.c (unk_lang_value_print_inner): Rename. Change
13799 argument types.
13800 (unknown_language_defn, auto_language_defn): Update.
13801 * go-valprint.c (go_val_print): Remove.
13802 * go-lang.h (go_val_print): Don't declare.
13803 * go-lang.c (go_language_defn): Update.
13804 * f-valprint.c (f_val_print): Remove.
13805 * f-lang.h (f_value_print): Don't declare.
13806 * f-lang.c (f_language_defn): Update.
13807 * d-valprint.c (d_val_print): Remove.
13808 * d-lang.h (d_value_print): Don't declare.
13809 * d-lang.c (d_language_defn): Update.
13810 * cp-valprint.c (cp_print_value_fields)
13811 (cp_print_value_fields_rtti, cp_print_value): Remove.
13812 (cp_print_static_field): Update.
13813 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13814 (c_val_print_struct, c_val_print_union, c_val_print_int)
13815 (c_val_print_memberptr, c_val_print): Remove.
13816 * c-lang.h (c_val_print_array, cp_print_value_fields)
13817 (cp_print_value_fields_rtti): Don't declare.
13818 * c-lang.c (c_language_defn, cplus_language_defn)
13819 (asm_language_defn, minimal_language_defn): Update.
13820 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13821 (ada_val_print_enum): Take a struct value.
13822 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13823 (ada_val_print): Remove.
13824 (ada_value_print_1): Update.
13825 (printable_val_type): Remove.
13826 * ada-lang.h (ada_val_print): Don't declare.
13827 * ada-lang.c (ada_language_defn): Update.
13828
13829 2020-03-13 Tom Tromey <tom@tromey.com>
13830
13831 * valprint.c (do_val_print): Update.
13832 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13833 a struct value.
13834 (value_to_value_object_no_release): Declare.
13835 * python/py-value.c (value_to_value_object_no_release): New
13836 function.
13837 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13838 struct value.
13839 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13840 function.
13841 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13842 a struct value.
13843 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13844 Declare.
13845 (gdbscm_apply_val_pretty_printer): Take a struct value.
13846 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13847 value.
13848 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13849 value.
13850 * extension-priv.h (struct extension_language_ops)
13851 <apply_val_pretty_printer>: Take a struct value.
13852 * cp-valprint.c (cp_print_value): Create a struct value.
13853 (cp_print_value): Update.
13854
13855 2020-03-13 Tom Tromey <tom@tromey.com>
13856
13857 * ada-valprint.c (print_field_values): Call common_val_print.
13858
13859 2020-03-13 Tom Tromey <tom@tromey.com>
13860
13861 * ada-valprint.c (val_print_packed_array_elements): Remove
13862 bitoffset and val parameters. Call common_val_print.
13863 (ada_val_print_string): Remove offset, address, and original_value
13864 parameters.
13865 (ada_val_print_array): Update.
13866 (ada_value_print_array): New function.
13867 (ada_value_print_1): Call it.
13868
13869 2020-03-13 Tom Tromey <tom@tromey.com>
13870
13871 * ada-valprint.c (ada_value_print): Use common_val_print.
13872
13873 2020-03-13 Tom Tromey <tom@tromey.com>
13874
13875 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13876
13877 2020-03-13 Tom Tromey <tom@tromey.com>
13878
13879 * ada-valprint.c (ada_value_print_num): New function.
13880 (ada_value_print_1): Use it.
13881
13882 2020-03-13 Tom Tromey <tom@tromey.com>
13883
13884 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13885
13886 2020-03-13 Tom Tromey <tom@tromey.com>
13887
13888 * ada-valprint.c (ada_value_print_ptr): New function.
13889 (ada_value_print_1): Use it.
13890
13891 2020-03-13 Tom Tromey <tom@tromey.com>
13892
13893 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13894 call common_val_print.
13895 (ada_val_print_1): Update.
13896 (ada_value_print_1): New function.
13897 (ada_value_print_inner): Rewrite.
13898
13899 2020-03-13 Tom Tromey <tom@tromey.com>
13900
13901 * cp-valprint.c (cp_print_value_fields): Update.
13902 (cp_print_value): New function.
13903
13904 2020-03-13 Tom Tromey <tom@tromey.com>
13905
13906 * m2-valprint.c (m2_value_print_inner): Use
13907 cp_print_value_fields.
13908 * cp-valprint.c (cp_print_value_fields): New function.
13909 * c-valprint.c (c_value_print_struct): New function.
13910 (c_value_print_inner): Use c_value_print_struct.
13911 * c-lang.h (cp_print_value_fields): Declare.
13912
13913 2020-03-13 Tom Tromey <tom@tromey.com>
13914
13915 * c-valprint.c (c_value_print_array): New function.
13916 (c_value_print_inner): Use it.
13917
13918 2020-03-13 Tom Tromey <tom@tromey.com>
13919
13920 * c-valprint.c (c_value_print_memberptr): New function.
13921 (c_value_print_inner): Use it.
13922
13923 2020-03-13 Tom Tromey <tom@tromey.com>
13924
13925 * c-valprint.c (c_value_print_int): New function.
13926 (c_value_print_inner): Use it.
13927
13928 2020-03-13 Tom Tromey <tom@tromey.com>
13929
13930 * c-valprint.c (c_value_print_ptr): New function.
13931 (c_value_print_inner): Use it.
13932
13933 2020-03-13 Tom Tromey <tom@tromey.com>
13934
13935 * c-valprint.c (c_value_print_inner): Rewrite.
13936
13937 2020-03-13 Tom Tromey <tom@tromey.com>
13938
13939 * valprint.c (generic_value_print_complex): New function.
13940 (generic_value_print): Use it.
13941
13942 2020-03-13 Tom Tromey <tom@tromey.com>
13943
13944 * valprint.c (generic_val_print_float): Don't call
13945 val_print_scalar_formatted.
13946 (generic_val_print, generic_value_print): Update.
13947
13948 2020-03-13 Tom Tromey <tom@tromey.com>
13949
13950 * valprint.c (generic_value_print_char): New function
13951 (generic_value_print): Use it.
13952
13953 2020-03-13 Tom Tromey <tom@tromey.com>
13954
13955 * valprint.c (generic_value_print_int): New function.
13956 (generic_value_print): Use it.
13957
13958 2020-03-13 Tom Tromey <tom@tromey.com>
13959
13960 * valprint.c (generic_value_print_bool): New function.
13961 (generic_value_print): Use it.
13962
13963 2020-03-13 Tom Tromey <tom@tromey.com>
13964
13965 * valprint.c (generic_val_print_func): Simplify.
13966 (generic_val_print, generic_value_print): Update.
13967
13968 2020-03-13 Tom Tromey <tom@tromey.com>
13969
13970 * valprint.c (generic_val_print_flags): Remove.
13971 (generic_val_print, generic_value_print): Update.
13972 (val_print_type_code_flags): Add original_value parameter.
13973
13974 2020-03-13 Tom Tromey <tom@tromey.com>
13975
13976 * valprint.c (generic_val_print): Update.
13977 (generic_value_print): Update.
13978 * valprint.c (generic_val_print_enum): Don't call
13979 val_print_scalar_formatted.
13980
13981 2020-03-13 Tom Tromey <tom@tromey.com>
13982
13983 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13984 * valprint.c (generic_value_print_ptr): New function.
13985
13986 2020-03-13 Tom Tromey <tom@tromey.com>
13987
13988 * valprint.c (generic_value_print): Rewrite.
13989
13990 2020-03-13 Tom Tromey <tom@tromey.com>
13991
13992 * p-valprint.c (pascal_object_print_value_fields)
13993 (pascal_object_print_value): New functions.
13994
13995 2020-03-13 Tom Tromey <tom@tromey.com>
13996
13997 * p-valprint.c (pascal_value_print_inner): Rewrite.
13998
13999 2020-03-13 Tom Tromey <tom@tromey.com>
14000
14001 * f-valprint.c (f_value_print_innner): Rewrite.
14002
14003 2020-03-13 Tom Tromey <tom@tromey.com>
14004
14005 * m2-valprint.c (m2_print_unbounded_array): New overload.
14006 (m2_print_unbounded_array): Update.
14007 (m2_print_array_contents): Take a struct value.
14008 (m2_value_print_inner): Rewrite.
14009
14010 2020-03-13 Tom Tromey <tom@tromey.com>
14011
14012 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14013 (d_value_print_inner): New function.
14014 * d-lang.h (d_value_print_inner): Declare.
14015 * d-lang.c (d_language_defn): Use d_value_print_inner.
14016
14017 2020-03-13 Tom Tromey <tom@tromey.com>
14018
14019 * go-valprint.c (go_value_print_inner): New function.
14020 * go-lang.h (go_value_print_inner): Declare.
14021 * go-lang.c (go_language_defn): Use go_value_print_inner.
14022
14023 2020-03-13 Tom Tromey <tom@tromey.com>
14024
14025 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14026 API.
14027 (rust_val_print): Rewrite.
14028 (rust_value_print_inner): New function, from rust_val_print.
14029 (rust_language_defn): Use rust_value_print_inner.
14030
14031 2020-03-13 Tom Tromey <tom@tromey.com>
14032
14033 * ada-valprint.c (ada_value_print_inner): New function.
14034 * ada-lang.h (ada_value_print_inner): Declare.
14035 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14036
14037 2020-03-13 Tom Tromey <tom@tromey.com>
14038
14039 * f-valprint.c (f_value_print_innner): New function.
14040 * f-lang.h (f_value_print_innner): Declare.
14041 * f-lang.c (f_language_defn): Use f_value_print_innner.
14042
14043 2020-03-13 Tom Tromey <tom@tromey.com>
14044
14045 * p-valprint.c (pascal_value_print_inner): New function.
14046 * p-lang.h (pascal_value_print_inner): Declare.
14047 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14048
14049 2020-03-13 Tom Tromey <tom@tromey.com>
14050
14051 * m2-valprint.c (m2_value_print_inner): New function.
14052 * m2-lang.h (m2_value_print_inner): Declare.
14053 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14054
14055 2020-03-13 Tom Tromey <tom@tromey.com>
14056
14057 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14058 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14059 * c-valprint.c (c_value_print_inner): New function.
14060 * c-lang.h (c_value_print_inner): Declare.
14061 * c-lang.c (c_language_defn, cplus_language_defn)
14062 (asm_language_defn, minimal_language_defn): Use
14063 c_value_print_inner.
14064
14065 2020-03-13 Tom Tromey <tom@tromey.com>
14066
14067 * p-valprint.c (pascal_object_print_value_fields): Now static.
14068 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14069
14070 2020-03-13 Tom Tromey <tom@tromey.com>
14071
14072 * c-valprint.c (c_val_print_array): Simplify.
14073
14074 2020-03-13 Tom Tromey <tom@tromey.com>
14075
14076 * valprint.c (value_print_array_elements): New function.
14077 * valprint.h (value_print_array_elements): Declare.
14078
14079 2020-03-13 Tom Tromey <tom@tromey.com>
14080
14081 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14082 * mips-tdep.c (mips_print_register): Use
14083 value_print_scalar_formatted.
14084
14085 2020-03-13 Tom Tromey <tom@tromey.com>
14086
14087 * valprint.h (value_print_scalar_formatted): Declare.
14088 * valprint.c (value_print_scalar_formatted): New function.
14089
14090 2020-03-13 Tom Tromey <tom@tromey.com>
14091
14092 * valprint.h (generic_value_print): Declare.
14093 * valprint.c (generic_value_print): New function.
14094
14095 2020-03-13 Tom Tromey <tom@tromey.com>
14096
14097 * valprint.c (do_val_print): Call la_value_print_inner, if
14098 available.
14099 * rust-lang.c (rust_language_defn): Update.
14100 * p-lang.c (pascal_language_defn): Update.
14101 * opencl-lang.c (opencl_language_defn): Update.
14102 * objc-lang.c (objc_language_defn): Update.
14103 * m2-lang.c (m2_language_defn): Update.
14104 * language.h (struct language_defn) <la_value_print_inner>: New
14105 member.
14106 * language.c (unknown_language_defn, auto_language_defn): Update.
14107 * go-lang.c (go_language_defn): Update.
14108 * f-lang.c (f_language_defn): Update.
14109 * d-lang.c (d_language_defn): Update.
14110 * c-lang.c (c_language_defn, cplus_language_defn)
14111 (asm_language_defn, minimal_language_defn): Update.
14112 * ada-lang.c (ada_language_defn): Update.
14113
14114 2020-03-13 Tom Tromey <tom@tromey.com>
14115
14116 * c-valprint.c (c_value_print): Use common_val_print.
14117
14118 2020-03-13 Tom Tromey <tom@tromey.com>
14119
14120 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14121
14122 2020-03-13 Tom Tromey <tom@tromey.com>
14123
14124 * f-valprint.c (f77_print_array_1, f_val_print): Use
14125 common_val_print.
14126
14127 2020-03-13 Tom Tromey <tom@tromey.com>
14128
14129 * riscv-tdep.c (riscv_print_one_register_info): Use
14130 common_val_print.
14131
14132 2020-03-13 Tom Tromey <tom@tromey.com>
14133
14134 * mi/mi-main.c (output_register): Use common_val_print.
14135
14136 2020-03-13 Tom Tromey <tom@tromey.com>
14137
14138 * infcmd.c (default_print_one_register_info): Use
14139 common_val_print.
14140
14141 2020-03-13 Tom Tromey <tom@tromey.com>
14142
14143 * valprint.h (common_val_print_checked): Declare.
14144 * valprint.c (common_val_print_checked): New function.
14145 * stack.c (print_frame_arg): Use common_val_print_checked.
14146
14147 2020-03-13 Tom Tromey <tom@tromey.com>
14148
14149 * valprint.c (do_val_print): New function, from val_print.
14150 (val_print): Use do_val_print.
14151 (common_val_print): Use do_val_print.
14152
14153 2020-03-13 Tom Tromey <tom@tromey.com>
14154
14155 * valprint.c (value_print): Use scoped_value_mark.
14156
14157 2020-03-13 Tom de Vries <tdevries@suse.de>
14158
14159 PR symtab/25646
14160 * psymtab.c (partial_symtab::partial_symtab): Don't set
14161 globals_offset and statics_offset. Push element onto
14162 current_global_psymbols and current_static_psymbols stacks.
14163 (concat): New function.
14164 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14165 element from current_global_psymbols and current_static_psymbols
14166 stacks. Concat popped elements to global_psymbols and
14167 static_symbols.
14168 (add_psymbol_to_list): Use current_global_psymbols and
14169 current_static_psymbols stacks.
14170 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14171 current_static_psymbols fields.
14172
14173 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14174
14175 * corelow.c (sniff_core_bfd): Remove.
14176 (class core_target) <m_core_vec>: Remove.
14177 (core_target::core_target): Update.
14178 (core_file_fns): Remove.
14179 (deprecated_add_core_fns): Remove.
14180 (default_core_sniffer): Remove.
14181 (sniff_core_bfd): Remove.
14182 (default_check_format): Remove.
14183 (gdb_check_format): Remove.
14184 (core_target_open): Update.
14185 (core_target::get_core_register_section): Update.
14186 (get_core_registers_cb): Update.
14187 (core_target::fetch_registers): Update.
14188 * gdbcore.h (struct core_fns): Remove.
14189 (deprecated_add_core_fns): Remove.
14190 (default_core_sniffer): Remove.
14191 (default_check_format): Remove.
14192
14193 2020-03-12 Tom Tromey <tom@tromey.com>
14194
14195 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14196 CORE_ADDR.
14197 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14198
14199 2020-03-12 Tom Tromey <tom@tromey.com>
14200
14201 * remote.c (remote_target::download_tracepoint)
14202 (remote_target::enable_tracepoint)
14203 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14204 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14205 sprintf_vma.
14206
14207 2020-03-12 Tom Tromey <tom@tromey.com>
14208
14209 * symfile-mem.c: Update CORE_ADDR size assert.
14210
14211 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14212
14213 * selftest.m4: Move to gdbsupport/.
14214 * acinclude.m4: Update path to selftest.m4.
14215
14216 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14217
14218 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14219 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14220 gdbarch-selfselftests.c and selftest-arch.c.
14221 (SUBDIR_UNITTESTS_OBS): Rename to...
14222 (SELFTESTS_OBS): ... this.
14223 (COMMON_SFILES): Remove disasm-selftests.c and
14224 gdbarch-selftests.c.
14225 * configure.ac: Don't add selftest-arch.{c,o} to
14226 CONFIG_{SRCS,OBS}.
14227 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14228 preprocessor conditions.
14229
14230 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14231
14232 * configure.ac: Don't source bfd/development.sh.
14233 * selftest.m4: Modify comment.
14234 * configure: Re-generate.
14235
14236 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14237
14238 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14239 not "true" or "false".
14240 * configure: Re-generate.
14241
14242 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14243
14244 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14245 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14246 renamed to arm_nbsd_supply_gregset.
14247 (fetch_register): Update to call arm_nbsd_supply_gregset.
14248 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14249 (arm_netbsd_nat_target::fetch_registers): Update.
14250 (fetch_elfcore_registers): Removed.
14251 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14252 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14253 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14254 not require NetBSD system headers.
14255 (arm_nbsd_regset): New struct.
14256 (arm_nbsd_iterate_over_regset_sections): New function.
14257 (arm_netbsd_init_abi_common): Updated to call
14258 set_gdbarch_iterate_over_regset_sections.
14259 * arm-nbsd-tdep.h: New file.
14260
14261 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14262
14263 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14264 recursion.
14265
14266 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14267
14268 * configure: Re-generate.
14269
14270 2020-03-11 Tom Tromey <tromey@adacore.com>
14271
14272 * ada-typeprint.c (print_choices): Fix comment.
14273
14274 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14275
14276 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14277 previous item in the list, when the list has no items.
14278
14279 2020-03-11 Tom de Vries <tdevries@suse.de>
14280
14281 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14282 PROP_LOCLIST handling code.
14283
14284 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14285
14286 * buildsym-legacy.c (record_line): Pass extra parameter to
14287 record_line.
14288 * buildsym.c (buildsym_compunit::record_line): Take an extra
14289 parameter, reduce duplication in the line table, and record the
14290 is_stmt flag in the line table.
14291 * buildsym.h (buildsym_compunit::record_line): Add extra
14292 parameter.
14293 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14294 non-statement lines.
14295 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14296 this to the symtab builder.
14297 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14298 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14299 through to dwarf_record_line_1.
14300 * infrun.c (process_event_stop_test): When stepping, don't stop at
14301 a non-statement instruction, and only refresh the step info when
14302 we land in the middle of a line's range. Also add an extra
14303 comment.
14304 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14305 field.
14306 * record-btrace.c (btrace_find_line_range): Only record lines
14307 marked as is-statement.
14308 * stack.c (frame_show_address): Show the frame address if we are
14309 in a non-statement sal.
14310 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14311 (maintenance_print_one_line_table): Print a header for the is_stmt
14312 column, and include is_stmt information in the output.
14313 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14314 preference to non-statements.
14315 (find_pcs_for_symtab_line): Prefer is-statement entries.
14316 (find_line_common): Likewise.
14317 * symtab.h (struct linetable_entry): Add is_stmt field.
14318 (struct symtab_and_line): Likewise.
14319 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14320 arranging the line table.
14321
14322 2020-03-07 Tom de Vries <tdevries@suse.de>
14323
14324 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14325 DIE.
14326
14327 2020-03-07 Tom Tromey <tom@tromey.com>
14328
14329 * valops.c (value_literal_complex): Remove obsolete comment.
14330 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14331 comment.
14332
14333 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14334
14335 * infrun.h: Forward-declare thread_info.
14336 (set_step_info): Add thread_info parameter, add doc.
14337 * infrun.c (set_step_info): Add thread_info parameter, move doc
14338 to header.
14339 * infrun.c (process_event_stop_test): Pass thread to
14340 set_step_info call.
14341 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14342 set_step_info.
14343 (prepare_one_step): Add thread_info parameter, pass it to
14344 set_step_frame and prepare_one_step (recursive) call.
14345 (step_1): Pass thread to prepare_one_step call.
14346 (step_command_fsm::should_stop): Pass thread to
14347 prepare_one_step.
14348 (until_next_fsm): Pass thread to set_step_frame call.
14349 (finish_command): Pass thread to set_step_info call.
14350
14351 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14352
14353 * windows-tdep.c (windows_solib_create_inferior_hook):
14354 Check if inferior is running.
14355
14356 2020-03-06 Tom de Vries <tdevries@suse.de>
14357
14358 * NEWS: Fix "the the".
14359 * ctfread.c: Same.
14360
14361 2020-03-06 Tom de Vries <tdevries@suse.de>
14362
14363 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14364
14365 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14366
14367 * .dir-locals.el: Add a comment referencing the other copies of
14368 this file.
14369
14370 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14371
14372 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14373 psargs.
14374
14375 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14376
14377 * .gitattributes: New file.
14378
14379 2020-03-04 Tom Tromey <tom@tromey.com>
14380
14381 * symmisc.c (print_symbol_bcache_statistics)
14382 (print_objfile_statistics): Update.
14383 * symfile.c (allocate_symtab): Use intern.
14384 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14385 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14386 macro_cache>: Remove.
14387 <string_cache>: New member.
14388 (struct objfile) <intern>: New methods.
14389 * elfread.c (elf_symtab_read): Use intern.
14390 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14391 (dwarf2_compute_name, dwarf2_physname)
14392 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14393 names.
14394 (guess_partial_die_structure_name): Update.
14395 (partial_die_info::fixup): Intern name.
14396 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14397 name.
14398 (dwarf2_name): Intern name. Update.
14399 * buildsym.c (buildsym_compunit::get_macro_table): Use
14400 string_cache.
14401
14402 2020-03-04 Tom Tromey <tom@tromey.com>
14403
14404 * jit.c (bfd_open_from_target_memory): Make "target" const.
14405 * corefile.c (gnutarget): Now const.
14406 * gdbcore.h (gnutarget): Now const.
14407
14408 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14409
14410 * NEWS: Mention support for WOW64 processes.
14411 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14412 (amd64_windows_segment_register_p): Remove static.
14413 (_initialize_amd64_windows_nat): Update.
14414 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14415 * i386-windows-nat.c (context_offset): Update.
14416 (i386_mappings): Rename and remove static.
14417 (i386_windows_segment_register_p): Remove static.
14418 (_initialize_i386_windows_nat): Update.
14419 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14420 (STATUS_WX86_SINGLE_STEP): New macro.
14421 (EnumProcessModulesEx): New macro.
14422 (Wow64SuspendThread): New macro.
14423 (Wow64GetThreadContext): New macro.
14424 (Wow64SetThreadContext): New macro.
14425 (Wow64GetThreadSelectorEntry): New macro.
14426 (windows_set_context_register_offsets): Add static.
14427 (windows_set_segment_register_p): Likewise.
14428 (windows_add_thread): Adapt for WOW64 processes.
14429 (windows_fetch_one_register): Likewise.
14430 (windows_nat_target::fetch_registers): Likewise.
14431 (windows_store_one_register): Likewise.
14432 (display_selector): Likewise.
14433 (display_selectors): Likewise.
14434 (handle_exception): Likewise.
14435 (windows_continue): Likewise.
14436 (windows_nat_target::resume): Likewise.
14437 (windows_add_all_dlls): Likewise.
14438 (do_initial_windows_stuff): Likewise.
14439 (windows_nat_target::attach): Likewise.
14440 (windows_get_exec_module_filename): Likewise.
14441 (windows_nat_target::create_inferior): Likewise.
14442 (windows_xfer_siginfo): Likewise.
14443 (_initialize_loadable): Initialize Wow64SuspendThread,
14444 Wow64GetThreadContext, Wow64SetThreadContext,
14445 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14446 * windows-nat.h (windows_set_context_register_offsets):
14447 Remove declaration.
14448 (windows_set_segment_register_p): Likewise.
14449 (i386_windows_segment_register_p): Add declaration.
14450 (amd64_windows_segment_register_p): Likewise.
14451
14452 2020-03-04 Luis Machado <luis.machado@linaro.org>
14453
14454 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14455 in "info registers" for AArch64/ARM.
14456
14457 The change caused "info registers" to not print GPR's.
14458
14459 gdb/ChangeLog:
14460
14461 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14462
14463 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14464 when reg->group is empty and reggroup is not.
14465
14466 2020-03-03 Tom Tromey <tromey@adacore.com>
14467
14468 * dwarf2/frame.c (struct dwarf2_frame_cache)
14469 <checked_tailcall_bottom, entry_cfa_sp_offset,
14470 entry_cfa_sp_offset_p>: Remove members.
14471 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14472 (dwarf2_frame_prev_register): Don't call
14473 dwarf2_tailcall_sniffer_first.
14474 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14475 * frame-unwind.c (add_unwinder): New fuction.
14476 (frame_unwind_init): Use it. Add tailcall unwinder.
14477
14478 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14479 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14480
14481 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14482 value should be printed as true.
14483
14484 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14485
14486 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14487 (windows_init_abi): Set and use windows_so_ops.
14488
14489 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14490
14491 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14492 when verifying if dealing with a convenience variable.
14493
14494 2020-03-03 Luis Machado <luis.machado@linaro.org>
14495
14496 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14497
14498 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14499
14500 * infrun.c (gdbarch_supports_displaced_stepping): New.
14501 (use_displaced_stepping): Break up conditions in smaller pieces.
14502 Use gdbarch_supports_displaced_stepping.
14503 (displaced_step_prepare_throw): Use
14504 gdbarch_supports_displaced_stepping.
14505
14506 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14507
14508 * NEWS: Mention new behaviour of the history filename.
14509 * top.c (write_history_p): Add comment.
14510 (show_write_history_p): Add header comment, give a different
14511 message when history writing is on, but the history filename is
14512 empty.
14513 (history_filename): Add comment.
14514 (history_filename_empty): New function.
14515 (show_history_filename): Add header comment, give a different
14516 message when the filename is empty.
14517 (init_history): Compare history_filename against nullptr, and only
14518 read history if the filename is not empty.
14519 (set_history_filename): Add header comment, and only make
14520 non-empty filenames absolute.
14521 (init_main): Make the filename argument to 'set history filename'
14522 optional.
14523
14524 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14525
14526 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14527 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14528 (fetch_fp_register): Update.
14529 (fetch_fp_regs): Update.
14530 (store_fp_register): Update.
14531 (store_fp_regs): Update.
14532 (arm_netbsd_nat_target::read_description): New function.
14533 (fetch_elfcore_registers): Update.
14534
14535 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14536
14537 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14538 general_thread if the stop reply is missing a thread-id.
14539 (remote_target::process_stop_reply): Use the first non-exited
14540 thread if the target didn't pass a thread-id.
14541 * infrun.c (do_target_wait): Move call to
14542 switch_to_inferior_no_thread to ....
14543 (do_target_wait_1): ... here.
14544
14545 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14546
14547 * debuginfod-support.c: Include defs.h first.
14548
14549 2020-02-28 Tom de Vries <tdevries@suse.de>
14550
14551 * symfile.c (set_initial_language): Use default language for lookup.
14552
14553 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14554
14555 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14556 reader variable, pass `this` to read_cutu_die_from_dwo.
14557
14558 2020-02-27 Aaron Merey <amerey@redhat.com>
14559
14560 * source.c (open_source_file): Check for nullptr when computing
14561 srcpath.
14562
14563 2020-02-27 Tom Tromey <tromey@adacore.com>
14564
14565 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14566 member.
14567 (dwarf2_add_field): Don't update nfields.
14568 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14569
14570 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14571
14572 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14573 abs.
14574
14575 2020-02-26 Tom Tromey <tom@tromey.com>
14576
14577 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14578 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14579 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14580 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14581 per_cu_data.
14582
14583 2020-02-26 Tom Tromey <tom@tromey.com>
14584
14585 * dwarf2/index-write.c (psym_index_map): Change type.
14586 (add_address_entry_worker, write_one_signatured_type)
14587 (recursively_count_psymbols, recursively_write_psymbols)
14588 (class debug_names, psyms_seen_size, write_gdbindex)
14589 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14590
14591 2020-02-26 Aaron Merey <amerey@redhat.com>
14592
14593 * Makefile.in: Handle optional debuginfod support.
14594 * NEWS: Update.
14595 * README: Add --with-debuginfod summary.
14596 * config.in: Regenerate.
14597 * configure: Regenerate.
14598 * configure.ac: Handle optional debuginfod support.
14599 * debuginfod-support.c: debuginfod helper functions.
14600 * debuginfod-support.h: Ditto.
14601 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14602 summary.
14603 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14604 when a dwz file cannot be found.
14605 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14606 debuginfo file cannot be found.
14607 * source.c (open_source_file): Query debuginfod servers when a
14608 source file cannot be found.
14609 * top.c (print_gdb_configuration): Include
14610 --{with,without}-debuginfod in the output.
14611
14612 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14613
14614 * thread.c (thr_try_catch_cmd): Print thread name.
14615
14616 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14617
14618 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14619 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14620 dwarf2_fetch_die_type_sect_off): Move to...
14621 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14622 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14623 dwarf2_fetch_die_type_sect_off): ... here.
14624 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14625 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14626 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14627
14628 2020-02-26 Tom de Vries <tdevries@suse.de>
14629
14630 PR gdb/25603
14631 * symfile.c (set_initial_language): Exit-early if
14632 language_mode == language_mode_manual.
14633
14634 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14635
14636 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14637 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14638 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14639
14640 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14641
14642 * gdbtypes.c (create_array_type_with_stride): Handle negative
14643 array strides.
14644 * valarith.c (value_subscripted_rvalue): Likewise.
14645
14646 2020-02-25 Luis Machado <luis.machado@linaro.org>
14647
14648 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14649
14650 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14651
14652 * loc.h (dwarf2_get_die_type): Move to...
14653 * read.h (dwarf2_get_die_type): ... here.
14654 * read.c (dwarf2_get_die_type): Move doc to header.
14655
14656 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14657
14658 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14659 'gnulib/Makefile.in' to the list.
14660
14661 2020-02-24 Tom Tromey <tom@tromey.com>
14662
14663 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14664 Remove.
14665 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14666 XOBNEWVEC.
14667
14668 2020-02-24 Tom Tromey <tom@tromey.com>
14669
14670 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14671 New method.
14672 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14673 (dw2_do_instantiate_symtab, dw2_get_file_names)
14674 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14675
14676 2020-02-24 Tom Tromey <tom@tromey.com>
14677
14678 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14679 make_scoped_restore.
14680 (dwarf2_psymtab::read_symtab): Don't clear
14681 reading_partial_symbols.
14682
14683 2020-02-24 Tom de Vries <tdevries@suse.de>
14684
14685 PR gdb/25592
14686 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14687
14688 2020-02-24 Tom de Vries <tdevries@suse.de>
14689
14690 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14691 commands layout next/prev/regs.
14692
14693 2020-02-22 Tom Tromey <tom@tromey.com>
14694
14695 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14696 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14697
14698 2020-02-22 Tom Tromey <tom@tromey.com>
14699
14700 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14701
14702 2020-02-22 Tom Tromey <tom@tromey.com>
14703
14704 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14705 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14706 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14707 * tui/tui.c (_initialize_tui): Add usage text.
14708
14709 2020-02-22 Tom Tromey <tom@tromey.com>
14710
14711 * tui/tui-win.c (tui_set_focus_command)
14712 (tui_set_win_height_command): Use error_no_arg.
14713 (_initialize_tui_win): Update help text.
14714 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14715
14716 2020-02-22 Tom Tromey <tom@tromey.com>
14717
14718 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14719 * tui/tui-disasm.h (struct tui_disasm_window)
14720 <display_start_addr>: Declare.
14721 * tui/tui-source.h (struct tui_source_window)
14722 <display_start_addr>: Declare.
14723 * tui/tui-winsource.h (struct tui_source_window_base)
14724 <show_source_line, display_start_addr>: New methods.
14725 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14726 Rename and move to protected section.
14727 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14728 (tui_source_window_base::do_erase_source_content): Update.
14729 (tui_source_window_base::show_source_line): Now a method.
14730 (tui_source_window_base::show_source_content)
14731 (tui_source_window_base::tui_source_window_base)
14732 (tui_source_window_base::rerender)
14733 (tui_source_window_base::refill)
14734 (tui_source_window_base::do_scroll_horizontal)
14735 (tui_source_window_base::set_is_exec_point_at)
14736 (tui_source_window_base::update_breakpoint_info)
14737 (tui_source_window_base::update_exec_info): Update.
14738 * tui/tui-source.c (tui_source_window::set_contents)
14739 (tui_source_window::showing_source_p)
14740 (tui_source_window::do_scroll_vertical)
14741 (tui_source_window::location_matches_p)
14742 (tui_source_window::line_is_displayed): Update.
14743 (tui_source_window::display_start_addr): New method.
14744 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14745 (tui_disasm_window::do_scroll_vertical)
14746 (tui_disasm_window::location_matches_p): Update.
14747 (tui_disasm_window::display_start_addr): New method.
14748
14749 2020-02-22 Tom Tromey <tom@tromey.com>
14750
14751 * NEWS: Add entry for gdb.register_window_type.
14752 * tui/tui-layout.h (window_factory): New typedef.
14753 (tui_register_window): Declare.
14754 * tui/tui-layout.c (saved_tui_windows): New global.
14755 (tui_apply_current_layout): Use it.
14756 (tui_register_window): New function.
14757 * python/python.c (do_start_initialization): Call
14758 gdbpy_initialize_tui.
14759 (python_GdbMethods): Add "register_window_type" function.
14760 * python/python-internal.h (gdbpy_register_tui_window)
14761 (gdbpy_initialize_tui): Declare.
14762 * python/py-tui.c: New file.
14763 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14764
14765 2020-02-22 Tom Tromey <tom@tromey.com>
14766
14767 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14768
14769 2020-02-22 Tom Tromey <tom@tromey.com>
14770
14771 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14772 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14773 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14774 (tui_set_win_focus_to): Move from tui-win.c.
14775
14776 2020-02-22 Tom Tromey <tom@tromey.com>
14777
14778 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14779 functions.
14780 (known_window_types): New global.
14781 (tui_get_window_by_name): Reimplement.
14782 (initialize_known_windows): New function.
14783 (validate_window_name): Rewrite.
14784 (_initialize_tui_layout): Call initialize_known_windows.
14785
14786 2020-02-22 Tom Tromey <tom@tromey.com>
14787
14788 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14789 Remove constants.
14790 * tui/tui-winsource.h (struct tui_source_window_base)
14791 <tui_source_window_base>: Remove parameter.
14792 * tui/tui-winsource.c
14793 (tui_source_window_base::tui_source_window_base): Remove
14794 parameter.
14795 (tui_source_window_base::refill): Update.
14796 * tui/tui-stack.h (struct tui_locator_window)
14797 <tui_locator_window>: Update.
14798 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14799 Default the constructor.
14800 * tui/tui-regs.h (struct tui_data_item_window)
14801 <tui_data_item_window>: Default the constructor.
14802 (struct tui_data_window) <tui_data_window>: Likewise.
14803 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14804 Default the constructor.
14805 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14806 Default the constructor.
14807 <type>: Remove.
14808 (struct tui_win_info) <tui_win_info>: Default the constructor.
14809 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14810 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14811 Default the constructor.
14812
14813 2020-02-22 Tom Tromey <tom@tromey.com>
14814
14815 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14816 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14817 * tui/tui-win.c (tui_resize_all): Don't call
14818 tui_delete_invisible_windows.
14819 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14820 done.
14821 (tui_set_layout): Update.
14822 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14823 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14824 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14825
14826 2020-02-22 Tom Tromey <tom@tromey.com>
14827
14828 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14829 correctly.
14830
14831 2020-02-22 Tom Tromey <tom@tromey.com>
14832
14833 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14834
14835 2020-02-22 Tom Tromey <tom@tromey.com>
14836
14837 * tui/tui-winsource.h (struct tui_source_window_iterator)
14838 <inner_iterator>: New etytypedef.
14839 <tui_source_window_iterator>: Take "end" parameter.
14840 <tui_source_window_iterator>: Take iterator.
14841 <operator*, advance>: Update.
14842 <m_iter>: Change type.
14843 <m_end>: New field.
14844 (struct tui_source_windows) <begin, end>: Update.
14845 * tui/tui-layout.c (tui_windows): New global.
14846 (tui_apply_current_layout): Clear tui_windows.
14847 (tui_layout_window::apply): Update tui_windows.
14848 * tui/tui-data.h (tui_windows): Declare.
14849 (all_tui_windows): Now inline function.
14850 (class tui_window_iterator, struct all_tui_windows): Remove.
14851
14852 2020-02-22 Tom Tromey <tom@tromey.com>
14853
14854 PR tui/17850:
14855 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14856 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14857 "height" argument.
14858 (class tui_layout_window) <get_sizes>: Likewise.
14859 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14860 argument.
14861 <get_sizes>: Add "height" argument.
14862 <m_vertical>: New field.
14863 * tui/tui-layout.c (tui_layout_split::clone): Update.
14864 (tui_layout_split::get_sizes): Add "height" argument.
14865 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14866 (tui_new_layout_command): Parse "-horizontal".
14867 (_initialize_tui_layout): Update help string.
14868 (tui_layout_split::specification): Add "-horizontal" when needed.
14869 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14870 argument.
14871 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14872 New methods.
14873
14874 2020-02-22 Tom Tromey <tom@tromey.com>
14875
14876 * tui/tui-layout.h (enum tui_adjust_result): New.
14877 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14878 (class tui_layout_window) <adjust_size>: Return
14879 tui_adjust_result. Rewrite.
14880 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14881 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14882
14883 2020-02-22 Tom Tromey <tom@tromey.com>
14884
14885 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14886 parameter and return types.
14887 (class tui_layout_base) <specification>: Add "depth".
14888 (class tui_layout_window) <specification>: Add "depth".
14889 (class tui_layout_split) <specification>: Add "depth".
14890 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14891 and return types.
14892 (tui_new_layout_command): Parse sub-layouts.
14893 (_initialize_tui_layout): Update help string.
14894 (tui_layout_window::specification): Add "depth".
14895 (add_layout_command): Update.
14896
14897 2020-02-22 Tom Tromey <tom@tromey.com>
14898
14899 * NEWS: Add "tui new-layout" item.
14900 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14901 Add new-layout command to help text.
14902 (validate_window_name): New function.
14903 (tui_new_layout_command): New function.
14904 (_initialize_tui_layout): Register "new-layout".
14905 (tui_layout_window::specification): New method.
14906 (tui_layout_window::specification): New method.
14907 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14908 method.
14909 (class tui_layout_window) <specification>: New method.
14910 (class tui_layout_split) <specification>: New method.
14911
14912 2020-02-22 Tom Tromey <tom@tromey.com>
14913
14914 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14915 * tui/tui-win.c (window_name_completer): Update comment.
14916 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14917 Declare method.
14918 (class tui_layout_window) <replace_window>: Likewise.
14919 (class tui_layout_split) <replace_window>: Likewise.
14920 (tui_set_layout): Don't declare.
14921 (tui_set_initial_layout): Declare function.
14922 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14923 (asm_regs_layout): New globals.
14924 (tui_current_layout, show_layout): Remove.
14925 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14926 (find_layout, tui_apply_layout): New function.
14927 (layout_completer): Remove.
14928 (tui_next_layout): Reimplement.
14929 (tui_next_layout_command): New function.
14930 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14931 (tui_regs_layout): Reimplement.
14932 (tui_regs_layout_command): New function.
14933 (extract_display_start_addr): Rewrite.
14934 (next_layout, prev_layout): Remove.
14935 (tui_layout_window::replace_window): New method.
14936 (tui_layout_split::replace_window): New method.
14937 (destroy_layout): New function.
14938 (layout_list): New global.
14939 (add_layout_command): New function.
14940 (initialize_layouts): Update.
14941 (tui_layout_command): New function.
14942 (_initialize_tui_layout): Install "layout" commands.
14943 * tui/tui-data.h (enum tui_layout_type): Remove.
14944 (tui_current_layout): Don't declare.
14945
14946 2020-02-22 Tom Tromey <tom@tromey.com>
14947
14948 * tui/tui-regs.c (tui_reg_layout): Remove.
14949 (tui_reg_command): Use tui_regs_layout.
14950 * tui/tui-layout.h (tui_reg_command): Declare.
14951 * tui/tui-layout.c (tui_reg_command): New function.
14952
14953 2020-02-22 Tom Tromey <tom@tromey.com>
14954
14955 * tui/tui.c (tui_rl_delete_other_windows): Call
14956 tui_remove_some_windows.
14957 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14958 Declare method.
14959 (class tui_layout_window) <remove_windows>: New method.
14960 (class tui_layout_split) <remove_windows>: Declare.
14961 (tui_remove_some_windows): Declare.
14962 * tui/tui-layout.c (tui_remove_some_windows): New function.
14963 (tui_layout_split::remove_windows): New method.
14964
14965 2020-02-22 Tom Tromey <tom@tromey.com>
14966
14967 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14968 * tui/tui-layout.h (tui_next_layout): Declare.
14969 * tui/tui-layout.c (tui_next_layout): New function.
14970
14971 2020-02-22 Tom Tromey <tom@tromey.com>
14972
14973 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14974 correct coordinates.
14975
14976 2020-02-22 Tom Tromey <tom@tromey.com>
14977
14978 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14979 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14980 DATA_WIN case.
14981
14982 2020-02-22 Tom Tromey <tom@tromey.com>
14983
14984 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14985 TUI_DISASM_WIN, not tui_win_list.
14986
14987 2020-02-22 Tom Tromey <tom@tromey.com>
14988
14989 * valprint.c (generic_val_print_enum_1)
14990 (val_print_type_code_flags): Style member names.
14991 * rust-lang.c (val_print_struct, rust_print_enum)
14992 (rust_print_struct_def, rust_internal_print_type): Style member
14993 names.
14994 * p-valprint.c (pascal_object_print_value_fields): Style member
14995 names. Only call fprintf_symbol_filtered for static members.
14996 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14997 * f-valprint.c (f_val_print): Style member names.
14998 * f-typeprint.c (f_type_print_base): Style member names.
14999 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15000 call fprintf_symbol_filtered for static members.
15001 (cp_print_class_member): Style member names.
15002 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15003 member names.
15004 * ada-valprint.c (ada_print_scalar): Style enum names.
15005 (ada_val_print_enum): Likewise.
15006 * ada-typeprint.c (print_enum_type): Style enum names.
15007
15008 2020-02-21 Tom Tromey <tom@tromey.com>
15009
15010 * psympriv.h (struct partial_symtab): Update comment.
15011
15012 2020-02-21 Tom Tromey <tromey@adacore.com>
15013
15014 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15015 type is CORE_ADDR.
15016
15017 2020-02-21 Tom de Vries <tdevries@suse.de>
15018
15019 PR gdb/25534
15020 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15021 if dependencies[i]->user != NULL.
15022
15023 2020-02-21 Ali Tamur <tamur@google.com>
15024
15025 * dwarf2/read.c (dwarf2_name): Add null check.
15026
15027 2020-02-20 Tom Tromey <tom@tromey.com>
15028
15029 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15030 ">=", in binary search.
15031 (dwarf2_find_containing_comp_unit): New overload.
15032 (run_test): New self-test.
15033 (_initialize_dwarf2_read): Register new test.
15034
15035 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15036
15037 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15038 * riscv-tdep.h: Likewise.
15039 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15040 rv32-only CSR.
15041 * features/riscv/64bit-csr.xml: Regenerated.
15042
15043 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15044 Tom Tromey <tom@tromey.com>
15045
15046 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15047 of 'fputc_unfiltered'.
15048 (putchar_unfiltered): Call 'fputc_unfiltered'.
15049 (fputc_unfiltered): Call 'fputs_unfiltered'.
15050
15051 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15052
15053 * config.in: Regenerate.
15054 * configure: Regenerate.
15055 * configure.ac: Add --with-python-libdir option.
15056 * main.c: Use WITH_PYTHON_LIBDIR.
15057
15058 2020-02-19 Tom Tromey <tom@tromey.com>
15059
15060 * symtab.c (general_symbol_info::compute_and_set_names): Use
15061 obstack_strndup. Simplify call to symbol_set_demangled_name.
15062
15063 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15064
15065 * dwarf2/read.c (allocate_signatured_type_table,
15066 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15067 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15068 Remove objfile parameter, update all callers.
15069
15070 2020-02-19 Doug Evans <dje@google.com>
15071
15072 PR rust/25535
15073 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15074 rust_enum_variant calculation.
15075
15076 2020-02-19 Tom Tromey <tromey@adacore.com>
15077
15078 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15079
15080 2020-02-19 Tom Tromey <tromey@adacore.com>
15081
15082 * ada-lang.c (cache_symbol): Use obstack_strdup.
15083
15084 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15085
15086 * configure: Regenerate.
15087
15088 2020-02-19 Tom Tromey <tromey@adacore.com>
15089
15090 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15091 NULL check.
15092
15093 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15094
15095 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15096
15097 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15098
15099 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15100 if GDBSERVER is not defined.
15101 (riscv_tdesc_cache): Likewise, also store const target_desc.
15102 (STATIC_IN_GDB): Define.
15103 (riscv_create_target_description): Update declaration with
15104 STATIC_IN_GDB.
15105 (riscv_lookup_target_description): New function, only define if
15106 GDBSERVER is not defined.
15107 * arch/riscv.h (riscv_create_target_description): Declare only
15108 when GDBSERVER is defined.
15109 (riscv_lookup_target_description): New declaration when GDBSERVER
15110 is not defined.
15111 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15112 (riscv_linux_read_features): ...this, and return
15113 riscv_gdbarch_features instead of target_desc.
15114 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15115 (riscv_linux_read_description): Rename to...
15116 (riscv_linux_read_features): ...this.
15117 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15118 Update to use riscv_gdbarch_features and
15119 riscv_lookup_target_description.
15120 * riscv-tdep.c (riscv_find_default_target_description): Use
15121 riscv_lookup_target_description instead of
15122 riscv_create_target_description.
15123
15124 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15125
15126 * valprint.c (generic_val_print_enum_1): When printing a flag
15127 enum with value 0 and there is no enumerator with value 0, print
15128 just "0" instead of "(unknown: 0x0)".
15129
15130 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15131
15132 * valprint.c (generic_val_print_enum_1): Print unknown part of
15133 flag enum in hex.
15134
15135 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15136
15137 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15138 flag enums to contain duplicate enumerators.
15139 * valprint.c (generic_val_print_enum_1): Update comment.
15140
15141 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15142
15143 * dwarf2/read.c: Include "count-one-bits.h".
15144 (update_enumeration_type_from_children): If an enumerator has
15145 multiple bits set, don't treat the enumeration as a "flag enum".
15146 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15147 of flag enums have 0 or 1 bit set.
15148
15149 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15150
15151 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15152 conversion.
15153 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15154 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15155 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15156 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15157 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15158
15159 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15160
15161 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15162
15163 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15164
15165 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15166 displaced_step_closure_up.
15167 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15168 (struct displaced_step_closure_up):
15169 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15170 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15171 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15172 Likewise.
15173 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15174 * gdbarch.c, gdbarch.h: Re-generate.
15175 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15176 displaced_step_closure_up.
15177 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15178 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15179 * infrun.h (displaced_step_closure_up): New type alias.
15180 (struct displaced_step_inferior_state) <step_closure>: Change
15181 type to displaced_step_closure_up.
15182 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15183 displaced_step_closure_up.
15184 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15185
15186 2020-02-14 Tom Tromey <tom@tromey.com>
15187
15188 * minidebug.c (gnu_debug_key): New global.
15189 (find_separate_debug_file_in_section): Use it.
15190
15191 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15192
15193 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15194 std::unique_ptr.
15195 * gdbarch.c: Re-generate.
15196 * gdbarch.h: Re-generate.
15197 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15198 change.
15199 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15200 type to std::unique_ptr.
15201 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15202 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15203 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15204 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15205 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15206 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15207 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15208 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15209 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15210
15211 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15212
15213 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15214 std::unique_ptr.
15215 (displaced_step_clear): Rename to...
15216 (displaced_step_reset): ... this. Just call displaced->reset ().
15217 (displaced_step_clear_cleanup): Rename to...
15218 (displaced_step_reset_cleanup): ... this.
15219 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15220 (displaced_step_fixup): Likewise.
15221 (resume_1): Likewise.
15222 (handle_inferior_event): Restore child's memory before calling
15223 displaced_step_fixup on the parent.
15224 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15225 to std::unique_ptr.
15226 <step_closure>: Change type to std::unique_ptr.
15227
15228 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15229
15230 * arm-tdep.c: Include count-one-bits.h.
15231 (cleanup_block_store_pc): Use count_one_bits.
15232 (cleanup_block_load_pc): Use count_one_bits.
15233 (arm_copy_block_xfer): Use count_one_bits.
15234 (thumb2_copy_block_xfer): Use count_one_bits.
15235 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15236 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15237 (thumb_get_next_pcs_raw): Use count_one_bits.
15238 (arm_get_next_pcs_raw): Use count_one_bits_l.
15239 * arch/arm.c (bitcount): Remove.
15240 * arch/arm.h (bitcount): Remove.
15241
15242 2020-02-14 Tom Tromey <tromey@adacore.com>
15243
15244 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15245 Update.
15246 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15247 * dwarf2/loc.c (call_site_find_chain_1): Return
15248 unique_xmalloc_ptr.
15249 (call_site_find_chain): Likewise.
15250
15251 2020-02-14 Richard Biener <rguenther@suse.de>
15252
15253 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15254 on expression with division operators.
15255
15256 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15257
15258 * MAINTAINERS (Write After Approval): Adding myself.
15259
15260 2020-02-12 Tom Tromey <tom@tromey.com>
15261
15262 * event-loop.c (event_data, gdb_event, event_handler_func):
15263 Remove.
15264
15265 2020-02-12 Tom Tromey <tom@tromey.com>
15266
15267 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15268 (dwarf2_frame_objfile_data): Add comment.
15269 (find_comp_unit, set_comp_unit): New functions.
15270 (dwarf2_frame_find_fde): Use find_comp_unit.
15271 (dwarf2_build_frame_info): Use set_comp_unit.
15272
15273 2020-02-12 Tom Tromey <tom@tromey.com>
15274
15275 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15276 (comp_unit): Don't initialize objfile.
15277 (execute_cfa_program): Add text_offset parameter.
15278 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15279 (dwarf2_frame_cache): Update.
15280 (dwarf2_build_frame_info): Don't set "objfile" member.
15281
15282 2020-02-12 Tom Tromey <tom@tromey.com>
15283
15284 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15285 (decode_frame_entry): Likewise.
15286 (dwarf2_build_frame_info): Update.
15287
15288 2020-02-12 Tom Tromey <tom@tromey.com>
15289
15290 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15291 (decode_frame_entry_1): Use the comp_unit obstack.
15292
15293 2020-02-12 Tom Tromey <tom@tromey.com>
15294
15295 * dwarf2/frame.c (struct comp_unit): Add initializers and
15296 constructor.
15297 (dwarf2_frame_objfile_data): Store a comp_unit.
15298 (dwarf2_frame_find_fde): Update.
15299 (dwarf2_build_frame_info): Use "new".
15300
15301 2020-02-12 Tom Tromey <tom@tromey.com>
15302
15303 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15304 (dwarf2_fde_table): Typedef for std::vector.
15305 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15306 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15307 (decode_frame_entry): Update.
15308 (dwarf2_build_frame_info): Use "new".
15309
15310 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15311
15312 * arm-tdep.c (arm_gdbarch_init): Update.
15313 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15314 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15315 have_neon, is_m>: Change to bool.
15316
15317 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15318
15319 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15320
15321 2020-02-12 Tom Tromey <tom@tromey.com>
15322
15323 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15324
15325 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15326
15327 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15328 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15329
15330 2020-02-11 Tom Tromey <tom@tromey.com>
15331
15332 * psymtab.h: Update comment.
15333
15334 2020-02-11 Tom Tromey <tom@tromey.com>
15335
15336 * gdb_obstack.h (struct auto_obstack): Use
15337 DISABLE_COPY_AND_ASSIGN.
15338
15339 2020-02-11 Tom Tromey <tom@tromey.com>
15340
15341 * dwarf2/frame.h (struct objfile): Don't forward declare.
15342
15343 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15344
15345 * cris-tdep.c (cris_supply_gregset): Change signature to match
15346 what struct regset expects.
15347 (cris_regset): New struct.
15348 (fetch_core_registers): Remove.
15349 (cris_iterate_over_regset_sections): New function.
15350 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15351 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15352
15353 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15354
15355 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15356 registers.
15357
15358 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15359
15360 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15361
15362 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15363
15364 * configure: Re-generate.
15365
15366 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15367
15368 * configure: Re-generate.
15369
15370 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15371
15372 * acinclude: Update warning.m4 path.
15373 * warning.m4: Move to gdbsupport.
15374
15375 2020-02-11 Tom Tromey <tromey@adacore.com>
15376
15377 * remote.c (remote_console_output): Update.
15378 * printcmd.c (printf_command): Update.
15379 * event-loop.c (gdb_wait_for_event): Update.
15380 * linux-nat.c (sigchld_handler): Update.
15381 * remote-sim.c (gdb_os_write_stdout): Update.
15382 (gdb_os_flush_stdout): Update.
15383 (gdb_os_flush_stderr): Update.
15384 (gdb_os_write_stderr): Update.
15385 * exceptions.c (print_exception): Update.
15386 * remote-fileio.c (remote_fileio_func_read): Update.
15387 (remote_fileio_func_write): Update.
15388 * tui/tui.c (tui_enable): Update.
15389 * tui/tui-interp.c (tui_interp::init): Update.
15390 * utils.c (init_page_info): Update.
15391 (putchar_unfiltered, fputc_unfiltered): Update.
15392 (gdb_flush): Update.
15393 (emit_style_escape): Update.
15394 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15395 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15396 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15397 (stderr_file::write): Update.
15398 (stderr_file::puts): Update.
15399 * ui-file.h (ui_file_isatty, ui_file_write)
15400 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15401 (ui_file_puts): Don't declare.
15402
15403 2020-02-10 Tom de Vries <tdevries@suse.de>
15404
15405 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15406 sentinel to char *.
15407
15408 2020-02-09 Tom de Vries <tdevries@suse.de>
15409
15410 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15411 filename if it matches "<artificial>".
15412
15413 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15414
15415 * windows-tdep.c (struct enum_value_name): New struct.
15416 (create_enum): New function.
15417 (windows_get_siginfo_type): Create and use enum types.
15418
15419 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15420
15421 * NEWS: Mention $_siginfo support for Windows.
15422 * windows-nat.c (handle_exception): Set siginfo_er.
15423 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15424 (windows_xfer_siginfo): New function.
15425 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15426 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15427 (init_windows_gdbarch_data): New function.
15428 (get_windows_gdbarch_data): New function.
15429 (windows_get_siginfo_type): New function.
15430 (windows_init_abi): Register windows_get_siginfo_type.
15431 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15432
15433 2020-02-08 Tom Tromey <tom@tromey.com>
15434
15435 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15436 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15437 <keep>: Declare method.
15438 <m_keep>: Remove member.
15439 <~cutu_reader>: Remove.
15440 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15441 (cutu_reader::cutu_reader): Update.
15442 (cutu_reader::keep): Rename from ~cutu_reader.
15443 (process_psymtab_comp_unit, build_type_psymtabs_1)
15444 (process_skeletonless_type_unit, load_partial_comp_unit)
15445 (load_full_comp_unit, dwarf2_read_addr_index)
15446 (read_signatured_type): Update.
15447
15448 2020-02-08 Tom Tromey <tom@tromey.com>
15449
15450 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15451 "want_partial_unit" parameter.
15452 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15453 Inline check for DW_TAG_partial_unit.
15454 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15455
15456 2020-02-08 Tom Tromey <tom@tromey.com>
15457
15458 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15459 read.c.
15460 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15461 read.c.
15462
15463 2020-02-08 Tom Tromey <tom@tromey.com>
15464
15465 * dwarf2/read.c (read_address): Move to comp-unit.c.
15466 (dwarf2_rnglists_process, dwarf2_ranges_process)
15467 (read_attribute_value, dwarf_decode_lines_1)
15468 (var_decode_location, decode_locdesc): Update.
15469 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15470 read.c. Remove "cu" parameter.
15471 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15472 method.
15473
15474 2020-02-08 Tom Tromey <tom@tromey.com>
15475
15476 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15477 (read_indirect_line_string): Update.
15478 * dwarf2/comp-unit.c (read_offset): Remove.
15479 (read_comp_unit_head): Update.
15480 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15481 method.
15482 (read_offset): Don't declare.
15483
15484 2020-02-08 Tom Tromey <tom@tromey.com>
15485
15486 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15487 * dwarf2/read.c (struct comp_unit_head): Move to
15488 dwarf2/comp-unit.h.
15489 (enum class rcuh_kind): Move to comp-unit.h.
15490 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15491 (read_comp_unit_head, error_check_comp_unit_head)
15492 (read_and_check_comp_unit_head): Move to comp-unit.c.
15493 (read_offset, dwarf_unit_type_name): Likewise.
15494 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15495 (cutu_reader::cutu_reader, read_call_site_scope)
15496 (find_partial_die, follow_die_offset): Update.
15497 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15498
15499 2020-02-08 Tom Tromey <tom@tromey.com>
15500
15501 * dwarf2/read.c (read_offset_1): Move to leb.c.
15502 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15503 (dwarf_decode_macro_bytes): Update.
15504 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15505 * dwarf2/leb.h (read_offset): Declare.
15506
15507 2020-02-08 Tom Tromey <tom@tromey.com>
15508
15509 * dwarf2/read.c (dwarf2_section_size): Remove.
15510 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15511 Update.
15512 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15513
15514 2020-02-08 Tom Tromey <tom@tromey.com>
15515
15516 * dwarf2/read.c (read_initial_length): Move to leb.c.
15517 * dwarf2/leb.h (read_initial_length): Declare.
15518 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15519 handle_nonstd parameter.
15520 * dwarf2/frame.c (read_initial_length): Remove.
15521 (decode_frame_entry_1): Update.
15522
15523 2020-02-08 Tom Tromey <tom@tromey.com>
15524
15525 * dwarf2/loc.c (dwarf2_find_location_expression)
15526 (dwarf_evaluate_loc_desc::get_tls_address)
15527 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15528 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15529 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15530 (dwarf2_compile_property_to_c)
15531 (dwarf2_loc_desc_get_symbol_read_needs)
15532 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15533 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15534 (loclist_describe_location, loclist_tracepoint_var_ref)
15535 (loclist_generate_c_location): Update.
15536 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15537 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15538 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15539 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15540 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15541 (dwarf2_per_cu_data::addr_size)
15542 (dwarf2_per_cu_data::ref_addr_size)
15543 (dwarf2_per_cu_data::text_offset)
15544 (dwarf2_per_cu_data::addr_type): Now methods.
15545 (per_cu_header_read_in): Make per_cu "const".
15546 (dwarf2_version): Remove.
15547 (dwarf2_per_cu_data::int_type): Now a method.
15548 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15549 (set_die_type, read_array_type, read_subrange_index_type)
15550 (read_tag_string_type, read_subrange_type): Update.
15551 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15552 offset_size, ref_addr_size, text_offset, addr_type, version,
15553 objfile, int_type, addr_sized_int_type>: Declare methods.
15554
15555 2020-02-08 Tom Tromey <tom@tromey.com>
15556
15557 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15558 Move earlier.
15559
15560 2020-02-08 Tom Tromey <tom@tromey.com>
15561
15562 * dwarf2/read.h (dwarf_line_debug): Declare.
15563 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15564 * dwarf2/read.c: Move line_header code to new files.
15565 (dwarf_line_debug): No longer static.
15566 * dwarf2/line-header.c: New file.
15567 * dwarf2/line-header.h: New file.
15568
15569 2020-02-08 Tom Tromey <tom@tromey.com>
15570
15571 * dwarf2/read.c (struct line_header) <file_full_name,
15572 file_file_name>: Return unique_xmalloc_ptr.
15573 (line_header::file_file_name): Update.
15574 (line_header::file_full_name): Update.
15575 (dw2_get_file_names_reader): Update.
15576 (macro_start_file): Update.
15577
15578 2020-02-08 Tom Tromey <tom@tromey.com>
15579
15580 * dwarf2/read.c (struct line_header) <file_full_name,
15581 file_file_name>: Declare methods.
15582 (dw2_get_file_names_reader): Update.
15583 (file_file_name): Now a method.
15584 (file_full_name): Likewise.
15585 (macro_start_file): Update.
15586
15587 2020-02-08 Tom Tromey <tom@tromey.com>
15588
15589 * dwarf2/read.c (dwarf_always_disassemble)
15590 (show_dwarf_always_disassemble): Move to loc.c.
15591 (_initialize_dwarf2_read): Move "always-disassemble" registration
15592 to loc.c.
15593 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15594 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15595 static.
15596 (show_dwarf_always_disassemble): Move from read.c.
15597 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15598
15599 2020-02-08 Tom Tromey <tom@tromey.com>
15600
15601 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15602 (create_quick_file_names_table): Return htab_up.
15603 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15604 Update.
15605 * dwarf2/read.h (struct dwarf2_per_objfile)
15606 <quick_file_names_table>: Now htab_up.
15607
15608 2020-02-08 Tom Tromey <tom@tromey.com>
15609
15610 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15611
15612 2020-02-08 Tom Tromey <tom@tromey.com>
15613
15614 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15615 Rewrite.
15616 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15617 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15618 (abbrev_table::abbrev_table): No longer inline.
15619 (ABBREV_HASH_SIZE): Remove.
15620 (abbrev_table::m_abbrevs): Now an htab_up.
15621
15622 2020-02-08 Tom Tromey <tom@tromey.com>
15623
15624 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15625 (cutu_reader): Update.
15626 (build_type_psymtabs_1): Update.
15627 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15628 (abbrev_table::alloc_abbrev): Update.
15629 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15630 (abbrev_table::read): New static method, renamed from
15631 abbrev_table_read_table.
15632 (abbrev_table::alloc_abbrev)
15633 (abbrev_table::add_abbrev): Now private.
15634 (abbrev_table::abbrev_table): Now private.
15635 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15636
15637 2020-02-08 Tom Tromey <tom@tromey.com>
15638
15639 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15640 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15641 htab_up.
15642
15643 2020-02-08 Tom Tromey <tom@tromey.com>
15644
15645 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15646 htab_up.
15647 (lookup_dwo_unit_in_dwp): Update.
15648 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15649 on obstack.
15650
15651 2020-02-08 Tom Tromey <tom@tromey.com>
15652
15653 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15654 obstack.
15655
15656 2020-02-08 Tom Tromey <tom@tromey.com>
15657
15658 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15659 line_header_hash.
15660 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15661 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15662 Change type to htab_up.
15663
15664 2020-02-08 Tom Tromey <tom@tromey.com>
15665
15666 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15667 htab_up. Don't allocate on obstack.
15668 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15669 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15670 Change type to htab_up.
15671
15672 2020-02-08 Tom Tromey <tom@tromey.com>
15673
15674 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15675 Change type to htab_up.
15676 * dwarf2/read.c (create_signatured_type_table_from_index)
15677 (create_signatured_type_table_from_debug_names)
15678 (create_all_type_units, add_type_unit)
15679 (lookup_dwo_signatured_type, lookup_signatured_type)
15680 (process_skeletonless_type_unit): Update.
15681 (create_debug_type_hash_table, create_debug_types_hash_table):
15682 Change type of types_htab.
15683 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15684 htab_up. Don't allocate on obstack.
15685 (create_cus_hash_table): Change type of cus_htab parameter.
15686 (struct dwo_file) <cus, tus>: Now htab_up.
15687 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15688 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15689 (queue_and_load_all_dwo_tus): Update.
15690 * dwarf2/index-write.c (write_gdbindex): Update.
15691 (write_debug_names): Update.
15692
15693 2020-02-08 Tom Tromey <tom@tromey.com>
15694
15695 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15696 dwarf2/read.c. Remove "next" member. Add constructor ntad
15697 destructor.
15698 (struct dwarf2_per_objfile) <queue>: New member.
15699 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15700 dwarf2/read.h.
15701 (dwarf2_queue, dwarf2_queue_tail): Remove.
15702 (class dwarf2_queue_guard): Add parameter to constructor. Use
15703 DISABLE_COPY_AND_ASSIGN.
15704 <m_per_objfile>: New member.
15705 <~dwarf2_queue_guard>: Rewrite.
15706 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15707 Update.
15708 (~dwarf2_queue_item): New.
15709
15710 2020-02-08 Tom Tromey <tom@tromey.com>
15711
15712 * dwarf2/read.c (struct die_info) <has_children>: New member.
15713 (dw2_get_file_names_reader): Remove has_children.
15714 (dw2_get_file_names): Update.
15715 (read_cutu_die_from_dwo): Remove has_children.
15716 (cutu_reader::init_tu_and_read_dwo_dies)
15717 (cutu_reader::cutu_reader): Update.
15718 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15719 Remove has_children.
15720 (build_type_psymtabs_1, process_skeletonless_type_unit)
15721 (load_partial_comp_unit, load_full_comp_unit): Update.
15722 (create_dwo_cu_reader): Remove has_children.
15723 (create_cus_hash_table, read_die_and_children): Update.
15724 (read_full_die_1,read_full_die): Remove has_children.
15725 (read_signatured_type): Update.
15726 (class cutu_reader) <has_children>: Remove.
15727
15728 2020-02-08 Tom Tromey <tom@tromey.com>
15729
15730 * dwarf2/expr.c: Rename from dwarf2expr.c.
15731 * dwarf2/expr.h: Rename from dwarf2expr.h.
15732 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15733 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15734 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15735 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15736 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15737 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15738 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15739 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15740 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15741 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15742 * dwarf2/loc.c: Rename from dwarf2loc.c.
15743 * dwarf2/loc.h: Rename from dwarf2loc.h.
15744 * dwarf2/read.c: Rename from dwarf2read.c.
15745 * dwarf2/read.h: Rename from dwarf2read.h.
15746 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15747 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15748 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15749 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15750 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15751 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15752 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15753 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15754 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15755 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15756 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15757 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15758 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15759 Update.
15760 * Makefile.in (COMMON_SFILES): Update.
15761 (HFILES_NO_SRCDIR): Update.
15762
15763 2020-02-08 Tom Tromey <tom@tromey.com>
15764
15765 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15766 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15767
15768 2020-02-08 Tom Tromey <tom@tromey.com>
15769
15770 * dwarf2read.h (struct die_info): Don't declare.
15771
15772 2020-02-08 Tom Tromey <tom@tromey.com>
15773
15774 * dwarf2read.h (die_info_ptr): Remove typedef.
15775
15776 2020-02-08 Tom Tromey <tom@tromey.com>
15777
15778 * dwarf2read.c (read_call_site_scope)
15779 (handle_data_member_location, dwarf2_add_member_fn)
15780 (mark_common_block_symbol_computed, read_common_block)
15781 (attr_to_dynamic_prop, partial_die_info::read)
15782 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15783 (dwarf2_symbol_mark_computed, set_die_type): Update.
15784 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15785 method.
15786 (attr_form_is_block): Don't declare.
15787 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15788
15789 2020-02-08 Tom Tromey <tom@tromey.com>
15790
15791 * dwarf2read.c (dwarf2_find_base_address, )
15792 (read_call_site_scope, rust_containing_type)
15793 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15794 (handle_data_member_location, dwarf2_add_member_fn)
15795 (get_alignment, read_structure_type, process_structure_scope)
15796 (mark_common_block_symbol_computed, read_common_block)
15797 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15798 (partial_die_info::read, read_attribute_value, new_symbol)
15799 (lookup_die_type, dwarf2_get_ref_die_offset)
15800 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15801 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15802 (dwarf2_symbol_mark_computed): Update.
15803 * dwarf2/attribute.h (struct attribute) <value_as_address,
15804 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15805 methods.
15806 (value_as_address, attr_form_is_section_offset)
15807 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15808 * dwarf2/attribute.c (attribute::value_as_address)
15809 (attribute::form_is_section_offset, attribute::form_is_constant)
15810 (attribute::form_is_ref): Now methods.
15811
15812 2020-02-08 Tom Tromey <tom@tromey.com>
15813
15814 * dwarf2read.c (struct attribute, DW_STRING)
15815 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15816 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15817 (attr_form_is_block, attr_form_is_section_offset)
15818 (attr_form_is_constant, attr_form_is_ref): Move.
15819 * dwarf2/attribute.h: New file.
15820 * dwarf2/attribute.c: New file, from dwarf2read.c.
15821 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15822
15823 2020-02-08 Tom Tromey <tom@tromey.com>
15824
15825 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15826 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15827 Move.
15828 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15829 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15830 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15831 abbrev.c.
15832 * dwarf2/abbrev.h: New file.
15833 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15834 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15835
15836 2020-02-08 Tom Tromey <tom@tromey.com>
15837
15838 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15839 (dwarf2_section_size, dwarf2_get_section_info)
15840 (create_signatured_type_table_from_debug_names)
15841 (create_addrmap_from_aranges, read_debug_names_from_section)
15842 (get_gdb_index_contents_from_section, read_comp_unit_head)
15843 (error_check_comp_unit_head, read_abbrev_offset)
15844 (create_debug_type_hash_table, init_cu_die_reader)
15845 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15846 (read_comp_units_from_section, create_cus_hash_table)
15847 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15848 (create_dwp_v2_section, dwarf2_rnglists_process)
15849 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15850 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15851 (read_indirect_string_from_dwz, read_addr_index_1)
15852 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15853 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15854 (fill_in_loclist_baton): Update.
15855 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15856 get_containing_section, get_bfd_owner, get_bfd_section,
15857 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15858 (dwarf2_read_section, get_section_name, get_section_file_name)
15859 (get_containing_section, get_section_bfd_owner)
15860 (get_section_bfd_section, get_section_name, get_section_file_name)
15861 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15862 declare.
15863 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15864 (dwarf2_section_info::get_bfd_owner)
15865 (dwarf2_section_info::get_bfd_section)
15866 (dwarf2_section_info::get_name)
15867 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15868 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15869 (dwarf2_section_info::read): Now methods.
15870 * dwarf-index-write.c (class debug_names): Update.
15871
15872 2020-02-08 Tom Tromey <tom@tromey.com>
15873
15874 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15875 Move to dwarf2/section.h.
15876 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15877 (get_section_bfd_section, get_section_name)
15878 (get_section_file_name, get_section_id, get_section_flags)
15879 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15880 dwarf2/section.c.
15881 * dwarf2/section.h: New file.
15882 * dwarf2/section.c: New file, from dwarf2read.c.
15883 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15884
15885 2020-02-08 Tom Tromey <tom@tromey.com>
15886
15887 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15888 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15889 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15890 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15891 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15892 * dwarf2/leb.h: New file, from dwarf2read.c.
15893 * dwarf2/leb.c: New file, from dwarf2read.c.
15894 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15895 Remove.
15896 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15897 (COMMON_SFILES): Add dwarf2/leb.c.
15898
15899 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15900
15901 GDB 9.1 released.
15902
15903 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15904
15905 PR gdb/25190:
15906 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15907 * gdb/remote.c (remote_console_output): Update.
15908 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15909 (ui_file_puts): ...this.
15910 * gdb/ui-file.h (ui_file_puts): Add declaration.
15911 * gdb/utils.c (emit_style_escape): Update.
15912 (flush_wrap_buffer): Update.
15913 (fputs_maybe_filtered): Update.
15914 (fputs_unfiltered): Add function.
15915
15916 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15917
15918 * gdb/event-loop.c (gdb_wait_for_event): Update.
15919 * gdb/printcmd.c (printf_command): Update.
15920 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15921 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15922 (gdb_os_flush_stderr): Update.
15923 * gdb/remote.c (remote_console_output): Update.
15924 * gdb/ui-file.c (gdb_flush): Rename to...
15925 (ui_file_flush): ...this.
15926 (stderr_file::write): Update.
15927 (stderr_file::puts): Update.
15928 * gdb/ui-file.h (gdb_flush): Rename to...
15929 (ui_file_flush): ...this.
15930 * gdb/utils.c (gdb_flush): Add function.
15931 * gdb/utils.h (gdb_flush): Add declaration.
15932
15933 2020-02-07 Tom Tromey <tromey@adacore.com>
15934
15935 PR breakpoints/24915:
15936 * source.c (find_and_open_source): Do not check basenames_may_differ.
15937
15938 2020-02-07 Tom Tromey <tom@tromey.com>
15939
15940 * README: Update gdbserver documentation.
15941 * gdbserver: Move to top level.
15942 * configure.tgt (build_gdbserver): Remove.
15943 * configure.ac: Remove --enable-gdbserver.
15944 * configure: Rebuild.
15945 * Makefile.in (distclean): Don't mention gdbserver.
15946
15947 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15948
15949 * source-cache.c (source_cache::ensure): Surround
15950 get_plain_source_lines with a try/catch.
15951 (source_cache::get_line_charpos): Get rid of try/catch
15952 and only check for the return value of "ensure".
15953 * tui/tui-source.c (tui_source_window::set_contents):
15954 Simplify "nlines" calculation.
15955
15956 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15957
15958 * MAINTAINERS (Write After Approval): Add myself.
15959
15960 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15961
15962 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15963 function call.
15964
15965 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15966
15967 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15968
15969 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15970
15971 * nat/riscv-linux-tdesc.h: New file.
15972 * nat/riscv-linux-tdesc.c: New file, taking code from...
15973 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15974 ... here.
15975 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15976 NATDEPFILES.
15977
15978 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15979
15980 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15981 we don't set the fake simulator ptid to the null_ptid.
15982
15983 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15984
15985 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15986 * gdbthread.h (class thread_info) <resumed>: Likewise.
15987 * infrun.c (resume_1): Likewise.
15988 (proceed): Likewise.
15989 (infrun_thread_stop_requested): Likewise.
15990 (stop_all_threads): Likewise.
15991 (handle_inferior_event): Likewise.
15992 (restart_threads): Likewise.
15993 (finish_step_over): Likewise.
15994 (keep_going_stepped_thread): Likewise.
15995 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15996 (linux_handle_extended_wait): Likewise.
15997 * record-btrace.c (get_thread_current_frame_id): Likewise.
15998 * record-full.c (record_full_wait_1): Likewise.
15999 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16000 * target.c (target_resume): Likewise.
16001 * thread.c (set_running_thread): Likewise.
16002
16003 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16004
16005 * f-valprint.c (f77_print_array_1): Changed datatype of index
16006 variable to LONGEST from int to enable it to contain bound
16007 values correctly.
16008
16009 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16010
16011 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16012 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16013 offsets according to FLEN determined.
16014 (riscv_linux_nat_target::read_description): Determine FLEN
16015 dynamically.
16016 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16017 according to FLEN determined.
16018 (riscv_linux_nat_target::store_registers): Likewise.
16019
16020 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16021
16022 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16023 when reg->group is empty and reggroup is not.
16024
16025 2020-01-31 Tom Tromey <tromey@adacore.com>
16026
16027 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16028 Call beneath target's mourn_inferior after unpushing.
16029
16030 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16031
16032 PR tui/9765
16033 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16034 have enough lines to fill the screen, still return the lowest
16035 address we found.
16036
16037 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16038
16039 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16040 '-', '<', and '>' commands.
16041
16042 2020-01-29 Pedro Alves <palves@redhat.com>
16043 Sergio Durigan Junior <sergiodj@redhat.com>
16044
16045 * infcmd.c (construct_inferior_arguments): Assert that
16046 'argc' is greater than 0.
16047
16048 2020-01-29 Luis Machado <luis.machado@linaro.org>
16049
16050 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16051 (BRK_INSN_MASK): Define to 0xd4200000.
16052 (aarch64_program_breakpoint_here_p): New function.
16053 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16054 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16055 breakpoint.c.
16056 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16057 breakpoint.h
16058 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16059 call gdbarch_program_breakpoint_here_p.
16060 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16061 default_program_breakpoint_here_p, changed return type to bool and
16062 simplified.
16063 * breakpoint.h (program_breakpoint_here): Moved prototype to
16064 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16065 return type to bool.
16066 * gdbarch.c: Regenerate.
16067 * gdbarch.h: Regenerate.
16068 * gdbarch.sh (program_breakpoint_here_p): New method.
16069 * infrun.c (handle_signal_stop): Call
16070 gdbarch_program_breakpoint_here_p.
16071
16072 2020-01-26 Tom Tromey <tom@tromey.com>
16073
16074 * ctfread.c (struct ctf_fp_info): Reindent.
16075 (_initialize_ctfread): Remove.
16076
16077 2020-01-26 Tom Tromey <tom@tromey.com>
16078
16079 * psymtab.c (partial_map_expand_apply)
16080 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16081 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16082 (psym_print_stats, psym_expand_symtabs_for_function)
16083 (psym_map_symbol_filenames, psym_map_matching_symbols)
16084 (psym_expand_symtabs_matching)
16085 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16086 (maintenance_check_psymtabs): Use new methods.
16087 * psympriv.h (struct partial_symtab) <readin_p,
16088 get_compunit_symtab>: New methods.
16089 <readin, compunit_symtab>: Remove members.
16090 (struct standard_psymtab): New.
16091 (struct legacy_psymtab): Derive from standard_psymtab.
16092 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16093 standard_psymtab.
16094 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16095
16096 2020-01-26 Tom Tromey <tom@tromey.com>
16097
16098 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16099 read_dependencies. Add assert.
16100 * psymtab.c (partial_symtab::read_dependencies): New method.
16101 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16102 method.
16103 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16104 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16105 read_dependencies.
16106 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16107 Add assert.
16108
16109 2020-01-26 Tom Tromey <tom@tromey.com>
16110
16111 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16112 Call expand_psymtab.
16113 (xcoff_read_symtab): Call expand_psymtab.
16114 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16115 legacy_expand_psymtab.
16116 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16117 method.
16118 (struct legacy_psymtab) <expand_psymtab>: Implement.
16119 <legacy_expand_psymtab>: New member.
16120 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16121 (parse_partial_symbols): Set legacy_expand_psymtab.
16122 (psymtab_to_symtab_1): Change argument order. Call
16123 expand_psymtab.
16124 (new_psymtab): Set legacy_expand_psymtab.
16125 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16126 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16127 expand_psymtab.
16128 (dwarf2_psymtab::expand_psymtab): Rename from
16129 psymtab_to_symtab_1. Call expand_psymtab.
16130 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16131 (dbx_end_psymtab): Likewise.
16132 (dbx_psymtab_to_symtab_1): Change argument order. Call
16133 expand_psymtab.
16134 (dbx_read_symtab): Call expand_psymtab.
16135 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16136 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16137 (ctf_psymtab::read_symtab): Call expand_psymtab.
16138
16139 2020-01-26 Tom Tromey <tom@tromey.com>
16140
16141 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16142 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16143 messages.
16144 * mdebugread.c (mdebug_read_symtab): Remove prints.
16145 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16146 assert.
16147 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16148
16149 2020-01-26 Tom Tromey <tom@tromey.com>
16150
16151 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16152 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16153 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16154 legacy_symtab.
16155 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16156 * psymtab.c (psymtab_to_symtab): Call method.
16157 (dump_psymtab): Update.
16158 * psympriv.h (struct partial_symtab): Add virtual destructor.
16159 <read_symtab>: New method.
16160 (struct legacy_symtab): New.
16161 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16162 (struct pst_map) <pst>: Now a legacy_psymtab.
16163 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16164 (new_psymtab): Use legacy_psymtab.
16165 * dwarf2read.h (struct dwarf2_psymtab): New.
16166 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16167 * dwarf2read.c (dwarf2_create_include_psymtab)
16168 (dwarf2_build_include_psymtabs, create_type_unit_group)
16169 (create_partial_symtab, process_psymtab_comp_unit_reader)
16170 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16171 (set_partial_user): Use dwarf2_psymtab.
16172 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16173 (psymtab_to_symtab_1, process_full_comp_unit)
16174 (process_full_type_unit, dwarf2_ranges_read)
16175 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16176 (dwarf_decode_lines): Use dwarf2_psymtab.
16177 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16178 (add_address_entry_worker, write_one_signatured_type)
16179 (recursively_count_psymbols, recursively_write_psymbols)
16180 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16181 (write_debug_names): Likewise.
16182 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16183 <pst>: Now a legacy_psymtab.
16184 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16185 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16186 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16187 * ctfread.c (struct ctf_psymtab): New.
16188 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16189 ctf_psymtab.
16190 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16191 (create_partial_symtab): Return a ctf_psymtab.
16192 (scan_partial_symbols): Update.
16193
16194 2020-01-26 Tom Tromey <tom@tromey.com>
16195
16196 * xcoffread.c (xcoff_start_psymtab): Use new.
16197 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16198 renamed from start_psymtab_common.
16199 * psympriv.h (struct partial_symtab): Add new constructor.
16200 (start_psymtab_common): Don't declare.
16201 * mdebugread.c (parse_partial_symbols): Use new.
16202 * dwarf2read.c (create_partial_symtab): Use new.
16203 * dbxread.c (start_psymtab): Use new.
16204 * ctfread.c (create_partial_symtab): Use new.
16205
16206 2020-01-26 Tom Tromey <tom@tromey.com>
16207
16208 * xcoffread.c (xcoff_end_psymtab): Use new.
16209 * psymtab.c (start_psymtab_common): Use new.
16210 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16211 Update.
16212 * psympriv.h (struct partial_symtab): Add parameters to
16213 constructor. Don't inline.
16214 (allocate_psymtab): Don't declare.
16215 * mdebugread.c (new_psymtab): Use new.
16216 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16217 * dbxread.c (dbx_end_psymtab): Use new.
16218
16219 2020-01-26 Tom Tromey <tom@tromey.com>
16220
16221 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16222 allocate_psymtab. Update documentation.
16223 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16224 allocate_psymtab. Do not use new.
16225 (allocate_psymtab): Use new. Update.
16226
16227 2020-01-26 Tom Tromey <tom@tromey.com>
16228
16229 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16230 * psymtab.c (psym_print_stats): Update.
16231 * psympriv.h (struct partial_symtab) <readin,
16232 psymtabs_addrmap_supported, anonymous>: Now bool.
16233 * mdebugread.c (psymtab_to_symtab_1): Update.
16234 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16235 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16236 (process_full_comp_unit, process_full_type_unit): Update.
16237 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16238 * ctfread.c (psymtab_to_symtab): Update.
16239
16240 2020-01-26 Tom Tromey <tom@tromey.com>
16241
16242 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16243 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16244 * psymtab.c (psymtab_storage): Delete psymtabs.
16245 (psymtab_storage::allocate_psymtab): Use new.
16246 (psymtab_storage::discard_psymtab): Use delete.
16247 * psympriv.h (struct partial_symtab): Add constructor and
16248 initializers.
16249
16250 2020-01-26 Tom Tromey <tom@tromey.com>
16251
16252 * machoread.c: Do not include psympriv.h.
16253
16254 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16255
16256 * NEWS: Mention the new option and the set/show commands.
16257
16258 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16259
16260 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16261 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16262 (validate_exec_file): New variables, enums, functions.
16263 (exec_file_locate_attach, print_section_info): Style the filenames.
16264 (_initialize_exec): Install show_exec_file_mismatch_command and
16265 set_exec_file_mismatch_command.
16266 * gdbcore.h (validate_exec_file): Declare.
16267 * infcmd.c (attach_command): Call validate_exec_file.
16268 * remote.c ( remote_target::remote_add_inferior): Likewise.
16269
16270 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16271
16272 * frame.c (find_frame_sal): Move call to get_next_frame into more
16273 inner scope.
16274 * inline-frame.c (inilne_state) <inline_state>: Update argument
16275 types.
16276 (inilne_state) <skipped_symbol>: Rename to...
16277 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16278 (skip_inline_frames): Build vector of skipped symbols and use this
16279 to reate the inline_state.
16280 (inline_skipped_symbol): Add a comment and some assertions, fetch
16281 skipped symbol from the list.
16282
16283 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16284
16285 * buildsym.c (lte_is_less_than): Delete.
16286 (buildsym_compunit::end_symtab_with_blockvector): Create local
16287 lambda function to sort line table entries, and use
16288 std::stable_sort instead of std::sort.
16289 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16290 markers when looking for a previous line.
16291
16292 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16293
16294 * dwarf2read.c (lnp_state_machine::record_line): Include
16295 end_sequence parameter in debug print out. Record the line if we
16296 are at an end_sequence marker even if it's not the start of a
16297 statement.
16298 * symmisc.c (maintenance_print_one_line_table): Print end of
16299 sequence markers with 'END' not '0'.
16300
16301 2020-01-24 Pedro Alves <palves@redhat.com>
16302
16303 PR gdb/25410
16304 * thread.c (scoped_restore_current_thread::restore): Use
16305 switch_to_inferior_no_thread.
16306 * exec.c: Include "progspace-and-thread.h".
16307 (add_target_sections, remove_target_sections):
16308 scoped_restore_current_pspace_and_thread instead of
16309 scoped_restore_current_thread.
16310 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16311 and aspace to the inferior before calling clone_program_space.
16312 Remove stale comment.
16313
16314 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16315
16316 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16317 (arm_netbsd_nat_target::fetch_registers): ...this.
16318 (arm_nbsd_nat_target::store_registers): Rename to...
16319 (arm_netbsd_nat_target::store_registers): ...this.
16320
16321 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16322
16323 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16324 register_t.
16325
16326 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16327
16328 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16329 Update comment.
16330 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16331 Likewise.
16332 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16333 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16334 the correct replacement (iterate_over_regset_sections).
16335 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16336 Update comment.
16337
16338 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16339
16340 PR gdb/23718
16341 * gdb/python/python.c (execute_gdb_command): Call
16342 async_enable_stdin in catch block.
16343
16344 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16345
16346 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16347 SWITCH_THRU_ALL_UIS.
16348
16349 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16350
16351 PR tui/9765
16352 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16353 comment, add extra parameter, and update to store previous symbol
16354 when appropriate.
16355 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16356 add extra parameter.
16357 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16358 remove unneeded parameter, add try/catch around gdb_print_insn,
16359 rewrite to add items to asm_lines vector.
16360 (tui_find_backward_disassembly_start_address): New function.
16361 (tui_find_disassembly_address): Updated throughout.
16362 (tui_disasm_window::set_contents): Update for changes to
16363 tui_disassemble.
16364 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16365 number of lines to scroll.
16366
16367 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16368
16369 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16370 (SECT_OFF_DATA): Likewise.
16371 (SECT_OFF_RODATA): Likewise.
16372 (SECT_OFF_TEXT): Likewise.
16373 (SECT_OFF_BSS): Likewise.
16374 (struct objfile) <text_section_offset, data_section_offset>: New
16375 methods.
16376 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16377 objfile::text_section_offset.
16378 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16379 * coffread.c (coff_symtab_read): Likewise.
16380 (enter_linenos): Likewise.
16381 (process_coff_symbol): Likewise.
16382 * ctfread.c (get_objfile_text_range): Likewise.
16383 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16384 Use objfile::data_section_offset.
16385 * dwarf2-frame.c (execute_cfa_program): Use
16386 objfile::text_section_offset.
16387 (dwarf2_frame_find_fde): Likewise.
16388 * dwarf2read.c (create_addrmap_from_index): Likewise.
16389 (create_addrmap_from_aranges): Likewise.
16390 (dw2_find_pc_sect_compunit_symtab): Likewise.
16391 (process_psymtab_comp_unit_reader): Likewise.
16392 (add_partial_symbol): Likewise.
16393 (add_partial_subprogram): Likewise.
16394 (process_full_comp_unit): Likewise.
16395 (read_file_scope): Likewise.
16396 (read_func_scope): Likewise.
16397 (read_lexical_block_scope): Likewise.
16398 (read_call_site_scope): Likewise.
16399 (dwarf2_rnglists_process): Likewise.
16400 (dwarf2_ranges_process): Likewise.
16401 (dwarf2_ranges_read): Likewise.
16402 (dwarf_decode_lines_1): Likewise.
16403 (new_symbol): Likewise.
16404 (dwarf2_fetch_die_loc_sect_off): Likewise.
16405 (dwarf2_per_cu_text_offset): Likewise.
16406 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16407 * hppa-tdep.c (read_unwind_info): Likewise.
16408 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16409 * psympriv.h (struct partial_symtab): Likewise.
16410 * psymtab.c (find_pc_sect_psymtab): Likewise.
16411 * solib-svr4.c (enable_break): Likewise.
16412 * stap-probe.c (relocate_address): Use
16413 objfile::data_section_offset.
16414 * xcoffread.c (enter_line_range): Use
16415 objfile::text_section_offset.
16416 (read_xcoff_symtab): Likewise.
16417
16418 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16419
16420 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16421 declaration to narrower scopes.
16422
16423 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16424
16425 * darwin-nat.h (struct darwin_exception_msg, enum
16426 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16427 Move up.
16428 (class darwin_nat_target) <wait_1, check_new_threads,
16429 decode_exception_message, decode_message, stop_inferior,
16430 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16431 * darwin-nat.c (darwin_check_new_threads): Rename to...
16432 (darwin_nat_target::check_new_threads): ... this.
16433 (darwin_suspend_inferior_it): Remove.
16434 (darwin_decode_exception_message): Rename to...
16435 (darwin_nat_target::decode_exception_message): ... this.
16436 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16437 (darwin_decode_message): Rename to...
16438 (darwin_nat_target::decode_message): ... this.
16439 (cancel_breakpoint): Rename to...
16440 (darwin_nat_target::cancel_breakpoint): ... this.
16441 (darwin_wait): Rename to...
16442 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16443 instead of iterate_over_inferiors.
16444 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16445 (darwin_stop_inferior): Rename to...
16446 (darwin_nat_target::stop_inferior): ... this.
16447 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16448 (darwin_init_thread_list): Rename to...
16449 (darwin_nat_target::init_thread_list): ... this.
16450 (darwin_ptrace_him): Rename to...
16451 (darwin_nat_target::ptrace_him): ... this.
16452 (darwin_nat_target::create_inferior): Pass lambda function to
16453 fork_inferior.
16454 (darwin_nat_target::detach): Call stop_inferior instead of
16455 darwin_stop_inferior.
16456 * fork-inferior.h (fork_inferior): Change init_trace_fun
16457 parameter to gdb::function_view.
16458 * fork-inferior.c (fork_inferior): Likewise.
16459
16460 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16461
16462 * i386-cygwin-tdep.c (core_process_module_section): Update.
16463 * windows-nat.c (struct lm_info_windows): Add text_offset.
16464 (windows_xfer_shared_libraries): Update.
16465 * windows-tdep.c (windows_xfer_shared_library):
16466 Add text_offset_cached argument.
16467 * windows-tdep.h (windows_xfer_shared_library): Update.
16468
16469 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16470
16471 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16472
16473 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16474
16475 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16476 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16477 replace with range-based for.
16478 (gdbsim_interrupt_inferior): Remove.
16479 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16480 with a range-based for. Inline code from
16481 gdbsim_interrupt_inferior.
16482
16483 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16484
16485 * infrun.c (proceed): Fix indentation.
16486
16487 2020-01-21 Tom Tromey <tromey@adacore.com>
16488
16489 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16490 * python/python.c (python_extension_ops): Update.
16491 (gdbpy_colorize): New function.
16492 * python/lib/gdb/__init__.py (colorize): New function.
16493 * extension.h (ext_lang_colorize): Declare.
16494 * extension.c (ext_lang_colorize): New function.
16495 * extension-priv.h (struct extension_language_ops) <colorize>: New
16496 member.
16497 * cli/cli-style.c (_initialize_cli_style): Update help text.
16498
16499 2020-01-21 Luis Machado <luis.machado@linaro.org>
16500
16501 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16502 <cond>: Change type to bool.
16503 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16504 (aarch64_displaced_step_cb): Likewise.
16505 (aarch64_displaced_step_tb): Likewise.
16506
16507 2020-01-21 Luis Machado <luis.machado@linaro.org>
16508
16509 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16510 output.
16511
16512 2020-01-21 Luis Machado <luis.machado@linaro.org>
16513
16514 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16515 <pc_adjust>: Adjust the documentation.
16516 (aarch64_displaced_step_fixup): Check if PC really moved before
16517 adjusting it.
16518
16519 2020-01-19 Tom Tromey <tom@tromey.com>
16520
16521 * disasm.c (~gdb_disassembler): New destructor.
16522 (gdb_buffered_insn_length): Call disassemble_free_target.
16523 * disasm.h (class gdb_disassembler): Declare destructor. Use
16524 DISABLE_COPY_AND_ASSIGN.
16525
16526 2020-01-19 Tom Tromey <tom@tromey.com>
16527
16528 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16529 (die_reader_func_ftype): Remove.
16530 (cutu_reader): New class.
16531 (dw2_get_file_names_reader): Remove "data" parameter.
16532 (dw2_get_file_names): Use cutu_reader.
16533 (create_debug_type_hash_table): Update.
16534 (read_cutu_die_from_dwo): Update comment.
16535 (lookup_dwo_unit): Add dwo_name parameter.
16536 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16537 die_reader_func_ftype and data parameters.
16538 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16539 Remove die_reader_func_ftype and data parameters.
16540 (~cutu_reader): New; from init_cutu_and_read_dies.
16541 (cutu_reader::cutu_reader): Rename from
16542 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16543 and data parameters.
16544 (init_cutu_and_read_dies_simple): Remove.
16545 (struct process_psymtab_comp_unit_data): Remove.
16546 (process_psymtab_comp_unit_reader): Remove data parameter; add
16547 want_partial_unit and pretend_language parameters.
16548 (process_psymtab_comp_unit): Use cutu_reader.
16549 (build_type_psymtabs_reader): Remove data parameter.
16550 (build_type_psymtabs_1): Use cutu_reader.
16551 (process_skeletonless_type_unit): Likewise.
16552 (load_partial_comp_unit_reader): Remove.
16553 (load_partial_comp_unit): Use cutu_reader.
16554 (load_full_comp_unit_reader): Remove.
16555 (load_full_comp_unit): Use cutu_reader.
16556 (struct create_dwo_cu_data): Remove.
16557 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16558 dwo_unit parameters.
16559 (create_cus_hash_table): Use cutu_reader.
16560 (struct dwarf2_read_addr_index_data): Remove.
16561 (dwarf2_read_addr_index_reader): Remove.
16562 (dwarf2_read_addr_index): Use cutu_reader.
16563 (read_signatured_type_reader): Remove.
16564 (read_signatured_type): Use cutu_reader.
16565
16566 2020-01-19 Tom Tromey <tom@tromey.com>
16567
16568 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16569 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16570 (tui_wrefresh): Declare.
16571 * tui/tui-wingeneral.c (suppress_output): New global.
16572 (tui_suppress_output, ~tui_suppress_output): New constructor and
16573 destructor.
16574 (tui_wrefresh): New function.
16575 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16576 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16577 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16578 method.
16579 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16580 tui_wrefresh.
16581 (tui_data_window::no_refresh): New method.
16582 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16583 (tui_reg_command): Use tui_suppress_output
16584 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16585 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16586 method.
16587 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16588
16589 2020-01-19 Tom Tromey <tom@tromey.com>
16590
16591 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16592 Handle case where symtab is null.
16593
16594 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16595
16596 * linux-fork.c (one_fork_p): Simplify.
16597
16598 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16599
16600 * top.c (struct qt_args): Remove.
16601 (kill_or_detach): Change return type to void, replace `void *`
16602 parameter with a proper one.
16603 (print_inferior_quit_action): Likewise.
16604 (quit_confirm): Use range-based for loop to iterate over inferiors.
16605 (quit_force): Likewise.
16606
16607 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16608
16609 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16610 `void *` parameter with proper parameters.
16611 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16612 (print_one_inferior): Change return type to void, replace `void *`
16613 parameter with proper parameters.
16614 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16615 inferiors.
16616 (get_other_inferior): Remove.
16617 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16618 inferiors.
16619
16620 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16621
16622 * mi/mi-interp.c (report_initial_inferior): Remove.
16623 (mi_interp::init): Use range-based for to iterate over inferiors.
16624
16625 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16626
16627 * python/py-inferior.c (build_inferior_list): Remove.
16628 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16629
16630 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16631
16632 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16633 (btrace_stitch_trace): Likewise.
16634 * charset.c (intermediate_encoding): Likewise (vaild).
16635 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16636 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16637 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16638
16639 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16640
16641 * windows-tdep.c (windows_get_tlb_type):
16642 Add rtl_user_process_parameters type.
16643
16644 2020-01-16 Pedro Alves <palves@redhat.com>
16645 Norbert Lange <nolange79@gmail.com>
16646
16647 PR build/24805
16648 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16649 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16650 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16651 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16652 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16653 (ps_plog): Redeclare exported functions with default visibility.
16654
16655 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16656
16657 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16658 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16659
16660 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16661
16662 * infcmd.c (post_create_inferior): Use get_thread_regcache
16663 instead of get_current_regcache.
16664
16665 2020-01-14 Tom Tromey <tom@tromey.com>
16666
16667 PR symtab/12535:
16668 * python/python.c (gdbpy_decode_line): Treat empty string the same
16669 as no argument.
16670
16671 2020-01-14 Tom Tromey <tom@tromey.com>
16672
16673 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16674
16675 2020-01-14 Tom Tromey <tom@tromey.com>
16676
16677 * nat/linux-btrace.c: Don't include <config.h>.
16678 * nat/linux-ptrace.c: Don't include <config.h>.
16679 * nat/x86-linux-dregs.c: Don't include <config.h>.
16680
16681 2020-01-14 Tom Tromey <tom@tromey.com>
16682
16683 * configure: Rebuild.
16684 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16685
16686 2020-01-14 Tom Tromey <tom@tromey.com>
16687
16688 * nat/x86-linux-dregs.c: Include configh.h.
16689 * nat/linux-ptrace.c: Include configh.h.
16690 * nat/linux-btrace.c: Include configh.h.
16691 * defs.h: Include config.h, bfd.h.
16692 * configure.ac: Don't source common.host.
16693 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16694 * configure: Rebuild.
16695 * acinclude.m4: Update path.
16696 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16697 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16698 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16699 (CLIBS): Add LIBSUPPORT.
16700 (CDEPS): Likewise.
16701 (COMMON_SFILES): Remove gdbsupport files.
16702 (HFILES_NO_SRCDIR): Likewise.
16703 (stamp-version): Update path to create-version.sh.
16704 (ALLDEPFILES): Remove gdbsupport files.
16705
16706 2020-01-14 Tom Tromey <tom@tromey.com>
16707
16708 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16709 USE_WIN32API when needed.
16710 * configure.ac (USE_WIN32API): Don't define.
16711 (WIN32LIBS): Use WIN32APILIBS.
16712 * configure: Rebuild.
16713
16714 2020-01-14 Tom Tromey <tom@tromey.com>
16715
16716 * configure: Rebuild.
16717 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16718
16719 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16720
16721 * skip.c (skip_function_command): Make skip w/o arguments use the
16722 name of the inlined function if pc is inside any inlined function.
16723
16724 2020-01-14 Luis Machado <luis.machado@linaro.org>
16725
16726 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16727 * infrun.c (resume_1): Likewise.
16728 (handle_inferior_event): Remove stale comment.
16729 * linux-nat.c (linux_nat_target::resume): Update comments.
16730 (save_stop_reason): Likewise.
16731 (linux_nat_filter_event): Likewise.
16732 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16733
16734 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16735
16736 * elfread.c (record_minimal_symbol): Set section index to 0 for
16737 non-allocatable sections.
16738
16739
16740 2020-01-13 Ali Tamur <tamur@google.com>
16741
16742 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16743 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16744 to gdb::optional. Update comments.
16745 (dwo_file): Update comments.
16746 (read_attribute): Update API to take an additional out parameter,
16747 need_reprocess. This is used to mark attributes that need other
16748 attributes (e.g. str_offsets_base) for correct computation which may not
16749 have been read yet.
16750 (read_attribute_reprocess): New function declaration.
16751 (read_addr_index): Likewise.
16752 (read_dwo_str_index): Likewise.
16753 (read_stub_str_index): Likewise.
16754 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16755 (lookup_addr_base): New function definition.
16756 (lookup_ranges_base): Likewise.
16757 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16758 lookup_ranges_base.
16759 (init_cutu_and_read_dies): Update comments.
16760 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16761 unit. This is used to inherit parent's str_offsets_base and addr_base.
16762 Update comments.
16763 (init_cutu_and_read_dies_simple): Reflect API changes.
16764 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16765 (create_cus_hash_table): Change API to take parent compile unit.
16766 Reflect API changes.
16767 (open_and_init_dwo_file): Reflect API changes.
16768 (dwarf2_get_pc_bounds): Update comments.
16769 (dwarf2_record_block_ranges): Likewise.
16770 (read_full_die_1): Change implementation to reprocess attributes that
16771 need str_offsets_base and addr_base.
16772 (partial_die_info::read): Likewise.
16773 (read_attribute_reprocess): New function definition.
16774 (read_attribute_value): Change API to take an additional out parameter,
16775 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16776 when a non-dwo compile unit has index based attributes.
16777 (read_attribute): Reflect API changes.
16778 (read_addr_index_1): Reflect API changes. Update comments.
16779 (dwarf2_read_addr_index_data): Reflect API changes.
16780 (dwarf2_read_addr_index): Likewise.
16781 (read_str_index): Change API and implementation. This becomes a helper
16782 to be used by the new string index related methods. Update error
16783 message and comments.
16784 (read_dwo_str_index): New function definition.
16785 (read_stub_str_index): Likewise.
16786 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16787 * symfile.h (dwarf2_debug_sections): Likewise.
16788 * xcoffread.c (dwarf2_debug_sections): Likewise.
16789
16790 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16791
16792 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16793 core_reg_sect type to gdb_byte *.
16794 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16795 * cris-tdep.c (fetch_core_registers): Likewise.
16796 * corelow.c (core_target::get_core_register_section): Change
16797 type of `contents` to gdb::byte_vector.
16798
16799 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16800
16801 * tui/tui-wingeneral.c (box_win): Position the title in the center
16802 of the border.
16803
16804 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16805
16806 * corelow.c (core_target::get_core_register_section): Use
16807 std::vector instead of alloca.
16808
16809 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16810
16811 * warning.m4: Add -Wmissing-declarations to build_warnings.
16812 * configure: Re-generate.
16813
16814 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16815
16816 * python/python.c (init__gdb_module): Add declaration.
16817
16818 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16819
16820 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16821 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16822 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16823 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16824 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16825 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16826 * ada-exp.y (_initialize_ada_exp): Add declaration.
16827 * ada-lang.c (_initialize_ada_language): Add declaration.
16828 * ada-tasks.c (_initialize_tasks): Add declaration.
16829 * agent.c (_initialize_agent): Add declaration.
16830 * aix-thread.c (_initialize_aix_thread): Add declaration.
16831 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16832 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16833 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16834 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16835 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16836 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16837 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16838 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16839 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16840 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16841 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16842 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16843 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16844 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16845 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16846 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16847 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16848 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16849 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16850 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16851 * annotate.c (_initialize_annotate): Add declaration.
16852 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16853 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16854 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16855 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16856 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16857 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16858 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16859 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16860 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16861 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16862 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16863 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16864 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16865 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16866 * auto-load.c (_initialize_auto_load): Add declaration.
16867 * auxv.c (_initialize_auxv): Add declaration.
16868 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16869 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16870 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16871 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16872 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16873 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16874 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16875 * breakpoint.c (_initialize_breakpoint): Add declaration.
16876 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16877 * btrace.c (_initialize_btrace): Add declaration.
16878 * charset.c (_initialize_charset): Add declaration.
16879 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16880 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16881 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16882 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16883 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16884 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16885 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16886 * coffread.c (_initialize_coffread): Add declaration.
16887 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16888 * compile/compile.c (_initialize_compile): Add declaration.
16889 * complaints.c (_initialize_complaints): Add declaration.
16890 * completer.c (_initialize_completer): Add declaration.
16891 * copying.c (_initialize_copying): Add declaration.
16892 * corefile.c (_initialize_core): Add declaration.
16893 * corelow.c (_initialize_corelow): Add declaration.
16894 * cp-abi.c (_initialize_cp_abi): Add declaration.
16895 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16896 * cp-support.c (_initialize_cp_support): Add declaration.
16897 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16898 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16899 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16900 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16901 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16902 * ctfread.c (_initialize_ctfread): Add declaration.
16903 * d-lang.c (_initialize_d_language): Add declaration.
16904 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16905 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16906 * dbxread.c (_initialize_dbxread): Add declaration.
16907 * dcache.c (_initialize_dcache): Add declaration.
16908 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16909 * disasm.c (_initialize_disasm): Add declaration.
16910 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16911 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16912 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16913 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16914 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16915 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16916 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16917 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16918 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16919 * elfread.c (_initialize_elfread): Add declaration.
16920 * exec.c (_initialize_exec): Add declaration.
16921 * extension.c (_initialize_extension): Add declaration.
16922 * f-lang.c (_initialize_f_language): Add declaration.
16923 * f-valprint.c (_initialize_f_valprint): Add declaration.
16924 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16925 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16926 * filesystem.c (_initialize_filesystem): Add declaration.
16927 * findcmd.c (_initialize_mem_search): Add declaration.
16928 * findvar.c (_initialize_findvar): Add declaration.
16929 * fork-child.c (_initialize_fork_child): Add declaration.
16930 * frame-base.c (_initialize_frame_base): Add declaration.
16931 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16932 * frame.c (_initialize_frame): Add declaration.
16933 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16934 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16935 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16936 * gcore.c (_initialize_gcore): Add declaration.
16937 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16938 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16939 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16940 * gdbarch.c (_initialize_gdbarch): Add declaration.
16941 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16942 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16943 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16944 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16945 * go-lang.c (_initialize_go_language): Add declaration.
16946 * go32-nat.c (_initialize_go32_nat): Add declaration.
16947 * guile/guile.c (_initialize_guile): Add declaration.
16948 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16949 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16950 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16951 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16952 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16953 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16954 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16955 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16956 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16957 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16958 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16959 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16960 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16961 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16962 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16963 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16964 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16965 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16966 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16967 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16968 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16969 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16970 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16971 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16972 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16973 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16974 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16975 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16976 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16977 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16978 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16979 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16980 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16981 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16982 * infcall.c (_initialize_infcall): Add declaration.
16983 * infcmd.c (_initialize_infcmd): Add declaration.
16984 * inflow.c (_initialize_inflow): Add declaration.
16985 * infrun.c (_initialize_infrun): Add declaration.
16986 * interps.c (_initialize_interpreter): Add declaration.
16987 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16988 * jit.c (_initialize_jit): Add declaration.
16989 * language.c (_initialize_language): Add declaration.
16990 * linux-fork.c (_initialize_linux_fork): Add declaration.
16991 * linux-nat.c (_initialize_linux_nat): Add declaration.
16992 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16993 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16994 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16995 * m2-lang.c (_initialize_m2_language): Add declaration.
16996 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16997 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16998 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16999 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17000 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17001 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17002 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17003 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17004 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17005 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17006 * machoread.c (_initialize_machoread): Add declaration.
17007 * macrocmd.c (_initialize_macrocmd): Add declaration.
17008 * macroscope.c (_initialize_macroscope): Add declaration.
17009 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17010 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17011 * maint.c (_initialize_maint_cmds): Add declaration.
17012 * mdebugread.c (_initialize_mdebugread): Add declaration.
17013 * memattr.c (_initialize_mem): Add declaration.
17014 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17015 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17016 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17017 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17018 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17019 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17020 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17021 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17022 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17023 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17024 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17025 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17026 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17027 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17028 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17029 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17030 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17031 * mipsread.c (_initialize_mipsread): Add declaration.
17032 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17033 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17034 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17035 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17036 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17037 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17038 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17039 * nto-procfs.c (_initialize_procfs): Add declaration.
17040 * objc-lang.c (_initialize_objc_language): Add declaration.
17041 * observable.c (_initialize_observer): Add declaration.
17042 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17043 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17044 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17045 * osabi.c (_initialize_gdb_osabi): Add declaration.
17046 * osdata.c (_initialize_osdata): Add declaration.
17047 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17048 * parse.c (_initialize_parse): Add declaration.
17049 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17050 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17051 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17052 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17053 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17054 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17055 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17056 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17057 * printcmd.c (_initialize_printcmd): Add declaration.
17058 * probe.c (_initialize_probe): Add declaration.
17059 * proc-api.c (_initialize_proc_api): Add declaration.
17060 * proc-events.c (_initialize_proc_events): Add declaration.
17061 * proc-service.c (_initialize_proc_service): Add declaration.
17062 * procfs.c (_initialize_procfs): Add declaration.
17063 * producer.c (_initialize_producer): Add declaration.
17064 * psymtab.c (_initialize_psymtab): Add declaration.
17065 * python/python.c (_initialize_python): Add declaration.
17066 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17067 * record-btrace.c (_initialize_record_btrace): Add declaration.
17068 * record-full.c (_initialize_record_full): Add declaration.
17069 * record.c (_initialize_record): Add declaration.
17070 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17071 * regcache.c (_initialize_regcache): Add declaration.
17072 * reggroups.c (_initialize_reggroup): Add declaration.
17073 * remote-notif.c (_initialize_notif): Add declaration.
17074 * remote-sim.c (_initialize_remote_sim): Add declaration.
17075 * remote.c (_initialize_remote): Add declaration.
17076 * reverse.c (_initialize_reverse): Add declaration.
17077 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17078 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17079 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17080 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17081 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17082 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17083 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17084 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17085 Add declaration.
17086 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17087 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17088 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17089 * rust-exp.y (_initialize_rust_exp): Add declaration.
17090 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17091 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17092 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17093 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17094 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17095 * score-tdep.c (_initialize_score_tdep): Add declaration.
17096 * ser-go32.c (_initialize_ser_dos): Add declaration.
17097 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17098 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17099 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17100 * ser-uds.c (_initialize_ser_socket): Add declaration.
17101 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17102 * serial.c (_initialize_serial): Add declaration.
17103 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17104 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17105 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17106 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17107 * skip.c (_initialize_step_skip): Add declaration.
17108 * sol-thread.c (_initialize_sol_thread): Add declaration.
17109 * solib-aix.c (_initialize_solib_aix): Add declaration.
17110 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17111 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17112 * solib-frv.c (_initialize_frv_solib): Add declaration.
17113 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17114 * solib-target.c (_initialize_solib_target): Add declaration.
17115 * solib.c (_initialize_solib): Add declaration.
17116 * source-cache.c (_initialize_source_cache): Add declaration.
17117 * source.c (_initialize_source): Add declaration.
17118 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17119 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17120 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17121 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17122 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17123 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17124 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17125 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17126 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17127 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17128 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17129 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17130 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17131 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17132 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17133 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17134 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17135 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17136 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17137 * stabsread.c (_initialize_stabsread): Add declaration.
17138 * stack.c (_initialize_stack): Add declaration.
17139 * stap-probe.c (_initialize_stap_probe): Add declaration.
17140 * std-regs.c (_initialize_frame_reg): Add declaration.
17141 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17142 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17143 * symfile.c (_initialize_symfile): Add declaration.
17144 * symmisc.c (_initialize_symmisc): Add declaration.
17145 * symtab.c (_initialize_symtab): Add declaration.
17146 * target.c (_initialize_target): Add declaration.
17147 * target-connection.c (_initialize_target_connection): Add
17148 declaration.
17149 * target-dcache.c (_initialize_target_dcache): Add declaration.
17150 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17151 * thread.c (_initialize_thread): Add declaration.
17152 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17153 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17154 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17155 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17156 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17157 * tracectf.c (_initialize_ctf): Add declaration.
17158 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17159 * tracefile.c (_initialize_tracefile): Add declaration.
17160 * tracepoint.c (_initialize_tracepoint): Add declaration.
17161 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17162 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17163 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17164 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17165 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17166 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17167 * tui/tui.c (_initialize_tui): Add declaration.
17168 * typeprint.c (_initialize_typeprint): Add declaration.
17169 * ui-style.c (_initialize_ui_style): Add declaration.
17170 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17171 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17172 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17173 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17174 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17175 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17176 * unittests/filtered_iterator-selftests.c
17177 (_initialize_filtered_iterator_selftests): Add declaration.
17178 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17179 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17180 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17181 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17182 * unittests/main-thread-selftests.c
17183 (_initialize_main_thread_selftests): Add declaration.
17184 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17185 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17186 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17187 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17188 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17189 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17190 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17191 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17192 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17193 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17194 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17195 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17196 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17197 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17198 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17199 declaration.
17200 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17201 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17202 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17203 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17204 * user-regs.c (_initialize_user_regs): Add declaration.
17205 * utils.c (_initialize_utils): Add declaration.
17206 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17207 * valops.c (_initialize_valops): Add declaration.
17208 * valprint.c (_initialize_valprint): Add declaration.
17209 * value.c (_initialize_values): Add declaration.
17210 * varobj.c (_initialize_varobj): Add declaration.
17211 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17212 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17213 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17214 * windows-nat.c (_initialize_windows_nat): Add declaration.
17215 (_initialize_check_for_gdb_ini): Add declaration.
17216 (_initialize_loadable): Add declaration.
17217 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17218 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17219 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17220 * xcoffread.c (_initialize_xcoffread): Add declaration.
17221 * xml-support.c (_initialize_xml_support): Add declaration.
17222 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17223 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17224 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17225 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17226
17227 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17228
17229 * regformats/regdat.sh: Generate declaration for init function.
17230
17231 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17232
17233 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17234 up.
17235 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17236 close_one_inferior>: New methods.
17237 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17238 pass down target to find_inferior_pid.
17239 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17240 Pass down target to find_inferior_ptid.
17241 (gdbsim_target::create_inferior): Pass down target to
17242 add_thread_silent.
17243 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17244 target down to find_inferior_ptid and switch_to_thread.
17245 (gdbsim_target::close): Update to call close_one_inferior.
17246 (struct resume_data): Remove.
17247 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17248 directly, rather than through a void pointer.
17249 (gdbsim_target::resume): Update to call resume_one_inferior.
17250
17251 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17252
17253 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17254
17255 2020-01-12 Pedro Alves <palves@redhat.com>
17256
17257 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17258 directly for the current inferior instead of
17259 discard_all_inferiors.
17260 (discard_all_inferiors): Delete.
17261
17262 2020-01-11 Tom Tromey <tom@tromey.com>
17263
17264 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17265 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17266 deprecated_safe_get_selected_frame.
17267
17268 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17269
17270 * inferior.c (print_inferior): Switch inferior before printing it.
17271
17272 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17273 Pedro Alves <palves@redhat.com>
17274
17275 * progspace-and-thread.c (switch_to_program_space_and_thread):
17276 Assert there's an inferior for PSPACE. Use
17277 switch_to_inferior_no_thread to switch the inferior too.
17278 * progspace.c (program_space::~program_space): Call
17279 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17280 (program_space::free_all_objfiles): Don't call clear_symtab_users
17281 here.
17282 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17283
17284 2020-01-10 Pedro Alves <palves@redhat.com>
17285
17286 * NEWS: Mention multi-target debugging, "info connections", and
17287 "add-inferior -no-connection".
17288
17289 2020-01-10 Pedro Alves <palves@redhat.com>
17290
17291 * infrun.c: Include "target-connection.h".
17292 (check_multi_target_resumption): New.
17293 (proceed): Call it.
17294 * target-connection.c (make_target_connection_string): Make
17295 extern.
17296 * target-connection.h (make_target_connection_string): Declare.
17297
17298 2020-01-10 Pedro Alves <palves@redhat.com>
17299
17300 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17301 * inferior.c (uiout_field_connection): New function.
17302 (print_inferior): Add new "connection-id" column.
17303 (add_inferior_command): Show connection number/string of added
17304 inferior.
17305 * process-stratum-target.h
17306 (process_stratum_target::connection_string): New virtual method.
17307 (process_stratum_target::connection_number): New field.
17308 * remote.c (remote_target::connection_string): New override.
17309 * target-connection.c: New file.
17310 * target-connection.h: New file.
17311 * target.c (decref_target): Remove process_stratum targets from
17312 the connection list.
17313 (target_stack::push): Add process_stratum targets to the
17314 connection list.
17315
17316 2020-01-10 Pedro Alves <palves@redhat.com>
17317
17318 Revert:
17319 2016-04-12 Pedro Alves <palves@redhat.com>
17320 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17321 Remove references to name.
17322 * serial.h (struct serial) <name>: Delete.
17323
17324 2020-01-10 Pedro Alves <palves@redhat.com>
17325
17326 * gdbarch-selftests.c (register_to_value_test): Remove "target
17327 already pushed" check.
17328
17329 2020-01-10 Pedro Alves <palves@redhat.com>
17330 John Baldwin <jhb@FreeBSD.org>
17331
17332 * aarch64-linux-nat.c
17333 (aarch64_linux_nat_target::thread_architecture): Adjust.
17334 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17335 (task_command_1): Likewise.
17336 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17337 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17338 (aix_thread_target::store_registers)
17339 (aix_thread_target::thread_alive): Adjust.
17340 * amd64-fbsd-tdep.c: Include "inferior.h".
17341 (amd64fbsd_get_thread_local_address): Pass down target.
17342 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17343 thread's gdbarch instead of target_gdbarch.
17344 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17345 get_last_target_status.
17346 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17347 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17348 inferiors.
17349 (update_inserted_breakpoint_locations): Skip if inferiors with no
17350 execution.
17351 (update_global_location_list): When handling moribund locations,
17352 find representative inferior for location's pspace, and use thread
17353 count of its process_stratum target.
17354 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17355 * bsd-uthread.c (bsd_uthread_target::wait): Use
17356 as_process_stratum_target and adjust thread_change_ptid and
17357 add_thread calls.
17358 (bsd_uthread_target::update_thread_list): Use
17359 as_process_stratum_target and adjust find_thread_ptid,
17360 thread_change_ptid and add_thread calls.
17361 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17362 find_thread_ptid call.
17363 * corelow.c (add_to_thread_list): Adjust add_thread call.
17364 (core_target_open): Adjust add_thread_silent and thread_count
17365 calls.
17366 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17367 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17368 * event-top.c (async_disconnect): Pop targets from all inferiors.
17369 * exec.c (add_target_sections): Push exec target on all inferiors
17370 sharing the program space.
17371 (remove_target_sections): Remove the exec target from all
17372 inferiors sharing the program space.
17373 (exec_on_vfork): New.
17374 * exec.h (exec_on_vfork): Declare.
17375 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17376 Pass it down.
17377 (fbsd_nat_target::update_thread_list): Adjust.
17378 (fbsd_nat_target::resume): Adjust.
17379 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17380 down.
17381 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17382 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17383 get_thread_arch_regcache call.
17384 * fork-child.c (gdb_startup_inferior): Pass target down to
17385 startup_inferior and set_executing.
17386 * gdbthread.h (struct process_stratum_target): Forward declare.
17387 (add_thread, add_thread_silent, add_thread_with_info)
17388 (in_thread_list): Add process_stratum_target parameter.
17389 (find_thread_ptid(inferior*, ptid_t)): New overload.
17390 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17391 parameter.
17392 (all_threads()): Delete overload.
17393 (all_threads, all_non_exited_threads): Add process_stratum_target
17394 parameter.
17395 (all_threads_safe): Use brace initialization.
17396 (thread_count): Add process_stratum_target parameter.
17397 (set_resumed, set_running, set_stop_requested, set_executing)
17398 (threads_are_executing, finish_thread_state): Add
17399 process_stratum_target parameter.
17400 (switch_to_thread): Use is_current_thread.
17401 * i386-fbsd-tdep.c: Include "inferior.h".
17402 (i386fbsd_get_thread_local_address): Pass down target.
17403 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17404 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17405 have_inferiors check.
17406 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17407 (inf_ptrace_target::attach): Adjust.
17408 * infcall.c (run_inferior_call): Adjust.
17409 * infcmd.c (run_command_1): Pass target to
17410 scoped_finish_thread_state.
17411 (proceed_thread_callback): Skip inferiors with no execution.
17412 (continue_command): Rename 'all_threads' local to avoid hiding
17413 'all_threads' function. Adjust get_last_target_status call.
17414 (prepare_one_step): Adjust set_running call.
17415 (signal_command): Use user_visible_resume_target. Compare thread
17416 pointers instead of inferior_ptid.
17417 (info_program_command): Adjust to pass down target.
17418 (attach_command): Mark target's 'thread_executing' flag.
17419 (stop_current_target_threads_ns): New, factored out from ...
17420 (interrupt_target_1): ... this. Switch inferior before making
17421 target calls.
17422 * inferior-iter.h
17423 (struct all_inferiors_iterator, struct all_inferiors_range)
17424 (struct all_inferiors_safe_range)
17425 (struct all_non_exited_inferiors_range): Filter on
17426 process_stratum_target too. Remove explicit.
17427 * inferior.c (inferior::inferior): Push dummy target on target
17428 stack.
17429 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17430 Add process_stratum_target parameter, and pass it down.
17431 (have_live_inferiors): Adjust.
17432 (switch_to_inferior_and_push_target): New.
17433 (add_inferior_command, clone_inferior_command): Handle
17434 "-no-connection" parameter. Use
17435 switch_to_inferior_and_push_target.
17436 (_initialize_inferior): Mention "-no-connection" option in
17437 the help of "add-inferior" and "clone-inferior" commands.
17438 * inferior.h: Include "process-stratum-target.h".
17439 (interrupt_target_1): Use bool.
17440 (struct inferior) <push_target, unpush_target, target_is_pushed,
17441 find_target_beneath, top_target, process_target, target_at,
17442 m_stack>: New.
17443 (discard_all_inferiors): Delete.
17444 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17445 (all_inferiors, all_non_exited_inferiors): Add
17446 process_stratum_target parameter.
17447 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17448 (target_last_proc_target): New global.
17449 (follow_fork_inferior): Push target on new inferior. Pass target
17450 to add_thread_silent. Call exec_on_vfork. Handle target's
17451 reference count.
17452 (follow_fork): Adjust get_last_target_status call. Also consider
17453 target.
17454 (follow_exec): Push target on new inferior.
17455 (struct execution_control_state) <target>: New field.
17456 (user_visible_resume_target): New.
17457 (do_target_resume): Call target_async.
17458 (resume_1): Set target's threads_executing flag. Consider resume
17459 target.
17460 (commit_resume_all_targets): New.
17461 (proceed): Also consider resume target. Skip threads of inferiors
17462 with no execution. Commit resumtion in all targets.
17463 (start_remote): Pass current inferior to wait_for_inferior.
17464 (infrun_thread_stop_requested): Consider target as well. Pass
17465 thread_info pointer to clear_inline_frame_state instead of ptid.
17466 (infrun_thread_thread_exit): Consider target as well.
17467 (random_pending_event_thread): New inferior parameter. Use it.
17468 (do_target_wait): Rename to ...
17469 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17470 down.
17471 (threads_are_resumed_pending_p, do_target_wait): New.
17472 (prepare_for_detach): Adjust calls.
17473 (wait_for_inferior): New inferior parameter. Handle it. Use
17474 do_target_wait_1 instead of do_target_wait.
17475 (fetch_inferior_event): Adjust. Switch to representative
17476 inferior. Pass target down.
17477 (set_last_target_status): Add process_stratum_target parameter.
17478 Save target in global.
17479 (get_last_target_status): Add process_stratum_target parameter and
17480 handle it.
17481 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17482 (context_switch): Check inferior_ptid == null_ptid before calling
17483 inferior_thread().
17484 (get_inferior_stop_soon): Pass down target.
17485 (wait_one): Rename to ...
17486 (poll_one_curr_target): ... this.
17487 (struct wait_one_event): New.
17488 (wait_one): New.
17489 (stop_all_threads): Adjust.
17490 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17491 event's target.
17492 (switch_back_to_stepped_thread): Also consider target.
17493 (print_stop_event): Update.
17494 (normal_stop): Update. Also consider the resume target.
17495 * infrun.h (wait_for_inferior): Remove declaration.
17496 (user_visible_resume_target): New declaration.
17497 (get_last_target_status, set_last_target_status): New
17498 process_stratum_target parameter.
17499 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17500 process_stratum_target parameter, and use it.
17501 (clear_inline_frame_state (thread_info*)): New.
17502 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17503 process_stratum_target parameter.
17504 (clear_inline_frame_state (thread_info*)): Declare.
17505 * linux-fork.c (delete_checkpoint_command): Pass target down to
17506 find_thread_ptid.
17507 (checkpoint_command): Adjust.
17508 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17509 instead of just tweaking inferior_ptid.
17510 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17511 (exit_lwp): Pass target down to find_thread_ptid.
17512 (attach_proc_task_lwp_callback): Pass target down to
17513 add_thread/set_running/set_executing.
17514 (linux_nat_target::attach): Pass target down to
17515 thread_change_ptid.
17516 (get_detach_signal): Pass target down to find_thread_ptid.
17517 Consider last target status's target.
17518 (linux_resume_one_lwp_throw, resume_lwp)
17519 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17520 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17521 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17522 (linux_nat_target::async_wait_fd): New.
17523 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17524 target down.
17525 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17526 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17527 * linux-thread-db.c (struct thread_db_info::process_target): New
17528 field.
17529 (add_thread_db_info): Save target.
17530 (get_thread_db_info): New process_stratum_target parameter. Also
17531 match target.
17532 (delete_thread_db_info): New process_stratum_target parameter.
17533 Also match target.
17534 (thread_from_lwp): Adjust to pass down target.
17535 (thread_db_notice_clone): Pass down target.
17536 (check_thread_db_callback): Pass down target.
17537 (try_thread_db_load_1): Always push the thread_db target.
17538 (try_thread_db_load, record_thread): Pass target down.
17539 (thread_db_target::detach): Pass target down. Always unpush the
17540 thread_db target.
17541 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17542 target down. Always unpush the thread_db target.
17543 (find_new_threads_callback, thread_db_find_new_threads_2)
17544 (thread_db_target::update_thread_list): Pass target down.
17545 (thread_db_target::pid_to_str): Pass current inferior down.
17546 (thread_db_target::get_thread_local_address): Pass target down.
17547 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17548 target down.
17549 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17550 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17551 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17552 (procfs_init_inferior): Rename to ...
17553 (procfs_target::procfs_init_inferior): ... this and adjust.
17554 (procfs_target::create_inferior, procfs_notice_thread)
17555 (procfs_do_thread_registers): Adjust.
17556 * ppc-fbsd-tdep.c: Include "inferior.h".
17557 (ppcfbsd_get_thread_local_address): Pass down target.
17558 * proc-service.c (ps_xfer_memory): Switch current inferior and
17559 program space as well.
17560 (get_ps_regcache): Pass target down.
17561 * process-stratum-target.c
17562 (process_stratum_target::thread_address_space)
17563 (process_stratum_target::thread_architecture): Pass target down.
17564 * process-stratum-target.h
17565 (process_stratum_target::threads_executing): New field.
17566 (as_process_stratum_target): New.
17567 * ravenscar-thread.c
17568 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17569 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17570 down.
17571 * record-btrace.c (record_btrace_target::info_record): Adjust.
17572 (record_btrace_target::record_method)
17573 (record_btrace_target::record_is_replaying)
17574 (record_btrace_target::fetch_registers)
17575 (get_thread_current_frame_id, record_btrace_target::resume)
17576 (record_btrace_target::wait, record_btrace_target::stop): Pass
17577 target down.
17578 * record-full.c (record_full_wait_1): Switch to event thread.
17579 Pass target down.
17580 * regcache.c (regcache::regcache)
17581 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17582 process_stratum_target parameter and handle it.
17583 (current_thread_target): New global.
17584 (get_thread_regcache): Add process_stratum_target parameter and
17585 handle it. Switch inferior before calling target method.
17586 (get_thread_regcache): Pass target down.
17587 (get_thread_regcache_for_ptid): Pass target down.
17588 (registers_changed_ptid): Add process_stratum_target parameter and
17589 handle it.
17590 (registers_changed_thread, registers_changed): Pass target down.
17591 (test_get_thread_arch_aspace_regcache): New.
17592 (current_regcache_test): Define a couple local test_target_ops
17593 instances and use them for testing.
17594 (readwrite_regcache): Pass process_stratum_target parameter.
17595 (cooked_read_test, cooked_write_test): Pass mock_target down.
17596 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17597 (get_thread_arch_aspace_regcache): Add process_stratum_target
17598 parameter.
17599 (regcache::target): New method.
17600 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17601 (regcache::registers_changed_ptid): Add process_stratum_target
17602 parameter.
17603 (regcache::m_target): New field.
17604 (registers_changed_ptid): Add process_stratum_target parameter.
17605 * remote.c (remote_state::supports_vCont_probed): New field.
17606 (remote_target::async_wait_fd): New method.
17607 (remote_unpush_and_throw): Add remote_target parameter.
17608 (get_current_remote_target): Adjust.
17609 (remote_target::remote_add_inferior): Push target.
17610 (remote_target::remote_add_thread)
17611 (remote_target::remote_notice_new_inferior)
17612 (get_remote_thread_info): Pass target down.
17613 (remote_target::update_thread_list): Skip threads of inferiors
17614 bound to other targets. (remote_target::close): Don't discard
17615 inferiors. (remote_target::add_current_inferior_and_thread)
17616 (remote_target::process_initial_stop_replies)
17617 (remote_target::start_remote)
17618 (remote_target::remote_serial_quit_handler): Pass down target.
17619 (remote_target::remote_unpush_target): New remote_target
17620 parameter. Unpush the target from all inferiors.
17621 (remote_target::remote_unpush_and_throw): New remote_target
17622 parameter. Pass it down.
17623 (remote_target::open_1): Check whether the current inferior has
17624 execution instead of checking whether any inferior is live. Pass
17625 target down.
17626 (remote_target::remote_detach_1): Pass down target. Use
17627 remote_unpush_target.
17628 (extended_remote_target::attach): Pass down target.
17629 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17630 (remote_target::append_resumption): Pass down target.
17631 (remote_target::append_pending_thread_resumptions)
17632 (remote_target::remote_resume_with_hc, remote_target::resume)
17633 (remote_target::commit_resume): Pass down target.
17634 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17635 (remote_target::interrupt_query)
17636 (remote_target::remove_new_fork_children)
17637 (remote_target::check_pending_events_prevent_wildcard_vcont)
17638 (remote_target::remote_parse_stop_reply)
17639 (remote_target::process_stop_reply): Pass down target.
17640 (first_remote_resumed_thread): New remote_target parameter. Pass
17641 it down.
17642 (remote_target::wait_as): Pass down target.
17643 (unpush_and_perror): New remote_target parameter. Pass it down.
17644 (remote_target::readchar, remote_target::remote_serial_write)
17645 (remote_target::getpkt_or_notif_sane_1)
17646 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17647 down target.
17648 (remote_target::mourn_inferior): Pass down target. Use
17649 remote_unpush_target.
17650 (remote_target::core_of_thread)
17651 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17652 (remote_target::pid_to_exec_file)
17653 (remote_target::thread_handle_to_thread_info): Pass down target.
17654 (remote_target::async_wait_fd): New.
17655 * riscv-fbsd-tdep.c: Include "inferior.h".
17656 (riscv_fbsd_get_thread_local_address): Pass down target.
17657 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17658 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17659 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17660 Adjust.
17661 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17662 * solib-svr4.c (enable_break): Pass down target.
17663 * spu-multiarch.c (parse_spufs_run): Pass down target.
17664 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17665 * target-delegates.c: Regenerate.
17666 * target.c (g_target_stack): Delete.
17667 (current_top_target): Return the current inferior's top target.
17668 (target_has_execution_1): Refer to the passed-in inferior's top
17669 target.
17670 (target_supports_terminal_ours): Check whether the initial
17671 inferior was already created.
17672 (decref_target): New.
17673 (target_stack::push): Incref/decref the target.
17674 (push_target, push_target, unpush_target): Adjust.
17675 (target_stack::unpush): Defref target.
17676 (target_is_pushed): Return bool. Adjust to refer to the current
17677 inferior's target stack.
17678 (dispose_inferior): Delete, and inline parts ...
17679 (target_preopen): ... here. Only dispose of the current inferior.
17680 (target_detach): Hold strong target reference while detaching.
17681 Pass target down.
17682 (target_thread_name): Add assertion.
17683 (target_resume): Pass down target.
17684 (target_ops::beneath, find_target_at): Adjust to refer to the
17685 current inferior's target stack.
17686 (get_dummy_target): New.
17687 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17688 has a thread running.
17689 (initialize_targets): Rename to ...
17690 (_initialize_target): ... this.
17691 * target.h: Include "gdbsupport/refcounted-object.h".
17692 (struct target_ops): Inherit refcounted_object.
17693 (target_ops::shortname, target_ops::longname): Make const.
17694 (target_ops::async_wait_fd): New method.
17695 (decref_target): Declare.
17696 (struct target_ops_ref_policy): New.
17697 (target_ops_ref): New typedef.
17698 (get_dummy_target): Declare function.
17699 (target_is_pushed): Return bool.
17700 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17701 (all_matching_threads_iterator::all_matching_threads_iterator):
17702 Handle filter target.
17703 * thread-iter.h (struct all_matching_threads_iterator, struct
17704 all_matching_threads_range, class all_non_exited_threads_range):
17705 Filter by target too. Remove explicit.
17706 * thread.c (threads_executing): Delete.
17707 (inferior_thread): Pass down current inferior.
17708 (clear_thread_inferior_resources): Pass down thread pointer
17709 instead of ptid_t.
17710 (add_thread_silent, add_thread_with_info, add_thread): Add
17711 process_stratum_target parameter. Use it for thread and inferior
17712 searches.
17713 (is_current_thread): New.
17714 (thread_info::deletable): Use it.
17715 (find_thread_ptid, thread_count, in_thread_list)
17716 (thread_change_ptid, set_resumed, set_running): New
17717 process_stratum_target parameter. Pass it down.
17718 (set_executing): New process_stratum_target parameter. Pass it
17719 down. Adjust reference to 'threads_executing'.
17720 (threads_are_executing): New process_stratum_target parameter.
17721 Adjust reference to 'threads_executing'.
17722 (set_stop_requested, finish_thread_state): New
17723 process_stratum_target parameter. Pass it down.
17724 (switch_to_thread): Also match inferior.
17725 (switch_to_thread): New process_stratum_target parameter. Pass it
17726 down.
17727 (update_threads_executing): Reimplement.
17728 * top.c (quit_force): Pop targets from all inferior.
17729 (gdb_init): Don't call initialize_targets.
17730 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17731 Declare.
17732 (windows_add_thread, windows_delete_thread): Adjust.
17733 (get_windows_debug_event): Rename to ...
17734 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17735 * tracefile-tfile.c (tfile_target_open): Pass down target.
17736 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17737 Forward declare.
17738 (switch_to_thread): Add process_stratum_target parameter.
17739 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17740 parameter. Use it.
17741 (mi_on_resume): Pass target down.
17742 * nat/fork-inferior.c (startup_inferior): Add
17743 process_stratum_target parameter. Pass it down.
17744 * nat/fork-inferior.h (startup_inferior): Add
17745 process_stratum_target parameter.
17746 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17747
17748 2020-01-10 Pedro Alves <palves@redhat.com>
17749
17750 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17751 directly. Instead find the first thread in the thread list and
17752 use switch_to_thread.
17753
17754 2020-01-10 Pedro Alves <palves@redhat.com>
17755
17756 * remote.c (remote_target::remote_add_inferior): Don't bind a
17757 process to the current inferior if the current inferior is already
17758 bound to a process.
17759
17760 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17761 Pedro Alves <palves@redhat.com>
17762
17763 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17764 If no process is specified, return null_ptid instead of
17765 inferior_ptid.
17766 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17767 TARGET_WAITKIND_SIGNALLED with no pid.
17768
17769 2020-01-10 Pedro Alves <palves@redhat.com>
17770
17771 * remote.c (first_remote_resumed_thread): New.
17772 (remote_target::wait_as): Use it as default event_ptid instead of
17773 inferior_ptid.
17774
17775 2020-01-10 Pedro Alves <palves@redhat.com>
17776
17777 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17778
17779 2020-01-10 Pedro Alves <palves@redhat.com>
17780
17781 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17782 not -1.
17783
17784 2020-01-10 Pedro Alves <palves@redhat.com>
17785
17786 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17787 ptid to get_last_target_status.
17788 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17789 ptid to get_last_target_status.
17790 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17791 get_last_target_status.
17792 (info_program_command): Don't pass a target_waitstatus to
17793 get_last_target_status.
17794 * infrun.c (init_wait_for_inferior): Use
17795 nullify_last_target_wait_ptid.
17796 (get_last_target_status): Handle nullptr arguments.
17797 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17798 (print_stop_event): Don't pass a ptid to get_last_target_status.
17799 (normal_stop): Don't pass a ptid to get_last_target_status.
17800 * infrun.h (get_last_target_status, set_last_target_status): Move
17801 comments here and update.
17802 (nullify_last_target_wait_ptid): Declare.
17803 * linux-fork.c (fork_load_infrun_state): Remove local extern
17804 declaration of nullify_last_target_wait_ptid.
17805 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17806 to get_last_target_status.
17807
17808 2020-01-10 Pedro Alves <palves@redhat.com>
17809
17810 * gdbthread.h (scoped_restore_current_thread)
17811 <dont_restore, restore, m_dont_restore>: Declare.
17812 * thread.c (thread_alive): Add assertion. Return bool.
17813 (switch_to_thread_if_alive): New.
17814 (prune_threads): Switch inferior/thread.
17815 (print_thread_info_1): Switch thread before calling target methods.
17816 (scoped_restore_current_thread::restore): New, factored out from
17817 ...
17818 (scoped_restore_current_thread::~scoped_restore_current_thread):
17819 ... this.
17820 (scoped_restore_current_thread::scoped_restore_current_thread):
17821 Add assertion.
17822 (thread_apply_all_command, thread_select): Use
17823 switch_to_thread_if_alive.
17824 * infrun.c (proceed, restart_threads, handle_signal_stop)
17825 (switch_back_to_stepped_thread): Switch current thread before
17826 calling target methods.
17827
17828 2020-01-10 Pedro Alves <palves@redhat.com>
17829
17830 * inferior.c (switch_to_inferior_no_thread): New function,
17831 factored out from ...
17832 (inferior_command): ... here.
17833 * inferior.h (switch_to_inferior_no_thread): Declare.
17834 * mi/mi-main.c (run_one_inferior): Use
17835 switch_to_inferior_no_thread.
17836
17837 2020-01-10 Pedro Alves <palves@redhat.com>
17838
17839 * infcmd.c (kill_command): Remove dead code.
17840
17841 2020-01-10 Pedro Alves <palves@redhat.com>
17842
17843 * remote.c (remote_target::mourn_inferior): No longer check
17844 whether the target is running.
17845
17846 2020-01-10 Pedro Alves <palves@redhat.com>
17847
17848 * corelow.c (core_target::has_execution): Change parameter type to
17849 inferior pointer.
17850 * inferior.c (number_of_live_inferiors): Use
17851 inferior::has_execution instead of target_has_execution_1.
17852 * inferior.h (inferior::has_execution): New.
17853 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17854 inferior::has_execution instead of target_has_execution_1.
17855 * process-stratum-target.c
17856 (process_stratum_target::has_execution): Change parameter type to
17857 inferior pointer. Check the inferior's PID instead of
17858 inferior_ptid.
17859 * process-stratum-target.h
17860 (process_stratum_target::has_execution): Change parameter type to
17861 inferior pointer.
17862 * record-full.c (record_full_core_target::has_execution): Change
17863 parameter type to inferior pointer.
17864 * target.c (target_has_execution_1): Change parameter type to
17865 inferior pointer.
17866 (target_has_execution_current): Adjust.
17867 * target.h (target_ops::has_execution): Change parameter type to
17868 inferior pointer.
17869 (target_has_execution_1): Change parameter type to inferior
17870 pointer. Change return type to bool.
17871 * tracefile.h (tracefile_target::has_execution): Change parameter
17872 type to inferior pointer.
17873
17874 2020-01-10 Pedro Alves <palves@redhat.com>
17875
17876 * exceptions.c (print_flush): Remove current_top_target() check.
17877
17878 2020-01-10 Pedro Alves <palves@redhat.com>
17879
17880 * remote.c (show_remote_exec_file): Show the current inferior's
17881 exec-file instead of the command variable's value.
17882
17883 2020-01-10 Pedro Alves <palves@redhat.com>
17884
17885 * record-full.c (record_full_resume_ptid): New global.
17886 (record_full_target::resume): Set it.
17887 (record_full_wait_1): Use record_full_resume_ptid instead of
17888 inferior_ptid.
17889
17890 2020-01-10 Pedro Alves <palves@redhat.com>
17891
17892 * gdbthread.h (scoped_restore_current_thread)
17893 <dont_restore, restore, m_dont_restore>: Declare.
17894 * thread.c (thread_alive): Add assertion. Return bool.
17895 (switch_to_thread_if_alive): New.
17896 (prune_threads): Switch inferior/thread.
17897 (print_thread_info_1): Switch thread before calling target methods.
17898 (scoped_restore_current_thread::restore): New, factored out from
17899 ...
17900 (scoped_restore_current_thread::~scoped_restore_current_thread):
17901 ... this.
17902 (scoped_restore_current_thread::scoped_restore_current_thread):
17903 Add assertion.
17904 (thread_apply_all_command, thread_select): Use
17905 switch_to_thread_if_alive.
17906
17907 2020-01-10 George Barrett <bob@bob131.so>
17908
17909 * stap-probe.c (stap_modify_semaphore): Don't check for null
17910 semaphores.
17911 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17912 for null semaphores.
17913
17914 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17915
17916 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17917 all source windows, and maintain horizontal scroll status while
17918 doing so.
17919
17920 2020-01-09 Tom Tromey <tom@tromey.com>
17921
17922 PR tui/18932:
17923 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17924 update_source_window, not print_source_lines.
17925
17926 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17927
17928 * tui/tui.c (tui_enable): Register tui hooks after calling
17929 tui_display_main.
17930
17931 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17932
17933 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17934
17935 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17936
17937 * thread.c (print_thread_info_1): Fix indentation.
17938
17939 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17940
17941 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17942 unique_xmalloc_ptr outside the if to always free the demangled name.
17943
17944 2020-01-08 Tom Tromey <tromey@adacore.com>
17945
17946 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17947 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17948 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17949 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17950 Remove.
17951 (section_offsets): New typedef.
17952 * symtab.c (fixup_section, get_msymbol_address): Update.
17953 * symmisc.c (dump_msymbols): Update.
17954 * symfile.h (relative_addr_info_to_section_offsets)
17955 (symfile_map_offsets_to_segments): Update.
17956 * symfile.c (build_section_addr_info_from_objfile)
17957 (init_objfile_sect_indices): Update.
17958 (struct place_section_arg): Change type of "offsets".
17959 (place_section): Update.
17960 (relative_addr_info_to_section_offsets): Change type of
17961 "section_offsets". Remove "num_sections" parameter.
17962 (default_symfile_offsets, syms_from_objfile_1)
17963 (set_objfile_default_section_offset): Update.
17964 (reread_symbols): No need to preserve section offsets by hand.
17965 (symfile_map_offsets_to_segments): Change type of "offsets".
17966 * stap-probe.c (relocate_address): Update.
17967 * stabsread.h (process_one_symbol): Update.
17968 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17969 (solib_target_relocate_section_addresses): Update.
17970 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17971 Update.
17972 * solib-frv.c (frv_relocate_main_executable): Update.
17973 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17974 * solib-aix.c (solib_aix_get_section_offsets): Change return
17975 type.
17976 (solib_aix_solib_create_inferior_hook): Update.
17977 * remote.c (remote_target::get_offsets): Update.
17978 * psymtab.c (find_pc_sect_psymtab): Update.
17979 * psympriv.h (struct partial_symbol) <address, text_low,
17980 text_high>: Update.
17981 * objfiles.h (obj_section_offset): Update.
17982 (struct objfile) <section_offsets>: Change type.
17983 <num_sections>: Remove.
17984 (objfile_relocate): Update.
17985 * objfiles.c (entry_point_address_query): Update
17986 (relocate_one_symbol): Change type of "section_offsets".
17987 (objfile_relocate1, objfile_relocate1): Change type of
17988 "new_offsets".
17989 (objfile_rebase1): Update.
17990 * mipsread.c (mipscoff_symfile_read): Update.
17991 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17992 parameter.
17993 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17994 (parse_external, psymtab_to_symtab_1): Update.
17995 * machoread.c (macho_symfile_offsets): Update.
17996 * ia64-tdep.c (ia64_find_unwind_table): Update.
17997 * hppa-tdep.c (read_unwind_info): Update.
17998 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17999 * dwarf2read.c (create_addrmap_from_index)
18000 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18001 (process_psymtab_comp_unit_reader, add_partial_symbol)
18002 (add_partial_subprogram, process_full_comp_unit)
18003 (read_file_scope, read_func_scope, read_lexical_block_scope)
18004 (read_call_site_scope, dwarf2_rnglists_process)
18005 (dwarf2_ranges_process, dwarf2_ranges_read)
18006 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18007 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18008 Update.
18009 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18010 Update.
18011 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18012 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18013 (process_one_symbol): Change type of "section_offsets".
18014 * ctfread.c (get_objfile_text_range): Update.
18015 * coffread.c (coff_symtab_read, enter_linenos)
18016 (process_coff_symbol): Update.
18017 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18018 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18019
18020 2020-01-08 Tom Tromey <tromey@adacore.com>
18021
18022 * dwarf2read.c (parse_macro_definition): Use std::string.
18023 (parse_macro_definition): Likewise.
18024
18025 2020-01-08 Tom Tromey <tromey@adacore.com>
18026
18027 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18028 (ATTR_ALLOC_CHUNK): Remove.
18029
18030 2020-01-08 Tom Tromey <tromey@adacore.com>
18031
18032 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18033
18034 2020-01-08 Tom Tromey <tromey@adacore.com>
18035
18036 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18037 (dwarf2_compute_name, open_dwo_file): Likewise.
18038 (process_enumeration_scope): Use std::vector.
18039 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18040 (partial_die_info::fixup, dwarf2_start_subfile)
18041 (guess_full_die_structure_name, dwarf2_name): Likewise.
18042 (determine_prefix): Update.
18043 (guess_full_die_structure_name): Make return type const.
18044 (partial_die_full_name): Return unique_xmalloc_ptr.
18045 (DW_FIELD_ALLOC_CHUNK): Remove.
18046
18047 2020-01-07 Tom Tromey <tromey@adacore.com>
18048
18049 PR build/24937:
18050 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18051
18052 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18053
18054 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18055
18056 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18057
18058 * stack.c (print_frame_info): Move disassemble_next_line code
18059 inside source_print block.
18060
18061 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18062
18063 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18064 gdb/signals.h, as we are now using native signal symbols.
18065
18066 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18067
18068 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18069 overflow by an early check of content vs threshold.
18070 * tui/tui-source.c (tui_source_window::line_is_displayed):
18071 Likewise.
18072
18073 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18074
18075 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18076
18077 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18078
18079 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18080 export table if no section contains it's RVA.
18081
18082 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18083
18084 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18085
18086 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18087
18088 * source.c (print_source_lines_base): Set last_line_listed.
18089
18090 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18091
18092 * tui/tui-disasm.c: Remove trailing spaces.
18093
18094 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18095 Pedro Alves <palves@redhat.com>
18096
18097 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18098 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18099 (windows_gdb_signal_to_target): New function, uses the above
18100 enumeration to convert GDB internal signal codes to equivalent
18101 Windows codes.
18102 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18103 * windows-nat.c: Include "gdb_wait.h".
18104 (get_windows_debug_event): Extract the fatal exception from the
18105 exit status and convert to the equivalent Posix signal number.
18106 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18107 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18108 * gdbsupport/gdb_wait.c: New file, implements
18109 windows_status_to_termsig.
18110 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18111 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18112
18113 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18114
18115 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18116 show_layout.
18117
18118 2020-01-05 Luis Machado <luis.machado@linaro.org>
18119
18120 * aarch64-linux-nat.c
18121 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18122 and bfd_mach_aarch64.
18123
18124 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18125
18126 * ui-file.c (stdio_file::can_emit_style_escape)
18127 (tee_file::can_emit_style_escape): Ensure style is used also on
18128 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18129 to gdb_stdout.
18130 * main.c (set_gdb_data_directory): Use file style to output the
18131 warning that the given pathname is not a directory.
18132 * top.c (show_history_filename, gdb_safe_append_history)
18133 (show_gdb_datadir): Use file style.
18134
18135 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18136
18137 * solib-target.c (struct lm_info_target):
18138 Change offsets to be a unique_xmalloc_ptr.
18139 (solib_target_relocate_section_addresses): Update.
18140
18141 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18142
18143 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18144
18145 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18146
18147 * MAINTAINERS (Write After Approval): Add myself.
18148
18149 2020-01-02 Luis Machado <luis.machado@linaro.org>
18150
18151 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18152 Cell BE architecture.
18153 * target.h (struct target_ops) <thread_architecture>: Likewise.
18154
18155 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18156
18157 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18158
18159 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18160
18161 * MAINTAINERS (Write After Approval): Add myself.
18162
18163 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18164
18165 * gdbarch.sh: Update copyright year range of generated files.
18166
18167 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18168
18169 Update copyright year range in all GDB files.
18170
18171 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18172
18173 * copyright.py: Convert to Python 3.
18174
18175 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18176
18177 * copyright.py: Adapt after move of gnulib directory from gdb
18178 directory to toplevel directory.
18179
18180 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18181
18182 * copyright.py (main): Exit if run from the wrong directory.
18183
18184 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18185
18186 * top.c (print_gdb_version): Change copyright year to 2020.
18187
18188 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18189
18190 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18191
18192 For older changes see ChangeLog-2019.
18193 \f
18194 Local Variables:
18195 mode: change-log
18196 left-margin: 8
18197 fill-column: 74
18198 version-control: never
18199 coding: utf-8
18200 End:
This page took 0.491122 seconds and 5 git commands to generate.